Home > Software engineering >  Create a menu on avatar click
Create a menu on avatar click

Time:03-24

I've been searching for quite a while now, and I don't know if I'm not searching the correct term, but I want to make a menu that displays over the current screen when you click on your avatar.

Like this one from Google:

Avatar menu

Or this one from Facebook:

Facebook notify drawer

I tried using showMenu(), but this one requires that I use PopUpMenuItem() which is, but it does not allow customizing the whole menu. For what I understand, I have to draw a Material() widget or Stack() over the current screen, but I have no knowledge on that.

CodePudding user response:

You can try this package. It will give you more customization. flutter_custom_dialog

CodePudding user response:

What you need is OverlayEntry. They are tricky and there are some packages that can help you manage overlays easier. Please check these

https://pub.dev/packages/modals

https://pub.dev/packages/flutter_portal

  • Related