Home > Net >  How to make pop up like this
How to make pop up like this

Time:11-14

Do you guys know how to make pop up that small and appear below icon like this? I have made it with AlertDialog, but the pop up is on the center of the screen and too big.

enter image description here

CodePudding user response:

PopupMenuButton from Flutter sdk

https://api.flutter.dev/flutter/material/PopupMenuButton-class.html

You can profile ShapeBorder as RoundedRectangleBorder.

CodePudding user response:

what you need is popupmenu not AlertDialog here the documantain of popupmenu

with the feature shape, you could play with the shape and size ...etc

  • Related