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

项目跑起来就显示一个Let's 购购购的页面,也不会跳转 #36

Open
kjiawei opened this issue Apr 2, 2020 · 2 comments
Open

Comments

@kjiawei
Copy link

kjiawei commented Apr 2, 2020

No description provided.

@GanZhiXiong
Copy link
Owner

最近工作比较忙,我会抽时间尽快解决所有issue。不好意思,就等了。

@JyCyunMe
Copy link

JyCyunMe commented Apr 2, 2020

问题定位到了,main()里首行加
WidgetsFlutterBinding.ensureInitialized();
虽然runApp()里有这句,但是似乎在sqflite库初始化的时候就开始引发这个异常了,也就是runApp()方法被调用前导致的。所以直接把这句加在了main()的第一句,目前运行成功。

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

3 participants