xxxxxxxxxx
// closes the modal sheet
Navigator.of(context).pop();
xxxxxxxxxx
void _showModalBottomSheet(BuildContext context) {
showModalBottomSheet(
context: context,
builder: (BuildContext context) {
return Container(
height: 200, // Set the desired height
child: Center(
child: Text('Modal Bottom Sheet'),
),
);
},
);
}