Skip to content

K1A2/NumberPicker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NumberPicker Build Status Coverage Status

NumberPicker is a custom widget designed for choosing an integer or decimal number by scrolling spinners.

ezgif com-gif-maker

Example:

(See example for more)

class _IntegerExample extends StatefulWidget {
  @override
  __IntegerExampleState createState() => __IntegerExampleState();
}

class __IntegerExampleState extends State<_IntegerExample> {
  int _currentValue = 3;

  @override
  Widget build(BuildContext context) {
    return StatefulBuilder(
      builder: (context4, setState2) {
        return  Column(
          children: <Widget>[
            NumberPicker(
              value: _currentValue,
              minValue: 0,
              maxValue: 100,
              onChanged: (value) => setState2(() => _currentValue = value),
            ),
            Text('Current value: $_currentValue'),
          ],
        );
      },
    );
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 93.5%
  • Ruby 3.5%
  • Objective-C 2.6%
  • Kotlin 0.4%