update
This commit is contained in:
parent
f1db550ee7
commit
b2aeb642cc
11 changed files with 209 additions and 60 deletions
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:pharmacy_mobile/pages/index_page.dart';
|
||||
import 'package:pharmacy_mobile/pages/login_page.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:pharmacy_mobile/pages/register_page.dart';
|
||||
import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
|
||||
// void main() {
|
||||
|
|
@ -9,11 +10,17 @@ import 'package:supabase_flutter/supabase_flutter.dart';
|
|||
// }
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
final supUrl = "https://lijihnvjlucyvxfhghqd.supabase.co";
|
||||
final supAnonkey =
|
||||
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImxpamlobnZqbHVjeXZ4ZmhnaHFkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjQ1NjEyODYsImV4cCI6MjA0MDEzNzI4Nn0.N3_FLKm02OdprL9m3P0CzuV8kdbCrrJKaVdtgVR3PSk";
|
||||
|
||||
await Supabase.initialize(
|
||||
url: 'https://lijihnvjlucyvxfhghqd.supabase.co',
|
||||
anonKey:
|
||||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImxpamlobnZqbHVjeXZ4ZmhnaHFkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjQ1NjEyODYsImV4cCI6MjA0MDEzNzI4Nn0.N3_FLKm02OdprL9m3P0CzuV8kdbCrrJKaVdtgVR3PSk',
|
||||
url: supUrl,
|
||||
anonKey: supAnonkey,
|
||||
);
|
||||
|
||||
runApp(MyApp());
|
||||
}
|
||||
|
||||
|
|
@ -32,6 +39,11 @@ final _router = GoRouter(
|
|||
path: '/login',
|
||||
builder: (context, state) => LoginPage(),
|
||||
),
|
||||
GoRoute(
|
||||
name: 'register',
|
||||
path: '/register',
|
||||
builder: (context, state) => RegisterPage(),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue