ruler_scale_picker 0.1.0 copy "ruler_scale_picker: ^0.1.0" to clipboard
ruler_scale_picker: ^0.1.0 copied to clipboard

A highly customisable, scrollable widget in a ruler-like style from which you can select values.

ruler_scale_picker #

pub package package publisher style license

A highly customisable, scrollable widget in a ruler-like style from which you can select values.

Preview example

Features #

  • Customisable widgets
  • Platform-specific physics (Android -> pinch, iOS -> bounce).
  • Values on the ruler snap into place
  • Horizontal and vertical orientation possible
  • Customisable values through an extensible controller/interface
  • Controllable and listenable through a controller
  • Right-to-left-support
  • Haptic feedback on iOS

Usage #

Depend on it #

dependencies:
  ruler_scale_picker: ^0.1.0

Import it #

import 'package:ruler_scale_picker/ruler_scale_picker.dart';

Example #

NumericRulerScalePicker()

Possibilities #

Custom options #

NumericRulerScalePicker(
    options: RulerScalePickerOptions(
        majorIndicatorInterval: 2,
        indicatorExtend: 70,
    ),
),

Custom widgets #

NumericRulerScalePicker(
    decreaseButtonBuilder: (context, action) {
        return ElevatedButton(
            onPressed: action,
            child: const Text('-'),
        );
    }
)

Custom controller #

NumericRulerScalePicker(
    controller: NumericRulerScalePickerController(),
)
15
likes
140
pub points
75%
popularity
screenshot

Publisher

verified publishercosee.biz

A highly customisable, scrollable widget in a ruler-like style from which you can select values.

Homepage
Repository (GitHub)
View/report issues

Topics

#ruler #scrollable

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on ruler_scale_picker