feat: add Supabase integration to Flutter and update dependencies

This commit is contained in:
Alan Alonso
2026-05-23 00:55:35 -06:00
parent ff90f3eefc
commit a38ca14f38
4 changed files with 135 additions and 2 deletions

View File

@@ -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 {