码迷,mamicode.com
首页 > 其他好文 > 详细

关于 Could not find a generator for route RouteSettings

时间:2019-10-17 16:00:12      阅读:989      评论:0      收藏:0      [点我收藏+]

标签:property   call   else   tor   generator   直接   follow   ret   gen   

路由这块还是需要考虑下的,用popAndPushNamed传参的时候用了onGenerateRoute

信息也给出了route search层级,我是因为在onGenerateRoute里没做拦截,直接return null了

Generators for routes are searched for in the following order:
1. For the "/" route, the "home" property, if non-null, is used.
2. Otherwise, the "routes" table is used, if it has an entry for the route.
3. Otherwise, onGenerateRoute is called. It should return a non-null value for any valid route not handled by "home" and "routes".
4. Finally if all else fails onUnknownRoute is called.

关于 Could not find a generator for route RouteSettings

标签:property   call   else   tor   generator   直接   follow   ret   gen   

原文地址:https://www.cnblogs.com/nightfallsad/p/11692216.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!