Skip to content
pubscout

super_tooltip

2.1.1, released 9 months ago by bensonarafat.com

Flexible tooltip widget that opens in the screen's overlay with custom styling and positioning.

WASM-ready
$ flutter pub add super_tooltip
Source repository

What it does

SuperTooltip is a highly customizable tooltip widget for Flutter that offers extensive control over appearance, positioning, backdrop effects, and interaction patterns. It provides features like auto-positioning, hover support, blur effects, and custom arrow configurations.

AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need tooltips that require advanced styling, shadows, or custom shapes.
  • You want tooltips to automatically adjust their position relative to screen boundaries.
  • You need hover-triggered tooltips for web and desktop platforms.

Skip it when

  • You only need Flutter's built-in standard Tooltip widget for basic text hints.

Strengths

  • Highly flexible positioning and auto-direction handling
  • Rich styling support including blur backdrop effects and custom decorations
  • Comprehensive interaction options like hover triggers and close buttons

Weaknesses

  • More complex setup than the default Flutter Tooltip widget

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
class MyWidget extends StatefulWidget {
  @override
  State<MyWidget> createState() => _MyWidgetState();
}

class _MyWidgetState extends State<MyWidget> {
  final _controller = SuperTooltipController();

  @override
  Widget build(BuildContext context) {
    return SuperTooltip(
      controller: _controller,
      content: const Text(
        "This is a simple tooltip!",
        style: TextStyle(color: Colors.white),
      ),
      child: IconButton(
        icon: const Icon(Icons.info),
        onPressed: () => _controller.showTooltip(),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace super_tooltip.