TPUpdteWidget constructor

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

Implementation

TPUpdteWidget(
    {
      Key? key,
      @required this.packageName,
      @required this.buildVersionNo,
      @required this.buildVersion,
      @required this.buildFileSize,
      @required this.buildUpdateDescription,
      @required this.url,
      this.buildName = '',
      this.needForceUpdate = false,
      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);