|
|
1
47
例如。
此代码将显示一个包含您点击的ListItem索引的快餐店。 一旦您有了该项目的索引,您就可以使用此问题的其他答案提供的代码导航到新页面。 |
|
2
37
如果您使用的是
|
|
|
3
14
有一个 example
Send data to a new screen - flutter.io
|
|
|
4
11
https://api.flutter.dev/flutter/material/InkWell-class.html
|
|
|
5
6
您应该在ListView中的项目中使用onPressed方法(或添加一个GestureDetector),然后使用Navigator,类似于下面的代码段,其中AboutScreen是您要转到的下一个页面。
|
|
|
Aouiche Redouane · 修复Flutter抽屉中的物品 1 年前 |
|
|
melearning · 背景封面 1 年前 |
|
|
Aks · 如何在导航到其他屏幕时销毁计时器 1 年前 |
|
|
greenzebra · 在Dart中,我如何将算术运算符定义为变量? 1 年前 |