mirror of
https://github.com/supabase/supabase.git
synced 2026-07-02 02:54:18 +08:00
32 lines
784 B
Dart
32 lines
784 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:myauthapp/screens/login_screen.dart';
|
|
import 'package:supabase_flutter/supabase_flutter.dart';
|
|
|
|
void main() async {
|
|
/// TODO: update Supabase credentials with your own
|
|
await Supabase.initialize(
|
|
url: 'YOUR_SUPABASE_URL',
|
|
anonKey: 'YOUR_ANON_KEY',
|
|
);
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
final supabase = Supabase.instance.client;
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
debugShowCheckedModeBanner: false,
|
|
title: 'Flutter Auth',
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
|
useMaterial3: true,
|
|
),
|
|
home: const LoginScreen(),
|
|
);
|
|
}
|
|
}
|