SelectChipsInput constructor
const
SelectChipsInput({
- Key? key,
- required List<
String> chipsText, - List<
Widget?> ? suffixIcons = null, - List<
Widget?> ? prefixIcons = null, - Widget? selectedPrefixIcon = null,
- Widget? selectedSuffixIcon = null,
- List<
Widget?> ? selectedPrefixIcons = null, - List<
Widget?> ? selectedSuffixIcons = null, - required String separatorCharacter,
- BoxDecoration selectedChipDecoration = const BoxDecoration(),
- BoxDecoration unselectedChipDecoration = const BoxDecoration(),
- EdgeInsets marginBetweenChips = const EdgeInsets.symmetric(horizontal: 2.0, vertical: 1.0),
- EdgeInsets paddingInsideChipContainer = const EdgeInsets.symmetric(vertical: 8.0, horizontal: 14.0),
- EdgeInsets paddingInsideWidgetContainer = const EdgeInsets.all(8.0),
- BoxDecoration widgetContainerDecoration = const BoxDecoration(shape: BoxShape.rectangle, color: Colors.blue, borderRadius: BorderRadius.all(Radius.circular(50.0))),
- TextStyle selectedChipTextStyle = const TextStyle(color: Colors.white),
- TextStyle unselectedChipTextStyle = const TextStyle(color: Colors.white),
- void onTap()?,
Implementation
const SelectChipsInput({
super.key,
required this.chipsText,
this.suffixIcons = null,
this.prefixIcons = null,
this.selectedPrefixIcon = null,
this.selectedSuffixIcon = null,
this.selectedPrefixIcons = null,
this.selectedSuffixIcons = null,
required this.separatorCharacter,
this.selectedChipDecoration = const BoxDecoration(),
this.unselectedChipDecoration = const BoxDecoration(),
this.marginBetweenChips =
const EdgeInsets.symmetric(horizontal: 2.0, vertical: 1.0),
this.paddingInsideChipContainer =
const EdgeInsets.symmetric(vertical: 8.0, horizontal: 14.0),
this.paddingInsideWidgetContainer = const EdgeInsets.all(8.0),
this.widgetContainerDecoration = const BoxDecoration(
shape: BoxShape.rectangle,
color: Colors.blue,
borderRadius: BorderRadius.all(Radius.circular(50.0)),
),
this.selectedChipTextStyle = const TextStyle(color: Colors.white),
this.unselectedChipTextStyle = const TextStyle(color: Colors.white),
this.onTap,
});