A bug encountered in the configuration of the flutter route: an error is reported: Could not find a generator for route RouteSettings(“XXX”, null) in the _WidgetsAppState.
reason:
Use “/” as the root path when using named routes in the project,
// configure routes
final routes={
‘/’:(context)=>Tabs(),
‘/appBarDemo’:(context)=>AppBarDemoPage(),
‘/tabBarController’:(context)=>TabBarControllerPage()
};
Use home:Tabs() in the root file,
Solution:
Change home: tabs() to
onGenerateRoute: onGenerateRoute,
initialRoute: ‘/’,
Read More:
- [Solved] flutter Project Error: ScrollController attached to multiple scroll views, Failed assertion: line 109 pos 12
- [Solved] The method getContextPath() from the type HttpServletRequest refers to the missing type String
- [Solved] Vscode Error: “export ‘default‘ (imported as ‘VueRouter‘) was not found in ‘vue-router‘
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- How to Solve Error: Cannot find the declaration of element ‘beans’.
- Spring deployment error: Could not open ServletContext resource [/db.properties]
- [error record] Android application release package error handling (turn off syntax check log processing release configuration)
- [Solved] Error in porting libzrtp: automake-1.14: command not found
- [Solved] Hadoop Error: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- [Solved] Websocket Error: WebSocket is already in CLOSING or CLOSED state
- How to Fix PVE Issues: ERROR: migration aborted
- Solution: configuration of multiple front ends separated from front end and back end of nginx
- Rsync Error: Operation not permitted [How to Solve]
- Maven configuration error: JAVA_HOME not found in your environment
- [Solved] emcc error: error: LLVM_ROOT is not defined
- JMeter JDBC Error: No pool found named: ‘test‘ [How to Solve]
- Error: a JNI error has occurred, please check your installation and try again
- [Solved] SSM Project Error: Error during artifact deployment. See server log for details.
- [Solved] Android Error: java.lang.IllegalStateException: Not allowed to start service Intent