MiddleInputDialog class
Constructors
-
MiddleInputDialog({String? title, String? message, String? hintText, TextInputType? keyboardType, int maxLength = 20, int? maxLines, int minLines = 1, FocusNode? inputFocusNode, TextEditingController? inputEditingController, List<
TextInputFormatter> ? inputFormatters, TextInputAction textInputAction = TextInputAction.newline, String? cancelText, String? confirmText, void onConfirm(String value)?, VoidCallback? onCancel, bool dismissOnActionsTap = true, bool barrierDismissible = true, bool autoFocus = false, DialogConfig? themeData})
Properties
- autoFocus → bool
-
是否自动获取焦点,弹出键盘
final
- barrierDismissible → bool
-
点击蒙层背景,弹窗是否可关闭。默认为 true,可关闭
final
- cancelText → String?
-
取消操作标题,默认 '取消'
final
- confirmText → String?
-
确定操作标题,默认 '确定'
final
- dismissOnActionsTap → bool
-
点击取消/确认按钮之后,是否自动关闭弹窗,默认为 true,关闭
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String?
-
输入框占位文字
final
- inputEditingController → TextEditingController?
-
输入控制器。如果有初始状态的填充文字,可以通过 inputEditingController 设置
final
- inputFocusNode → FocusNode?
-
焦点控制 FocusNode
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
输入内容格式控制器
final
- keyboardType → TextInputType?
-
键盘类型
final
- maxLength → int
-
最多可输入多少字符,默认20个
final
- maxLines → int?
-
可输入的最多行数。超过 maxLines 指定的行数后,输入内容会变成可滑动
final
- message → String?
-
辅助提示信息
final
- minLines → int
-
可输入的最少行数,默认为1
final
- onCancel → VoidCallback?
-
点击取消时的回调
final
- onConfirm → void Function(String value)?
-
点击确定时的回调,参数为输入框中的字符
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textInputAction → TextInputAction
-
键盘操作按钮类型,参见系统的 TextField.textInputAction,默认为 TextInputAction.newline
final
- themeData ↔ DialogConfig?
-
点击取消/确认按钮之后,是否自动关闭弹窗,默认为 true,关闭
getter/setter pair
- title → String?
-
标题
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
BuildContext context) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited