UpdateWidget constructor

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

Implementation

UpdateWidget(
    {Key? key,
    this.width = 0.0,
    required this.title,
    required this.onSubmit,
    required this.desc,
    this.submitButton = 'Install',
    this.skipButton = 'Skip',
    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.onClose})
    : super(key: key);