enableTooltip property

bool enableTooltip

Option to enable tooltip for the thumb.

Used to clearly indicate the current selection of the value during interaction.

By default, tooltip text is formatted with either numberFormat or dateFormat.

This snippet shows how to enable tooltip in SfSlider.

double _value = 4.0;

  min: 0.0,
  max: 10.0,
  value: _value,
  interval: 1,
  showTicks: true,
  showLabels: true,
  enableTooltip: true,
  onChanged: (dynamic newValue) {
    setState(() {
      _value = newValue;

See also:


final bool enableTooltip;