rulers 1.0.7 copy "rulers: ^1.0.7" to clipboard
rulers: ^1.0.7 copied to clipboard

A Flutter Widget to show Ruler with selected values.Rulers like UI to show measurement or selection within some range.

Rulers #

A Flutter Widget to show Ruler with selected values

Flutter Rulers

Getting Started #

Include #

You should ensure that you add the following dependency in your Flutter project.

dependencies:
 rulers: "^1.0.7"

You should then run flutter packages get in terminal.

Import #

In your Dart code, to use it:

import 'package:rulers/rulers.dart';

Example #

In your Dart code, to use it:

        Container(
                  margin: const EdgeInsets.only(top: 8.0),
                  child: RulerWidget(
                    height: 100,
                    scaleBackgroundColor: Colors.yellow,
                    indicatorWidget: Image.asset(
                         'assets/marker.png',
                          color: Colors.red,
                          height: 25,
                          width: 25,
                        ),
                    largeScaleBarsInterval: 24,
                    smallScaleBarsInterval: 3,
                    lowerIndicatorLimit: 2, 
                    upperIndicatorLimit: 8,
                    barsColor: Colors.grey,
                    inRangeBarColor: Colors.green,
                    behindRangeBarColor: Colors.orangeAccent,
                    outRangeBarColor: Colors.red,
                  ),
                ),

Project Created & Maintained By #

Shivam Srivastava #

For help getting started with Flutter, view our online documentation.

20
likes
120
pub points
78%
popularity

Publisher

verified publishernavoki.com

A Flutter Widget to show Ruler with selected values.Rulers like UI to show measurement or selection within some range.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on rulers