davidhicks980 / cupertino_menu

An experimental implementation of an iOS menu in Flutter.
Other
6 stars 0 forks source link

Any new version? #1

Open bughoho opened 1 month ago

bughoho commented 1 month ago

Hello, I came to you here to use the Nested Menu. I looked at the code in your dev branch, and there are currently a lot of errors. When will your new version be available?

Thank you very much for your work!

Best regards,

davidhicks980 commented 1 month ago

Whoops -- don't use the dev branch. I need to make it private 😅. So, I'm trying to get a full version into the Flutter repo but there are a lot of steps involved and some design changes (New one uses OverlayPortal rather than Flow, which is the right choice but makes layout more difficult. I'm also creating a new RawMenuAnchor for the Flutter library because the current one is material which leads to a circular dependency). That said, a single-layer tested version exists here and can be directly copied into your project: https://github.com/flutter/flutter/pull/143712. Just make sure you copy both the material menu_anchor.dart and the cupertino menu_anchor.dart.

If you need multi layers, then the main branch on this repo is your best bet. At some point, I may update the code here with a few of the things I've learned while working on this project because I've gotten a lot of questions regarding this.

Edit: The code on this PR may have some updates as well: https://github.com/flutter/flutter/pull/137936/files