HcUpgradeAlert class

A widget to display the upgrade dialog. Override the createState method to provide a custom class with overridden methods.

Inheritance

Constructors

HcUpgradeAlert({Key? key, HcUpgradeNewVersion? hcUpgrade, bool canDismissDialog = false, HcUpgradeDialogStyle dialogStyle = HcUpgradeDialogStyle.material, BoolCallback? onIgnore, BoolCallback? onLater, BoolCallback? onUpdate, BoolCallback? shouldPopScope, bool showIgnore = true, double buttonSize = 30, double buttonFontSize = 15, Color primaryColor = Colors.green, Color ignoreColor = Colors.orange, Color laterColor = Colors.indigo, Color buttonBorderColor = Colors.indigo, bool showLater = true, bool showReleaseNotes = true, TextStyle? cupertinoButtonTextStyle, GlobalKey<State<StatefulWidget>>? dialogKey, GlobalKey<NavigatorState>? navigatorKey, Widget? child})
Creates a new HcUpgradeAlert.

Properties

buttonBorderColor Color
final
buttonFontSize double
final
buttonSize double
final
canDismissDialog bool
Can alert dialog be dismissed on tap outside of the alert dialog. Not used by UpgradeCard. (default: false)
final
child Widget?
The child contained by the widget.
final
cupertinoButtonTextStyle TextStyle?
The text style for the cupertino dialog buttons. Used only for HcUpgradeDialogStyle.cupertino. Optional.
final
dialogKey GlobalKey<State<StatefulWidget>>?
The Key assigned to the dialog when it is shown.
final
dialogStyle HcUpgradeDialogStyle
The upgrade dialog style. Used only on UpgradeAlert. (default: material)
final
hashCode int
The hash code for this object.
no setterinherited
ignoreColor Color
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
laterColor Color
final
For use by the Router architecture as part of the RouterDelegate.
final
onIgnore BoolCallback?
Called when the ignore button is tapped or otherwise activated. Return false when the default behavior should not execute.
final
onLater BoolCallback?
Called when the later button is tapped or otherwise activated.
final
onUpdate BoolCallback?
Called when the update button is tapped or otherwise activated. Return false when the default behavior should not execute.
final
primaryColor Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldPopScope BoolCallback?
Called when the user taps outside of the dialog and canDismissDialog is false. Also called when the back button is pressed. Return true for the screen to be popped.
final
showIgnore bool
Hide or show Ignore button on dialog (default: true)
final
showLater bool
Hide or show Later button on dialog (default: true)
final
showReleaseNotes bool
Hide or show release notes (default: true)
final
upgrade HcUpgradeNewVersion
The upgrade used to configure the upgrade dialog.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() HcUpgradeAlertState
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