enableTooltip property
Option to enable tooltips for both the thumbs.
Used to clearly indicate the current selection of the ranges during interaction.
By default, tooltip text is formatted with either numberFormat or dateFormat.
This snippet shows how to enable tooltip in SfRangeSlider.
SfRangeValues _values = SfRangeValues(4.0, 8.0);
SfRangeSlider(
min: 0.0,
max: 10.0,
values: _values,
interval: 1,
showTicks: true,
showLabels: true,
enableTooltip: true,
onChanged: (SfRangeValues newValues) {
setState(() {
_values = newValues;
});
},
)
See also:
- tooltipTextFormatterCallback, for changing the default tooltip text.
- SfRangeSliderThemeData, for customizing the appearance of the tooltip text.
Implementation
final bool enableTooltip;