Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用照片中的每一页导航到不同的页面,或者最好使用 ListView。
嘿哥们希望我的回答能解决你的问题
您可以使用 GridView.builder 和 builder 属性
代码如....
builder: (BuildContext context, Int index){ return GestureDetector(onTap:(){ ...你可以使用导航器... }) })
AND' 如果您想在每个页面上导航不同的屏幕,请使用 switch case 以维护它的索引但是当有更多可用计数时,这是更冗长的方法。