better_cupertino_slider

Creator: coderz1093

Last updated:

Add to Cart

Description:

better cupertino slider

better_cupertino_slider #
Advanced cupertino slider based on CupertinoSlider.

Install Started #

Add this to your pubspec.yaml file:

dependencies:
better_cupertino_slider: ^1.0.0
copied to clipboard

Install it

$ flutter packages get
copied to clipboard
Normal usage #
BetterCupertinoSlider(
min: 0.0,
max: maxValue,
value: sliderValue,
configure: BetterCupertinoSliderConfigure(
trackHorizontalPadding: 8.0,
trackHeight: 4.0,
trackLeftColor: Colors.greenAccent,
trackRightColor: Colors.grey.withOpacity(0.3),
thumbRadius: 8.0,
thumbPainter: (canvas, rect){
final RRect rrect = RRect.fromRectAndRadius(
rect,
Radius.circular(rect.shortestSide / 2.0),
);
canvas.drawRRect(rrect, Paint()..color = Colors.red);
},
),
onChanged: (value) {
setState(() {
sliderValue = value;
});
},
),
copied to clipboard
Feature #

✅ custom track and thumb
✅ step slider
✅ as linear progress
✅ tap gesture

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.