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 SfRangeSelector.
SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);
SfRangeSelector(
min: 0.0,
max: 10.0,
initialValues: _initialValues,
interval: 1,
showTicks: true,
showLabels: true,
enableTooltip: true,
child: Container(
height: 200,
color: Colors.green[100],
),
)
See also:
- tooltipTextFormatterCallback, for changing the default tooltip text.
- SfRangeSelectorThemeData, for customizing the appearance of the tooltip text.
Implementation
final bool enableTooltip;