Number picker dynamic

Number picker dynamic is a code lock inspired design to use for large numbers and decimals.

Features

  • Turn dials to select each number and decimals
  • Auto rounded values to handle decimals fractions
  • Dark mode support
  • Themed support, with own TextStyle and BoxDecoration support
  • Tackles small screens and big screens with different font sizes
Android iOS Linux macOS Web Windows
Support Yes Yes No No No No

How it looks

Normal mode:

Dark mode:

Large number:

Small number (decimals):

Large number with a lot of decimals (scrollable):

Integrated into other widgets:

Number Picker Dynamic live

Usage

NumberPickerDynamic only require option onValueChange callback to be set.

onValueChange returns the current value of the number picker.

NumberPickerDynamic(
  height: 100,
  maxDecimals: 5,
  initValue: 100,
  onValueChange: (value) {
    debugPrint("Value is $value");
  },
),

Design is based on the height value and the "bend" you want the dial to be. If you lower the height bending numbers could make things fit. Do remember to test on different devices and screen sizes.

Additional information

Note that TextScale is locked to 40%. Values above this makes things clip.

Suggestions, PR or any contributions are welcome! Find source on https://github.com/large/numberpicker_dynamic

License

The MIT License (MIT)

Copyright (c) 2025 Lars Werner

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Credit the original creator Lars Werner for the design.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Libraries

numberpicker_dynamic
Export of Number Picker Dynamic class Ensure this is imported as a library making it easy to use