ruler_scale_indicator 0.0.1 copy "ruler_scale_indicator: ^0.0.1" to clipboard
ruler_scale_indicator: ^0.0.1 copied to clipboard

A Flutter package that provides a customizable and interactive scale ruler widget.

example/lib/main.dart

import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:ruler_scale_indicator/ruler_scale_indicator.dart'; // Import using your package name

void main() {
  runApp(const ScaleRulerExampleApp());
}

class ScaleRulerExampleApp extends StatelessWidget {
  const ScaleRulerExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(title: const Text('Scale Ruler Example')),
        body:  Center(
          child: ScaleRuler(
            minRange: 0,
            maxRange: 10,
            lineSpacing: 0.2,
            rulerHeight: 120,
            decimalPlaces: 1,
            onChange: (e){
              log("======>$e");
            },
          ),
        ),
      ),
    );
  }
}
3
likes
160
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a customizable and interactive scale ruler widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on ruler_scale_indicator