Skip to content

Commit

Permalink
Add firebase configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Nguyen committed Apr 12, 2024
1 parent 431436b commit 323b7e0
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:my_flutter_chat_app/misc/list_orders.dart';

void main() {
Future<void> main() async {
// Firebase初期化
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: const FirebaseOptions(
apiKey: "AIzaSyDYGd_NaMlbOGGQr-Mr09GDFoTf_bd10wo",
authDomain: "simple-fucking-chat-app.firebaseapp.com",
projectId: "simple-fucking-chat-app",
storageBucket: "simple-fucking-chat-app.appspot.com",
messagingSenderId: "920453696375",
appId: "1:920453696375:web:59decf1087bbb141a76f72",
measurementId: "G-4L2W27FJ17",
),
);
runApp(const MyApp());
}

Expand All @@ -17,11 +31,13 @@ class MyApp extends StatelessWidget {
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const ShoppingList(products: [
Product(name: 'Eggs'),
Product(name: 'Flour'),
Product(name: 'Chocolate chips')
],),
home: const ShoppingList(
products: [
Product(name: 'Eggs'),
Product(name: 'Flour'),
Product(name: 'Chocolate chips')
],
),
);
}
}
Expand Down

0 comments on commit 323b7e0

Please sign in to comment.