showLabels property
Option to render the labels on given interval.
Defaults to false
.
This snippet shows how to show labels in SfRangeSlider.
SfRangeValues _values = SfRangeValues(4.0, 8.0);
SfRangeSlider(
min: 0.0,
max: 10.0,
values: _values,
interval: 1,
showLabels: true,
onChanged: (SfRangeValues newValues) {
setState(() {
_values = newValues;
});
},
)
See also:
- numberFormat and dateFormat, for formatting the numeric and date labels.
- SfRangeSliderThemeData, for customizing the appearance of the labels.
Implementation
final bool showLabels;