I would like to know how to create a slider to change the text size.
This is the design. あ = A
i want increase +0.05
My code is bad . because i can not made same design .
CupertinoSlider(
min: 0.1,
max: 0.6,
value: clockTextSize.toDouble(),
onChanged: (_value) {
setState(
() {
clockTextSize = _value.toInt();
},
);
},
)
Note: your question wasn't too clear if you're looking to achieve the same design or regarding the divisions. This answer is how to achieve the same design.
Result
Customization
To customize the
Slider
to your liking, you can useSliderTheme
.Then, to customize the Tick, you can create your own class that
extend
sSliderTickMarkShape
.Code
See also
How can I customize Slider widget in Flutter?