A highly customisable, scrollable widget in a ruler-like style from which you can select values.
- 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
dependencies:
ruler_scale_picker: ^0.1.0
import 'package:ruler_scale_picker/ruler_scale_picker.dart';
NumericRulerScalePicker()
NumericRulerScalePicker(
options: RulerScalePickerOptions(
majorIndicatorInterval: 2,
indicatorExtend: 70,
),
),
NumericRulerScalePicker(
decreaseButtonBuilder: (context, action) {
return ElevatedButton(
onPressed: action,
child: const Text('-'),
);
}
)
NumericRulerScalePicker(
controller: NumericRulerScalePickerController(),
)