TPUpdteWidget constructor

TPUpdteWidget({
  1. Key? key,
  2. required String packageName,
  3. required String buildVersionNo,
  4. required String buildVersion,
  5. required String buildUpdateDescription,
  6. required String url,
  7. required bool needForceUpdate,
  8. required VoidCallback startInstallApk,
  9. double? buildFileSize,
  10. String? buildName = '',
  11. double titleTextSize = 16.0,
  12. double contentTextSize = 14.0,
  13. double buttonTextSize = 14.0,
  14. Color progressBackgroundColor = const Color(0xFFFFCDD2),
  15. Widget? topImage,
  16. Widget? closeImage,
  17. double extraHeight = 5.0,
  18. double radius = 4.0,
  19. Color themeColor = Colors.red,
  20. bool enableIgnore = false,
  21. VoidCallback? onIgnore,
  22. String updateButtonText = '更新',
  23. String ignoreButtonText = '忽略此版本',
  24. VoidCallback? onClose,
  25. VoidCallback? onUpdate,
  26. 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);