Custom Ruler

pub package License: MIT

A highly customizable ruler/scale widget for Flutter with support for horizontal and vertical orientations, snapping, and extensive styling options.

Custom Ruler Demo

Screenshots

Features

  • 📏 Horizontal & Vertical orientations
  • 🎯 Snap to tick marks with smooth animation
  • 🎨 Fully customizable colors, sizes, and intervals
  • 📱 Responsive - adapts to container size
  • High performance - uses CustomPainter with viewport culling
  • 🔧 Programmatic control - scroll to any value via GlobalKey

Installation

Add to your pubspec.yaml:

dependencies:
  custom_ruler: ^1.0.0

Libraries

custom_ruler
A highly customizable ruler/scale widget for Flutter.