Flutter Ruler Picker

Flutter package for ruler type value picker. You can get horizontal and vertical ruler view with the package.

Github Link

pub.dev Link

Screenshots

Usage

Example

To use this package :

  dependencies:
    flutter:
      sdk: flutter
    ruler_picker_bn:

How to use

...
 SizedBox(
  width: 200,
  height: 75,
  child: RulerPicker(
                    onChange: (val) {
                        setState(() {
                          valueKG = val;
                        });
                    },
                    background: Colors.white,
                    lineColor: Colors.black,
                    direction: Axis.horizontal,
                    startValue: 70,
                    maxValue: 200,
                  ),
 ),
...

List Of Properties

  • background : set ruler background color
  • lineColor : set ruler value line color
  • direction : set ruler direction
  • startValue : set ruler starting value position
  • maxValue : set ruler max value
  • minValue : set ruler min value
  • padding : set ruler padding value
  • onChange : event for get to ruler value