AutoBindingField
A AutoBindingField package that automatically updates input field state based on bound variable changes, and vice versa.
Usage
Simply import the package and use the AutoBindingField
widget in your Flutter app. Here is an example:
int? age;
AutoBindingNumField(
value: age,
type: NumberType.onlyPositiveInt,
onChanged: (value) {
setState(() {
age=value as int?;
});
},
decoration: const InputDecoration(labelText: 'Age'),
),
Example
click here for example
Issues and feedback
Please file issues and feedback using the Github issues page for this repository.
If you have any suggestions or feedback, please send an email to [email protected] and we’ll be happy to hear from you!