UpdateWidget constructor

UpdateWidget({
  1. Key? key,
  2. double width = 0.0,
  3. required String title,
  4. required String updateContent,
  5. required VoidCallback onUpdate,
  6. required VoidCallback onInstall,
  7. double titleTextSize = 16.0,
  8. double contentTextSize = 14.0,
  9. double buttonTextSize = 14.0,
  10. double progress = -1.0,
  11. Color progressBackgroundColor = const Color(0xFFFFCDD2),
  12. Widget? topImage,
  13. double extraHeight = 5.0,
  14. double radius = 4.0,
  15. Color themeColor = Colors.red,
  16. bool enableIgnore = false,
  17. VoidCallback? onIgnore,
  18. bool isForce = false,
  19. String updateButtonText = 'Update',
  20. String ignoreButtonText = 'Ignore',
  21. VoidCallback? onClose,
})

Implementation

UpdateWidget({
  Key? key,
  this.width = 0.0,
  required this.title,
  required this.updateContent,
  required this.onUpdate,
  required this.onInstall,
  this.titleTextSize = 16.0,
  this.contentTextSize = 14.0,
  this.buttonTextSize = 14.0,
  this.progress = -1.0,
  this.progressBackgroundColor = const Color(0xFFFFCDD2),
  this.topImage,
  this.extraHeight = 5.0,
  this.radius = 4.0,
  this.themeColor = Colors.red,
  this.enableIgnore = false,
  this.onIgnore,
  this.isForce = false,
  this.updateButtonText = 'Update',
  this.ignoreButtonText = 'Ignore',
  this.onClose,
}) : super(key: key);