FlowWidget class

Inheritance

Constructors

FlowWidget({Key? key, required List<FlowItem> items, EdgeInsetsGeometry padding = EdgeInsets.zero, Color color = Colors.white, OnFlowController? controller, double spacing = 6, double runSpacing = 6, double? itemWidth, double itemHeight = 32, bool isSingleCheck = true, dynamic scrollEnable = false, AlignmentGeometry alignment = Alignment.topLeft, BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(3)), bool allowReverseChoice = true, bool disableCheckStyle = false, Color? itemBackgroundColor, Color? itemSelectBackgroundColor, Color? itemBorderColor, Color? itemSelectBorderColor, Color? itemDisableBackgroundColor, Color? textColor, double? textSize, Color? selectTextColor, EdgeInsetsGeometry? itemPadding, bool reverse = false})
const

Properties

alignment AlignmentGeometry
元素对齐方式
final
allowReverseChoice bool
是否允许反向选择
final
borderRadius BorderRadiusGeometry
边框圆角
final
color Color
组件背景颜色
final
controller OnFlowController?
组件监听与控制器
final
disableCheckStyle bool
是否禁用选中样式(默认false)
final
hashCode int
The hash code for this object.
no setterinherited
isSingleCheck bool
是否单选
final
itemBackgroundColor Color?
元素背景颜色
final
itemBorderColor Color?
元素边框颜色
final
itemDisableBackgroundColor Color?
元素禁用背景颜色
final
itemHeight double
元素高度
final
itemPadding EdgeInsetsGeometry?
选项内边距
final
items List<FlowItem>
final
itemSelectBackgroundColor Color?
元素选中背景颜色
final
itemSelectBorderColor Color?
元素选中边框颜色
final
itemWidth double?
元素宽度
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry
组件内边距
final
reverse bool
是否反选
final
runSpacing double
元素上下间距
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollEnable → dynamic
超出容器启用滚动
final
selectTextColor Color?
选中文本颜色
final
spacing double
元素左右间距
final
textColor Color?
文本颜色
final
textSize double?
文本大小
final

Methods

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