BottomSheetScaffold constructor

BottomSheetScaffold({
  1. Key? key,
  2. Widget? body,
  3. PreferredSizeWidget? appBar,
  4. bool dismissOnClick = true,
  5. bool draggableBody = true,
  6. Color barrierColor = Colors.black54,
  7. required DraggableBottomSheet bottomSheet,
  8. Widget? floatingActionButton,
  9. FloatingActionButtonLocation? floatingActionButtonLocation,
  10. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  11. List<Widget>? persistentFooterButtons,
  12. AlignmentDirectional persistentFooterAlignment = AlignmentDirectional.centerEnd,
  13. Widget? drawer,
  14. DrawerCallback? onDrawerChanged,
  15. Widget? endDrawer,
  16. DrawerCallback? onEndDrawerChanged,
  17. Widget? bottomNavigationBar,
  18. Color? backgroundColor,
  19. bool? resizeToAvoidBottomInset,
  20. bool primary = true,
  21. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  22. bool extendBody = false,
  23. bool extendBodyBehindAppBar = false,
  24. Color? drawerScrimColor,
  25. double? drawerEdgeDragWidth,
  26. bool drawerEnableOpenDragGesture = true,
  27. bool endDrawerEnableOpenDragGesture = true,
  28. String? restorationId,
  29. Future<bool> onWillPop()?,
  30. bool oneFingerScrolling = true,
})

Implementation

BottomSheetScaffold({
  super.key,
  this.body,
  this.appBar,
  this.dismissOnClick = true,
  this.draggableBody = true,
  this.barrierColor = Colors.black54,
  required this.bottomSheet,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.persistentFooterAlignment = AlignmentDirectional.centerEnd,
  this.drawer,
  this.onDrawerChanged,
  this.endDrawer,
  this.onEndDrawerChanged,
  this.bottomNavigationBar,
  this.backgroundColor,
  this.resizeToAvoidBottomInset,
  this.primary = true,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.drawerScrimColor,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.restorationId,
  this.onWillPop,
  this.oneFingerScrolling = true,
}) {
  Get.find<BottomSheetController>().oneFingerScrolling = oneFingerScrolling;
  Get.find<BottomSheetController>().barrierColor = barrierColor;
}