CustomProgressDialog class
Constructors
- CustomProgressDialog(BuildContext context, {Color? backgroundColor, double? blur, Function? onCancel, bool? dismissable, Function? onDismiss, Widget? loadingWidget, DialogTransitionType? dialogTransitionType, Duration? transitionDuration})
Properties
- backgroundColor → Color?
-
final
- blur → double?
-
final
- context → BuildContext
-
The context
final
- dialogTransitionType → DialogTransitionType?
-
final
- dismissable → bool?
-
Is your dialog dismissable, because its warp by BlurDialogBackground,
you have to declare here instead on showDialog
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadingWidget → Widget?
-
Show as the progress, nullable to aplied to default loading widget
final
- onCancel → Function?
-
The (optional) on cancel button that will display at the bottom of the dialog.
Note : Do not use POP to cancel the dialog, just put your cancel code there
final
- onDismiss → Function?
-
Action on dialog dismissing
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionDuration → Duration?
-
final
Methods
-
dismiss(
) → void - Dismiss the dialog
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBackgroundColor(
Color color) → void - You can set background / barrier color of dialog using this function, even the dialog already pop up. Set it Null to change it as default
-
setLoadingWidget(
Widget loadingWidget) → void - You can set loading widget of dialog using this function, even the dialog already pop up. Set it Null to change it as default loadingWidget that already you set before
-
show(
{bool useSafeArea = true}) → void - Show progress dialog
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
future<
T> (BuildContext context, {required Future future, OnProgressError? onProgressError, OnProgressFinish? onProgressFinish, OnProgressCancel? onProgressCancel, Color? backgroundColor, double? blur, Function? onDismiss, bool? dismissable, Widget? loadingWidget, DialogTransitionType? dialogTransitionType, Duration? transitionDuration, bool useSafeArea = true}) → Future - future function let you show ProgressDialog until future (param) reach the end of its action