SimpleChipsInput constructor

const SimpleChipsInput({
  1. Key? key,
  2. required String separatorCharacter,
  3. bool placeChipsSectionAbove = true,
  4. BoxDecoration widgetContainerDecoration = const BoxDecoration(),
  5. EdgeInsets marginBetweenChips = const EdgeInsets.symmetric(horizontal: 2.0, vertical: 1.0),
  6. EdgeInsets paddingInsideChipContainer = const EdgeInsets.symmetric(vertical: 8.0, horizontal: 14.0),
  7. EdgeInsets paddingInsideWidgetContainer = const EdgeInsets.all(8.0),
  8. BoxDecoration chipContainerDecoration = const BoxDecoration(shape: BoxShape.rectangle, color: Colors.blue, borderRadius: BorderRadius.all(Radius.circular(50.0))),
  9. TextFormFieldStyle textFormFieldStyle = const TextFormFieldStyle(),
  10. TextStyle chipTextStyle = const TextStyle(color: Colors.white),
  11. FocusNode? focusNode,
  12. bool autoFocus = false,
  13. TextEditingController? controller,
  14. String createCharacter = ' ',
  15. Widget? deleteIcon,
  16. bool validateInput = false,
  17. dynamic validateInputMethod(
    1. String
    )?,
  18. String eraseKeyLabel = 'Backspace',
  19. GlobalKey<FormState>? formKey,
  20. void onChanged(
    1. String
    )?,
  21. void onEditingComplete()?,
  22. void onSubmitted(
    1. String
    )?,
  23. void onSaved(
    1. String
    )?,
  24. void onChipDeleted(
    1. String,
    2. int
    )?,
  25. void onChipAdded(
    1. String
    )?,
  26. void onChipsCleared()?,
})

Creates a SimpleChipsInput widget.

Read the API reference for full documentation.

Implementation

const SimpleChipsInput({
  super.key,
  required this.separatorCharacter,
  this.placeChipsSectionAbove = true,
  this.widgetContainerDecoration = 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.chipContainerDecoration = const BoxDecoration(
    shape: BoxShape.rectangle,
    color: Colors.blue,
    borderRadius: BorderRadius.all(Radius.circular(50.0)),
  ),
  this.textFormFieldStyle = const TextFormFieldStyle(),
  this.chipTextStyle = const TextStyle(color: Colors.white),
  this.focusNode,
  this.autoFocus = false,
  this.controller,
  this.createCharacter = ' ',
  this.deleteIcon,
  this.validateInput = false,
  this.validateInputMethod,
  this.eraseKeyLabel = 'Backspace',
  this.formKey,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onSaved,
  this.onChipDeleted,
  this.onChipAdded,
  this.onChipsCleared,
});