![]() You can Column() and Row() all day long but you're still trapped in box. ![]() That last requirement took me down the rabbit hole of Flutter widget positioning and long story short, Flutter is one of a few (maybe the only?) rendering/UI languages I've used that simply cannot do relative positioning out of the box (pun intended). the menu needs to be positionable RELATIVE to its parent widget, and all child menus and child widgets need to be relative positioned to their parent The menu (and all children) needs to be a drawn above all other widgets.The menu needs the ability to have child menus OR child widgets.There were a few more requirements that made it a far more interesting problem. I needed a menu for a project that would pop up above a widget when I clicked on it. Fixed screen position menus (Guess that'd just be a Toast.).MenuItems: ),Ĭhild: Icon(ntent_copy, color: ey)),Ĭhild: Center(child: Text('Show Menu Over Tap')), ![]() ItemPadding: EdgeInsets.symmetric(horizontal: 15, vertical: 4),Ĭhild: Icon(lor_lens, color: ey),Ĭhild: Icon(lorize, color: ey), Menus, anywhere you want them! Default Usage #
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |