How to create a vertical slider in Flutter Slider?
Using Flutter Slider, you can add vertical slider easily by following the below steps.
Step 1: Add syncfusion_flutter_sliders packages to your dependencies in pubspec.yaml file.
Step 2: Add the SfSlider.vertical named constructor to render the slider in vertical orientation.
double _value = 0.5; @override Widget build(BuildContext context) { return Scaffold( body: Center( child: SfSlider.vertical( value: _value, onChanged: (dynamic newValue){ setState(() { _value = newValue; }); }, ), ), ); }
Screenshot:
Check the below links for more features in Syncfusion® Flutter Sliders.
- https://help.syncfusion.com/flutter/slider/getting-started
- https://www.syncfusion.com/flutter-widgets/flutter-slider
- https://pub.dev/packages/syncfusion_flutter_sliders
Live samples,
- https://flutter.syncfusion.com/#/vertical-slider/basic-features/default
- https://play.google.com/store/apps/details?id=com.syncfusion.flutter.examples
- https://apps.apple.com/us/app/syncfusion-flutter-ui-widgets/id1475231341
- https://www.microsoft.com/en-us/p/syncfusion-flutter-gallery/9nhnbwcsf85d?activetab=pivot:overviewtab
- https://snapcraft.io/syncfusion-flutter-gallery
Conclusion
I hope you enjoyed learning about how to create a vertical slider in Flutter.
You can refer to our Flutter Slider feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Flutter Slider example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!