minorTicksPerInterval property

int minorTicksPerInterval

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 selector 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 SfRangeSelector.

SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);

  min: 0.0,
  max: 10.0,
  initialValues: _initialValues,
  interval: 2,
  showTicks: true,
  minorTicksPerInterval: 1,
  child: Container(
      height: 200,
      color: Colors.green[100],

See also:


final int minorTicksPerInterval;