mirrored_repositories/ses_finance
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:ses_finance/const.dart';
import 'package:ses_finance/pages/login.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
      options: const FirebaseOptions(
    apiKey: "AIzaSyB-HSzcGdP0YQdpnxkxkudVBTgUt1Vwc6o",
    appId: "1:676853417694:web:adba33cb638c5e284d644f",
    messagingSenderId: "676853417694",
    projectId: "ses-finance",
  ));

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'SES Finance',
        debugShowCheckedModeBanner: false,
        themeMode: ThemeMode.dark,
        theme: ThemeData(
            primaryColor: MaterialColor(
              primaryColorCode,
              <int, Color>{
                50: const Color(primaryColorCode).withOpacity(0.1),
                100: const Color(primaryColorCode).withOpacity(0.2),
                200: const Color(primaryColorCode).withOpacity(0.3),
                300: const Color(primaryColorCode).withOpacity(0.4),
                400: const Color(primaryColorCode).withOpacity(0.5),
                500: const Color(primaryColorCode).withOpacity(0.6),
                600: const Color(primaryColorCode).withOpacity(0.7),
                700: const Color(primaryColorCode).withOpacity(0.8),
                800: const Color(primaryColorCode).withOpacity(0.9),
                900: const Color(primaryColorCode).withOpacity(1.0),
              },
            ),
            scaffoldBackgroundColor: const Color(0xFF171821),
            fontFamily: 'IBMPlexSans',
            brightness: Brightness.dark),
        home: const Login()
        //     MainPage(
        //   homePageIndex: 0,
        //   eventPageIndex: 0,
        // ),
        );
  }
}
