Last updated:
0 purchases
ruler scale picker
ruler_scale_picker #
A highly customisable, scrollable widget in a ruler-like style from which you can select values.
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
copied to clipboard
Import it #
import 'package:ruler_scale_picker/ruler_scale_picker.dart';
copied to clipboard
Example #
NumericRulerScalePicker()
copied to clipboard
Possibilities #
Custom options #
NumericRulerScalePicker(
options: RulerScalePickerOptions(
majorIndicatorInterval: 2,
indicatorExtend: 70,
),
),
copied to clipboard
Custom widgets #
NumericRulerScalePicker(
decreaseButtonBuilder: (context, action) {
return ElevatedButton(
onPressed: action,
child: const Text('-'),
);
}
)
copied to clipboard
Custom controller #
NumericRulerScalePicker(
controller: NumericRulerScalePickerController(),
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.