bottomMaterialDialog static method
void
bottomMaterialDialog({
- required BuildContext context,
- dynamic onClose(
- dynamic value
- String? title,
- String? msg,
- List<
Widget> ? actions, - 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,
List<Widget>? actions,
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: actions,
animationBuilder: lottieBuilder,
customView: customView,
customViewPosition: customViewPosition,
titleStyle: titleStyle,
msgStyle: msgStyle,
color: color,
),
).then((value) => onClose?.call(value));
}