Skip to content

fix: resolve TooltipPositionDelegate collision with Flutter 3.41#161

Merged
bensonarafat merged 1 commit intobensonarafat:developfrom
amrgetment:fix/flutter-3-41-tooltippositiondelegate-collision
Feb 12, 2026
Merged

fix: resolve TooltipPositionDelegate collision with Flutter 3.41#161
bensonarafat merged 1 commit intobensonarafat:developfrom
amrgetment:fix/flutter-3-41-tooltippositiondelegate-collision

Conversation

@amrgetment
Copy link

@amrgetment amrgetment commented Feb 12, 2026

Summary

Fixes a compile-time symbol collision introduced after upgrading to Flutter 3.41.x.

Problem

super_tooltip defines TooltipPositionDelegate, and Flutter now also exports a type with the same name through material.dart, causing ambiguous resolution in lib/src/super_tooltip.dart.

Change

  • Update import to hide Flutter's conflicting symbol:
    • import 'package:flutter/material.dart' hide TooltipPositionDelegate;

Validation

  • Ran: flutter analyze lib/src/super_tooltip.dart
  • Result: no issues found

Closes #160

@bensonarafat
Copy link
Owner

I thought I recently fixed this before.
Thanks @amrgetment
Let me check it

@glemartret
Copy link

Found this commit: 0fb41b0
But not released on pub.dev

@bensonarafat
Copy link
Owner

Yes, I will release it, when I merge some pr

@amrgetment
Copy link
Author

@bensonarafat aside from this issue, I this issue, I would recommend using Codex to add E2E and visual automation testing so you can close several issues without worrying about that AI fixes would break something

@bensonarafat bensonarafat changed the base branch from master to develop February 12, 2026 16:48
@bensonarafat bensonarafat merged commit 951c715 into bensonarafat:develop Feb 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Flutter 3.41 name collision on TooltipPositionDelegate

4 participants