AppVersionDialog constructor
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,
Implementation
AppVersionDialog({
required super.jsonUrl,
required this.context,
this.onPressConfirm,
this.onPressDecline,
this.cupertinoDialog = true,
this.title = 'New version',
this.body,
this.updateButtonText = 'update',
this.laterButtonText = 'later',
this.laterButtonEnable = true,
this.barrierDismissible = true,
this.onWillPop = true,
this.updateButtonRadius = 10,
this.updateButtonTextColor,
this.updateButtonColor,
this.laterButtonColor,
this.dialogRadius = 10,
this.titleColor,
this.bodyColor,
this.backgroundColor = Colors.white,
this.showWeb,
});