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