ShowDialog class

Constructors

ShowDialog({required String jsonUrl, required BuildContext context, dynamic onPressConfirm()?, dynamic 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 pair
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 ↔ (dynamic Function()?)
Function when press Confirm button
getter/setter pair
onPressDecline ↔ (dynamic 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

checkVersion() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateDialogIos(dynamic context) Future<Widget?>
updateGenericDialog(dynamic context) Future<Widget?>

Operators

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