Flutter · Ruler picker
Notch
Scroll to a number, feel every step.
A scrollable ruler picker for Flutter. Drag or fling and it always comes to rest on a tick, clicks as values pass, and the centre notch dips like a detent.
Demo
A recording of the demo. Open it in a new tab
What it does
- 01
Custom scroll physics that always settle exactly on a tick
- 02
Selection haptics and a notch that bumps as each value passes
- 03
Unit helpers for cm, feet and inches, kg and lb
- 04
Arrow keys and screen reader increase and decrease
Use it
dependencies:
notch_ruler_picker:
git:
url: https://github.com/YagnikBarasiya23/notch_ruler_picker.gitimport 'package:notch_ruler_picker/notch_ruler_picker.dart';
NotchRulerPicker(
value: heightCm,
min: 90,
max: 244,
majorEvery: 10,
semanticLabel: 'Height',
semanticValueBuilder: (v) => '${v.round()} centimetres',
onChanged: (v) => setState(() => heightCm = v),
)Every option, the technique behind the motion and the accessibility notes are in the README on GitHub
More components
All 10- Flutter
- Flutter
Get in touch
Open for freelance projects, contract roles and collaborations — mobile apps and full-stack products in particular. WhatsApp gets the fastest reply.
- Phone
- +91 70488 09875
- Based in
- Rajkot, Gujarat, India
- Elsewhere