Last active
October 28, 2020 19:27
-
-
Save cankush625/65f42eede889e940b06dd2920eaee286 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:chat_app/screens/chat.dart'; | |
| import 'package:chat_app/auth/auth.dart'; | |
| import 'package:chat_app/auth/reg.dart'; | |
| import 'package:chat_app/auth/login.dart'; | |
| import 'package:chat_app/screens/home.dart'; | |
| import 'package:chat_app/screens/profile.dart'; | |
| import 'package:chat_app/screens/location.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:firebase_core/firebase_core.dart'; | |
| import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart'; | |
| void main() async { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| await Firebase.initializeApp(); | |
| FlutterStatusbarcolor.setStatusBarColor(Colors.indigo[900]); | |
| runApp( | |
| MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| initialRoute: "auth", | |
| routes: { | |
| "auth": (context) => Auth(), | |
| "home": (context) => Home(), | |
| "reg": (context) => AccountRegistration(), | |
| "login": (context) => Login(), | |
| "chat": (context) => Chat(), | |
| "profile": (context) => Profile(), | |
| "location": (context) => Location(), | |
| }, | |
| ), | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment