Skip to content
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

Added popover scaffold (Resolves #19) #20

Merged
merged 5 commits into from
Feb 23, 2024

Conversation

matthew-carroll
Copy link
Contributor

@matthew-carroll matthew-carroll commented Feb 15, 2024

Added popover scaffold (Resolves #19)

This scaffold was migrated and modified from Super Editor.

This PR also includes some multi-level menu work, though that work isn't the focus of this PR. I'd like to merge the scaffold for dropdown lists and then continue to polish the multi-level menu use-case.

Screen.Recording.2024-02-15.at.12.00.21.AM.mov
Screen.Recording.2024-02-15.at.12.01.21.AM.mov

example/lib/demos/demo_dropdown_list.dart Outdated Show resolved Hide resolved
example/lib/demos/demo_dropdown_menu.dart Outdated Show resolved Hide resolved
example/lib/demos/demo_dropdown_menu.dart Outdated Show resolved Hide resolved
example/lib/infrastructure/button.dart Outdated Show resolved Hide resolved
lib/src/menus/multi_level_menus.dart Show resolved Hide resolved
test/menus/menu_path_test.dart Outdated Show resolved Hide resolved
test_goldens/cupertino/cupertino_popover_menu_test.dart Outdated Show resolved Hide resolved
test_goldens/cupertino/cupertino_popover_menu_test.dart Outdated Show resolved Hide resolved
lib/src/menus/popovers.dart Show resolved Hide resolved
@matthew-carroll
Copy link
Contributor Author

@angelosilvestre if you pull down this PR, uncomment the commented code in the tap region ID test, and run that test on the latest Flutter stable, does your machine blow up with a segmentation fault?

@angelosilvestre
Copy link
Collaborator

@matthew-carroll On the master channel I'm getting this crash:

00:01 +19: /Users/angelosilvestre/dev/overlord/test/menus/popover_test.dart: PopoverScaffold does not close popover when tapping a widget with the same tap region groupId (on Android)                                                                                                 Shell: [ERROR:flutter/impeller/runtime_stage/runtime_stage.cc(27)] Reached unreachable code.
unhandled error during finalization of test:
/Users/angelosilvestre/dev/overlord/test/menus/popover_test.dart
TestDeviceException(Shell subprocess crashed with SIGABRT (-6).)
#0      FlutterTesterTestDevice.finished (package:flutter_tools/src/test/flutter_tester_device.dart:248:5)
<asynchronous suspension>
#1      FlutterTesterTestDevice.kill (package:flutter_tools/src/test/flutter_tester_device.dart:230:5)
<asynchronous suspension>
#2      FlutterPlatform._startTest.<anonymous closure> (package:flutter_tools/src/test/flutter_platform.dart:525:9)
<asynchronous suspension>
#3      FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:581:11)
<asynchronous suspension>

@matthew-carroll
Copy link
Contributor Author

@angelosilvestre what about Stable?

@angelosilvestre
Copy link
Collaborator

@matthew-carroll This isn't happening on master here.

@angelosilvestre
Copy link
Collaborator

@matthew-carroll This crash is also happening in some super_editor tests.

@matthew-carroll
Copy link
Contributor Author

@angelosilvestre does this happen to you when you run it on Stable?

@angelosilvestre
Copy link
Collaborator

angelosilvestre commented Feb 19, 2024

EDIT:

@matthew-carroll This isn't happening on master here.

It should be "This isn't happening on stable here."

@matthew-carroll
Copy link
Contributor Author

Are you using the latest stable from about a week ago?

@angelosilvestre
Copy link
Collaborator

@matthew-carroll I just updated to the latest stable.

@matthew-carroll
Copy link
Contributor Author

....and?

@angelosilvestre
Copy link
Collaborator

On the latest stable the issue doesn't happen, but it happen on the latest master

@matthew-carroll
Copy link
Contributor Author

Hm, seems like it's working for me on Stable now. I thought it was blowing up. Have you seen any issue for this logged with Flutter?

@matthew-carroll
Copy link
Contributor Author

@angelosilvestre were there any other comments on this PR? Did I miss anything?

@matthew-carroll matthew-carroll merged commit a9bc8b4 into main Feb 23, 2024
3 checks passed
@matthew-carroll matthew-carroll deleted the 19_create-popover-scaffold branch February 23, 2024 03:05
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.

Create popover scaffold
2 participants