简体   繁体   English

如何将列表中的文本字段数据发送到 flutter 中的另一个屏幕

[英]How to send text fields data from list to another screen in flutter

if I have so many text field from list and all of them in list View builder now how to send selected fields data to another screen in flutter如果我有这么多来自列表的文本字段,并且所有这些都在列表视图构建器中,现在如何将选定的字段数据发送到 flutter 中的另一个屏幕

First Screen,pass data in Navigator:第一个屏幕,在导航器中传递数据:

Navigator.push(
            context,
            MaterialPageRoute(builder: (context) =>secondscreen('value')),
          );

in Second Screen:在第二个屏幕中:

class secondscreen extends StatefulWidget {
  secondscreen(this.uid);  
  final uid;
  @override
  secondscreenstate createState() => secondscreenstate (this.uid);
}

class secondscreenstate extends State<secondscreen> {
 
  var uid; //where uid will carry the value from first screen
  secondscreenstate (this.uid);
.......

}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将数据从一个屏幕发送到另一屏幕抖动 - send data from one screen to another screen flutter 将数据发送到另一个 flutter 屏幕 - send data to another flutter screen 在 flutter 从一个屏幕转到另一个屏幕时如何不丢失列表中的数据? - How to not lose a data from the list when going from one screen to another screen in flutter? 如何在 Flutter 中将文本小部件数据从一个屏幕传递到另一个屏幕? - How to pass text widget data from one screen to another screen in Flutter? 如何使用 flutter 从列表视图屏幕发送数据到表单屏幕 - How to send a data from listview screen to form screen using flutter 如何将一个小部件的值发送到同一屏幕上的另一个小部件? (扑) - how to send a value from a widget to another on the same screen ? (flutter) 如何将图像变量从一个屏幕发送回另一个屏幕 - Flutter - How to send back an image variable from one screen to another - Flutter 在我的 Flutter 上,我有一个数据列表,我想将此数据发送到另一个屏幕,但是有一个错误,我不明白如何解决它 - On my Flutter I have a list of data and I want to send this data to another screen but there is an error that I don't understand how to solve it 如何将数据列表从Flutter发送到Android - How to send data List from flutter to android 如何在FLutter中使用pushNamed将数据从一个屏幕传递到另一个屏幕? - how to pass data from one screen to another screen with pushNamed in FLutter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM