Tambahkan dependensi dan konfigurasi awal proyek

- Tambahkan dependensi utama: GetX, Supabase, SharedPreferences
- Konfigurasi struktur awal aplikasi dengan GetX
- Inisialisasi layanan Supabase
- Perbarui konfigurasi plugin untuk berbagai platform
- Ganti template default dengan struktur aplikasi baru
This commit is contained in:
Khafidh Fuadi
2025-03-08 10:20:57 +07:00
parent c5d0805e50
commit b1665307c5
28 changed files with 3259 additions and 112 deletions

View File

@ -0,0 +1,14 @@
import 'package:get/get.dart';
import 'package:penyaluran_app/app/modules/auth/controllers/auth_controller.dart';
class HomeController extends GetxController {
final AuthController _authController = Get.find<AuthController>();
// Getter untuk mendapatkan user dari auth controller
get user => _authController.user;
// Metode untuk logout
void logout() {
_authController.logout();
}
}