ProgressDialog<T> class

ProgressDialog widget that is used to create a progress dialog with an adaptive style depending on the platform. The class is generic and takes a type parameter T which is used to represent the data that can be returned from the confirmButtonCallback method. The ProgressDialog widget has several parameters: title A string representing the title of the dialog. content A string representing the content of the dialog. confirmationButtonLabel A string representing the label of the confirmation button. cancelButtonLabel A string representing the label of the cancel button. confirmButtonCallback A function that returns a Future<T?> and is called when the confirmation button is pressed. The returned value is used as the data property of the AdaptiveProgressDialogResult. adaptiveProgressDialogStyle An object of AdaptiveProgressDialogStyle which contains styles for the progress dialog on different platforms.

Inheritance

Constructors

ProgressDialog({Key? key, String? title, String? content, String? confirmationButtonLabel, String? cancelButtonLabel, Future<T?> confirmButtonCallback()?, AdaptiveProgressDialogStyle? adaptiveProgressDialogStyle})
const

Properties

adaptiveProgressDialogStyle AdaptiveProgressDialogStyle?
The dialog can be styled using the AdaptiveProgressDialogStyle If null is passed the default theme is applied
final
cancelButtonLabel String?
Label of the cancel button - 'Cancel' by default
final
confirmationButtonLabel String?
Label of the confirmation button - 'Ok' by default
final
confirmButtonCallback → (Future<T?> Function()?)
Confirmation button callback This method is triggered when the confirmation button is pressed. Once finished the dialog is closed and the result is returned via AdaptiveProgressDialogResult
final
content String?
Content of the dialog
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Title of the dialog
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ProgressDialog<T>>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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