Skip to content

App crashes on latest versions when AnimatedContainer / Container height is set to 0 and throws uncaught exception 'NSInternalInconsistencyException', reason: 'Transformed points can't form a rect' #110671

@Altamimi-Dev

Description

@Altamimi-Dev

am getting the issue here with flutter 3.3 stable:

it keeps crashing when the BaseBottomSheet is active if i comment out the hight and width, once in the page if i add static values to the width and hight it works with hot reload. When restarting it , it crashes again.

i also tried:

  • removing the constructors and removing the screen utill.
  • using a container insted of sized box.
  • removing material and adding a container instead.
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../../../../constants/const.dart';

class BaseBottomSheet extends StatelessWidget {
  final List<Widget> children;
  final double bottomSheetsHeight;
  const BaseBottomSheet(
      {Key? key,
      required this.children,
      this.bottomSheetsHeight = bottomSheetHeight})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Material(
      color: Colors.white,
      elevation: 5,
      child: SizedBox(
        height: bottomSheetsHeight.h,
        width: bottomSheetWidth(context),
        child: SingleChildScrollView(
          child: Column(
            children: children,
          ),
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: fatal crashCrashes that terminate the processc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.found in release: 3.3Found to occur in 3.3found in release: 3.4Found to occur in 3.4has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions