showProjectBottomSheetContent function

void showProjectBottomSheetContent(
  1. BuildContext context, {
  2. required String title,
  3. required Widget content,
  4. Widget? floatBottom,
  5. 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,
        ),
      );
    },
  );
}