enableTooltip property
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:
- tooltipTextFormatterCallback, for changing the default tooltip text.
- SfSliderThemeData, for customizing the appearance of the tooltip text.
Implementation
final bool enableTooltip;