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

运行起来就是白屏。什么也不显示,也不报错。 #3

Open
humanheima opened this issue Oct 15, 2019 · 2 comments
Open

Comments

@humanheima
Copy link

No description provided.

@humanheima
Copy link
Author

修改main函数可以解决这个问题。

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  Global.init().then((e) => runApp(MyApp()));
}

@Seachal
Copy link

Seachal commented Dec 19, 2019

新手,不知道什么原因,但是 改成
void main() => runApp(MyApp());
只执行,MyApp,换个性能更好的手机,也不白屏了。

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