EnhanceOperationDialog class
用于显示在屏幕中间展示重要信息,具有强操作的提示dialog 含有纵向单按钮和双按钮
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- EnhanceOperationDialog
Constructors
- EnhanceOperationDialog({Key? key, int iconType = DialogConstants.iconAlert, Widget? customIconWidget, required BuildContext context, String? titleText, String? descText, String? mainButtonText, String? secondaryButtonText, VoidCallback? onMainButtonClick, VoidCallback? onSecondaryButtonClick, DialogConfig? themeData})
Properties
- context → BuildContext
-
构建环境上下文
final
- customIconWidget → Widget?
-
自定义图标
final
- descText → String?
-
弹框辅助信息文案,为空则不显示辅助信息
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconType → int
-
图片类型,默认 0,
BrnDialogConstants.iconAlert
final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainButtonText → String?
-
主要按钮文本
final
- onMainButtonClick → VoidCallback?
-
主要按钮回调
final
- onSecondaryButtonClick → VoidCallback?
-
次要按钮回调
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryButtonText → String?
-
次要按钮文案,为空则不显示次要按钮
final
- themeData ↔ DialogConfig?
-
主题配置
getter/setter pair
- titleText → String?
-
弹框标题文案,为空则不显示标题
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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
-
show(
) → dynamic - 弹出dialog
-
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