DHAlertDialog class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DHAlertDialog
- Implementers
Constructors
- DHAlertDialog({Key? key, Widget? title, String? titleText, EdgeInsetsGeometry? titlePadding, TextStyle? titleTextStyle, TextAlign titleAlign = TextAlign.center, bool hasTitleDivider = false, Widget? titleDivider, Widget? content, String? contentText, EdgeInsetsGeometry? contentPadding, TextStyle? contentTextStyle, TextAlign contentAlign = TextAlign.center, String? positiveText, TextStyle? positiveTextStyle, GestureTapCallback? positiveTap, bool hasPositive = true, String? negativeText, TextStyle? negativeTextStyle, GestureTapCallback? negativeTap, bool hasNegative = true, double? actionHeight, Color? dividerColor = DHColors.color_000000_15, DividerBuilder? actionDividerBuilder, Color? backgroundColor, double topRadius = 20.0, double bottomRadius = 20.0, double? elevation, EdgeInsets? dialogMargin, EdgeInsets? dialogPadding, AlignmentGeometry dialogAlignment = Alignment.center, double? dialogWidth, double? dialogMinHeight, double? dialogMaxHeight})
Properties
- actionDividerBuilder → DividerBuilder?
-
action按钮间分割线,也包括listView 和 Action分割线
会覆盖dividerColor设置
final
- actionHeight → double?
-
按钮高度设置
final
- backgroundColor → Color?
-
对话框有效部分背景颜色
final
- bottomRadius → double
-
底部圆角
final
- content → Widget?
-
内容控件
final
- contentAlign → TextAlign
-
内容水平对齐方式
final
- contentPadding → EdgeInsetsGeometry?
-
内容部分边距
final
- contentText → String?
-
内容文本,作为content的一个备用控件实现Text
如果设置content,该项设置不起作用
内容文本样式请设置contentTextStyle
final
- contentTextStyle → TextStyle?
-
内容文本样式
如果设置content,该项设置不起作用
final
- dialogAlignment → AlignmentGeometry
-
对话框对齐方式
final
- dialogMargin → EdgeInsets?
-
对话框的边距
final
- dialogMaxHeight → double?
-
最大高度
final
- dialogMinHeight → double?
-
最小高度
final
- dialogPadding → EdgeInsets?
-
对话框填充
final
- dialogWidth → double?
-
对话框最大宽度
final
- dividerColor → Color?
-
分割线颜色,可能作用在以下部分
1.title和content 分割线
2.positiveAction 和 negativeAction分割线 (未设置actionDividerBuilder)
3.listView和action 分割线(未设置actionDividerBuilder)
final
- elevation → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNegative → bool
-
左侧取消按钮
final
- hasPositive → bool
-
右侧确定按钮,默认true
final
- hasTitleDivider → bool
-
是否有标题分割线
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- negativeTap → GestureTapCallback?
-
否定按钮点击事件
final
- negativeText → String?
-
否定按钮文本
final
- negativeTextStyle → TextStyle?
-
否定按钮文本样式
按钮高度请设置actionHeight
final
- positiveTap → GestureTapCallback?
-
肯定按钮点击事件
final
- positiveText → String?
-
肯定按钮文本
final
- positiveTextStyle → TextStyle?
-
肯定按钮文本样式
按钮高度请设置actionHeight
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget?
-
标题控件
final
- titleAlign → TextAlign
-
标题水平对齐方式
final
- titleDivider → Widget?
-
标题分割线
final
- titlePadding → EdgeInsetsGeometry?
-
标题文本边距
final
- titleText → String?
-
标题文本 作为title的一个备用控件实现Text
如果设置title,该项设置不起作用
标题文本样式请设置titleTextStyle
final
- titleTextStyle → TextStyle?
-
标题文本样式
如果设置title,该项设置不起作用
final
- topRadius → double
-
对话框圆角
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
buildContent(
) → Widget? -
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
-
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}) → 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