A Flutter package for effortlessly binding input fields to variables

0 0

AutoBindingField

A AutoBindingField package that automatically updates input field state based on bound variable changes, and vice versa.

Demo

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 chegz.dev@gmail.com and we’ll be happy to hear from you!

GitHub

View Github

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Deja una respuesta

Entrada anterior A Flutter application that consumes the Clash Royale API to list cards and show their details
Entrada siguiente A Flutter application with several tools such as generators, formatters and converters for developers