From a747c98331628fe174785185b9249dc071530fa9 Mon Sep 17 00:00:00 2001 From: pahmiudahgede Date: Sat, 26 Apr 2025 02:21:06 +0700 Subject: [PATCH] feat: architecture and configure some preparation --- .gitignore | 6 +- android/app/src/main/AndroidManifest.xml | 4 +- lib/core/api_services.dart | 89 ++++++ lib/core/guide.dart | 84 ++++++ lib/core/router.dart | 10 + lib/main.dart | 122 +-------- lib/model/user_model.dart | 0 lib/screen/auth/login_screen.dart | 85 ++++++ lib/screen/auth/otp_screen.dart | 205 ++++++++++++++ lib/viewmodel/user_vmod.dart | 0 lib/widget/button.dart | 0 macos/Flutter/GeneratedPluginRegistrant.swift | 4 + pubspec.lock | 255 +++++++++++++++++- pubspec.yaml | 84 +----- test/widget_test.dart | 13 +- 15 files changed, 766 insertions(+), 195 deletions(-) create mode 100644 lib/core/api_services.dart create mode 100644 lib/core/guide.dart create mode 100644 lib/core/router.dart create mode 100644 lib/model/user_model.dart create mode 100644 lib/screen/auth/login_screen.dart create mode 100644 lib/screen/auth/otp_screen.dart create mode 100644 lib/viewmodel/user_vmod.dart create mode 100644 lib/widget/button.dart diff --git a/.gitignore b/.gitignore index b6323af..073bb25 100644 --- a/.gitignore +++ b/.gitignore @@ -45,4 +45,8 @@ app.*.map.json /android/app/release # FVM Version Cache -.fvm/ \ No newline at end of file +.fvm/ + +# ENV +server/ +assets/ \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 771203e..04903ba 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -2,7 +2,8 @@ + android:icon="@mipmap/ic_launcher" + android:enableOnBackInvokedCallback="true">