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,
),
),
),
);
}
}
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: