mirrored_repositories/OCR-and-language-translation/App Development/ocrLanProject
import './Inside_app/home.dart';
import 'package:flutter/material.dart';
import './ui/login_page.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  User user = FirebaseAuth.instance.currentUser;
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'TheGorgeousLogin',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: (user == null)
          ? new LoginPage()
          : HomePage(
              uid: user.uid,
            ),
    );
  }
}
