Since the introduction of the direct write code like this just fine! Use as a widget:
the Column (
mainAxisAlignment: MainAxisAlignment.center,
Children: <the Widget> [
NumberPicker.integer (
the initialValue: _currentValue,
the minValue: 0,
maxValue: 100,
the onChanged: (newValue) =>
the setState (() => = _currentValue newValue)),
the Text ( "Current Number: $ _currentValue"),
],
),
flutter numberpicker
Guess you like
Origin www.cnblogs.com/braveheart007/p/11141194.html
Recommended
Ranking