I’m trying to increase the size of the Container widget to cover the whole screen instead of the current height. This is my current code section relating to the problem:
void BottomBar(Widget popupmenu) {
showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (BuildContext context) {
return Container(
height: double.maxFinite,
child: Scaffold(
resizeToAvoidBottomInset: false,
body: Column(
children: [
Expanded(
child: popupmenu,
),
],
),
),
);
},
);
}
I have tried adding isScrollControlled: true, DraggableScrollableSheet, SingleChildScrollView, & changed ‘showModalBottomSheet’ to showBottomSheet. My expectation is that the menu will change size so that it will cover the full screen instead of half the screen. The results were that the size did not change.