VelocityInputNumber class

数字输入框组件

Inheritance

Constructors

VelocityInputNumber({Key? key, TextEditingController? controller, FocusNode? focusNode, String? label, String? hint, String? helper, String? error, IconData? prefixIcon, IconData? suffixIcon, bool enabled = true, bool readOnly = false, num? value, num? min, num? max, num step = 1, int decimals = 0, bool showButtons = true, VelocityInputNumberButtonPlacement buttonPlacement = VelocityInputNumberButtonPlacement.vertical, ValueChanged<num>? onChanged, ValueChanged<num>? onSubmitted, VoidCallback? onIncrement, VoidCallback? onDecrement, VelocityInputNumberStyle? style})
创建数字输入框组件
const

Properties

buttonPlacement → VelocityInputNumberButtonPlacement
按钮位置
final
controller → TextEditingController?
控制器
final
decimals → int
小数位数
final
enabled → bool
是否启用
final
error → String?
错误文本
final
focusNode → FocusNode?
焦点节点
final
hashCode → int
The hash code for this object.
no setterinherited
helper → String?
帮助文本
final
hint → String?
提示文本
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
标签文本
final
max → num?
最大值
final
min → num?
最小值
final
onChanged → ValueChanged<num>?
值改变回调
final
onDecrement → VoidCallback?
减少回调
final
onIncrement → VoidCallback?
增加回调
final
onSubmitted → ValueChanged<num>?
提交回调
final
prefixIcon → IconData?
前缀图标
final
readOnly → bool
是否只读
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showButtons → bool
是否显示按钮
final
step → num
步长
final
style → VelocityInputNumberStyle?
样式
final
suffixIcon → IconData?
后缀图标
final
value → num?
当前值
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<VelocityInputNumber>
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