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

不想main方法中初始化,如何处理? #6

Open
sunhaikuo opened this issue Apr 27, 2020 · 0 comments
Open

不想main方法中初始化,如何处理? #6

sunhaikuo opened this issue Apr 27, 2020 · 0 comments

Comments

@sunhaikuo
Copy link

InnerWidgetsFlutterBinding.ensureInitialized() ..attachRootWidget(new MyApp()) ..scheduleWarmUpFrame();

现在这段代码是在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

1 participant