FlowItemWidget class

Inheritance

Constructors

FlowItemWidget({Key? key, required String text, Color? textColor, Color? selectTextColor, double? textSize, OnFlowItemClick? itemClick, double? width, double? height, bool isCheck = false, bool enable = true, OnFlowItemChangeCall? changeCall, dynamic data, int position = 0, OnFlowItemBuildCall? buildCall, Color backgroundColor = Colors.white, Color borderColor = const Color(0xffefefef), Color selectedBackgroundColor = Colors.white, Color selectedBorderColor = const Color(0xffFF2E18), Color disableBackgroundColor = const Color(0xfff8f8f8), EdgeInsetsGeometry padding = const EdgeInsets.only(left: 4, right: 4), Widget? tagWidget, BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(3))})
const

Properties

backgroundColor Color
背景颜色
final
borderColor Color
边框颜色
final
borderRadius BorderRadiusGeometry
边框圆角
final
buildCall OnFlowItemBuildCall?
构建完成回调
final
changeCall OnFlowItemChangeCall?
选项改变监听
final
data → dynamic
数据项
final
disableBackgroundColor Color
禁用背景颜色
final
enable bool
该项是否启用
final
hashCode int
The hash code for this object.
no setterinherited
height double?
组件高度
final
isCheck bool
该项是否被选中
final
itemClick OnFlowItemClick?
选项单击事件
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry
内边距
final
position int
item index
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor Color
选择项背景颜色
final
selectedBorderColor Color
选择项边框颜色
final
selectTextColor Color?
选中文本颜色
final
tagWidget Widget?
标记组件
final
text String
标签文本
final
textColor Color?
文本颜色
final
textSize double?
文本大小
final
width double?
组件宽度
final

Methods

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