firebase CLI 프로그램을 설치 후, firebase --version이라는 명령어를 통해 설치 확인
firebase login
firebase projects:create (파일 이름)
flutter pub add firebase_core 명령어 작성하여 필수적인 요소 설치
flutter 선택

선택한 페이지에서 차례대로 진행하기(1번 진행)

2번 진행

3번 진행

3번 내용 추가 작성 ( 대략적인 코드, 위에 설명으로 모를까봐 )
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'firebase_options.dart';
// authentication 로그인할때 필요함
import 'package:firebase_auth/firebase_auth.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('My App'),
),
body: Center(
child: Text('Welcome to My App!'),
),
),
);
}
}