ambil data stok bantuan
This commit is contained in:
@ -1,12 +1,19 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:penyaluran_app/app/routes/app_pages.dart';
|
||||
import 'package:penyaluran_app/app/services/auth_service.dart';
|
||||
import 'package:penyaluran_app/app/services/supabase_service.dart';
|
||||
import 'package:penyaluran_app/app/theme/app_theme.dart';
|
||||
import 'package:penyaluran_app/app/modules/auth/controllers/auth_controller.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:intl/date_symbol_data_local.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
// Inisialisasi data locale untuk format tanggal
|
||||
await initializeDateFormatting('id_ID', null);
|
||||
|
||||
// Inisialisasi Supabase
|
||||
await initServices();
|
||||
|
||||
@ -16,6 +23,10 @@ void main() async {
|
||||
// Inisialisasi service
|
||||
Future<void> initServices() async {
|
||||
await Get.putAsync(() => SupabaseService().init());
|
||||
await Get.putAsync(() => AuthService().init());
|
||||
|
||||
// Inisialisasi AuthController secara global
|
||||
Get.put(AuthController(), permanent: true);
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
|
Reference in New Issue
Block a user