FlowWidget constructor
const
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,
Implementation
const FlowWidget({
Key? key,
required this.items,
this.padding = EdgeInsets.zero,
this.color = Colors.white,
this.controller,
this.spacing = 6,
this.runSpacing = 6,
this.itemWidth,
this.itemHeight = 32,
this.isSingleCheck = true,
this.scrollEnable = false,
this.alignment = Alignment.topLeft,
this.borderRadius = const BorderRadius.all(Radius.circular(3)),
this.allowReverseChoice = true,
this.disableCheckStyle = false,
this.itemBackgroundColor,
this.itemSelectBackgroundColor,
this.itemBorderColor,
this.itemSelectBorderColor,
this.itemDisableBackgroundColor,
this.textColor,
this.textSize,
this.selectTextColor,
this.itemPadding,
this.reverse = false,
}) : super(key: key);