Arc slider for Flutter.
Add
arc_slider : ^lastest_version
to your pubspec.yaml, and run
flutter packages get
in your project's root directory.
Import it to your project file
import 'package:arc_slider/arc_slider.dart';
And add it in its most basic form like it:
final slider = ArcSlider(
trackWidth: 14,
trackColor:Colors.red.
onChange : (double value) {
print(value);
});
Parameter | Default | Description |
---|---|---|
min double | 0 | The minimum value the user can select. Must be less than or equal to max. |
max double | 100 | The maximum value the user can select. Must be greater than or equal to min. |
onChange OnChange(double value) | Called during a drag when the user is selecting a new value for the slider by dragging. |
Parameter | Default | Description |
---|---|---|
trackWidth double | 22 | The width of the slider's track. |
progressBarWidth double | 22 | The width of the slider's progress bar. |
thumbsize double | 44 | The size of the slider's thumb. |
Parameter | Default | Description |
---|---|---|
trackColor Color | white with opacity | The color of the slider's track. |
fillColor Color | black | The color of the slider's fill bar. |
dotColor Color | black | The color of the slider's dot. |
thumbColor Color | black | The color of the slider's thumb. |