chip_inputs_textfield 0.0.2
chip_inputs_textfield: ^0.0.2 copied to clipboard
ChipInputTextField is a TextField widget which is used to convert the give input to a Chip based on the validation provided
ChipInputTextField is a TextField widget which is used to convert the give input to a Chip based on the validation provided. User must return a List
This component also help with custom suggestionBuilder based on the last input.
Attributes | Input | Description |
---|---|---|
validate | (inputText) {// return list of ValidatedData based on the requirement} | The returned list will be iterated and renders chip for the valid items |
chipBuilder | (context, state, value, controller) { //return a Chip Widget } | Used to build a custom chip UI |
suggestionFinder | (query) {//return a List of required data} | Used to provide suggestions based on the latest input |
suggestionBuilder | (context, state, data){ // return widgets to show suggestions} | Used to build a custom UI for suggestions |