showTicks property
Option to render the major ticks 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 selector will render the major ticks at 0.0, 2.0, 4.0 and so on.
Defaults to false
.
This snippet shows how to show major ticks in SfRangeSelector.
SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);
SfRangeSelector(
min: 0.0,
max: 10.0,
initialValues: _initialValues,
interval: 2,
showTicks: true,
child: Container(
height: 200,
color: Colors.green[100],
),
)
See also:
- tickShape and SfRangeSelectorThemeData for customizing the major tick’s visual appearance.
Implementation
final bool showTicks;