Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter 启动路由的一个疑问 #8

Open
lx36301766 opened this issue Nov 17, 2018 · 1 comment
Open

Flutter 启动路由的一个疑问 #8

lx36301766 opened this issue Nov 17, 2018 · 1 comment

Comments

@lx36301766
Copy link

一直有个疑问,不知道博主是否知道?

MaterailApp 启动路由设置那里的 initialRoute 参数和 home 参数的设置貌似有点重复,因为在 routes 表里面已经有一个映射值了, 搞不懂google为啥这样设计。而且我测试过不设置 initialRoute ,只写 home 参数可以进启动页,但只设置 initialRoute,不设置 home 参数就会报错,一直没搞明白这一点,网上的资料目前也搜不到这点

@AweiLoveAndroid
Copy link
Owner

建议你去看看我最新的公众号文章 关于路由有详细详解 http://url.cn/5H3ERIc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants