shouldAlwaysShowTooltip property

bool shouldAlwaysShowTooltip
final

Option to show tooltip always in range selector.

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 the enableTooltip property. While this property is enabled, the tooltip will always appear during interaction.

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

SfRangeValues _values = SfRangeValues(4.0, 6.0);

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: SfRangeSelector(
      min: 0,
      max: 10,
      initialValues: _values,
      shouldAlwaysShowTooltip: true,
      child: Container(
        height: 150,
        color: Colors.green,
      ),
    ),
  );
}

Implementation

final bool shouldAlwaysShowTooltip;