31 lines
805 B
Dart
31 lines
805 B
Dart
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';
|
|
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await Supabase.initialize(
|
|
url: SupabaseConfig.url,
|
|
anonKey: SupabaseConfig.anonKey,
|
|
);
|
|
|
|
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 LoginPage(),
|
|
);
|
|
}
|
|
}
|