Skip to content
pubscout

aligned_tooltip

0.0.2, released 3 weeks ago by wenkaifan.com

A flexible tooltip widget that aligns to its target with automatic fallback positioning.

WASM-ready
$ flutter pub add aligned_tooltip
Source repository

What it does

Allows developers to show arbitrary widget content inside a tooltip aligned along any axis. It features automatic fallback positioning to opposite sides when space runs out, along with support for modals, custom tails, and scroll integration.

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

Use it when

  • You need custom widgets inside a tooltip instead of just plain text.
  • Tooltips need to automatically reposition themselves when they overflow the screen edges.

Skip it when

  • You only need standard simple text tooltips provided by Flutter's built-in Tooltip widget.
  • You need a well-established mature package rather than a direct fork under early development.

Strengths

  • Supports arbitrary widget content and custom tail builders.
  • Automatic fallback to the opposite side on overflow.
  • Provides both overlay-based and non-overlay inline tree options.

Weaknesses

  • API is subject to change as a direct fork under early versioning.
  • Requires recent Dart and Flutter SDK versions.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
AlignedTooltip(
  content: const Padding(
    padding: EdgeInsets.all(8.0),
    child: Text('Tooltip content'),
  ),
  child: const Icon(Icons.add),
)

Alternatives

Packages that do the same job and could replace aligned_tooltip.

Works with

Packages commonly used together with aligned_tooltip: ones it builds on, ones built on it, and its own family.