AppVersionDialog class
- Inheritance
-
- Object
- AccessoryCheckUpdate
- AppVersionDialog
Constructors
- AppVersionDialog({required String jsonUrl, required BuildContext context, void onPressConfirm()?, void onPressDecline()?, bool cupertinoDialog = true, String title = 'New version', String? body, String updateButtonText = 'update', String laterButtonText = 'later', bool? laterButtonEnable = true, bool barrierDismissible = true, bool onWillPop = true, double? updateButtonRadius = 10, Color? updateButtonTextColor, Color? updateButtonColor, Color? laterButtonColor, double dialogRadius = 10, Color? titleColor, Color? bodyColor, Color backgroundColor = Colors.white, bool? showWeb})
Properties
- backgroundColor ↔ Color
-
the message dialog background color
getter/setter pair
- barrierDismissible ↔ bool
-
if is TRUE you can dismiss the message
dialog by tapping the modal barrier (default: TRUE)
getter/setter pair
- body ↔ String?
-
the dialog message body
getter/setter pair
- bodyColor ↔ Color?
-
the dialog message body color
getter/setter pair
- context ↔ BuildContext
-
Context
getter/setter pair
- cupertinoDialog ↔ bool
-
if is TRUE you can use Android Style for Android
Cupertino IOS style for iOS
getter/setter pair
- dialogRadius ↔ double
-
the message dialog border radius value
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsonUrl ↔ String
-
JSON http link
getter/setter pairinherited
- laterButtonColor ↔ Color?
-
the later button color
getter/setter pair
- laterButtonEnable ↔ bool?
-
if is FALSE the later button is not visible (default: FALSE)
getter/setter pair
- laterButtonText ↔ String
-
the later button text
getter/setter pair
- onPressConfirm ↔ void Function()?
-
Function when press Confirm button
getter/setter pair
- onPressDecline ↔ void Function()?
-
Function when press Decline button
getter/setter pair
- onWillPop ↔ bool
-
if is TRUE the message dialog it
will disappear using only the action keys (default: TRUE)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showWeb ↔ bool?
-
if is TRUE the message dialog it
will disappear on flutter web app version (default: TRUE)
getter/setter pair
- title ↔ String
-
the dialog message title
getter/setter pair
- titleColor ↔ Color?
-
the dialog message title color
getter/setter pair
- updateButtonColor ↔ Color?
-
the update button color
getter/setter pair
- updateButtonRadius ↔ double?
-
the update button text border radius value
getter/setter pair
- updateButtonText ↔ String
-
the update button text
getter/setter pair
- updateButtonTextColor ↔ Color?
-
the update button text color
getter/setter pair
Methods
-
checkUpdated(
) → Future< bool> -
inherited
-
getAppInfo(
) → Future< void> -
inherited
-
getAppVersion(
) → Future< bool> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
) → Future< bool> - Checks if it is necessary to show an app update.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited