v2.1.2numberpicker
NumberPicker is a widget allowing user to choose numbers by scrolling spinners.
688Likes 154K30-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
MarcinusX/NumberPicker open-source repository details.
English project snapshot. Visit GitHub for the latest content.
NumberPicker is a custom widget designed for choosing an integer or decimal number by scrolling spinners.
(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 Column(
children: <Widget>[
NumberPicker(
value: _currentValue,
minValue: 0,
maxValue: 100,
onChanged: (value) => setState(() => _currentValue = value),
),
Text('Current value: $_currentValue'),
],
);
}
}
Dependency list 3 items
{"sdk":"flutter"}^1.1.0{"sdk":"flutter"}Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗