Get.to(() => somePage(), binding: BindingsBuilder(() {
Get.put(SomeController());
}));
Google에서 제공하는 모바일 및 웹 애플리케이션 개발 플랫폼
dependencies:
firebase_core: ^2.24.2
cloud_firestore: ^4.3.2
flutter clean
flutter pub get
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(const MyApp());
}
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: FirebaseOptions(
apiKey: apiKey,
appId: appId,
messagingSenderId: messagingSenderId,
projectId: projectId,
),
);
runApp(const MyApp());
}
pod install