BottomSheetScaffold constructor
BottomSheetScaffold({
- Key? key,
- Widget? body,
- PreferredSizeWidget? appBar,
- bool dismissOnClick = true,
- bool draggableBody = true,
- Color barrierColor = Colors.black54,
- required DraggableBottomSheet bottomSheet,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- Widget? drawer,
- DrawerCallback? onDrawerChanged,
- Widget? endDrawer,
- DrawerCallback? onEndDrawerChanged,
- Color? backgroundColor,
- bool? resizeToAvoidBottomInset,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- Color? drawerScrimColor,
- double? drawerEdgeDragWidth,
- bool drawerEnableOpenDragGesture = true,
- bool endDrawerEnableOpenDragGesture = true,
- String? restorationId,
- Future<
bool> onWillPop()?, - 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;
}