SimpleAppUpgradeWidget class
des:app升级提示控件
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SimpleAppUpgradeWidget
Constructors
-
SimpleAppUpgradeWidget({Key? key, required String title, TextStyle? titleStyle, required List<
String> contents, TextStyle? contentStyle, required String cancelText, TextStyle? cancelTextStyle, required String okText, TextStyle? okTextStyle, Widget? progressBar, required String downloadUrl, required String downloadApkName, bool force = false, VoidCallback? onCancel, VoidCallback? onOk, DownloadProgressCallback? downloadProgress, DownloadStatusChangeCallback? downloadStatusChange}) -
const
Properties
- cancelText → String
-
取消控件
final
- cancelTextStyle → TextStyle?
-
取消控件样式
final
-
contents
→ List<
String> -
升级提示内容
final
- contentStyle → TextStyle?
-
提示内容样式
final
- downloadApkName → String
-
final
- downloadProgress → DownloadProgressCallback?
-
final
- downloadStatusChange → DownloadStatusChangeCallback?
-
final
- downloadUrl → String
-
app安装包下载url,没有下载跳转到应用宝等渠道更新
final
- force → bool
-
是否强制升级,设置true没有取消按钮
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- okText → String
-
确认控件
final
- okTextStyle → TextStyle?
-
确认控件样式
final
- onCancel → VoidCallback?
-
final
- onOk → VoidCallback?
-
final
- progressBar → Widget?
-
下载进度条
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
升级标题
final
- titleStyle → TextStyle?
-
标题样式
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited