-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Custom context menus in SelectableRegion on web #121653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom context menus in SelectableRegion on web #121653
Conversation
Renzo-Olivares
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just had a small nit.
| SystemChannels.contextMenu.setMockMethodCallHandler(null); | ||
| }); | ||
|
|
||
| testWidgets('web can show toolbar when the browser context menu is disabled', (WidgetTester tester) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: maybe web can show flutter context menu when .....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it 👍
I had forgotten to enable Flutter-rendered context menus in SelectableRegion when I did it for EditableText (here). This PR adds it, so that now using SelectableRegion's
contextMenuBuilderwill work on web.