| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Resident
- Re
- 트레이아이콘
- 시놀로지깃티설치
- 시놀로지
- CmdKey
- 깃티
- Column
- LogonUI
- unable to boot the simulator
- synology
- gitea
- Resident Evil
- c#
- Header
- jellyfin
- 깃티설치
- Capcom
- checkbox
- toroisegit
- 젤리핀
- DataTable
- Gitea GPG
- DataGridView
- trayicon
- gfd
- Gitea 설치
- 깃티gpg
- theme
- gitea설치
Archives
- Today
- Total
C O D I N G
Firebase 연동 본문
선행작업
- Flutter SDK 설치 (https://docs.flutter.dev/get-started/install)
- Flutter 프로젝트 생성
- Flutter 프로젝트 진입
- FireBase CLI 설치 (https://firebase.google.com/docs/cli?hl=ko#setup_update_cli)
위의 내용이 진행되었으면
프로젝트 내 Terminal에 다음과 같이 작성
firebase login
로그인을 정상적으로 한 후,
dart pub global activate flutterfire_cli
Firebase_cli 활성화
flutter pub add firebase_core
Firebase_core 추가
flutterfire configure
Firebase 설정
- 설정 시 몇가지 설정하는게 Terminal에 나오는데 firebase에 추가된 프로젝트 목록 중, 사용할 프로젝트를 선택하면 된다.
main.dart파일 상단에 다음과 같이 추가
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
해당 함수를 main 함수에서 호출해준다.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await firebaseInitializedApp;
}
3번째 줄만 추가하면 firebase와 연동은 완료
'Programming > Flutter' 카테고리의 다른 글
| Unable to boot the simulator (0) | 2024.03.07 |
|---|