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] ARouter Error: There is no route matched
- Centos7 hive started to report an error. There is no route to the host. The firewall has been closed
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019 -A Win64
- Kafka configurate broker mapping error: discovered coordinator XXX rack: null
- [Solved] Could not resolve placeholder ‘XXX‘ in value “${XXX}“
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019
- [Solved] Error: Cannot run with sound null safety, because the following dependenciesdon‘t support null safe
- [Solved] Android Develop Error: xxx does not have a NavController set on xxx
- TypeException: Error setting non null for parameter #1 with JdbcType null
- How to Solve AspectJ error: error at ::0 can’t find referenced pointcut XXX
- Eslint Error:“Identifier xxx is not in camel case“
- Android Working Directory:NULL Environment:NULL Error
- [Solved] Eslint error: /xxx/components/xxx import should occur after import of /xxx/utils/xxx
- Error: could not find function … in R [How to Solve]
- [Solved] MindSpore Error: “RuntimeError: Unable to data from Generator..”
- [Solved] CMake Error: Error: generator : Unix Makefiles
- How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode
- Bin File Programming Failed, could not find core in coresight setup, erase error
- [Solved] Failed to find glog – Could not find glog include directory, set…