showProjectBottomSheetContent function
void
showProjectBottomSheetContent(
- BuildContext context, {
- required String title,
- required Widget content,
- Widget? floatBottom,
- void onPressed()?,
Implementation
void showProjectBottomSheetContent(BuildContext context,
{required String title,
required Widget content,
Widget? floatBottom,
void Function()? onPressed}) {
showModalBottomSheet(
context: context,
useSafeArea: true,
enableDrag: false,
showDragHandle: false,
isScrollControlled:
true, // This allows the sheet to take up more screen space
builder: (context) {
return SizedBox(
height: MediaQuery.of(context).size.height, // full height
child: AppScaffold(
appBar: Header(title: title),
body: content,
),
);
},
);
}