在 Flutter 中构建自定义下拉菜单
原文英文,约1100词,阅读约需4分钟。发表于: 。Is been almost 3 months since I started working as a Flutter developer in a small startup company and a been learning a lot. So, as usual, today I wanna share one of the things I learned in the...
本文介绍了在Flutter中创建自定义下拉菜单的方法,使用CompositedTransformTarget和OverlayPortal小部件解决了覆盖API的问题,并使用UnconstrainedBox和SizedBox解决了尺寸问题。然而,文章指出了当空间不足时用户无法访问下拉菜单的问题。