showLabels property
Option to render the labels on given interval.
Defaults to false
.
This snippet shows how to show labels in SfRangeSelector.
SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);
SfRangeSelector(
min: 0.0,
max: 10.0,
initialValues: _initialValues,
interval: 1,
showLabels: true,
child: Container(
height: 200,
color: Colors.green[100],
),
)
See also:
- numberFormat and dateFormat for formatting the numeric and date labels.
- SfRangeSelectorThemeData to customize the appearance of the labels.
Implementation
final bool showLabels;