SelectChipsInput constructor

const SelectChipsInput({
  1. Key? key,
  2. required List<String> chipsText,
  3. List<Widget?>? suffixIcons = null,
  4. List<Widget?>? prefixIcons = null,
  5. Widget? selectedPrefixIcon = null,
  6. Widget? selectedSuffixIcon = null,
  7. List<Widget?>? selectedPrefixIcons = null,
  8. List<Widget?>? selectedSuffixIcons = null,
  9. required String separatorCharacter,
  10. BoxDecoration selectedChipDecoration = const BoxDecoration(),
  11. BoxDecoration unselectedChipDecoration = const BoxDecoration(),
  12. EdgeInsets marginBetweenChips = const EdgeInsets.symmetric(horizontal: 2.0, vertical: 1.0),
  13. EdgeInsets paddingInsideChipContainer = const EdgeInsets.symmetric(vertical: 8.0, horizontal: 14.0),
  14. EdgeInsets paddingInsideWidgetContainer = const EdgeInsets.all(8.0),
  15. BoxDecoration widgetContainerDecoration = const BoxDecoration(shape: BoxShape.rectangle, color: Colors.blue, borderRadius: BorderRadius.all(Radius.circular(50.0))),
  16. TextStyle selectedChipTextStyle = const TextStyle(color: Colors.white),
  17. TextStyle unselectedChipTextStyle = const TextStyle(color: Colors.white),
  18. void onTap(
    1. String,
    2. int
    )?,
})

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,
});