【问题标题】:Could not find a generator for route RouteSettings("/First", null) in the _WidgetsAppState [closed]在 _WidgetsAppState [关闭] 中找不到路由 RouteSettings("/First", null) 的生成器
【发布时间】:2023-03-16 18:23:01
【问题描述】:

所以,我正在尝试在 Flutter 中创建应用程序,但无法绕过语法代码。错误是在 _WidgetsAppState.enter link description here 中找不到路由 RouteSettings("/First", null) 的生成器。 Ps 是 Fl​​utter 的新手。下面是我的链接的代码

[this link is for my code][1]

【问题讨论】:

    标签: android android-studio flutter dart dart-pub


    【解决方案1】:

    您的路线名称是'/first',因此您应该使用Navigator.pushReplacementNamed(context, '/first');

    您在 signIn() 函数上使用了 '/First',所以它看起来像一个简单的大写错误!

    【讨论】:

      猜你喜欢
      • 2020-03-13
      • 1970-01-01
      • 2022-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多