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 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 SfSlider.

double _value = 4.0;

SfSlider(
  min: 0.0,
  max: 10.0,
  value: _value,
  interval: 2,
  showTicks: true,
  minorTicksPerInterval: 1,
  onChanged: (dynamic newValue) {
    setState(() {
      _value = newValue;
    });
   },
)

See also:

Implementation

final int minorTicksPerInterval;