Home > Software engineering >  How do you make a popup menu appear when you click on a profile picture in flutter?
How do you make a popup menu appear when you click on a profile picture in flutter?

Time:03-21

So I am currently working on an app and in the main menu there is a small profile picture on the top right side of the screen. I want to make that pfp clickable and when the user clicks on it, it should display a popup menu to show some extra things such as, view profile, settings, etc...

CodePudding user response:

you can use this for an AlertDialog:

await showDialog

Or this if you want it as a Bottom sheet :

await showModalBottomSheet...
  • Related