minorTicksPerInterval property

int minorTicksPerInterval
final

Number of smaller ticks between two major ticks.

For example, if min is 0.0 and max is 10.0 and interval is 2.0, the range slider will render the major ticks at 0.0, 2.0, 4.0 and so on. If minorTicksPerInterval is 1, then smaller ticks will be rendered on 1.0, 3.0 and so on.

Defaults to null. Must be greater than 0.

This snippet shows how to show minor ticks in SfRangeSlider.

SfRangeValues _values = SfRangeValues(4.0, 8.0);

SfRangeSlider(
  min: 0.0,
  max: 10.0,
  values: _values,
  interval: 2,
  showTicks: true,
  minorTicksPerInterval: 1,
  onChanged: (SfRangeValues newValues) {
    setState(() {
      _values = newValues;
    });
   },
)

See also:

Implementation

final int minorTicksPerInterval;