UpdateWidget constructor
UpdateWidget({
- Key? key,
- double width = 0.0,
- required String title,
- required String onSubmit,
- required String desc,
- String submitButton = 'Install',
- String skipButton = 'Skip',
- double titleTextSize = 16.0,
- double contentTextSize = 14.0,
- double buttonTextSize = 14.0,
- double progress = -1.0,
- Color progressBackgroundColor = const Color(0xFFFFCDD2),
- String? topImage,
- double extraHeight = 5.0,
- double radius = 4.0,
- Color themeColor = Colors.red,
- bool enableIgnore = false,
- VoidCallback? onIgnore,
- bool isForce = false,
- 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);