Skip to content
pubscout

flutter_scale_ruler

1.1.0, released 7 weeks ago by boffincoders.com

A scale ruler widget for measuring lengths in centimeters or feet and inches.

WASM-ready
$ flutter pub add flutter_scale_ruler
Source repository

What it does

Provides a horizontal or vertical scale ruler widget that allows users to pick length values in centimeters or feet and inches. It supports custom controllers, major tick intervals, value indicators during drag operations, and standard slider states like enabled and change callbacks.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to let users input length measurements in feet/inches or centimeters.
  • You want a ruler-style slider widget for horizontal or vertical orientations.

Skip it when

  • You need standard linear sliders without measurement unit ticks or scales.
  • You require complex form validation outside of standard slider value changes.

Strengths

  • Supports both metric (centimeters) and imperial (feet and inches) units.
  • Provides horizontal and vertical orientation options.
  • Includes a controller to programmatically manage ruler state and thumb position.

Weaknesses

  • Limited to scale-based length measurements.
  • Not documented for extensive custom graphics beyond basic color and height options.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ScaleRuler.lengthMeasurement(
  minValue: 0,
  maxValue: 200,
  initialValue: 170,
  majorTickInterval: 10,
  showValueIndicator: true,
  onChanged: (ScaleValue value) {
    debugPrint(value.label);
  },
)

Alternatives

Packages that do the same job and could replace flutter_scale_ruler.