TPUpdteWidget constructor
TPUpdteWidget({
- Key? key,
- required String packageName,
- required String buildVersionNo,
- required String buildVersion,
- required String buildUpdateDescription,
- required String url,
- required bool needForceUpdate,
- required VoidCallback startInstallApk,
- double? buildFileSize,
- String? buildName = '',
- double titleTextSize = 16.0,
- double contentTextSize = 14.0,
- double buttonTextSize = 14.0,
- Color progressBackgroundColor = const Color(0xFFFFCDD2),
- Widget? topImage,
- Widget? closeImage,
- double extraHeight = 5.0,
- double radius = 4.0,
- Color themeColor = Colors.red,
- bool enableIgnore = false,
- VoidCallback? onIgnore,
- String updateButtonText = '更新',
- String ignoreButtonText = '忽略此版本',
- VoidCallback? onClose,
- VoidCallback? onUpdate,
- double width = 0.0,
Implementation
TPUpdteWidget(
{
Key? key,
required this.packageName,
required this.buildVersionNo,
required this.buildVersion,
required this.buildUpdateDescription,
required this.url,
required this.needForceUpdate,
required this.startInstallApk,
this.buildFileSize,
this.buildName = '',
this.titleTextSize = 16.0,
this.contentTextSize = 14.0,
this.buttonTextSize = 14.0,
this.progressBackgroundColor = const Color(0xFFFFCDD2),
this.topImage,
this.closeImage,
this.extraHeight = 5.0,
this.radius = 4.0,
this.themeColor = Colors.red,
this.enableIgnore = false,
this.onIgnore,
this.updateButtonText = '更新',
this.ignoreButtonText = '忽略此版本',
this.onClose,
this.onUpdate,
this.width = 0.0,
}) : super(key: key);