UpdateDialog class

版本更新加提示框

Constructors

UpdateDialog(BuildContext context, {double width = 0.0, required String title, required String updateContent, required VoidCallback onUpdate, double titleTextSize = 16.0, double contentTextSize = 14.0, double buttonTextSize = 14.0, double progress = -1.0, Color progressBackgroundColor = const Color(0xFFFFCDD2), Image? topImage, double extraHeight = 5.0, double radius = 4.0, Color themeColor = Colors.red, bool enableIgnore = false, VoidCallback? onIgnore, bool isForce = false, String? updateButtonText, String? ignoreButtonText, VoidCallback? onClose})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dismiss() Future<bool>
隐藏弹窗
isShowing() bool
是否显示
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<bool>
显示弹窗
toString() String
A string representation of this object.
inherited
update(double progress) → void
更新进度

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

showUpdate(BuildContext context, {double width = 0.0, required String title, required String updateContent, required VoidCallback onUpdate, double titleTextSize = 16.0, double contentTextSize = 14.0, double buttonTextSize = 14.0, double progress = -1.0, Color progressBackgroundColor = const Color(0xFFFFCDD2), Image? topImage, double extraHeight = 5.0, double radius = 4.0, Color themeColor = Colors.red, bool enableIgnore = false, VoidCallback? onIgnore, String? updateButtonText, String? ignoreButtonText, bool isForce = false}) UpdateDialog
显示版本更新提示框