You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用ModalRoute时出现错误且无法输入文本,请求技术协助

Flutter中ModalRoute传参报错及无法输入文本问题求助

我在使用ModalRoute传递参数时出现错误,同时还遇到无法输入文本的问题,希望能得到解决帮助。

相关代码如下:

VeriModeli iletilenArgumanlar = ModalRoute.of(context).settings.arguments;

return Scaffold(
  appBar: AppBar(title: Text("Profil Sayfası")),
  body: Container(
    child: Column(children: [
      ElevatedButton(onPressed: cikisYap, child: Text("Çıkış Yap")),
      Text(iletilenArgumanlar.kullaniciaAdi),
      Text(iletilenArgumanlar.sifre),
    ]),
  ),
);

错误截图:
错误截图

内容的提问来源于stack exchange,提问作者Gokhan Ergucel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.15 13:01:17