Skip to content

Relands "[cupertino.dart] Implement CupertinoMenuAnchor and Cupertino…#182103

Closed
chunhtai wants to merge 2 commits into
flutter:masterfrom
chunhtai:reland-menu
Closed

Relands "[cupertino.dart] Implement CupertinoMenuAnchor and Cupertino…#182103
chunhtai wants to merge 2 commits into
flutter:masterfrom
chunhtai:reland-menu

Conversation

@chunhtai

@chunhtai chunhtai commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

…MenuItem using RawMenuAnchor (#174695)"

This reverts commit fa51de9.

previous pr failed post commit

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8690627764525514545/+/u/run_test.dart_for_framework_tests_shard_and_subshard_libraries/stdout

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. f: cupertino flutter/packages/flutter/cupertino repository d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos labels Feb 9, 2026
@chunhtai

chunhtai commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

failure

flutter test packages/flutter/test/cupertino/menu_anchor_test.dart --test-randomize-ordering-seed=20260206

@chunhtai

chunhtai commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

The issue is that the _SwipeRegionState dispose doesn't dispose the gesture immediately, looking at the code it relies on the gesture to finish to delay the disposal, and that seems like a code smell, because it will attempt to call widget callback after the widget is disposed. so i change it to dispose immediately

The unit test that fails when a test teardown without calling the gesture cancel which causes surface the bug.

The change is in the second commit

@chunhtai

chunhtai commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

cc @davidhicks980

@dkwingsmt

Copy link
Copy Markdown
Contributor

Thanks for you attempt, although @davidhicks980 has drafted a reland #182036 . Would you like to take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants