InputNumber class

Inheritance
Mixed in types

Constructors

InputNumber({Key? key, bool enable = true, double width = 120, double height = 36, int initValue = 0, int minValue = 0, int maxValue = 100, Color? leftButtonBackgroundColor, Color? rightButtonBackgroundColor, Color? borderColor, IconData? leftIcon, IconData? rightIcon, Color? iconColor, Color? iconDisableColor, double? iconSize, Color? backgroundColor, Color? disableBackgroundColor, Color? textColor, double? textSize, Color? disableTextColor, double? leftButtonWidth, double? rightButtonWidth, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(3)), dynamic buildCall(InputNumberController controller)?})

Properties

backgroundColor Color?
背景颜色
final
borderColor Color?
边框颜色
final
borderRadius BorderRadius
组件圆角
final
buildCall → (dynamic Function(InputNumberController controller)?)
组件构建完成后回调
final
buttonWidth double
no setter
disableBackgroundColor Color?
禁用背景颜色
final
disableTextColor Color?
禁用文本颜色
final
enable bool
组件是否启用
final
hashCode int
The hash code for this object.
no setterinherited
height double
组件高
final
iconColor Color?
按钮颜色
final
iconDisableColor Color?
按钮禁用颜色
final
iconSize double?
按钮大小
final
initValue int
初始值
final
inputWidth double
no setter
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftButtonBackgroundColor Color?
左边按钮背景颜色
final
leftButtonWidth double?
左边按钮宽度
final
leftIcon IconData?
左边icon
final
maxValue int
最大值(默认100)
final
minValue int
最小值
final
numberModel → _InputNumberModel
final
rightButtonBackgroundColor Color?
右边按钮背景颜色
final
rightButtonWidth double?
右边按钮宽度
final
rightIcon IconData?
右边icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color?
文本颜色
final
textSize double?
文本大小
final
width double
组件宽
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildInput(_InputNumberModel model) 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
getInputValue() int
override
leftButton(_InputNumberModel model) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rightButton(_InputNumberModel model) Widget
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