AppVersionDialog constructor

AppVersionDialog({
  1. required String jsonUrl,
  2. required BuildContext context,
  3. void onPressConfirm()?,
  4. void onPressDecline()?,
  5. bool cupertinoDialog = true,
  6. String title = 'New version',
  7. String? body,
  8. String updateButtonText = 'update',
  9. String laterButtonText = 'later',
  10. bool? laterButtonEnable = true,
  11. bool barrierDismissible = true,
  12. bool onWillPop = true,
  13. double? updateButtonRadius = 10,
  14. Color? updateButtonTextColor,
  15. Color? updateButtonColor,
  16. Color? laterButtonColor,
  17. double dialogRadius = 10,
  18. Color? titleColor,
  19. Color? bodyColor,
  20. Color backgroundColor = Colors.white,
  21. 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,
});