DHInputDialog class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DHInputDialog
Constructors
-
DHInputDialog({Key? key, Widget? title, String? titleText, EdgeInsetsGeometry? titlePadding, TextStyle? titleTextStyle, TextAlign titleAlign = TextAlign.center, EdgeInsetsGeometry? contentPadding, String? positiveText, TextStyle? positiveTextStyle, ValueChanged<
String> ? positiveTap, bool hasPositive = true, String? negativeText, TextStyle? negativeTextStyle, ValueChanged<String> ? negativeTap, bool hasNegative = true, double? actionHeight, EdgeInsets? dialogMargin, EdgeInsets? dialogPadding, Color? backgroundColor, double topRadius = 20.0, double bottomRadius = 20.0, double? elevation, Color? dividerColor = DHColors.color_000000_15, DividerBuilder? actionDividerBuilder, AlignmentGeometry dialogAlignment = Alignment.bottomCenter, double? dialogWidth, double? dialogMinHeight, double? dialogMaxHeight, String? text, TextStyle? style, int? maxLines = 1, List<TextInputFormatter> ? inputFormatter, TextInputType? keyboardType, int? maxLength, bool? enabled, InputDecoration? decoration, String? hintText, TextStyle? hintStyle, InputBorderStyle? borderStyle = InputBorderStyle.outline, bool? filled = true, Color? fillColor = DHColors.color_f8f8f8, EdgeInsetsGeometry? inputPadding = DialogStyle.inputPadding, BorderSide? borderSide, BorderRadius? borderRadius, bool showCounter = false, Widget? suffix, GestureTapCallback? suffixOnTap, BoxConstraints? suffixConstraints, ValueSetter<TextEditingController> ? controllerGetter})
Properties
- actionDividerBuilder → DividerBuilder?
-
action按钮间分割线,也包括listView 和 Action分割线
会覆盖dividerColor设置
final
- actionHeight → double?
-
按钮高度设置
final
- backgroundColor → Color?
-
对话框有效部分背景颜色
final
- borderRadius → BorderRadius?
-
边框圆角半径
final
- borderSide → BorderSide?
-
边框属性样式,设置边框颜色,边框宽度,有无边框
final
- borderStyle → InputBorderStyle?
-
边框样式,无边框InputBorderStyle.none,
下划线InputBorderStyle.underline,
矩形InputBorderStyle.outline
final
- bottomRadius → double
-
底部圆角
final
- contentPadding → EdgeInsetsGeometry?
-
内容部分边距
final
-
controllerGetter
→ ValueSetter<
TextEditingController> ? -
返回TextEditingController对象
final
- decoration → InputDecoration?
-
输入框装饰
final
- dialogAlignment → AlignmentGeometry
-
对话框对齐方式
final
- dialogMargin → EdgeInsets?
-
对话框的边距
final
- dialogMaxHeight → double?
-
对话框最大高度
final
- dialogMinHeight → double?
-
对话框最小高度
final
- dialogPadding → EdgeInsets?
-
final
- dialogWidth → double?
-
对话框宽度
final
- dividerColor → Color?
-
分割线颜色,可能作用在以下部分
1.listItem 分割线(未设置
itemDividerBuilder
) 2.positiveAction 和 negativeAction分割线 (未设置actionDividerBuilder) 3.listView和action 分割线(未设置actionDividerBuilder)final - elevation → double?
-
final
- enabled → bool?
-
输入框是否可用
final
- fillColor → Color?
-
输入框背景填充颜色,filled 为true时工作
final
- filled → bool?
-
输入框背景是否填充颜色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNegative → bool
-
左侧取消按钮
final
- hasPositive → bool
-
右侧确定按钮,默认true
final
- hintStyle → TextStyle?
-
提示文本样式
final
- hintText → String?
-
提示文本
final
-
inputFormatter
→ List<
TextInputFormatter> ? -
输入内容格式化
final
- inputPadding → EdgeInsetsGeometry?
-
输入框内容填充
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
输入法类型
final
- maxLength → int?
-
输入内容最大长度
final
- maxLines → int?
-
输入框最大行数
final
-
negativeTap
→ ValueChanged<
String> ? -
否定按钮点击事件
final
- negativeText → String?
-
否定按钮文本
final
- negativeTextStyle → TextStyle?
-
否定按钮文本样式
按钮高度请设置actionHeight
final
-
positiveTap
→ ValueChanged<
String> ? -
肯定按钮点击事件
final
- positiveText → String?
-
肯定按钮文本
final
- positiveTextStyle → TextStyle?
-
肯定按钮文本样式
按钮高度请设置actionHeight
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCounter → bool
-
是否显示文本统计,true必须设置maxLength才能工作
final
- style → TextStyle?
-
输入文本样式
final
- suffix → Widget?
-
输入框右侧控件
final
- suffixConstraints → BoxConstraints?
-
输入框右侧控件大小约束
final
- suffixOnTap → GestureTapCallback?
-
输入框右侧点击事件,设置后suffix附加点击事件
final
- text → String?
-
输入文本
final
- title → Widget?
-
标题控件
final
- titleAlign → TextAlign
-
标题水平对齐方式
final
- titlePadding → EdgeInsetsGeometry?
-
标题文本边距
final
- titleText → String?
-
标题文本 作为title的一个备用控件实现Text
如果设置title,该项设置不起作用
标题文本样式请设置titleTextStyle
final
- titleTextStyle → TextStyle?
-
标题文本样式
如果设置title,该项设置不起作用
final
- topRadius → double
-
对话框圆角
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _DHInputDialogState -
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}) → 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