├── assets
├── import_response.json
├── assets_readme
│ ├── printt_color.png
│ ├── printt_log_api.png
│ ├── test_get_command.png
│ ├── get_init_with_template.png
│ ├── helperwidget_search_ui.gif
│ └── helperwidget_search_api.png
├── svg
│ ├── facebook.svg
│ ├── github.svg
│ ├── google-plus.svg
│ └── twitter.svg
└── translations
│ ├── ja_JP.json
│ ├── en_US.json
│ └── vi_VN.json
├── linux
├── .gitignore
├── main.cc
├── flutter
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ ├── generated_plugins.cmake
│ └── CMakeLists.txt
├── my_application.h
├── my_application.cc
└── CMakeLists.txt
├── ios
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── GoogleService-Info.plist
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── firebase_app_id_file.json
├── RunnerTests
│ └── RunnerTests.swift
├── .gitignore
└── Podfile
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── manifest.json
└── index.html
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── flutter_getx_base_project
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── macos
├── Runner
│ ├── Configs
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ ├── Warnings.xcconfig
│ │ └── AppInfo.xcconfig
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── app_icon_1024.png
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ ├── app_icon_64.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Release.entitlements
│ ├── DebugProfile.entitlements
│ ├── MainFlutterWindow.swift
│ ├── Info.plist
│ └── GoogleService-Info.plist
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── firebase_app_id_file.json
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── RunnerTests
│ └── RunnerTests.swift
└── Podfile
├── lib
├── app
│ ├── core
│ │ ├── base
│ │ │ ├── base_project.dart
│ │ │ ├── base_controller.dart
│ │ │ ├── base_model.dart
│ │ │ └── base_connect.dart
│ │ ├── constants
│ │ │ ├── app_constant.dart
│ │ │ ├── global_constant.dart
│ │ │ ├── storage_constant.dart
│ │ │ └── color_constant.dart
│ │ ├── utils
│ │ │ ├── extension
│ │ │ │ ├── app_extension.dart
│ │ │ │ ├── iterable_extension.dart
│ │ │ │ ├── text_editing_controller_extension.dart
│ │ │ │ ├── num_extension.dart
│ │ │ │ ├── list_extension.dart
│ │ │ │ ├── string_extension.dart
│ │ │ │ ├── datetime_extension.dart
│ │ │ │ └── map_extension.dart
│ │ │ ├── utils.dart
│ │ │ ├── print.dart
│ │ │ ├── limit_range_text_input.dart
│ │ │ ├── helper_reflect.dart
│ │ │ └── helper.dart
│ │ ├── config
│ │ │ ├── api_url.dart
│ │ │ └── theme_config.dart
│ │ └── services
│ │ │ ├── translation_service.dart
│ │ │ └── notification_service.dart
│ ├── modules
│ │ ├── home
│ │ │ ├── controllers
│ │ │ │ └── home_controller.dart
│ │ │ └── views
│ │ │ │ └── home_view.dart
│ │ └── authentication
│ │ │ ├── bindings
│ │ │ └── authentication_binding.dart
│ │ │ ├── widget
│ │ │ ├── custom_prefix_icon_widget.dart
│ │ │ ├── social_icon_widget.dart
│ │ │ ├── wave_draw_clippath_widget.dart
│ │ │ ├── sign_up_tab_widget.dart
│ │ │ ├── forgot_password_tab_widget.dart
│ │ │ ├── wave_clipper.dart
│ │ │ └── sign_in_tab_widget.dart
│ │ │ └── controllers
│ │ │ └── authentication_controller.dart
│ ├── custom
│ │ ├── other
│ │ │ ├── more_dropdown_search_custom.dart
│ │ │ └── search_controller_custom.dart
│ │ └── widget
│ │ │ └── loadding_widget.dart
│ ├── routes
│ │ ├── app_routes.dart
│ │ └── app_pages.dart
│ └── models
│ │ └── users_model.dart
├── main.dart
├── firebase_options.dart
└── generated
│ └── locales.g.dart
├── windows
├── runner
│ ├── resources
│ │ └── app_icon.ico
│ ├── resource.h
│ ├── utils.h
│ ├── runner.exe.manifest
│ ├── flutter_window.h
│ ├── main.cpp
│ ├── CMakeLists.txt
│ ├── utils.cpp
│ ├── flutter_window.cpp
│ ├── Runner.rc
│ └── win32_window.h
├── .gitignore
├── flutter
│ ├── generated_plugin_registrant.h
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugins.cmake
│ └── CMakeLists.txt
└── CMakeLists.txt
├── .gitignore
├── pubspec.yaml
├── test
└── widget_test.dart
├── analysis_options.yaml
└── .metadata
/assets/import_response.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/linux/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/lib/app/core/base/base_project.dart:
--------------------------------------------------------------------------------
1 | export 'base_connect.dart';
2 | export 'base_controller.dart';
3 | export 'base_model.dart';
4 |
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/assets/assets_readme/printt_color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/assets/assets_readme/printt_color.png
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/lib/app/core/constants/app_constant.dart:
--------------------------------------------------------------------------------
1 | export 'color_constant.dart';
2 | export 'global_constant.dart';
3 | export 'storage_constant.dart';
4 |
--------------------------------------------------------------------------------
/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/assets/assets_readme/printt_log_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/assets/assets_readme/printt_log_api.png
--------------------------------------------------------------------------------
/assets/assets_readme/test_get_command.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/assets/assets_readme/test_get_command.png
--------------------------------------------------------------------------------
/assets/assets_readme/get_init_with_template.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/assets/assets_readme/get_init_with_template.png
--------------------------------------------------------------------------------
/assets/assets_readme/helperwidget_search_ui.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/assets/assets_readme/helperwidget_search_ui.gif
--------------------------------------------------------------------------------
/assets/assets_readme/helperwidget_search_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/assets/assets_readme/helperwidget_search_api.png
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/lib/app/modules/home/controllers/home_controller.dart:
--------------------------------------------------------------------------------
1 | import '/app/core/base/base_project.dart';
2 | import 'package:get/get.dart';
3 |
4 | class HomeController extends BaseController {}
5 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/lib/app/core/constants/global_constant.dart:
--------------------------------------------------------------------------------
1 | import 'package:shared_preferences/shared_preferences.dart';
2 |
3 | abstract class Global {
4 | static late final SharedPreferences sharedPreferences;
5 | }
6 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phatdat-dev/flutter_getx_base_project/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/linux/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/app/core/constants/storage_constant.dart:
--------------------------------------------------------------------------------
1 | // storage key (shared preferences)
2 | abstract class StorageConstants {
3 | static const String langCode = 'langCode';
4 | static const String userAccount = 'userAccount';
5 | }
6 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_getx_base_project/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_getx_base_project
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 |
10 | void fl_register_plugins(FlPluginRegistry* registry) {
11 | }
12 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/app/core/utils/extension/app_extension.dart:
--------------------------------------------------------------------------------
1 | export 'datetime_extension.dart';
2 | export 'iterable_extension.dart';
3 | export 'list_extension.dart';
4 | export 'map_extension.dart';
5 | export 'num_extension.dart';
6 | export 'string_extension.dart';
7 | export 'text_editing_controller_extension.dart';
8 |
--------------------------------------------------------------------------------
/lib/app/core/base/base_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 |
3 | import '/app/core/base/base_project.dart';
4 |
5 | export '../config/api_url.dart';
6 |
7 | abstract class BaseController extends GetxController {
8 | BaseConnect get apiCall => Get.find();
9 | }
10 |
--------------------------------------------------------------------------------
/lib/app/core/utils/utils.dart:
--------------------------------------------------------------------------------
1 | export '../../../generated/locales.g.dart';
2 | export 'all_flutter_icon.dart';
3 | export 'extension/app_extension.dart';
4 | export 'helper.dart';
5 | export 'helper_reflect.dart';
6 | export 'helper_widget.dart';
7 | export 'limit_range_text_input.dart';
8 | export 'print.dart';
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/app/core/utils/extension/iterable_extension.dart:
--------------------------------------------------------------------------------
1 | //Searching List> in Dart
2 | extension FlattenFind on Iterable> {
3 | bool containsElement(T value) {
4 | for (final arr in this) {
5 | if (arr.contains(value)) return true;
6 | }
7 | return false;
8 | }
9 | }
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/firebase_app_id_file.json:
--------------------------------------------------------------------------------
1 | {
2 | "file_generated_by": "FlutterFire CLI",
3 | "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
4 | "GOOGLE_APP_ID": "1:754653310732:ios:becae31c543c040b63a329",
5 | "FIREBASE_PROJECT_ID": "flutter-getx-base-project",
6 | "GCM_SENDER_ID": "754653310732"
7 | }
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/firebase_app_id_file.json:
--------------------------------------------------------------------------------
1 | {
2 | "file_generated_by": "FlutterFire CLI",
3 | "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
4 | "GOOGLE_APP_ID": "1:754653310732:ios:ff2e3ab58365433a63a329",
5 | "FIREBASE_PROJECT_ID": "flutter-getx-base-project",
6 | "GCM_SENDER_ID": "754653310732"
7 | }
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/app/core/config/api_url.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: non_constant_identifier_names
2 |
3 | class ApiUrl {
4 | static String get base_url => 'https://127.0.0.1'; //baseUrl
5 |
6 | //
7 | static String post_auth_login() => '/api/auth/login';
8 | static String post_auth_register() => '/api/auth/register';
9 | }
10 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/app/core/utils/extension/text_editing_controller_extension.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 |
4 | extension TextEditingControllerExtension on TextEditingController {
5 | void selectionAll() {
6 | if (selection.extentOffset != text.length) selection = TextSelection(baseOffset: 0, extentOffset: text.length);
7 | }
8 | }
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/assets/svg/facebook.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/macos/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import FlutterMacOS
2 | import Cocoa
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/lib/app/modules/authentication/bindings/authentication_binding.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 |
3 | import '../controllers/authentication_controller.dart';
4 |
5 | class AuthenticationBinding extends Bindings {
6 | @override
7 | void dependencies() {
8 | Get.lazyPut(
9 | () => AuthenticationController(),
10 | );
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/windows/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral/
2 |
3 | # Visual Studio user-specific files.
4 | *.suo
5 | *.user
6 | *.userosscache
7 | *.sln.docstates
8 |
9 | # Visual Studio build-related files.
10 | x64/
11 | x86/
12 |
13 | # Visual Studio cache files
14 | # files ending in .cache can be ignored
15 | *.[Cc]ache
16 | # but keep track of directories ending in .cache
17 | !*.[Cc]ache/
18 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/linux/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void fl_register_plugins(FlPluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void RegisterPlugins(flutter::PluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 | #include
10 |
11 | void RegisterPlugins(flutter::PluginRegistry* registry) {
12 | FirebaseCorePluginCApiRegisterWithRegistrar(
13 | registry->GetRegistrarForPlugin("FirebaseCorePluginCApi"));
14 | }
15 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/app/custom/other/more_dropdown_search_custom.dart:
--------------------------------------------------------------------------------
1 | typedef MoreDropDownSearchAsyncCallBack = Future Function(dynamic);
2 |
3 | class MoreDropDownSearchCustom {
4 | final String key;
5 | final String queryName;
6 | final MoreDropDownSearchAsyncCallBack apiCall;
7 | dynamic dataResponse;
8 | MoreDropDownSearchCustom({
9 | required this.key,
10 | required this.queryName,
11 | required this.apiCall,
12 | this.dataResponse,
13 | });
14 | }
15 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/linux/my_application.h:
--------------------------------------------------------------------------------
1 | #ifndef FLUTTER_MY_APPLICATION_H_
2 | #define FLUTTER_MY_APPLICATION_H_
3 |
4 | #include
5 |
6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
7 | GtkApplication)
8 |
9 | /**
10 | * my_application_new:
11 | *
12 | * Creates a new Flutter-based application.
13 | *
14 | * Returns: a new #MyApplication.
15 | */
16 | MyApplication* my_application_new();
17 |
18 | #endif // FLUTTER_MY_APPLICATION_H_
19 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/app/routes/app_routes.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: constant_identifier_names
2 |
3 | part of 'app_pages.dart';
4 | // DO NOT EDIT. This is code generated via package:get_cli/get_cli.dart
5 |
6 | abstract class Routes {
7 | Routes._();
8 | static const AUTHENTICATION = _Paths.AUTHENTICATION;
9 | static const HOME = _Paths.HOME;
10 | }
11 |
12 | abstract class _Paths {
13 | _Paths._();
14 | static const AUTHENTICATION = '/authentication';
15 | static const HOME = '/home';
16 | }
17 |
--------------------------------------------------------------------------------
/windows/runner/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by Runner.rc
4 | //
5 | #define IDI_APP_ICON 101
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 102
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1001
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/app/core/base/base_model.dart:
--------------------------------------------------------------------------------
1 | // get generate model on response with assets/import_response.json
2 | //get generate model with assets/import_response.json
3 | abstract class BaseModel {
4 | R fromJson(Map json);
5 |
6 | Map toJson();
7 | }
8 |
9 | // abstract class SearchDelegateQueryName {
10 | // String get queryName;
11 | // set queryName(String value) => queryName = value;
12 | // Object? objectt;
13 | // String? description;
14 | // }
15 |
16 | mixin BaseSelectedModel {
17 | bool isSelected = false;
18 | }
19 |
--------------------------------------------------------------------------------
/lib/app/core/utils/extension/num_extension.dart:
--------------------------------------------------------------------------------
1 | import 'package:intl/intl.dart';
2 |
3 | extension NumExtension on num {
4 | // Vietnam
5 | // NumberFormat.simpleCurrency(locale: 'vi-VN', decimalDigits: 2).format(10000) //10.000,00 ₫
6 | // NumberFormat.simpleCurrency(name: 'VND', decimalDigits: 2).format(10000) //₫10,000.00
7 |
8 | // String formatNumberMoney([String? symbol]) => NumberFormat.currency(customPattern: '#,### \u00a4', symbol: symbol, decimalDigits: 5).format(this);
9 | String formatNumber() => NumberFormat('#,###', 'en_US').format(this);
10 | String formatNumberCompact() => NumberFormat.compact(locale: 'en_US').format(this);
11 | }
12 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = flutter_getx_base_project
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGetxBaseProject
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/windows/runner/utils.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_UTILS_H_
2 | #define RUNNER_UTILS_H_
3 |
4 | #include
5 | #include
6 |
7 | // Creates a console for the process, and redirects stdout and stderr to
8 | // it for both the runner and the Flutter library.
9 | void CreateAndAttachConsole();
10 |
11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string
12 | // encoded in UTF-8. Returns an empty std::string on failure.
13 | std::string Utf8FromUtf16(const wchar_t* utf16_string);
14 |
15 | // Gets the command line arguments passed in as a std::vector,
16 | // encoded in UTF-8. Returns an empty std::vector on failure.
17 | std::vector GetCommandLineArguments();
18 |
19 | #endif // RUNNER_UTILS_H_
20 |
--------------------------------------------------------------------------------
/assets/svg/github.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | )
7 |
8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
9 | )
10 |
11 | set(PLUGIN_BUNDLED_LIBRARIES)
12 |
13 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
18 | endforeach(plugin)
19 |
20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
23 | endforeach(ffi_plugin)
24 |
--------------------------------------------------------------------------------
/lib/app/core/utils/extension/list_extension.dart:
--------------------------------------------------------------------------------
1 | typedef Condition = bool Function();
2 |
3 | extension ListExtension on List {
4 | /// Provide access to the generic type at runtime.
5 | Type get subType => E;
6 | // Type typeOfElementsInList(List e) => T;
7 |
8 | //[100,5,2].reduce(plus); //=107
9 | T plus(T first, T second) => (first + second) as T;
10 | //[100,5,2].reduce(minus); //=97
11 | T minus(T first, T second) => (first - second) as T;
12 | //[100,5,2].reduce(multiphy); //=1000
13 | T multiphy(T first, T second) => (first * second) as T;
14 | //[100,5,2].reduce(divide); //=10
15 | T divide(T first, T second) {
16 | // ignore: unnecessary_type_check
17 | return ((first ~/ second) is int) ? (first ~/ second) as T : (first / second) as T;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | firebase_core
7 | )
8 |
9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
10 | )
11 |
12 | set(PLUGIN_BUNDLED_LIBRARIES)
13 |
14 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
19 | endforeach(plugin)
20 |
21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
24 | endforeach(ffi_plugin)
25 |
--------------------------------------------------------------------------------
/lib/app/core/utils/extension/string_extension.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:math';
3 |
4 | extension StringExtension on String {
5 | bool get isHexColor => RegExp(r'^#([0-9a-fA-F]{6})|([0-9a-fA-F]{8})$').hasMatch(this);
6 |
7 | int toInt() => int.tryParse(replaceAll(',', '')) ?? 0;
8 |
9 | double toDouble() => double.tryParse(replaceAll(',', '')) ?? 0;
10 |
11 | num? toNumber() => num.tryParse(replaceAll(',', ''));
12 | //random String
13 | static String randomString(int length) {
14 | var random = Random();
15 | var values = List.generate(length, (i) => random.nextInt(256));
16 | return base64UrlEncode(values);
17 | }
18 |
19 | String toCapitalized() => length > 0 ? '${this[0].toUpperCase()}${substring(1).toLowerCase()}' : '';
20 | String toTitleCase() => replaceAll(RegExp(' +'), ' ').split(' ').map((str) => str.toCapitalized()).join(' ');
21 | }
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.4.2'
10 | // START: FlutterFire Configuration
11 | classpath 'com.google.gms:google-services:4.3.15'
12 | // END: FlutterFire Configuration
13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | google()
20 | mavenCentral()
21 | }
22 | }
23 |
24 | rootProject.buildDir = '../build'
25 | subprojects {
26 | project.buildDir = "${rootProject.buildDir}/${project.name}"
27 | }
28 | subprojects {
29 | project.evaluationDependsOn(':app')
30 | }
31 |
32 | tasks.register("clean", Delete) {
33 | delete rootProject.buildDir
34 | }
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/app/routes/app_pages.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 |
3 | import '/app/modules/home/controllers/home_controller.dart';
4 | import '../modules/authentication/bindings/authentication_binding.dart';
5 | import '../modules/authentication/views/authentication_view.dart';
6 | import '../modules/home/views/home_view.dart';
7 |
8 | // ignore_for_file: constant_identifier_names
9 |
10 | part 'app_routes.dart';
11 |
12 | class AppPages {
13 | AppPages._();
14 |
15 | static const INITIAL = Routes.AUTHENTICATION;
16 |
17 | static final routes = [
18 | GetPage(
19 | name: _Paths.AUTHENTICATION,
20 | page: () => const AuthenticationView(),
21 | binding: AuthenticationBinding(),
22 | ),
23 | GetPage(
24 | name: _Paths.HOME,
25 | page: () => const HomeView(),
26 | binding: BindingsBuilder(() => Get.lazyPut(() => HomeController())),
27 | ),
28 | ];
29 | }
30 |
--------------------------------------------------------------------------------
/lib/app/modules/authentication/widget/custom_prefix_icon_widget.dart:
--------------------------------------------------------------------------------
1 | part of '../views/authentication_view.dart';
2 |
3 | class CustomPrefixIconWidget extends StatelessWidget {
4 | const CustomPrefixIconWidget({super.key, required this.color, required this.icon});
5 |
6 | final Color color;
7 | final Widget icon;
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | padding: const EdgeInsets.only(top: 16.0, bottom: 16.0),
13 | margin: const EdgeInsets.only(right: 8.0),
14 | decoration: BoxDecoration(
15 | color: color,
16 | borderRadius: const BorderRadius.only(
17 | topLeft: Radius.circular(30.0),
18 | bottomLeft: Radius.circular(30.0),
19 | topRight: Radius.circular(30.0),
20 | bottomRight: Radius.circular(10.0))),
21 | child: icon);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/app/modules/authentication/widget/social_icon_widget.dart:
--------------------------------------------------------------------------------
1 | part of '../views/authentication_view.dart';
2 |
3 | class SocialIcon extends StatelessWidget {
4 | final List colors;
5 | final String iconURL;
6 | final void Function() onPressed;
7 | const SocialIcon({Key? key, required this.colors, required this.iconURL, required this.onPressed}) : super(key: key);
8 | @override
9 | Widget build(BuildContext context) {
10 | return Container(
11 | width: 35,
12 | height: 35,
13 | decoration: BoxDecoration(shape: BoxShape.circle, gradient: LinearGradient(colors: colors)),
14 | child: RawMaterialButton(
15 | shape: const CircleBorder(),
16 | onPressed: onPressed,
17 | child: SvgPicture.asset(
18 | iconURL,
19 | height: 20,
20 | width: 20,
21 | colorFilter: const ColorFilter.mode(Colors.white, BlendMode.srcIn),
22 | ),
23 | ),
24 | );
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/assets/translations/ja_JP.json:
--------------------------------------------------------------------------------
1 | {
2 | "en_US": "英語",
3 | "vi_VN": "ベトナム語",
4 | "ja_JP": "日本語",
5 | "Language": "言語",
6 | "SignIn": "サインイン",
7 | "SignUp": "サインアップ",
8 | "LogOut": "ログアウト",
9 | "UserName": "ユーザー名",
10 | "Email": "メールアドレス",
11 | "Phone": "電話番号",
12 | "Password": "パスワード",
13 | "ConfirmPassword": "パスワードの確認",
14 | "ForgotPassword": "パスワードをお忘れですか",
15 | "Add": "追加",
16 | "PleaseWait": "お待ちください...",
17 | "Confirm": "確認",
18 | "MustNotBeEmpty": "空にすることはできません",
19 | "Cancel": "キャンセル",
20 | "DoYouWantToTryIt": "試してみますか",
21 | "TryNow": "今すぐ試す!",
22 | "RankingTable": "ランキングテーブル",
23 | "Classify": "分類",
24 | "Favorite": "お気に入り",
25 | "Another": "別の",
26 | "Home": "ホーム",
27 | "Setting": "設定",
28 | "Views": "ビュー",
29 | "Episode": "エピソード",
30 | "Episodes": "エピソード",
31 | "Infomation": "情報",
32 | "Comment": "コメント",
33 | "Genres": "ジャンル",
34 | "RememberPassword":"パスワードを覚えていますか"
35 | }
36 |
--------------------------------------------------------------------------------
/lib/app/core/utils/print.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: avoid_print
2 | //https://stackoverflow.com/questions/54018071/how-to-call-print-with-colorful-text-to-android-studio-console-in-flutter
3 | import 'dart:developer';
4 |
5 | class Printt {
6 | static void defaultt(Object? object) => log('$object');
7 | static void black(Object? object) => log('\x1B[30m$object\x1B[0m');
8 | static void red(Object? object) => log('\x1B[31m$object\x1B[0m');
9 | static void green(Object? object) => log('\x1B[32m$object\x1B[0m');
10 | static void yellow(Object? object) => log('\x1B[33m$object\x1B[0m');
11 | static void blue(Object? object) => log('\x1B[34m$object\x1B[0m');
12 | static void magenta(Object? object) => log('\x1B[35m$object\x1B[0m');
13 | static void cyan(Object? object) => log('\x1B[36m$object\x1B[0m');
14 | static void white(Object? object) => log('\x1B[37m$object\x1B[0m');
15 | static void reset(Object? object) => log('\x1B[38m$object\x1B[0m');
16 | }
17 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_getx_base_project
2 | version: 1.0.0+1
3 | publish_to: none
4 | description: A new Flutter project.
5 | environment:
6 | sdk: ">=3.0.0 <4.0.0"
7 | flutter: ^3.10.0
8 |
9 | dependencies:
10 | cupertino_icons: ^1.0.2
11 | get: 4.6.5
12 | intl: any
13 | firebase_core: ^2.9.0
14 | firebase_auth: any
15 | flutter_local_notifications: ^14.0.0+1
16 | cloud_firestore: any #dung de load data notify
17 | firebase_messaging: any
18 | shared_preferences: any
19 | flutter_form_builder: any #bingding form
20 | form_builder_validators: any
21 | fluttertoast: any
22 | flutter_svg: any
23 | flutter_localizations:
24 | sdk: flutter
25 | flutter:
26 | sdk: flutter
27 |
28 | dev_dependencies:
29 | flutter_lints: ^2.0.0
30 | flutter_test:
31 | sdk: flutter
32 |
33 | flutter:
34 | uses-material-design: true
35 | assets:
36 | - assets/images/
37 | - assets/svg/
38 | - assets/gif/
39 | - assets/translations/
40 |
--------------------------------------------------------------------------------
/windows/runner/runner.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PerMonitorV2
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import cloud_firestore
9 | import firebase_auth
10 | import firebase_core
11 | import firebase_messaging
12 | import flutter_local_notifications
13 | import shared_preferences_foundation
14 |
15 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
16 | FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
17 | FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
18 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
19 | FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin"))
20 | FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin"))
21 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
22 | }
23 |
--------------------------------------------------------------------------------
/windows/runner/flutter_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_FLUTTER_WINDOW_H_
2 | #define RUNNER_FLUTTER_WINDOW_H_
3 |
4 | #include
5 | #include
6 |
7 | #include
8 |
9 | #include "win32_window.h"
10 |
11 | // A window that does nothing but host a Flutter view.
12 | class FlutterWindow : public Win32Window {
13 | public:
14 | // Creates a new FlutterWindow hosting a Flutter view running |project|.
15 | explicit FlutterWindow(const flutter::DartProject& project);
16 | virtual ~FlutterWindow();
17 |
18 | protected:
19 | // Win32Window:
20 | bool OnCreate() override;
21 | void OnDestroy() override;
22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
23 | LPARAM const lparam) noexcept override;
24 |
25 | private:
26 | // The project to run.
27 | flutter::DartProject project_;
28 |
29 | // The Flutter instance hosted by this window.
30 | std::unique_ptr flutter_controller_;
31 | };
32 |
33 | #endif // RUNNER_FLUTTER_WINDOW_H_
34 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/assets/translations/en_US.json:
--------------------------------------------------------------------------------
1 | {
2 | "en_US": "English",
3 | "vi_VN": "Vietnamese",
4 | "ja_JP": "Japanese",
5 | "Language": "Language",
6 | "SignIn": "Sign In",
7 | "SignUp": "Sign Up",
8 | "LogOut": "Log Out",
9 | "UserName": "User Name",
10 | "Email": "Email",
11 | "Phone": "Phone",
12 | "Password": "Password",
13 | "ConfirmPassword": "Confirm Password",
14 | "ForgotPassword": "Forgot Password",
15 | "Add": "Add",
16 | "PleaseWait": "Please wait...",
17 | "Confirm": "Confirm",
18 | "MustNotBeEmpty": "Must not be empty",
19 | "Cancel": "Cancel",
20 | "DoYouWantToTryIt": "Do you want to try it?",
21 | "TryNow": "Try now !",
22 | "RankingTable": "Ranking Table",
23 | "Classify": "Classify",
24 | "Favorite": "Favorite",
25 | "Another": "Another",
26 | "Home": "Home",
27 | "Setting": "Setting",
28 | "Views": "Views",
29 | "Episode": "Episode",
30 | "Episodes": "Episodes",
31 | "Infomation": "Infomation",
32 | "Comment": "Comment",
33 | "Genres": "Genres",
34 | "RememberPassword": "Remember Password"
35 | }
36 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "flutter_getx_base_project",
3 | "short_name": "flutter_getx_base_project",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/assets/translations/vi_VN.json:
--------------------------------------------------------------------------------
1 | {
2 | "en_US": "Tiếng Anh",
3 | "vi_VN": "Tiếng Việt",
4 | "ja_JP": "Tiếng Nhật",
5 | "Language": "Ngôn ngữ",
6 | "SignIn": "Đăng nhập",
7 | "SignUp": "Đăng ký",
8 | "LogOut": "Đăng xuất",
9 | "UserName": "Tên đăng nhập",
10 | "Email": "Email",
11 | "Phone": "Số điện thoại",
12 | "Password": "Mật khẩu",
13 | "ConfirmPassword": "Xác nhận mật khẩu",
14 | "ForgotPassword": "Quên mật khẩu",
15 | "Add": "Thêm",
16 | "PleaseWait": "Vui lòng đợi ...",
17 | "Confirm": "Xác nhận",
18 | "MustNotBeEmpty": "không được để trống!",
19 | "Cancel": "Huỷ",
20 | "DoYouWantToTryIt": "Bạn muốn dùng thử ?",
21 | "TryNow": "Thử ngay !",
22 | "RankingTable": "Bảng xếp hạng",
23 | "Classify": "Phân loại",
24 | "Favorite": "Yêu thích",
25 | "Another": "Khác",
26 | "Home": "Trang chủ",
27 | "Setting": "Cài đặt",
28 | "Views": "Lượt xem",
29 | "Episode": "Tập",
30 | "Episodes": "Danh sách tập",
31 | "Infomation": "Thông tin",
32 | "Comment": "Bình luận",
33 | "Genres": "Thể loại",
34 | "RememberPassword":"Ghi nhớ mật khẩu"
35 | }
36 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_getx_base_project/main.dart';
10 | import 'package:flutter_test/flutter_test.dart';
11 |
12 | void main() {
13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
14 | // Build our app and trigger a frame.
15 | await tester.pumpWidget(const MyApp());
16 |
17 | // Verify that our counter starts at 0.
18 | expect(find.text('0'), findsOneWidget);
19 | expect(find.text('1'), findsNothing);
20 |
21 | // Tap the '+' icon and trigger a frame.
22 | await tester.tap(find.byIcon(Icons.add));
23 | await tester.pump();
24 |
25 | // Verify that our counter has incremented.
26 | expect(find.text('0'), findsNothing);
27 | expect(find.text('1'), findsOneWidget);
28 | });
29 | }
30 |
--------------------------------------------------------------------------------
/assets/svg/google-plus.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
48 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "754653310732",
4 | "project_id": "flutter-getx-base-project",
5 | "storage_bucket": "flutter-getx-base-project.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:754653310732:android:4aa8db9afd4cb26763a329",
11 | "android_client_info": {
12 | "package_name": "com.example.flutter_getx_base_project"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "754653310732-98hdjads98bo6uls10ebiksd85nunsum.apps.googleusercontent.com",
18 | "client_type": 3
19 | }
20 | ],
21 | "api_key": [
22 | {
23 | "current_key": "AIzaSyBd67LXICMeNxCDe3BAnmioWkckIRZ3k1Y"
24 | }
25 | ],
26 | "services": {
27 | "appinvite_service": {
28 | "other_platform_oauth_client": [
29 | {
30 | "client_id": "754653310732-98hdjads98bo6uls10ebiksd85nunsum.apps.googleusercontent.com",
31 | "client_type": 3
32 | }
33 | ]
34 | }
35 | }
36 | }
37 | ],
38 | "configuration_version": "1"
39 | }
--------------------------------------------------------------------------------
/ios/Runner/GoogleService-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CLIENT_ID
6 | 754653310732-8c9mmaebb5ovme4ooarl93d1uakfcqiu.apps.googleusercontent.com
7 | REVERSED_CLIENT_ID
8 | com.googleusercontent.apps.754653310732-8c9mmaebb5ovme4ooarl93d1uakfcqiu
9 | API_KEY
10 | AIzaSyDppyMn5WF93R0bDmqcU5BfkGyoq8teRlU
11 | GCM_SENDER_ID
12 | 754653310732
13 | PLIST_VERSION
14 | 1
15 | BUNDLE_ID
16 | com.example.flutterGetxBaseProject
17 | PROJECT_ID
18 | flutter-getx-base-project
19 | STORAGE_BUCKET
20 | flutter-getx-base-project.appspot.com
21 | IS_ADS_ENABLED
22 |
23 | IS_ANALYTICS_ENABLED
24 |
25 | IS_APPINVITE_ENABLED
26 |
27 | IS_GCM_ENABLED
28 |
29 | IS_SIGNIN_ENABLED
30 |
31 | GOOGLE_APP_ID
32 | 1:754653310732:ios:becae31c543c040b63a329
33 |
34 |
--------------------------------------------------------------------------------
/macos/Runner/GoogleService-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CLIENT_ID
6 | 754653310732-pts83iokp28j8l1kqimpq4n80f8p0osg.apps.googleusercontent.com
7 | REVERSED_CLIENT_ID
8 | com.googleusercontent.apps.754653310732-pts83iokp28j8l1kqimpq4n80f8p0osg
9 | API_KEY
10 | AIzaSyDppyMn5WF93R0bDmqcU5BfkGyoq8teRlU
11 | GCM_SENDER_ID
12 | 754653310732
13 | PLIST_VERSION
14 | 1
15 | BUNDLE_ID
16 | com.example.flutterGetxBaseProject.RunnerTests
17 | PROJECT_ID
18 | flutter-getx-base-project
19 | STORAGE_BUCKET
20 | flutter-getx-base-project.appspot.com
21 | IS_ADS_ENABLED
22 |
23 | IS_ANALYTICS_ENABLED
24 |
25 | IS_APPINVITE_ENABLED
26 |
27 | IS_GCM_ENABLED
28 |
29 | IS_SIGNIN_ENABLED
30 |
31 | GOOGLE_APP_ID
32 | 1:754653310732:ios:ff2e3ab58365433a63a329
33 |
34 |
--------------------------------------------------------------------------------
/lib/app/core/utils/extension/datetime_extension.dart:
--------------------------------------------------------------------------------
1 | import 'package:intl/intl.dart';
2 |
3 | extension DateTimeExtension on DateTime {
4 | String toDateFormat() => DateFormat('yyyy-MM-dd').format(this);
5 |
6 | String timeAgoSinceDate({bool numericDates = true}) {
7 | final date2 = DateTime.now();
8 | final difference = date2.difference(this);
9 |
10 | if (difference.inDays > 8) {
11 | return toDateFormat();
12 | } else if ((difference.inDays / 7).floor() >= 1) {
13 | return (numericDates) ? '1 week ago' : 'Last week';
14 | } else if (difference.inDays >= 2) {
15 | return '${difference.inDays} days ago';
16 | } else if (difference.inDays >= 1) {
17 | return (numericDates) ? '1 day ago' : 'Yesterday';
18 | } else if (difference.inHours >= 2) {
19 | return '${difference.inHours} hours ago';
20 | } else if (difference.inHours >= 1) {
21 | return (numericDates) ? '1 hour ago' : 'An hour ago';
22 | } else if (difference.inMinutes >= 2) {
23 | return '${difference.inMinutes} minutes ago';
24 | } else if (difference.inMinutes >= 1) {
25 | return (numericDates) ? '1 minute ago' : 'A minute ago';
26 | } else if (difference.inSeconds >= 3) {
27 | return '${difference.inSeconds} seconds ago';
28 | } else {
29 | return 'Just now';
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/windows/runner/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "flutter_window.h"
6 | #include "utils.h"
7 |
8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
9 | _In_ wchar_t *command_line, _In_ int show_command) {
10 | // Attach to console when present (e.g., 'flutter run') or create a
11 | // new console when running with a debugger.
12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
13 | CreateAndAttachConsole();
14 | }
15 |
16 | // Initialize COM, so that it is available for use in the library and/or
17 | // plugins.
18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
19 |
20 | flutter::DartProject project(L"data");
21 |
22 | std::vector command_line_arguments =
23 | GetCommandLineArguments();
24 |
25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
26 |
27 | FlutterWindow window(project);
28 | Win32Window::Point origin(10, 10);
29 | Win32Window::Size size(1280, 720);
30 | if (!window.Create(L"flutter_getx_base_project", origin, size)) {
31 | return EXIT_FAILURE;
32 | }
33 | window.SetQuitOnClose(true);
34 |
35 | ::MSG msg;
36 | while (::GetMessage(&msg, nullptr, 0, 0)) {
37 | ::TranslateMessage(&msg);
38 | ::DispatchMessage(&msg);
39 | }
40 |
41 | ::CoUninitialize();
42 | return EXIT_SUCCESS;
43 | }
44 |
--------------------------------------------------------------------------------
/macos/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, '10.14'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def flutter_root
13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14 | unless File.exist?(generated_xcode_build_settings_path)
15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16 | end
17 |
18 | File.foreach(generated_xcode_build_settings_path) do |line|
19 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
20 | return matches[1].strip if matches
21 | end
22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23 | end
24 |
25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26 |
27 | flutter_macos_podfile_setup
28 |
29 | target 'Runner' do
30 | use_frameworks!
31 | use_modular_headers!
32 |
33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34 | target 'RunnerTests' do
35 | inherit! :search_paths
36 | end
37 | end
38 |
39 | post_install do |installer|
40 | installer.pods_project.targets.each do |target|
41 | flutter_additional_macos_build_settings(target)
42 | end
43 | end
44 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '11.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | target 'RunnerTests' do
36 | inherit! :search_paths
37 | end
38 | end
39 |
40 | post_install do |installer|
41 | installer.pods_project.targets.each do |target|
42 | flutter_additional_ios_build_settings(target)
43 | end
44 | end
45 |
--------------------------------------------------------------------------------
/assets/svg/twitter.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
48 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/lib/app/core/utils/limit_range_text_input.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/services.dart';
2 |
3 | import '/app/core/utils/extension/app_extension.dart';
4 |
5 | class LimitRangeTextInput extends TextInputFormatter {
6 | LimitRangeTextInput({
7 | required this.minRange,
8 | required this.maxRange,
9 | }) : assert(minRange <= maxRange);
10 |
11 | final double minRange;
12 | final double maxRange;
13 |
14 | @override
15 | TextEditingValue formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) {
16 | int count = 0;
17 | for (int i = 0; i < newValue.text.length; i++) {
18 | if (newValue.text[i] == '.') {
19 | count++;
20 | }
21 | if (count == 2) return oldValue;
22 | }
23 |
24 | //neu nhap dau' thap phan (.) giua~ chung` ma` phia' sau ko co' so' thi` tra? ve` dau' . con` nguyen vi tri' ko thay doi?
25 | final arrayS = newValue.text.split('.');
26 |
27 | if (arrayS.last.isEmpty) return newValue;
28 | //ep' kieu?, format so'
29 |
30 | var value = newValue.text.toDouble();
31 | if (value < minRange) return TextEditingValue(text: '$minRange');
32 |
33 | // return value > maxRange ? oldValue : newValue;
34 | if (value > maxRange) {
35 | final format = maxRange.formatNumber();
36 | return oldValue.copyWith(text: format, selection: TextSelection.collapsed(offset: format.length));
37 | }
38 | String format;
39 | try {
40 | format = value.formatNumber();
41 | } catch (e) {
42 | format = '';
43 | }
44 | return newValue.copyWith(text: format, selection: TextSelection.collapsed(offset: format.length));
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/app/core/config/theme_config.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../constants/color_constant.dart';
4 |
5 | // https://flutter.github.io/samples/web/material_3_demo/#/
6 | class ThemeConfig with ColorConstants {
7 | ThemeData get lightTheme => ThemeData.light().copyWith(
8 | // useMaterial3: true,
9 | brightness: Brightness.light,
10 | primaryColor: ColorConstants.pink800,
11 | colorScheme: ColorScheme.fromSwatch().copyWith(
12 | secondary: ColorConstants.pink500,
13 | ),
14 |
15 | popupMenuTheme: const PopupMenuThemeData(
16 | shape: RoundedRectangleBorder(
17 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
18 | //side: const BorderSide(color: Colors.pink)
19 | ),
20 | ),
21 | outlinedButtonTheme: OutlinedButtonThemeData(
22 | style: OutlinedButton.styleFrom(
23 | shape: const StadiumBorder(),
24 | ),
25 | ),
26 |
27 | elevatedButtonTheme: ElevatedButtonThemeData(
28 | style: ElevatedButton.styleFrom(
29 | shape: const RoundedRectangleBorder(
30 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
31 | //side: const BorderSide(color: Colors.pink)
32 | ),
33 | //shadowColor: MaterialStateProperty.all(Colors.red),
34 | //elevation: MaterialStateProperty.all(0),
35 | // backgroundColor: ColorConstants.pink800, //background
36 | )),
37 | );
38 |
39 | ThemeData get dartTheme => ThemeData.dark(
40 | // useMaterial3: true,
41 | );
42 | }
43 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/app/core/services/translation_service.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 |
4 | import '../../../generated/locales.g.dart';
5 | import '../constants/app_constant.dart';
6 |
7 | // get generate locales assets/translations
8 | //nguồn: https://viblo.asia/p/getx-flutter-multiple-language-support-with-getx-part-3-GrLZDDqBZk0
9 | class TranslationService extends Translations {
10 | // locale sẽ được get mỗi khi mới mở app (phụ thuộc vào locale hệ thống hoặc bạn có thể cache lại locale mà người dùng đã setting và set nó ở đây)
11 | static Locale? locale = Get.deviceLocale;
12 | // fallbackLocale là locale default nếu locale được set không nằm trong những Locale support
13 | static const fallbackLocale = Locale('en', 'US');
14 | // các Locale được support
15 | static const locales = [
16 | Locale('en', 'US'),
17 | Locale('vi', 'VN'),
18 | Locale('ja', 'JP'),
19 | ];
20 |
21 | // function change language
22 | static void changeLocale(Locale localeee) {
23 | Get.updateLocale(localeee);
24 | locale = localeee;
25 | Global.sharedPreferences.setString(StorageConstants.langCode, localeee.languageCode);
26 | }
27 |
28 | static Future getLocaleFromLanguage() async {
29 | final langCode = Global.sharedPreferences.getString(StorageConstants.langCode);
30 |
31 | if (langCode == null) return Get.deviceLocale;
32 |
33 | for (int i = 0; i < locales.length; i++) {
34 | if (langCode == locales[i].languageCode) return locales[i];
35 | }
36 |
37 | return Get.deviceLocale;
38 | }
39 |
40 | @override
41 | Map> get keys => AppTranslation.translations;
42 | }
43 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
17 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
18 | - platform: android
19 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
20 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
21 | - platform: ios
22 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
23 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
24 | - platform: linux
25 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
26 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
27 | - platform: macos
28 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
29 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
30 | - platform: web
31 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
32 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
33 | - platform: windows
34 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
35 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/lib/app/models/users_model.dart:
--------------------------------------------------------------------------------
1 | import '../core/base/base_model.dart';
2 |
3 | class UsersModel extends BaseModel with BaseSelectedModel {
4 | int? id;
5 | String? username;
6 | String? email;
7 | String? password;
8 | String? avatar;
9 | String? token;
10 |
11 | UsersModel({
12 | this.id,
13 | this.username,
14 | this.email,
15 | this.password,
16 | this.avatar,
17 | this.token,
18 | });
19 |
20 | @override
21 | UsersModel fromJson(Map json) {
22 | return UsersModel(
23 | id: (json['id'] as num?)?.toInt(),
24 | username: json['username'],
25 | email: json['email'],
26 | password: json['password'],
27 | avatar: json['avatar'],
28 | token: token ?? json['token'],
29 | );
30 | }
31 |
32 | @override
33 | Map toJson() {
34 | final data = {};
35 | if (id != null) {
36 | data['id'] = id;
37 | }
38 | if (username != null) {
39 | data['username'] = username;
40 | }
41 | if (email != null) {
42 | data['email'] = email;
43 | }
44 | if (password != null) {
45 | data['password'] = password;
46 | }
47 | if (avatar != null) {
48 | data['avatar'] = avatar;
49 | }
50 |
51 | if (token != null) {
52 | data['token'] = token;
53 | }
54 |
55 | return data;
56 | }
57 |
58 | UsersModel copyWith({
59 | int? id,
60 | String? username,
61 | String? email,
62 | String? password,
63 | String? avatar,
64 | String? token,
65 | }) =>
66 | UsersModel(
67 | id: id ?? this.id,
68 | username: username ?? this.username,
69 | email: email ?? this.email,
70 | password: password ?? this.password,
71 | avatar: avatar ?? this.avatar,
72 | token: token ?? this.token,
73 | );
74 | }
75 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Flutter Getx Base Project
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | flutter_getx_base_project
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/windows/runner/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.14)
2 | project(runner LANGUAGES CXX)
3 |
4 | # Define the application target. To change its name, change BINARY_NAME in the
5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
6 | # work.
7 | #
8 | # Any new source files that you add to the application should be added here.
9 | add_executable(${BINARY_NAME} WIN32
10 | "flutter_window.cpp"
11 | "main.cpp"
12 | "utils.cpp"
13 | "win32_window.cpp"
14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
15 | "Runner.rc"
16 | "runner.exe.manifest"
17 | )
18 |
19 | # Apply the standard set of build settings. This can be removed for applications
20 | # that need different build settings.
21 | apply_standard_settings(${BINARY_NAME})
22 |
23 | # Add preprocessor definitions for the build version.
24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"")
25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}")
26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}")
27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}")
28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}")
29 |
30 | # Disable Windows macros that collide with C++ standard library functions.
31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
32 |
33 | # Add dependency libraries and include directories. Add any application-specific
34 | # dependencies here.
35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib")
37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
38 |
39 | # Run the Flutter tool portions of the build. This must not be removed.
40 | add_dependencies(${BINARY_NAME} flutter_assemble)
41 |
--------------------------------------------------------------------------------
/lib/app/modules/authentication/widget/wave_draw_clippath_widget.dart:
--------------------------------------------------------------------------------
1 | part of '../views/authentication_view.dart';
2 |
3 | class WaveDrawClipPathWidget extends StatelessWidget {
4 | const WaveDrawClipPathWidget({super.key, required this.title});
5 | final String title;
6 |
7 | @override
8 | Widget build(BuildContext context) {
9 | return Stack(
10 | children: [
11 | ClipPath(
12 | clipper: WaveClipper2(),
13 | child: Container(
14 | width: double.infinity,
15 | height: 250,
16 | decoration: BoxDecoration(gradient: LinearGradient(colors: [Colors.green.shade50, Colors.blue.shade50])),
17 | ),
18 | ),
19 | ClipPath(
20 | clipper: WaveClipper3(),
21 | child: Container(
22 | width: double.infinity,
23 | height: 250,
24 | decoration: BoxDecoration(gradient: LinearGradient(colors: [Colors.green.shade100, Colors.blue.shade100])),
25 | child: const Column(),
26 | ),
27 | ),
28 | ClipPath(
29 | clipper: WaveClipper1(),
30 | child: Container(
31 | width: double.infinity,
32 | height: 250,
33 | decoration: BoxDecoration(gradient: LinearGradient(colors: [Colors.green, Theme.of(context).colorScheme.primary])),
34 | child: Column(
35 | children: [
36 | const SizedBox(height: 20),
37 | const Icon(
38 | Icons.fastfood,
39 | color: Colors.white,
40 | size: 60,
41 | ),
42 | const SizedBox(height: 20),
43 | Text(
44 | title,
45 | style: TextStyle(color: Theme.of(context).colorScheme.inversePrimary, fontWeight: FontWeight.w700, fontSize: 30),
46 | ),
47 | ],
48 | ),
49 | ),
50 | ),
51 | ],
52 | );
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/windows/runner/utils.cpp:
--------------------------------------------------------------------------------
1 | #include "utils.h"
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 |
8 | #include
9 |
10 | void CreateAndAttachConsole() {
11 | if (::AllocConsole()) {
12 | FILE *unused;
13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) {
14 | _dup2(_fileno(stdout), 1);
15 | }
16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) {
17 | _dup2(_fileno(stdout), 2);
18 | }
19 | std::ios::sync_with_stdio();
20 | FlutterDesktopResyncOutputStreams();
21 | }
22 | }
23 |
24 | std::vector GetCommandLineArguments() {
25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.
26 | int argc;
27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
28 | if (argv == nullptr) {
29 | return std::vector();
30 | }
31 |
32 | std::vector command_line_arguments;
33 |
34 | // Skip the first argument as it's the binary name.
35 | for (int i = 1; i < argc; i++) {
36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i]));
37 | }
38 |
39 | ::LocalFree(argv);
40 |
41 | return command_line_arguments;
42 | }
43 |
44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) {
45 | if (utf16_string == nullptr) {
46 | return std::string();
47 | }
48 | int target_length = ::WideCharToMultiByte(
49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
50 | -1, nullptr, 0, nullptr, nullptr)
51 | -1; // remove the trailing null character
52 | int input_length = (int)wcslen(utf16_string);
53 | std::string utf8_string;
54 | if (target_length <= 0 || target_length > utf8_string.max_size()) {
55 | return utf8_string;
56 | }
57 | utf8_string.resize(target_length);
58 | int converted_length = ::WideCharToMultiByte(
59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
60 | input_length, utf8_string.data(), target_length, nullptr, nullptr);
61 | if (converted_length == 0) {
62 | return std::string();
63 | }
64 | return utf8_string;
65 | }
66 |
--------------------------------------------------------------------------------
/lib/app/modules/authentication/widget/sign_up_tab_widget.dart:
--------------------------------------------------------------------------------
1 | part of '../views/authentication_view.dart';
2 |
3 | class SignUpTapWidget extends GetView {
4 | const SignUpTapWidget({Key? key}) : super(key: key);
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return FormBuilder(
9 | key: controller.formSignUpKey,
10 | child: ListView(
11 | padding: const EdgeInsets.all(15.0),
12 | physics: const BouncingScrollPhysics(), //remove Glow effect
13 | children: [
14 | ...buildTextField_UserNamePassWord(),
15 | const SizedBox(height: 15.0),
16 | FormBuilderTextField(
17 | name: 'confirmPassword',
18 | decoration: InputDecoration(
19 | contentPadding: EdgeInsets.zero,
20 | prefixIcon: CustomPrefixIconWidget(
21 | icon: const Icon(Icons.vpn_key, color: Colors.white),
22 | color: Colors.blueAccent.withOpacity(0.5),
23 | ),
24 | // suffixIcon: Icon(
25 | // Icons.check_circle,
26 | // color: Colors.black26,
27 | // ),
28 | labelText: LocaleKeys.ConfirmPassword.tr,
29 | // hintStyle: const TextStyle(color: Colors.yellow),
30 | filled: true,
31 | fillColor: Colors.lightBlueAccent.withOpacity(0.1),
32 | border: OutlineInputBorder(borderRadius: BorderRadius.circular(30.0), borderSide: BorderSide.none),
33 | ),
34 | validator: FormBuilderValidators.compose([
35 | FormBuilderValidators.required(),
36 | ]),
37 | ),
38 | const SizedBox(height: 15.0),
39 | Container(
40 | width: double.infinity,
41 | padding: const EdgeInsets.symmetric(horizontal: 30.0),
42 | child: ElevatedButton(
43 | onPressed: () => controller.onSignUp(),
44 | child: Text(LocaleKeys.SignUp.tr),
45 | ),
46 | ),
47 | ],
48 | ),
49 | );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | flutter_getx_base_project
33 |
34 |
35 |
39 |
40 |
41 |
42 |
43 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/windows/runner/flutter_window.cpp:
--------------------------------------------------------------------------------
1 | #include "flutter_window.h"
2 |
3 | #include
4 |
5 | #include "flutter/generated_plugin_registrant.h"
6 |
7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project)
8 | : project_(project) {}
9 |
10 | FlutterWindow::~FlutterWindow() {}
11 |
12 | bool FlutterWindow::OnCreate() {
13 | if (!Win32Window::OnCreate()) {
14 | return false;
15 | }
16 |
17 | RECT frame = GetClientArea();
18 |
19 | // The size here must match the window dimensions to avoid unnecessary surface
20 | // creation / destruction in the startup path.
21 | flutter_controller_ = std::make_unique(
22 | frame.right - frame.left, frame.bottom - frame.top, project_);
23 | // Ensure that basic setup of the controller was successful.
24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) {
25 | return false;
26 | }
27 | RegisterPlugins(flutter_controller_->engine());
28 | SetChildContent(flutter_controller_->view()->GetNativeWindow());
29 |
30 | flutter_controller_->engine()->SetNextFrameCallback([&]() {
31 | this->Show();
32 | });
33 |
34 | return true;
35 | }
36 |
37 | void FlutterWindow::OnDestroy() {
38 | if (flutter_controller_) {
39 | flutter_controller_ = nullptr;
40 | }
41 |
42 | Win32Window::OnDestroy();
43 | }
44 |
45 | LRESULT
46 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
47 | WPARAM const wparam,
48 | LPARAM const lparam) noexcept {
49 | // Give Flutter, including plugins, an opportunity to handle window messages.
50 | if (flutter_controller_) {
51 | std::optional result =
52 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
53 | lparam);
54 | if (result) {
55 | return *result;
56 | }
57 | }
58 |
59 | switch (message) {
60 | case WM_FONTCHANGE:
61 | flutter_controller_->engine()->ReloadSystemFonts();
62 | break;
63 | }
64 |
65 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
66 | }
67 |
--------------------------------------------------------------------------------
/lib/app/core/utils/helper_reflect.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: depend_on_referenced_packages
2 |
3 | import 'package:collection/collection.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | import '../../custom/other/search_controller_custom.dart';
7 | import '../base/base_project.dart'; //sort AZ
8 |
9 | class HelperReflect {
10 | //muon su dung ham` nay` thi` phai co' reflectable moi xai dc
11 | static void search(
12 | {required Iterable listOrigin, required ValueNotifier> listSearch, required String nameModel, required String keywordSearch}) {
13 | keywordSearch = keywordSearch.toLowerCase().trim();
14 | var newList = listOrigin.where((element) {
15 | String? insMirror;
16 | if ((element is SearchDelegateQueryName) && nameModel == 'queryName') {
17 | insMirror = element.queryName;
18 | } else {
19 | final splitt = nameModel.split('??');
20 | for (var s in splitt) {
21 | if (element is BaseModel) {
22 | insMirror = (element).toJson()[s.trim()] as String?;
23 | } else {
24 | insMirror = (element as dynamic).toJson()[s.trim()] as String?;
25 | }
26 | if (insMirror?.isNotEmpty ?? false) break;
27 | }
28 | }
29 | return insMirror?.toLowerCase().contains(keywordSearch) ?? false;
30 | }).toList();
31 | listSearch.value = newList;
32 | }
33 |
34 | static void sortAZ({required ValueNotifier isSort, required String nameModelSortAZ, required ValueNotifier> listSearch}) {
35 | (isSort.value)
36 | ? listSearch.value.sort((a, b) {
37 | final insMirrorA = (a as BaseModel).toJson()[nameModelSortAZ] as String;
38 | final insMirrorB = (b as BaseModel).toJson()[nameModelSortAZ] as String;
39 | return compareNatural(insMirrorA, insMirrorB);
40 | })
41 | : listSearch.value.sort((a, b) {
42 | final insMirrorA = (a as BaseModel).toJson()[nameModelSortAZ] as String;
43 | final insMirrorB = (b as BaseModel).toJson()[nameModelSortAZ] as String;
44 | return compareNatural(insMirrorB, insMirrorA);
45 | });
46 | isSort.value = !isSort.value;
47 |
48 | // listSearch.refresh();
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/lib/app/core/constants/color_constant.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '/app/core/utils/extension/app_extension.dart';
4 |
5 | mixin class ColorConstants {
6 | //0xFF vao` hex
7 | // static final MaterialColor blue100 = MaterialColor(0xFFE1EDF9, getSwatch(const Color(0xFFE1EDF9)));
8 | static final MaterialColor pink500 = MaterialColor(0xFFFFE6E6, getSwatch(const Color(0xFFFFE6E6)));
9 | static final MaterialColor pink800 = MaterialColor(0xFFF76969, getSwatch(const Color(0xFFF76969)));
10 |
11 | static Map getSwatch(Color color) {
12 | final hslColor = HSLColor.fromColor(color);
13 | final lightness = hslColor.lightness;
14 |
15 | /// if [500] is the default color, there are at LEAST five
16 | /// steps below [500]. (i.e. 400, 300, 200, 100, 50.) A
17 | /// divisor of 5 would mean [50] is a lightness of 1.0 or
18 | /// a color of #ffffff. A value of six would be near white
19 | /// but not quite.
20 | const lowDivisor = 6;
21 |
22 | /// if [500] is the default color, there are at LEAST four
23 | /// steps above [500]. A divisor of 4 would mean [900] is
24 | /// a lightness of 0.0 or color of #000000
25 | const highDivisor = 5;
26 |
27 | final lowStep = (1.0 - lightness) / lowDivisor;
28 | final highStep = lightness / highDivisor;
29 |
30 | return {
31 | 50: (hslColor.withLightness(lightness + (lowStep * 5))).toColor(),
32 | 100: (hslColor.withLightness(lightness + (lowStep * 4))).toColor(),
33 | 200: (hslColor.withLightness(lightness + (lowStep * 3))).toColor(),
34 | 300: (hslColor.withLightness(lightness + (lowStep * 2))).toColor(),
35 | 400: (hslColor.withLightness(lightness + lowStep)).toColor(),
36 | 500: (hslColor.withLightness(lightness)).toColor(),
37 | 600: (hslColor.withLightness(lightness - highStep)).toColor(),
38 | 700: (hslColor.withLightness(lightness - (highStep * 2))).toColor(),
39 | 800: (hslColor.withLightness(lightness - (highStep * 3))).toColor(),
40 | 900: (hslColor.withLightness(lightness - (highStep * 4))).toColor(),
41 | };
42 | }
43 |
44 | static Color hexToColor(String hex) {
45 | assert(hex.isHexColor, 'hex color must be #rrggbb or #rrggbbaa');
46 |
47 | return Color(
48 | int.parse(hex.substring(1), radix: 16) + (hex.length == 7 ? 0xff000000 : 0x00000000),
49 | );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/lib/app/core/utils/helper.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:math';
3 |
4 | // import 'package:collection/collection.dart'; //sort AZ
5 | import 'package:flutter/material.dart';
6 | import 'package:flutter/services.dart';
7 | import 'package:intl/intl.dart';
8 |
9 | class Helper {
10 | static String tryFormatDateTime(String dateString) {
11 | if (dateString.isEmpty) {
12 | return '';
13 | }
14 | var inputDate = DateTime.tryParse(dateString);
15 | if (inputDate == null) return dateString;
16 | String output = DateFormat('dd-MM-yyyy').format(inputDate);
17 | return output;
18 | }
19 |
20 | //limitShowList
21 | static void limitShowList(List list, [int limit = 5]) => (list.length > limit) ? list.removeRange(limit, list.length) : null;
22 |
23 | static Color get randomColor => Colors.primaries[Random().nextInt(Colors.primaries.length)];
24 | // static Color get randomColorAccents => Colors.accents[Random().nextInt(Colors.accents.length)];
25 | static num randomNumber({num min = 0, required num max}) {
26 | if (max is double || min is double) {
27 | return min.toDouble() + Random().nextDouble() * (max.toDouble() - min.toDouble());
28 | }
29 | return min.toInt() + Random().nextInt(max.toInt() - min.toInt());
30 | }
31 |
32 | //List.separated count,generator,separator
33 | //input: cout=> 7, generator=> 1 , separator=> 0
34 | //output: [1,0,1,0,1,0,1]
35 | static List listGenerateSeparated(int count, {required T Function(int index) generator, required T Function(int index) separator}) {
36 | final List list = [];
37 | for (int i = 0; i < count; i++) {
38 | list.add(generator(i));
39 | if (i < count - 1) {
40 | list.add(separator(i));
41 | }
42 | }
43 | return list;
44 | }
45 |
46 | static Future readFileJson(String assets) async => jsonDecode(await rootBundle.loadString(assets));
47 |
48 | static bool containsToLowerCase(String? source, String? target) {
49 | if (source == null || target == null) return false;
50 | return source.toLowerCase().contains(target.toLowerCase());
51 | }
52 |
53 | static String generateIdFromDateTimeNow() => DateFormat('yyyyMMddHHmmssSSS').format(DateTime.now());
54 |
55 | static List