ModalBottomSheet<ResultType> constructor
ModalBottomSheet<ResultType> ({
- BuildContext? context,
- Key? key,
- bool enableDrag = true,
- bool isDismissible = true,
- bool useSafeArea = false,
- Color handleColor = const Color(0xffdddddd),
- Color backgroundColor = Colors.white,
- double verticalBorderRadius = 20.0,
- double handlerWidth = 30.0,
- double handlerHeight = 4.0,
- double? elevation,
- ShapeBorder? shape,
- Clip? clipBehavior,
- BoxConstraints? constraints,
- Color? barrierColor,
- RouteSettings? routeSettings,
- AnimationController? transitionAnimationController,
- Offset? anchorPoint,
- bool isScrollControlled = false,
Implementation
ModalBottomSheet({
BuildContext? context,
super.key,
this.enableDrag = true,
this.isDismissible = true,
this.useSafeArea = false,
this.handleColor = const Color(0xffdddddd),
this.backgroundColor = Colors.white,
this.verticalBorderRadius = 20.0,
this.handlerWidth = 30.0,
this.handlerHeight = 4.0,
this.elevation,
this.shape,
this.clipBehavior,
this.constraints,
this.barrierColor,
this.routeSettings,
this.transitionAnimationController,
this.anchorPoint,
this.isScrollControlled = false,
this.useRootNavigator = false,
}) : context = context ?? Nav.globalContext;