33 lines
815 B
Dart
33 lines
815 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:supabase_flutter/supabase_flutter.dart';
|
|
|
|
import 'screens/splash_screen.dart';
|
|
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await Supabase.initialize(
|
|
url: const String.fromEnvironment(
|
|
'SUPABASE_URL',
|
|
defaultValue: 'https://YOUR-SUPABASE-URL.supabase.co',
|
|
),
|
|
anonKey: const String.fromEnvironment(
|
|
'SUPABASE_ANON_KEY',
|
|
defaultValue: 'YOUR-SUPABASE-ANON-KEY',
|
|
),
|
|
);
|
|
|
|
runApp(const ComplyCoreApp());
|
|
}
|
|
|
|
class ComplyCoreApp extends StatelessWidget {
|
|
const ComplyCoreApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => MaterialApp(
|
|
title: 'ComplyCore',
|
|
theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: true),
|
|
home: const SplashScreen(),
|
|
);
|
|
}
|