BottomWritePicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BottomWritePicker
Constructors
- BottomWritePicker({int maxLength = 200, String? hintText, String? leftTag, String title = "", String? rightTag, BottomWritePickerClickCallback? onCancel, BottomWritePickerConfirmClickCallback? onConfirm, Color? rightTextColor, Color? cursorColor, String? defaultText, TextEditingController? textEditingController})
-
const
Properties
- cursorColor → Color?
-
光标颜色
final
- defaultText → String?
-
默认文本
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String?
-
输入框默认提示文案,默认'请输入'
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftTag → String?
-
弹窗左边自定义文案,默认 '取消'
final
- maxLength → int
-
输入框最大能输入的字符长度,默认 200
final
- onCancel → BottomWritePickerClickCallback?
-
取消输入事件回调
final
- onConfirm → BottomWritePickerConfirmClickCallback?
-
确认输入内容事件回调
final
- rightTag → String?
-
弹窗右边自定义文案,默认 '确认'
final
- rightTextColor → Color?
-
弹窗右边文案颜色
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textEditingController → TextEditingController?
-
用于对 TextField 更精细的控制,若传入该字段,defaultText 参数将失效,可使用 TextEditingController.text 进行赋值。
final
- title → String
-
弹窗自定义标题
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
Static Methods
-
show(
BuildContext context, {int maxLength = 200, String? hintText, String? leftTag, String title = "", String? rightTag, BottomWritePickerClickCallback? onCancel, BottomWritePickerConfirmClickCallback? onConfirm, bool confirmDismiss = false, bool cancelDismiss = true, Color? rightTextColor, Color? cursorColor, String? defaultText, TextEditingController? textEditingController}) → void