FlowItemWidget constructor

const FlowItemWidget({
  1. Key? key,
  2. required String text,
  3. Color? textColor,
  4. Color? selectTextColor,
  5. double? textSize,
  6. OnFlowItemClick? itemClick,
  7. double? width,
  8. double? height,
  9. bool isCheck = false,
  10. bool enable = true,
  11. OnFlowItemChangeCall? changeCall,
  12. dynamic data,
  13. int position = 0,
  14. OnFlowItemBuildCall? buildCall,
  15. Color backgroundColor = Colors.white,
  16. Color borderColor = const Color(0xffefefef),
  17. Color selectedBackgroundColor = Colors.white,
  18. Color selectedBorderColor = const Color(0xffFF2E18),
  19. Color disableBackgroundColor = const Color(0xfff8f8f8),
  20. EdgeInsetsGeometry padding = const EdgeInsets.only(left: 4, right: 4),
  21. Widget? tagWidget,
  22. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(3)),
})

Implementation

const FlowItemWidget({
  Key? key,
  required this.text,
  this.textColor,
  this.selectTextColor,
  this.textSize,
  this.itemClick,
  this.width,
  this.height,
  this.isCheck = false,
  this.enable = true,
  this.changeCall,
  this.data,
  this.position = 0,
  this.buildCall,
  this.backgroundColor = Colors.white,
  this.borderColor = const Color(0xffefefef),
  this.selectedBackgroundColor = Colors.white,
  this.selectedBorderColor = const Color(0xffFF2E18),
  this.disableBackgroundColor = const Color(0xfff8f8f8),
  this.padding = const EdgeInsets.only(left: 4, right: 4),
  this.tagWidget,
  this.borderRadius = const BorderRadius.all(Radius.circular(3)),
}) : super(key: key);