ChipList(- {Key? key,
- required List<String> listOfChipNames,
- required List<int> listOfChipIndicesCurrentlySeclected,
- List<Color> activeTextColorList = const [Colors.white],
- List<Color> inactiveTextColorList = const [Colors.blue],
- List<Color> activeBgColorList = const [Colors.blue],
- List<Color> inactiveBgColorList = const [Colors.white],
- TextStyle? style,
- List<Color> inactiveBorderColorList = const [Colors.white],
- List<Color> activeBorderColorList = const [Colors.white],
- List<double> borderRadiiList = const [15],
- bool supportsMultiSelect = false,
- bool shouldWrap = false,
- ScrollPhysics? scrollPhysics,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- WrapAlignment wrapAlignment = WrapAlignment.start,
- WrapCrossAlignment wrapCrossAlignment = WrapCrossAlignment.start,
- Axis axis = Axis.horizontal,
- WrapAlignment runAlignment = WrapAlignment.start,
- double runSpacing = 0.0,
- double spacing = 0.0,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- EdgeInsets padding = EdgeInsets.zero,
- double widgetSpacing = 4}
)
Implementation
ChipList({
Key? key,
required this.listOfChipNames,
required this.listOfChipIndicesCurrentlySeclected,
this.activeTextColorList = const [Colors.white],
this.inactiveTextColorList = const [Colors.blue],
this.activeBgColorList = const [Colors.blue],
this.inactiveBgColorList = const [Colors.white],
this.style,
this.inactiveBorderColorList = const [Colors.white],
this.activeBorderColorList = const [Colors.white],
this.borderRadiiList = const [15],
this.supportsMultiSelect = false,
this.extraOnToggle,
this.shouldWrap = false,
this.scrollPhysics,
this.mainAxisAlignment = MainAxisAlignment.center,
this.wrapAlignment = WrapAlignment.start,
this.wrapCrossAlignment = WrapCrossAlignment.start,
this.axis = Axis.horizontal,
this.runAlignment = WrapAlignment.start,
this.runSpacing = 0.0,
this.spacing = 0.0,
this.textDirection,
this.verticalDirection = VerticalDirection.down,
this.padding = EdgeInsets.zero,
this.widgetSpacing = 4,
}) : super(key: key);