showLabels property
Option to render the labels on given interval.
Defaults to false
.
This snippet shows how to show labels in SfSlider.
double _value = 4.0;
SfSlider(
min: 0.0,
max: 10.0,
value: _value,
interval: 1,
showLabels: true,
onChanged: (dynamic newValue) {
setState(() {
_value = newValue;
});
},
)
See also:
- numberFormat and dateFormat, for formatting the numeric and date labels.
- SfSliderThemeData, for customizing the appearance of the labels.
Implementation
final bool showLabels;