FlowItemWidget constructor
const
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)),
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);