feat: add Supabase integration to Flutter and update dependencies
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
import 'core/config/supabase_config.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
void main() async { // ← Cambia a async
|
||||
WidgetsFlutterBinding.ensureInitialized(); // ← NUEVA
|
||||
|
||||
await Supabase.initialize( // ← NUEVA (3 líneas)
|
||||
url: SUPABASE_URL,
|
||||
anonKey: SUPABASE_ANON_KEY,
|
||||
);
|
||||
|
||||
runApp(const MyApp()); // ← Esta sí estaba
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
|
||||
Reference in New Issue
Block a user