shouldAlwaysShowTooltip property

bool shouldAlwaysShowTooltip
final

Option to show tooltip always in 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 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 SfSlider.

double _value = 4.0;

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: SfSlider(
      min: 0,
      max: 10,
      value: _value,
      shouldAlwaysShowTooltip: true,
      onChanged: (dynamic newValue) {
        setState(() {
          _value = newValue;
        });
      },
    ),
  );
}

Implementation

final bool shouldAlwaysShowTooltip;