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, - 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),
- bool? onlyOneChipSelectable = false,
- void onTap()?,
- WrapAlignment? wrapAlignment = WrapAlignment.start,
- WrapAlignment? wrapRunAlignment = WrapAlignment.start,
- WrapCrossAlignment? wrapCrossAlignment = WrapCrossAlignment.start,
- List<
int> ? preSelectedChips,
Creates a SelectChipsInput widget.
Read the API reference for full documentation.
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,
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.onlyOneChipSelectable = false,
this.onTap,
this.wrapAlignment = WrapAlignment.start,
this.wrapRunAlignment = WrapAlignment.start,
this.wrapCrossAlignment = WrapCrossAlignment.start,
this.preSelectedChips,
});