FlowWidget constructor

const FlowWidget({
  1. Key? key,
  2. required List<FlowItem> items,
  3. EdgeInsetsGeometry padding = EdgeInsets.zero,
  4. Color color = Colors.white,
  5. OnFlowController? controller,
  6. double spacing = 6,
  7. double runSpacing = 6,
  8. double? itemWidth,
  9. double itemHeight = 32,
  10. bool isSingleCheck = true,
  11. dynamic scrollEnable = false,
  12. AlignmentGeometry alignment = Alignment.topLeft,
  13. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(3)),
  14. bool allowReverseChoice = true,
  15. bool disableCheckStyle = false,
  16. Color? itemBackgroundColor,
  17. Color? itemSelectBackgroundColor,
  18. Color? itemBorderColor,
  19. Color? itemSelectBorderColor,
  20. Color? itemDisableBackgroundColor,
  21. Color? textColor,
  22. double? textSize,
  23. Color? selectTextColor,
  24. EdgeInsetsGeometry? itemPadding,
  25. 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);