enableTooltip property

bool enableTooltip
final

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;

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

See also:

Implementation

final bool enableTooltip;