MUIPrimaryDialog class

Primary Dialog provided my Modular UI

Constructors

MUIPrimaryDialog.new({required String titleText, required String contentText, List<Widget>? buttons, MainAxisAlignment? buttonsAlignment, double? dialogRadius, Color? dialogBackgroundColor, TextStyle? titleStyle, TextStyle? contentStyle})
const

Properties

buttons List<Widget>?
List of Buttons or Widgets to be shown in the primary dialog box For example if you want to show a done and cancel button then give the list two buttons as any flutter default widget or any modular ui widget
final
buttonsAlignment MainAxisAlignment?
Main axis alignment for buttons
final
contentStyle TextStyle?
text style of the dialog box default: color=black54
final
contentText String
The main content of the dialog box
final
dialogBackgroundColor Color?
color of the dialog box default: white
final
dialogRadius double?
border radius of the dialog box default: 5
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleStyle TextStyle?
text style of the dialog box default: size=18, bold, color=black
final
titleText String
Title of the dialog box that appears on the top
final

Methods

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

Operators

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