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


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…


you can use this for an AlertDialog:

await showDialog

Or this if you want it as a Bottom sheet :

await showModalBottomSheet...

Answered By – Charles Rostaing

Answer Checked By – Clifford M. (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *