我试图通过多个FloatingActionButton转到第二个页面,但在按下任何FloatingActionButton弹出窗口后,我遇到了以下问题:在_WidgetsAppState中找不到路由RouteSettings("SecondScreens",null)的生成器。; ..add(
new Floati
我有一个带有少量路由和onGenerateRoute回调的MateriallApp。当我在Navigator.pushNamed中推送一个无效的路由时,它抛出一个错误 Unhandled Exception: Could not find a generator for route RouteSettings("/path", null) in the _WidgetsAppState.在</em
Could not find a generator for route RouteSettings("/coursePage", null) in the _WidgetsAppState.For the "/" route, the "home" property, if non-null, is used.
2.It should return a non-null value for any valid route
我正在尝试将侧栏中单击元素的id发送到这个带有路由的DokumentiScreen页面。这是点击的方法。/Navigator.push(context, MaterialPageRoute(builder: (context) => const DokumentiScreen()));The following assertion was thrown while handling a gesture:
Could not find a genera
我使用的是Flutter 3.3.7稳定版本,并且编写了一个简单的应用程序,所有的东西都工作得很完美,但是我在指定的路由上出现了错误.The following assertion was thrown while handling a gesture:
Could not find a generator for route RouteSetti
当我尝试将一个按钮路由到一个小部件时,我一直会收到这个错误。=Could not find a generator for route RouteSettings("/SantosDumont", null) in the _WidgetsAppState.我想使用info按钮类调用多个历史人物,然后列出ListTile中的每个历史数字