WidgetsFlutterBinding.ensureInitialized(); & Firebase.initializeApp();
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
https://bocoder.tistory.com/85
.https://www.appsloveworld.com/flutter/100/1/what-does-widgetsflutterbinding-ensureinitialized-do
'App > Flutter' 카테고리의 다른 글
Udemy - Section4. Widgets,Styling, Adding Logic (0) | 2022.09.06 |
---|---|
pubspec.yaml, analysis_options.yaml (0) | 2022.09.02 |
Flutter 기본 위젯 4가지 & 레이아웃 & stateful 위젯 vs. stateless 위젯 (0) | 2022.08.26 |
Flutter-Provider (0) | 2022.08.24 |
SqLite vs. MySQL vs. shared_preferences (0) | 2022.08.21 |