Skip to content

Raw tooltip with smaller API surface that exposes tooltip widget - #177678

Merged
auto-submit[bot] merged 62 commits into
flutter:masterfrom
victorsanni:raw-tooltip-api2
Jan 7, 2026
Merged

auto-submit[bot] merged 62 commits into
flutter:masterfrom
victorsanni:raw-tooltip-api2

Conversation

@victorsanni

@victorsanni victorsanni commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor

The raw widget used to make a Tooltip.

Design doc: flutter.dev/go/codeshare-tooltip

Constructor

class RawTooltip extends StatefulWidget {
  const RawTooltip({
    super.key,
    required this.semanticsTooltip,
    required this.tooltipBuilder,
    this.enableTapToDismiss = true,
    this.triggerMode = TooltipTriggerMode.longPress,
    this.enableFeedback = true,
    this.onTriggered,
    this.hoverDelay = Duration.zero,
    this.touchDelay = const Duration(milliseconds: 1500),
    this.dismissDelay = const Duration(milliseconds: 100),
    this.animationStyle = _kDefaultAnimationStyle,
    this.positionDelegate,
    required this.child,
  });

Properties

  final String semanticsTooltip;
  final TooltipComponentBuilder tooltipBuilder;
  final Duration hoverDelay;
  final Duration touchDelay;
  final Duration dismissDelay;
  final bool enableTapToDismiss;
  final TooltipTriggerMode triggerMode;
  final bool enableFeedback;
  final TooltipTriggeredCallback? onTriggered;
  final AnimationStyle animationStyle;
  final TooltipPositionDelegate? positionDelegate;
  final Widget child;

Part of ☂️ Reinforcement: Add more basic components to the core framework
Part of ☂️ Reinforcement: Refactor widgets from design into the core before decoupling
Fixes Custom Overlay for Tooltip Widget

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages labels Oct 28, 2025
Comment thread packages/flutter/lib/src/widgets/raw_tooltip.dart
@github-actions github-actions Bot added the a: tests "flutter test", flutter_test, or one of our tests label Nov 12, 2025
@victorsanni
victorsanni marked this pull request as ready for review November 12, 2025 20:59

@justinmc justinmc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some thoughts about the API and making things public.

Comment thread packages/flutter/lib/src/widgets/tooltip.dart Outdated
Comment thread packages/flutter/lib/src/widgets/raw_tooltip.dart
Comment thread packages/flutter/lib/src/widgets/raw_tooltip.dart
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 8, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 8, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 9, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 9, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 9, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 9, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 10, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 10, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 10, 2026
@victorsanni
victorsanni deleted the raw-tooltip-api2 branch January 12, 2026 23:17
@victorsanni victorsanni mentioned this pull request Jan 22, 2026
9 tasks done
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 11, 2026
pull Bot pushed a commit to ZainCheung/flutter that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Overlay for Tooltip Widget

5 participants