在 _WidgetsAppState 中找不到路由 RouteSettings("/First", null) 的生成器
Could not find a generator for route RouteSettings("/First", null) in the _WidgetsAppState
所以,我正在尝试在 flutter 中创建一个应用程序,但无法解决语法代码问题。错误是无法在 _WidgetsAppState.enter link description here 中找到路由 RouteSettings("/First", null) 的生成器。 Ps flutter.Below 的新手是我的 link
的代码
[this link is for my code][1]
你的路线名称是 '/first'
所以你应该使用 Navigator.pushReplacementNamed(context, '/first');
您在 signIn()
函数上使用了 '/First'
,因此它看起来像是一个简单的大写错误!
所以,我正在尝试在 flutter 中创建一个应用程序,但无法解决语法代码问题。错误是无法在 _WidgetsAppState.enter link description here 中找到路由 RouteSettings("/First", null) 的生成器。 Ps flutter.Below 的新手是我的 link
的代码[this link is for my code][1]
你的路线名称是 '/first'
所以你应该使用 Navigator.pushReplacementNamed(context, '/first');
您在 signIn()
函数上使用了 '/First'
,因此它看起来像是一个简单的大写错误!