Delete main.dart
This commit is contained in:
parent
f99a47ec7b
commit
23cc472175
35
main.dart
35
main.dart
|
|
@ -1,35 +0,0 @@
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:supabase_flutter/supabase_flutter.dart';
|
|
||||||
import 'package:monitoring_jamur/core/constants/supabase_config.dart';
|
|
||||||
import 'package:monitoring_jamur/core/theme/app_theme.dart';
|
|
||||||
import 'package:monitoring_jamur/features/auth/presentation/pages/login_page.dart';
|
|
||||||
import 'package:monitoring_jamur/features/auth/presentation/pages/splash_screen.dart';
|
|
||||||
import 'package:monitoring_jamur/features/home/presentation/pages/main_screen.dart';
|
|
||||||
import 'package:monitoring_jamur/core/session/user_session.dart';
|
|
||||||
|
|
||||||
void main() async {
|
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
|
||||||
|
|
||||||
await Supabase.initialize(
|
|
||||||
url: SupabaseConfig.url,
|
|
||||||
anonKey: SupabaseConfig.anonKey,
|
|
||||||
);
|
|
||||||
|
|
||||||
await UserSession.init();
|
|
||||||
|
|
||||||
runApp(const MyApp());
|
|
||||||
}
|
|
||||||
|
|
||||||
class MyApp extends StatelessWidget {
|
|
||||||
const MyApp({super.key});
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return MaterialApp(
|
|
||||||
title: 'Mushroom Monitor',
|
|
||||||
debugShowCheckedModeBanner: false,
|
|
||||||
theme: AppTheme.lightTheme,
|
|
||||||
home: const SplashScreen(),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue