Dialogs class

Constructors

Dialogs()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

bottomMaterialDialog({required BuildContext context, dynamic onClose(dynamic value)?, String? title, String? msg, 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 useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, RouteSettings? routeSettings, AnimationController? transitionAnimationController}) → void
Displays bottom sheet Material dialog above the current contents of the app
materialDialog({required BuildContext context, dynamic onClose(dynamic value)?, String? title, String? msg, List<Widget>? actions, dynamic actionsBuilder(BuildContext context)?, Widget customView = holder, CustomViewPosition customViewPosition = CustomViewPosition.BEFORE_TITLE, LottieBuilder? lottieBuilder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, ShapeBorder dialogShape = dialogShape, TextStyle titleStyle = titleStyle, TextStyle? msgStyle, TextAlign? titleAlign, TextAlign? msgAlign, Color color = bcgColor, double? dialogWidth}) Future<void>
Displays normal Material dialog above the current contents of the app context your parent widget context color dialog background color title your dialog title titleStyle your dialog title style titleAlign your dialog title alignment msg your dialog description message msgStyle your dialog description style msgAlign your dialog description alignment customView a custom view shown in the dialog at customViewPosition and by default before the title actions Widgets to display a row of buttons after the msg widget. onClose used to listen to dialog close events.

Constants

bcgColor → const Color
bcgColor background default value
BottomSheetShape → const ShapeBorder
BottomSheetShape bottom dialog outer shape
customViewPosition → const CustomViewPosition
dialogShape → const ShapeBorder
dialogShape dialog outer shape
holder → const Widget
holder holder for the custom view
titleStyle → const TextStyle
titleStyle can be used to change the dialog title style