shouldAlwaysShowTooltip property

bool shouldAlwaysShowTooltip
final

Option to show tooltip always in range slider.

Defaults to false.

When this property is enabled, the tooltip is always displayed to the start and end thumbs of the selector. This property works independent of theenableTooltip property. While this property is enabled, the tooltip will always appear during interaction.

This snippet shows how to show the tooltip in the SfRangeSlider.

SfRangeValues _values = SfRangeValues(4.0, 6.0);

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: SfRangeSlider(
     min: 0,
     max: 10,
     values: _values,
     shouldAlwaysShowTooltip: true,
     onChanged: (SfRangeValues newValues) {
       setState(() {
         _values = newValues;
       });
     },
   ),
 );
}

Implementation

final bool shouldAlwaysShowTooltip;