yagnikbarasiya2306@gmail.com

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.

Platform
Flutter 3.47+ · Android, iOS, web
Size
Single Dart file
Dependencies
None
Licence
MIT · free for client work

Demo

A recording of the demo. Open it in a new tab

What it does

  1. 01

    Custom scroll physics that always settle exactly on a tick

  2. 02

    Selection haptics and a notch that bumps as each value passes

  3. 03

    Unit helpers for cm, feet and inches, kg and lb

  4. 04

    Arrow keys and screen reader increase and decrease

Use it

Add to pubspec.yamlyaml
dependencies:
  notch_ruler_picker:
    git:
      url: https://github.com/YagnikBarasiya23/notch_ruler_picker.git
Exampledart
import '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

    08 · Camera scan frame

    Viewfinder

    A scan frame that looks alive.

    • Single Dart file
    • No dependencies
    • Free · MIT
  • Flutter

    09 · Swipe to confirm

    Latch

    Confirm with intent, not a tap.

    • Single Dart file
    • No dependencies
    • Free · MIT

Get in touch

Open for freelance projects, contract roles and collaborations — mobile apps and full-stack products in particular. WhatsApp gets the fastest reply.

Based in
Rajkot, Gujarat, India
Elsewhere