StylishDialog class

Constructors

StylishDialog({required BuildContext context, required StylishDialogType? alertType, Widget? title, Widget? content, @Deprecated('Use `confirmButton` instead. will be removed soon') String? confirmText, @Deprecated('Use `cancelButton` instead. will be removed soon') String? cancelText, @Deprecated('Use `confirmButton` instead. will be removed soon') VoidCallback? confirmPressEvent, @Deprecated('Use `cancelButton` instead. will be removed soon') VoidCallback? cancelPressEvent, bool dismissOnTouchOutside = true, bool animationLoop = false, Widget? addView, Widget? confirmButton, Widget? cancelButton, Color? progressColor, Style style = Style.Default, DialogController? controller, Color? backgroundColor})

Properties

addView Widget?
Add custom widget in the dialog.
getter/setter pair
alertType StylishDialogType?
To show dialog with different alert types. You can specify alert type using; for Normal StylishDialogType.NORMAL
final
animationLoop bool
Play animations in a loop. Default value is false
getter/setter pair
backgroundColor Color?
Background color of dialog
getter/setter pair
cancelButton Widget?
Use this to add cancel button widget. To assign press event on non-clickable widgets like
getter/setter pair
cancelPressEvent VoidCallback?
Hanlde cancel button press event.
getter/setter pair
cancelText String?
Use this to set cancel button text.
getter/setter pair
confirmButton Widget?
Use this to add confirm button widget. To assign press event on non-clickable widgets like
getter/setter pair
confirmPressEvent VoidCallback?
Hanlde confirm button press event.
getter/setter pair
confirmText String?
Use this to set confirm button text.
getter/setter pair
content Widget?
Dialog's content Text widget
getter/setter pair
context BuildContext
final
controller DialogController?
Handle dialog callbacks DialogStatus.Showing, DialogStatus.Changed or DialogStatus.Dismissed
final
dismissOnTouchOutside bool
Use this to avoid dialog from dismissing by touching outside of the dialog Default value is true
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
progressColor Color?
Use this to change progress bar color. Default is
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style Style
Use this to change button style
getter/setter pair
title Widget?
Dialog's title Text widget
getter/setter pair

Methods

changeAlertType({required StylishDialogType alertType, Widget? title, Widget? content, String? confirmText, String? cancelText, VoidCallback? confirmPressEvent, VoidCallback? cancelPressEvent, Widget? confirmButton, Widget? cancelButton}) → void
Call changeAlertType function to change the alert type of the current dialog
dismiss({bool rootNavigator = true}) → void
The Function used to dismiss the dialog
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<void>
The function used to show the stylish dialog
toString() String
A string representation of this object.
inherited

Operators

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