showDividers property
Option to render the dividers on the track.
It is a shape which is used to represent the major interval points of the track.
For example, if min is 0.0 and max is 10.0 and interval is 2.0, the range slider will render the dividers at 0.0, 2.0, 4.0 and so on.
Defaults to false
.
This snippet shows how to show dividers in SfRangeSlider.
SfRangeValues _values = SfRangeValues(4.0, 8.0);
SfRangeSlider(
min: 0.0,
max: 10.0,
values: _values,
interval: 2,
showDividers: true,
onChanged: (SfRangeValues newValues) {
setState(() {
_values = newValues;
});
},
)
See also:
- showTicks, to render major ticks at given interval.
- showLabels, to render labels at given interval.
- dividerShape and SfRangeSliderThemeData for customizing the divider’s visual appearance.
Implementation
final bool showDividers;