diff --git a/lib/main.dart b/lib/main.dart index 68bc43f..70cb641 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,6 +4,7 @@ import 'package:flutter/material.dart'; // Import the firebase_core plugin import 'package:firebase_core/firebase_core.dart'; +import 'package:firebase_auth/firebase_auth.dart'; void main() { runApp(MyApp()); @@ -18,12 +19,14 @@ class _MyAppState extends State { // Set default `_initialized` and `_error` state to false bool _initialized = false; bool _error = false; + FirebaseAuth auth; // Define an async function to initialize FlutterFire void initializeFlutterFire() async { try { // Wait for Firebase to initialize and set `_initialized` state to true await Firebase.initializeApp(); + auth = FirebaseAuth.instance; setState(() { _initialized = true; }); @@ -72,7 +75,13 @@ class _MyAppState extends State { // closer together (more dense) than on mobile platforms. visualDensity: VisualDensity.adaptivePlatformDensity, ), - home: Home(title: 'Commander League Home Page'), + initialRoute: '/', + routes: { + '/': (context) => Home( + title: 'Commander League Home Page', + ), + '/loading': (context) => Loading(), + }, ); } } diff --git a/lib/services/authenticattion_service.dart b/lib/services/authenticattion_service.dart new file mode 100644 index 0000000..f1321b0 --- /dev/null +++ b/lib/services/authenticattion_service.dart @@ -0,0 +1 @@ +class AutenticationService {}