bottomMaterialDialog static method
void
bottomMaterialDialog({
- required BuildContext context,
- dynamic onClose(
- dynamic value
- String? title,
- String? msg,
- @Deprecated('The actions is Deprecated, please use actionsBuilder') List<
Widget> ? actions, - dynamic actionsBuilder(
- BuildContext context
- Widget customView = holder,
- CustomViewPosition customViewPosition = CustomViewPosition.BEFORE_TITLE,
- LottieBuilder? lottieBuilder,
- bool barrierDismissible = true,
- ShapeBorder dialogShape = BottomSheetShape,
- TextStyle titleStyle = titleStyle,
- TextStyle? msgStyle,
- Color color = bcgColor,
- bool isScrollControlled = false,
- bool isDismissible = true,
- bool enableDrag = true,
- RouteSettings? routeSettings,
- AnimationController? transitionAnimationController,
Displays bottom sheet Material dialog above the current contents of the app
Implementation
static void bottomMaterialDialog({
required BuildContext context,
Function(dynamic value)? onClose,
String? title,
String? msg,
@Deprecated('The actions is Deprecated, please use actionsBuilder') List<Widget>? actions,
Function(BuildContext context)? actionsBuilder,
Widget customView = holder,
CustomViewPosition customViewPosition = CustomViewPosition.BEFORE_TITLE,
LottieBuilder? lottieBuilder,
bool barrierDismissible = true,
ShapeBorder dialogShape = BottomSheetShape,
TextStyle titleStyle = titleStyle,
TextStyle? msgStyle,
Color color = bcgColor,
bool isScrollControlled = false,
bool useRootNavigator = false,
bool isDismissible = true,
bool enableDrag = true,
RouteSettings? routeSettings,
AnimationController? transitionAnimationController,
}) {
showModalBottomSheet(
context: context,
shape: dialogShape,
backgroundColor: color,
isScrollControlled: isScrollControlled,
useRootNavigator: useRootNavigator,
isDismissible: isDismissible,
enableDrag: enableDrag,
routeSettings: routeSettings,
transitionAnimationController: transitionAnimationController,
builder: (context) => DialogWidget(
title: title,
msg: msg,
actions: actionsBuilder != null ? actionsBuilder(context) : actions,
animationBuilder: lottieBuilder,
customView: customView,
customViewPosition: customViewPosition,
titleStyle: titleStyle,
msgStyle: msgStyle,
color: color,
),
).then((value) => onClose?.call(value));
}