├── .gitignore
├── .metadata
├── README.md
├── ToDo.txt
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── cc
│ │ │ │ └── fluttre_clean_coded
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── 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
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── key.properties
├── local.properties
└── settings.gradle
├── assets
├── animations
│ ├── ch_splash.gif
│ ├── coming_soon.gif
│ ├── confirmed_tick.gif
│ ├── en_splash.gif
│ ├── error_tick.gif
│ ├── house_searching.gif
│ ├── locked_user.gif
│ ├── payment_loading.gif
│ └── searching.gif
├── font
│ ├── NotoSans-Bold.ttf
│ ├── NotoSans-ExtraBold.ttf
│ ├── NotoSans-Italic.ttf
│ ├── NotoSans-Light.ttf
│ ├── NotoSans-Regular.ttf
│ └── NotoSans-SemiBold.ttf
├── icons
│ ├── announcement.svg
│ ├── explore.svg
│ ├── finance.svg
│ ├── home.svg
│ ├── logout.svg
│ ├── notification.svg
│ ├── profile.svg
│ ├── search.svg
│ └── shop.svg
└── images
│ ├── app_logo.png
│ ├── app_logo_transparent.png
│ ├── app_logo_wb.png
│ ├── company
│ └── team.png
│ └── components
│ └── forgot_image.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
├── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── 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-83.5x83.5@2x.png
│ │ └── LaunchImage.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ └── README.md
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
└── RunnerTests
│ └── RunnerTests.swift
├── lib
├── main.dart
└── src
│ ├── app.dart
│ ├── core
│ ├── dependencies
│ │ ├── app_dep.dart
│ │ ├── app_dep_injector.dart
│ │ └── setup
│ │ │ ├── app_config_setup.dart
│ │ │ ├── app_exception_setup.dart
│ │ │ ├── app_firebase_setup.dart
│ │ │ └── app_notifications_setup.dart
│ ├── localization
│ │ ├── app_locale.dart
│ │ └── languages
│ │ │ └── chinese_language.dart
│ ├── themes
│ │ ├── app_theme.dart
│ │ └── styles
│ │ │ ├── app_colors.dart
│ │ │ ├── app_fonts.dart
│ │ │ └── app_textstyles.dart
│ └── utils
│ │ ├── managers
│ │ ├── app_assets.dart
│ │ ├── app_constants.dart
│ │ ├── app_enums.dart
│ │ ├── app_extensions.dart
│ │ ├── app_lists.dart
│ │ └── app_strings.dart
│ │ └── observers
│ │ └── app_bloc_obeserver.dart
│ ├── data
│ ├── local
│ │ ├── constant
│ │ │ └── local_constants.dart
│ │ ├── db
│ │ │ ├── local_storage_database.dart
│ │ │ └── secure_storage_database.dart
│ │ └── preferences
│ │ │ └── app_settings.dart
│ ├── remote
│ │ ├── api
│ │ │ ├── api_client.dart
│ │ │ └── network_constants.dart
│ │ ├── exception
│ │ │ └── remote_error_handleing.dart
│ │ └── firebase
│ │ │ ├── firebase_helper.dart
│ │ │ └── firebase_options.dart
│ └── services
│ │ ├── local_storage_service.dart
│ │ └── remote_storage_service.dart
│ ├── domain
│ ├── models
│ │ ├── authentication
│ │ │ ├── login
│ │ │ │ └── user_login_model.dart
│ │ │ └── signup
│ │ │ │ └── user_signup_model.dart
│ │ ├── feedback
│ │ │ └── feedback_model.dart
│ │ ├── general
│ │ │ ├── image_model.dart
│ │ │ ├── list_response_model.dart
│ │ │ └── network_response.dart
│ │ ├── remote_response_model.dart
│ │ └── users
│ │ │ ├── user_credentials.dart
│ │ │ └── user_model.dart
│ └── usecases
│ │ ├── notification_usecase.dart
│ │ └── user_usecase.dart
│ └── presentation
│ ├── modules
│ ├── app
│ │ ├── cubit
│ │ │ ├── app_module_screen_cubit.dart
│ │ │ └── app_module_screen_state.dart
│ │ ├── explore
│ │ │ └── explore_page.dart
│ │ ├── finance
│ │ │ └── finance_page.dart
│ │ ├── home
│ │ │ └── home_page.dart
│ │ ├── profile
│ │ │ └── profile_page.dart
│ │ ├── shop
│ │ │ └── shop_page.dart
│ │ └── user_app.dart
│ ├── authentication
│ │ ├── auth_router.dart
│ │ ├── email_verification
│ │ │ └── email_verification_page.dart
│ │ ├── password_reset
│ │ │ ├── change_password_screen.dart
│ │ │ └── forgot_password_screen.dart
│ │ └── user_auth
│ │ │ ├── authentication_page.dart
│ │ │ ├── cubit
│ │ │ ├── user_auth_page_cubit.dart
│ │ │ └── user_auth_page_state.dart
│ │ │ └── screens
│ │ │ ├── user_login_screen.dart
│ │ │ └── user_signup_screen.dart
│ ├── intro
│ │ ├── intro_screen.dart
│ │ └── intro_screen_viewmodel.dart
│ └── splash
│ │ ├── splash_loading_screen.dart
│ │ └── splash_screen.dart
│ ├── shared
│ ├── app_error_handle.dart
│ ├── components.dart
│ ├── date_picker.dart
│ ├── flow_date_picker.dart
│ ├── globals.dart
│ ├── maps_launcher.dart
│ ├── no_connection_handleing.dart
│ ├── qr_code_generate.dart
│ ├── webview.dart
│ └── widgets_builder.dart
│ └── state
│ ├── app_settings_bloc
│ ├── app_settings_bloc.dart
│ ├── app_settings_event.dart
│ └── app_settings_state.dart
│ └── navigation_cubit
│ ├── navi_cubit.dart
│ └── navi_state.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Podfile
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── 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
│ ├── Base.lproj
│ │ └── MainMenu.xib
│ ├── Configs
│ │ ├── AppInfo.xcconfig
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
└── RunnerTests
│ └── RunnerTests.swift
├── pubspec.lock
├── pubspec.yaml
├── web
├── assets
│ └── loading.gif
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.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 |
--------------------------------------------------------------------------------
/.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 and should not be manually edited.
5 |
6 | version:
7 | revision: "12fccda598477eddd19f93040a1dba24f915b9be"
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: 12fccda598477eddd19f93040a1dba24f915b9be
17 | base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
18 | - platform: android
19 | create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
20 | base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
21 | - platform: ios
22 | create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
23 | base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
24 | - platform: linux
25 | create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
26 | base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
27 | - platform: macos
28 | create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
29 | base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
30 | - platform: web
31 | create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
32 | base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
33 | - platform: windows
34 | create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
35 | base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
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 |
--------------------------------------------------------------------------------
/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 https://dart.dev/lints.
17 | #
18 | # Instead of disabling a lint rule for the entire project in the
19 | # section below, it can also be suppressed for a single line of code
20 | # or a specific dart file by using the `// ignore: name_of_lint` and
21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
22 | # producing the lint.
23 | rules:
24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26 |
27 | # Additional information about this file can be found at
28 | # https://dart.dev/guides/language/analysis-options
29 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id "com.android.application"
3 | // START: FlutterFire Configuration
4 | id 'com.google.gms.google-services'
5 | id 'com.google.firebase.firebase-perf'
6 | id 'com.google.firebase.crashlytics'
7 | // END: FlutterFire Configuration
8 | id "kotlin-android"
9 | id "dev.flutter.flutter-gradle-plugin"
10 | }
11 |
12 | def localProperties = new Properties()
13 | def localPropertiesFile = rootProject.file('local.properties')
14 | if (localPropertiesFile.exists()) {
15 | localPropertiesFile.withReader('UTF-8') { reader ->
16 | localProperties.load(reader)
17 | }
18 | }
19 |
20 |
21 | def flutterRoot = localProperties.getProperty('flutter.sdk')
22 | if (flutterRoot == null) {
23 | throw new FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
24 | }
25 | def keystoreProperties = new Properties()
26 | def keystorePropertiesFile = rootProject.file('key.properties')
27 | if (keystorePropertiesFile.exists()) {
28 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
29 | }
30 |
31 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
32 | if (flutterVersionCode == null) {
33 | flutterVersionCode = '1'
34 | }
35 | def FlutterTargetSdkVersion = localProperties.getProperty('flutter.targetSdkVersion')
36 | if (FlutterTargetSdkVersion == null) {
37 | FlutterTargetSdkVersion = '33'
38 | }
39 | def FlutterMinSdkVersion = localProperties.getProperty('flutter.minSdkVersion')
40 | if (FlutterMinSdkVersion == null) {
41 | FlutterMinSdkVersion = '21'
42 | }
43 |
44 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
45 | if (flutterVersionName == null) {
46 | flutterVersionName = '1.0'
47 | }
48 |
49 |
50 | android {
51 | // TODO: Specify your own namespace ID (https://developer.android.com/studio/build/application-id.html).
52 | namespace "com.saif.flutter_clean_coded"
53 | compileSdkVersion 34
54 | ndkVersion flutter.ndkVersion
55 |
56 | compileOptions {
57 | sourceCompatibility JavaVersion.VERSION_1_8
58 | targetCompatibility JavaVersion.VERSION_1_8
59 | }
60 |
61 | kotlinOptions {
62 | jvmTarget = '1.8'
63 | }
64 |
65 | sourceSets {
66 | main.java.srcDirs += 'src/main/kotlin'
67 | }
68 |
69 | defaultConfig {
70 | multiDexEnabled true
71 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
72 | applicationId "com.saif.flutter_clean_coded"
73 | minSdkVersion flutter.minSdkVersion //26
74 | targetSdkVersion flutter.targetSdkVersion //34
75 | versionCode flutterVersionCode.toInteger()
76 | versionName flutterVersionName
77 | }
78 |
79 | signingConfigs {
80 | release {
81 | keyAlias keystoreProperties['keyAlias']
82 | keyPassword keystoreProperties['keyPassword']
83 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
84 | storePassword keystoreProperties['storePassword']
85 | }
86 | }
87 | buildTypes {
88 | release {
89 | signingConfig signingConfigs.release
90 | }
91 | }
92 | }
93 |
94 | flutter {
95 | source '../..'
96 | }
97 |
98 | dependencies {
99 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
100 | implementation 'androidx.multidex:multidex:2.0.1'
101 | implementation("com.google.android.material:material:1.11.0")
102 | }
103 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
15 |
17 |
20 |
23 |
31 |
35 |
39 |
40 |
41 |
42 |
43 |
44 |
46 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/cc/fluttre_clean_coded/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.cc.fluttre_clean_coded
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
10 | // compile 'com.github.RevenueMonster:RM-Android:{latest version}'
11 |
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | // maven { url "https://jitpack.io" }
19 | mavenCentral()
20 | }
21 | }
22 |
23 | rootProject.buildDir = '../build'
24 | subprojects {
25 | project.buildDir = "${rootProject.buildDir}/${project.name}"
26 | }
27 | subprojects {
28 | project.evaluationDependsOn(':app')
29 | }
30 |
31 | tasks.register("clean", Delete) {
32 | delete rootProject.buildDir
33 | }
34 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/key.properties:
--------------------------------------------------------------------------------
1 | // keytool -genkey -v -keystore %location of {PROJECT PATH}\android\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
2 | // before your run code above, change location of .\android\
3 |
4 | storePassword=password(change this)
5 | keyPassword=password(change this)
6 | keyAlias=upload
7 | storeFile={PATH FROM DISK}/flutter_clean_coded/android/upload-keystore.jks
--------------------------------------------------------------------------------
/android/local.properties:
--------------------------------------------------------------------------------
1 | sdk.dir=/Users/saifal/Library/Android/sdk
2 | flutter.sdk=/Users/saifal/Tools/flutter_sdk/flutter
3 | flutter.buildMode=release
4 | flutter.versionName=1.0.0
5 | flutter.versionCode=1
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | def flutterSdkPath = {
3 | def properties = new Properties()
4 | file("local.properties").withInputStream { properties.load(it) }
5 | def flutterSdkPath = properties.getProperty("flutter.sdk")
6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 | return flutterSdkPath
8 | }
9 | settings.ext.flutterSdkPath = flutterSdkPath()
10 |
11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
12 |
13 | plugins {
14 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
15 | }
16 | }
17 |
18 | include ":app"
19 |
20 | apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
21 |
--------------------------------------------------------------------------------
/assets/animations/ch_splash.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/ch_splash.gif
--------------------------------------------------------------------------------
/assets/animations/coming_soon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/coming_soon.gif
--------------------------------------------------------------------------------
/assets/animations/confirmed_tick.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/confirmed_tick.gif
--------------------------------------------------------------------------------
/assets/animations/en_splash.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/en_splash.gif
--------------------------------------------------------------------------------
/assets/animations/error_tick.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/error_tick.gif
--------------------------------------------------------------------------------
/assets/animations/house_searching.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/house_searching.gif
--------------------------------------------------------------------------------
/assets/animations/locked_user.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/locked_user.gif
--------------------------------------------------------------------------------
/assets/animations/payment_loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/payment_loading.gif
--------------------------------------------------------------------------------
/assets/animations/searching.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/animations/searching.gif
--------------------------------------------------------------------------------
/assets/font/NotoSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/font/NotoSans-Bold.ttf
--------------------------------------------------------------------------------
/assets/font/NotoSans-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/font/NotoSans-ExtraBold.ttf
--------------------------------------------------------------------------------
/assets/font/NotoSans-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/font/NotoSans-Italic.ttf
--------------------------------------------------------------------------------
/assets/font/NotoSans-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/font/NotoSans-Light.ttf
--------------------------------------------------------------------------------
/assets/font/NotoSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/font/NotoSans-Regular.ttf
--------------------------------------------------------------------------------
/assets/font/NotoSans-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/font/NotoSans-SemiBold.ttf
--------------------------------------------------------------------------------
/assets/icons/announcement.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/explore.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/finance.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/home.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/logout.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/notification.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/profile.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/icons/search.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/shop.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/images/app_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/images/app_logo.png
--------------------------------------------------------------------------------
/assets/images/app_logo_transparent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/images/app_logo_transparent.png
--------------------------------------------------------------------------------
/assets/images/app_logo_wb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/images/app_logo_wb.png
--------------------------------------------------------------------------------
/assets/images/company/team.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/images/company/team.png
--------------------------------------------------------------------------------
/assets/images/components/forgot_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/assets/images/components/forgot_image.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '12.0'
3 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
4 |
5 | project 'Runner', {
6 |
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', '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 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_ios_podfile_setup
28 |
29 | target 'Runner' do
30 | use_frameworks!
31 | use_modular_headers!
32 |
33 |
34 |
35 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
36 | end
37 |
38 | post_install do |installer|
39 | installer.pods_project.targets.each do |target|
40 | flutter_additional_ios_build_settings(target)
41 | end
42 | end
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
63 |
65 |
71 |
72 |
73 |
74 |
80 |
82 |
88 |
89 |
90 |
91 |
93 |
94 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 | import GoogleMaps
4 |
5 | @main
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GMSServices.provideAPIKey("api key here")
12 | GeneratedPluginRegistrant.register(with: self)
13 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/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/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Syf-Almjd/flutter_clean_coded/e59f3ecc569e46a50be69f0487b315b90a335207/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.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 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Fluttre Clean Coded
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | fluttre_clean_coded
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 | CADisableMinimumFrameDurationOnPhone
45 |
46 | UIApplicationSupportsIndirectInputEvents
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:device_preview/device_preview.dart';
2 | import 'package:flutter/foundation.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_clean_coded/src/core/dependencies/app_dep.dart';
5 |
6 | import 'src/app.dart';
7 |
8 | void main() async {
9 | await AppDependencies.init();
10 |
11 | runApp(
12 | DevicePreview(
13 | enabled: !kReleaseMode,
14 | builder: (context) => const MyApp(),
15 | ),
16 | );
17 | }
18 |
--------------------------------------------------------------------------------
/lib/src/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clean_coded/src/core/dependencies/app_dep.dart';
2 | import 'package:flutter_clean_coded/src/core/themes/app_theme.dart';
3 | import 'package:flutter_clean_coded/src/core/utils/managers/app_constants.dart';
4 | import 'package:flutter_clean_coded/src/presentation/state/navigation_cubit/navi_cubit.dart';
5 | import 'package:device_preview/device_preview.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:flutter_bloc/flutter_bloc.dart';
8 |
9 | import 'presentation/modules/authentication/auth_router.dart';
10 |
11 | class MyApp extends StatelessWidget {
12 | const MyApp({super.key});
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return MultiBlocProvider(
17 | providers: AppDependencies.appBlocProviders(),
18 | child: MaterialApp(
19 | locale: DevicePreview.locale(context),
20 | builder: DevicePreview.appBuilder,
21 | debugShowCheckedModeBanner: false,
22 | title: AppConstants.appTitle,
23 | theme: getApplicationTheme(),
24 | home: const AuthRouter()));
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/lib/src/core/dependencies/app_dep.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:flutter_clean_coded/src/core/dependencies/setup/app_config_setup.dart';
4 | import 'package:flutter_clean_coded/src/core/dependencies/setup/app_exception_setup.dart';
5 | import 'package:flutter_clean_coded/src/core/dependencies/setup/app_firebase_setup.dart';
6 | import 'package:flutter_clean_coded/src/core/dependencies/setup/app_notifications_setup.dart';
7 | import 'package:flutter_clean_coded/src/core/utils/observers/app_bloc_obeserver.dart';
8 | import 'package:flutter_clean_coded/src/core/dependencies/app_dep_injector.dart';
9 | import 'package:flutter_clean_coded/src/data/remote/api/api_client.dart';
10 | import 'package:flutter_clean_coded/src/presentation/state/navigation_cubit/navi_cubit.dart';
11 | import 'package:pdf/widgets.dart';
12 |
13 | class AppDependencies {
14 | static Future init() async {
15 | await appDependencies();
16 | }
17 |
18 | static Future appDependencies() async {
19 | WidgetsFlutterBinding.ensureInitialized();
20 | await AppDependencyInjector.init();
21 | await AppFirebaseSetup.init();
22 | await AppBlocObserver.init();
23 | await AppNotificationSetup.init();
24 | await AppConfigSetup.init();
25 | await AppExceptionSetup.init();
26 | }
27 |
28 | static List appBlocProviders() {
29 | return [
30 | BlocProvider(
31 | create: (context) => NaviCubit(),
32 | ),
33 | ];
34 | }
35 |
36 | static void newUserPermissions() {
37 | AppNotificationSetup().requestPermission();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/src/core/dependencies/app_dep_injector.dart:
--------------------------------------------------------------------------------
1 | import 'package:dio/dio.dart';
2 | import 'package:flutter_secure_storage/flutter_secure_storage.dart';
3 | import 'package:get_it/get_it.dart';
4 | import 'package:flutter_clean_coded/src/data/local/db/local_storage_database.dart';
5 | import 'package:flutter_clean_coded/src/data/local/db/secure_storage_database.dart';
6 | import 'package:shared_preferences/shared_preferences.dart';
7 |
8 | class AppDependencyInjector {
9 | static Future init() async {
10 | final getIt = getInstance();
11 |
12 | // Initialize SharedPreferences
13 | final sharedPreferencesInstance = await SharedPreferences.getInstance();
14 | const secureStorageInstance = FlutterSecureStorage();
15 |
16 | getIt.registerSingleton(
17 | LocalStorageDatabase(sharedPreferences: sharedPreferencesInstance));
18 |
19 | getIt.registerLazySingleton(
20 | () => SecureStorageDatabase(
21 | secureStorage: secureStorageInstance,
22 | ));
23 |
24 | // Register API-related services
25 | _registerApiServices(getIt);
26 |
27 | // Register other services and use cases
28 | // getIt.registerSingleton(GetUserUseCase(getIt()));
29 | }
30 |
31 | static void _registerApiServices(GetIt getIt) {
32 | getIt.registerSingleton(Dio());
33 |
34 | // getIt.registerSingleton(ApiService(getIt()));
35 | // getIt.registerSingleton(UserService(getIt()));
36 | // getIt.registerSingleton(UserRepository(getIt()));
37 | }
38 |
39 | static GetIt getInstance() {
40 | return GetIt.instance;
41 | }
42 |
43 | static void reset() {
44 | GetIt.I.reset();
45 | }
46 |
47 | static void dispose() {
48 | GetIt.I.reset();
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/lib/src/core/dependencies/setup/app_config_setup.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/services.dart';
2 |
3 | class AppConfigSetup {
4 | static init() {
5 | SystemChrome.setPreferredOrientations([
6 | DeviceOrientation.portraitUp,
7 | DeviceOrientation.portraitDown,
8 | ]);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/lib/src/core/dependencies/setup/app_exception_setup.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | import '../../../presentation/Shared/app_error_handle.dart';
4 |
5 | class AppExceptionSetup {
6 | static init() {
7 | ErrorWidget.builder =
8 | (FlutterErrorDetails details) => CustomError(errorDetails: details);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/lib/src/core/dependencies/setup/app_firebase_setup.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_core/firebase_core.dart';
2 | // import 'package:firebase_crashlytics/firebase_crashlytics.dart';
3 | import 'package:flutter/foundation.dart';
4 | import 'package:flutter_clean_coded/src/data/remote/firebase/firebase_options.dart';
5 |
6 | class AppFirebaseSetup {
7 | static init() async {
8 | await Firebase.initializeApp(
9 | options: DefaultFirebaseOptions.currentPlatform,
10 | );
11 | // if (kReleaseMode) {
12 | // errorCrashReporting();
13 | // }
14 | }
15 |
16 | // static errorCrashReporting() {
17 | // FlutterError.onError = (errorDetails) {
18 | // FirebaseCrashlytics.instance.recordFlutterFatalError(errorDetails);
19 | // };
20 | // // Pass all uncaught asynchronous errors that aren't handled by the Flutter framework to Crashlytics
21 | // PlatformDispatcher.instance.onError = (error, stack) {
22 | // FirebaseCrashlytics.instance.recordError(error, stack, fatal: true);
23 | // return true;
24 | // };
25 | // }
26 | }
27 |
--------------------------------------------------------------------------------
/lib/src/core/dependencies/setup/app_notifications_setup.dart:
--------------------------------------------------------------------------------
1 | import 'package:awesome_notifications/awesome_notifications.dart';
2 |
3 | import '../../../presentation/Shared/widgets_builder.dart';
4 | import '../../utils/managers/app_enums.dart';
5 | import '../../themes/styles/app_colors.dart';
6 |
7 | class AppNotificationSetup {
8 | static init() async {
9 | // await FirebaseMessaging.instance.setAutoInitEnabled(true);
10 |
11 | // final notificationSettings =
12 | // await FirebaseMessaging.instance.requestPermission(provisional: true);
13 | // // For apple platforms, ensure the APNS token is available before making any FCM plugin API calls
14 | // final apnsToken = await FirebaseMessaging.instance.getAPNSToken();
15 | // if (apnsToken != null) {
16 | // // APNS token is available, make FCM plugin API requests...
17 | // }
18 |
19 | await AwesomeNotifications().initialize(
20 | // set the icon to null if you want to use the default app icon
21 | null,
22 | [
23 | NotificationChannel(
24 | channelGroupKey: 'basic_channel_group',
25 | channelKey: 'basic_channel',
26 | channelName: 'Basic notifications',
27 | channelDescription: 'Notification channel for basic tests',
28 | defaultColor: AppColors.primaryColor,
29 | ledColor: AppColors.white)
30 | ],
31 | // Channel groups are only visual and are not required
32 | channelGroups: [
33 | NotificationChannelGroup(
34 | channelGroupKey: 'basic_channel_group',
35 | channelGroupName: 'Basic group')
36 | ],
37 | debug: true);
38 | await AppNotificationSetup.setListener();
39 | }
40 |
41 | static setListener() {
42 | AwesomeNotifications().setListeners(
43 | onActionReceivedMethod: AppNotificationSetup.onActionReceivedMethod,
44 | onNotificationCreatedMethod:
45 | AppNotificationSetup.onNotificationCreatedMethod,
46 | onNotificationDisplayedMethod:
47 | AppNotificationSetup.onNotificationDisplayedMethod,
48 | onDismissActionReceivedMethod:
49 | AppNotificationSetup.onDismissActionReceivedMethod);
50 | }
51 |
52 | requestPermission() async {
53 | AwesomeNotifications().isNotificationAllowed().then((isAllowed) {
54 | if (!isAllowed) {
55 | AwesomeNotifications().requestPermissionToSendNotifications();
56 | }
57 | //Welcome Message
58 | });
59 | sendAppNotification(
60 | title: 'Welcome to LKE Group!',
61 | message: "Thank you for installing our app",
62 | notificationsType: NotificationsType.Welcome_Message);
63 | }
64 |
65 | /// Use this method to detect when a new notification or a schedule is created
66 | @pragma("vm:entry-point")
67 | static Future onNotificationCreatedMethod(
68 | ReceivedNotification receivedNotification) async {
69 | // Nothing (later add action)
70 | }
71 |
72 | /// Use this method to detect every time that a new notification is displayed
73 | @pragma("vm:entry-point")
74 | static Future onNotificationDisplayedMethod(
75 | ReceivedNotification receivedNotification) async {
76 | // Nothing (later add action)
77 | }
78 |
79 | /// Use this method to detect if the user dismissed a notification
80 | @pragma("vm:entry-point")
81 | static Future onDismissActionReceivedMethod(
82 | ReceivedAction receivedAction) async {
83 | // nothing
84 | }
85 |
86 | /// Use this method to detect when the user taps on a notification or action button
87 | @pragma("vm:entry-point")
88 | static Future onActionReceivedMethod(
89 | ReceivedAction receivedAction) async {
90 | // Nothing (later add action)
91 | //
92 | // // Navigate into pages, avoiding to open the notification details page over another details page already opened
93 | // MyApp.navigatorKey.currentState?.pushNamedAndRemoveUntil('/notification-page',
94 | // (route) => (route.settings.name != '/notification-page') || route.isFirst,
95 | // arguments: receivedAction);
96 | }
97 | }
98 |
--------------------------------------------------------------------------------
/lib/src/core/localization/app_locale.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clean_coded/src/core/localization/languages/chinese_language.dart';
2 | import 'package:flutter_clean_coded/src/core/utils/managers/app_enums.dart';
3 |
4 | AppLocale appDefaultLocale = AppLocale.english;
5 |
6 | String getLocaleText(text) {
7 | if (appDefaultLocale == AppLocale.chinese) {
8 | text = getChineseLanguage(text);
9 | }
10 | return text;
11 | }
12 |
13 | // Create a lowercase version of the map for lookups
14 | Map lowercaseChineseTranslations = {
15 | for (var entry in chineseTranslations.entries)
16 | entry.key.toLowerCase(): entry.value
17 | };
18 |
19 | // Function to get the Chinese translation for a given key
20 | String getChineseLanguage(String key) {
21 | String normalizedKey = key.toLowerCase();
22 | return lowercaseChineseTranslations[normalizedKey] ?? key;
23 | }
24 |
--------------------------------------------------------------------------------
/lib/src/core/themes/app_theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clean_coded/src/core/utils/managers/app_constants.dart';
3 |
4 | import 'styles/app_colors.dart';
5 |
6 | ThemeData getApplicationTheme() {
7 | return ThemeData.light(useMaterial3: true).copyWith(
8 | appBarTheme: AppBarTheme(
9 | centerTitle: true,
10 | color: AppColors.white,
11 | surfaceTintColor: AppColors.primaryColor.withOpacity(0.1)),
12 | cardColor: Colors.white,
13 | colorScheme: const ColorScheme.light().copyWith(
14 | primary: AppColors.primaryColor,
15 | ),
16 |
17 | //App Transition
18 | pageTransitionsTheme: const PageTransitionsTheme(builders: {
19 | TargetPlatform.android: OpenUpwardsPageTransitionsBuilder(),
20 | TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
21 | }),
22 |
23 | // main colors of the app
24 | primaryColor: AppColors.primaryColor,
25 | shadowColor: AppColors.lowPriority,
26 | primaryColorDark: AppColors.darkColor,
27 | disabledColor: AppColors.grey,
28 | scaffoldBackgroundColor: AppColors.white,
29 |
30 | //Text Theme
31 | textTheme: ThemeData.light().textTheme.apply(
32 | fontFamily: AppConstants.appFontFamily,
33 | ),
34 | primaryTextTheme: ThemeData.light().textTheme.apply(
35 | fontFamily: AppConstants.appFontFamily,
36 | ),
37 | );
38 | }
39 |
40 | ThemeData getDarkApplicationTheme() {
41 | return ThemeData.dark(useMaterial3: true).copyWith(
42 | appBarTheme: AppBarTheme(
43 | centerTitle: true,
44 | color: AppColors.white,
45 | surfaceTintColor: AppColors.primaryColor.withOpacity(0.1)),
46 | cardColor: Colors.white,
47 | colorScheme: const ColorScheme.dark().copyWith(
48 | primary: AppColors.primaryColor,
49 | ),
50 | );
51 | }
52 |
--------------------------------------------------------------------------------
/lib/src/core/themes/styles/app_colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | abstract class AppColors {
4 | // Primary Colors
5 | static const Color primaryColor = Color(0xff02513E); // Deep green
6 | static const Color primaryDark =
7 | Color(0xff023A2D); // Darker shade of primaryColor
8 | static const Color primaryLight =
9 | Color(0xff3F7B69); // Lighter shade of primaryColor
10 |
11 | // Secondary Colors
12 | static const Color secondaryColor = Color(0xffFFBC00); //#6F5D51
13 | static const Color secondaryColorDark = Color(0xffB77F58); // #B77F58
14 |
15 | // Neutral Colors
16 | static const Color white = Color(0xffffffff);
17 | static const Color grey = Color(0xffAAAAAA); //#AAAAAA
18 | static const Color greyDark = Color(0xff898989);
19 | static const Color blackColor = Color(0xf4000000);
20 |
21 | // Accent Colors
22 | static const Color greenColor = Color(0xf461df25);
23 | static const Color goldColor = Color(0xffdcad43);
24 | static const Color blueColor = Color(0xf42550df);
25 | static const Color purpleColor = Color(0xf4ad42ee);
26 | static const Color redColor = Color(0xf4df2535);
27 |
28 | // Low Priority / Muted Colors
29 | static const Color lowPriority = Color(0xff848191);
30 |
31 | // UI Specific Colors
32 | static const Color darkColor = Color(0xff023020);
33 | static const Color scaffoldColor = Color(0xffdcad43);
34 | static const Color appBarColor = Color(0xffffffff);
35 | }
36 |
37 | extension HexColor on Color {
38 | static Color fromHex(String hexColorString) {
39 | hexColorString = hexColorString.replaceAll('#', '');
40 | if (hexColorString.length == 6) {
41 | hexColorString = "FF$hexColorString"; // 8 char with opacity 100%
42 | }
43 | return Color(int.parse(hexColorString, radix: 16));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/src/core/themes/styles/app_fonts.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FontConstants {
4 | static const String fontFamily = "Montserrat";
5 | }
6 |
7 | class AppFontWeight {
8 | static const FontWeight light = FontWeight.w300;
9 | static const FontWeight regular = FontWeight.w400;
10 | static const FontWeight medium = FontWeight.w600;
11 | static const FontWeight semiBold = FontWeight.w700;
12 | static const FontWeight bold = FontWeight.w900;
13 | }
14 |
15 | class AppFontSize {
16 | static const double s10 = 10.0;
17 | static const double s12 = 12.0;
18 | static const double s14 = 14.0;
19 | static const double s16 = 16.0;
20 | static const double s17 = 17.0;
21 | static const double s18 = 18.0;
22 | static const double s20 = 20.0;
23 | }
24 |
--------------------------------------------------------------------------------
/lib/src/core/themes/styles/app_textstyles.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'app_fonts.dart';
4 |
5 | TextStyle _getTextStyle(
6 | double fontSize, String fontFamily, FontWeight fontWeight, Color color) {
7 | return TextStyle(
8 | fontSize: fontSize,
9 | fontFamily: fontFamily,
10 | color: color,
11 | fontWeight: fontWeight);
12 | }
13 |
14 | // regular style
15 | TextStyle getRegularStyle(
16 | {double fontSize = AppFontSize.s12, required Color color}) {
17 | return _getTextStyle(
18 | fontSize, FontConstants.fontFamily, AppFontWeight.regular, color);
19 | }
20 |
21 | // light text style
22 | TextStyle getLightStyle(
23 | {double fontSize = AppFontSize.s12, required Color color}) {
24 | return _getTextStyle(
25 | fontSize, FontConstants.fontFamily, AppFontWeight.light, color);
26 | }
27 | // bold text style
28 |
29 | TextStyle getBoldStyle(
30 | {double fontSize = AppFontSize.s12, required Color color}) {
31 | return _getTextStyle(
32 | fontSize, FontConstants.fontFamily, AppFontWeight.bold, color);
33 | }
34 |
35 | // semi bold text style
36 |
37 | TextStyle getSemiBoldStyle(
38 | {double fontSize = AppFontSize.s12, required Color color}) {
39 | return _getTextStyle(
40 | fontSize, FontConstants.fontFamily, AppFontWeight.semiBold, color);
41 | }
42 |
43 | // medium text style
44 |
45 | TextStyle getMediumStyle(
46 | {double fontSize = AppFontSize.s12, required Color color}) {
47 | return _getTextStyle(
48 | fontSize, FontConstants.fontFamily, AppFontWeight.medium, color);
49 | }
50 |
51 | TextStyle italic = const TextStyle(
52 | fontSize: 12,
53 | fontStyle: FontStyle.italic,
54 | fontWeight: FontWeight.w100,
55 | );
56 |
--------------------------------------------------------------------------------
/lib/src/core/utils/managers/app_constants.dart:
--------------------------------------------------------------------------------
1 | import 'app_enums.dart';
2 |
3 | abstract class AppConstants {
4 | static const String appTitle = "LKE Group Mobile App";
5 | static const String appVersion = "V1.0.0";
6 | static const String noPhoto = "NOPHOTO";
7 | static const String appFontFamily = "OpenSans";
8 | static const int numOfItemsInNews = 30;
9 | AppLocale appDefaultLocale = AppLocale.english;
10 | }
11 |
--------------------------------------------------------------------------------
/lib/src/core/utils/managers/app_enums.dart:
--------------------------------------------------------------------------------
1 | ///FOR API Usage
2 | enum BookingStatus {
3 | CANCELLED,
4 | PAYMENT_PENDING,
5 | RESERVED,
6 | CONFIRMED,
7 | PAYMENT_FAILED
8 | }
9 |
10 | enum AuthPages {
11 | landing,
12 | login,
13 | register,
14 | }
15 |
16 | enum PaymentStatus { SUCCESS, PENDING, FAILED, REFUNDED }
17 |
18 | enum SearchType {
19 | SHORT,
20 | LONG,
21 | }
22 |
23 | enum AppLocale {
24 | english,
25 | chinese,
26 | }
27 |
28 | enum NotificationsType {
29 | Bookings_Notification,
30 | Welcome_Message,
31 | News_Notification,
32 | Feedback_Notification,
33 | }
34 |
35 | enum AppButtonsType {
36 | Allow_Home_Scrolling,
37 | }
38 |
39 | enum NewsFeedType { PROMOTION, EVENT, OTHERS }
40 |
41 | enum UserType { OWNER, TENANT, ALL, LOADING }
42 |
43 | //For App Logic Usage
44 | enum UserStatusType {
45 | newUser,
46 | existingUser,
47 | verifiedUser,
48 | unverifiedUser,
49 | inCompleteProfileUser,
50 | }
51 |
52 | enum FeedbackType { management, property, booking, payment, withdrawal, other }
53 |
54 | enum DateAvailableStatus { AVAILABLE, OCCUPIED, RESERVED, NOT_AVAILABLE }
55 |
56 | enum UnitListingType {
57 | totalRevenue,
58 | withdraw,
59 | outstanding,
60 | }
61 |
62 | enum PageViewType {
63 | homePage,
64 | feedbackPage,
65 | myBookingPage,
66 | myPropertyPage,
67 | newsPage,
68 | profilePage,
69 | }
70 |
--------------------------------------------------------------------------------
/lib/src/core/utils/managers/app_extensions.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | extension MediaQueryExtension on BuildContext {
4 | Size get _size => MediaQuery.of(this).size;
5 |
6 | double get width => _size.width;
7 |
8 | double get height => _size.height;
9 | }
10 |
11 | extension MonthName on int {
12 | String get dateMonthName {
13 | switch (this) {
14 | case 1:
15 | return 'January';
16 | case 2:
17 | return 'February';
18 | case 3:
19 | return 'March';
20 | case 4:
21 | return 'April';
22 | case 5:
23 | return 'May';
24 | case 6:
25 | return 'June';
26 | case 7:
27 | return 'July';
28 | case 8:
29 | return 'August';
30 | case 9:
31 | return 'September';
32 | case 10:
33 | return 'October';
34 | case 11:
35 | return 'November';
36 | case 12:
37 | return 'December';
38 | default:
39 | return '';
40 | }
41 | }
42 | }
43 |
44 | extension StringCasingExtension on String {
45 | String toCapitalize() =>
46 | length > 0 ? '${this[0].toUpperCase()}${substring(1).toLowerCase()}' : '';
47 |
48 | String toTitleCase() => replaceAll(RegExp(' +'), ' ')
49 | .split(' ')
50 | .map((str) => str.toCapitalize())
51 | .join(' ');
52 | }
53 |
--------------------------------------------------------------------------------
/lib/src/core/utils/managers/app_strings.dart:
--------------------------------------------------------------------------------
1 | abstract class AppSocialLinks {
2 | static const String playStoreURL =
3 | "https://play.google.com/store/apps/details?id=com.seiasia.LKE Group";
4 | static const String appleStoreURL =
5 | "https://apps.apple.com/my/app/LKE Group-homes/id6526475893";
6 | }
7 |
--------------------------------------------------------------------------------
/lib/src/core/utils/observers/app_bloc_obeserver.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_bloc/flutter_bloc.dart';
2 |
3 | import '../../../presentation/Shared/widgets_builder.dart';
4 |
5 | class AppBlocObserver extends BlocObserver {
6 | static init() {
7 | Bloc.observer = AppBlocObserver();
8 | }
9 |
10 | @override
11 | void onCreate(BlocBase bloc) {
12 | super.onCreate(bloc);
13 | printC('onCreate -- ${bloc.runtimeType}');
14 | }
15 |
16 | @override
17 | void onChange(BlocBase bloc, Change change) {
18 | super.onChange(bloc, change);
19 | printC('onChange -- ${bloc.runtimeType}, $change');
20 | }
21 |
22 | @override
23 | void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
24 | printC('onError -- ${bloc.runtimeType}, $error');
25 | super.onError(bloc, error, stackTrace);
26 | }
27 |
28 | @override
29 | void onClose(BlocBase bloc) {
30 | super.onClose(bloc);
31 | printC('onClose -- ${bloc.runtimeType}');
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/lib/src/data/local/constant/local_constants.dart:
--------------------------------------------------------------------------------
1 | class AppLocalConstants {
2 | // LocalStorage
3 | static const String currentLoginUser = "currentUser";
4 | static const String userProfile = "userProfile";
5 | static const String user = "user";
6 |
7 | static const String token = "token";
8 | static const String appLocale = "appLocale";
9 | static const String appNotificationButtons = "appNotificationButtons";
10 | static const String appSettingsButtons = "appSettingsButtons";
11 | static const int tokenMinLen = 100;
12 |
13 | // Heroes
14 | static const String logoHero = "logoHero";
15 | static const String loadingHero = "loadingHero";
16 | static const String cancelButtonHero = "cancelButtonHero";
17 | static const String guestModeEmail = "guest@ayatt.com";
18 | static const String guestModeAuth = "guestpassword";
19 | }
20 |
--------------------------------------------------------------------------------
/lib/src/data/local/db/local_storage_database.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:shared_preferences/shared_preferences.dart';
4 |
5 | class LocalStorageDatabase {
6 | final SharedPreferences sharedPreferences;
7 |
8 | LocalStorageDatabase({required this.sharedPreferences});
9 |
10 | /// Save a key-value pair as a string.
11 | Future save(String key, String value) async {
12 | return await sharedPreferences.setString(key, value);
13 | }
14 |
15 | /// Save a map (converted to JSON string) with a specified key.
16 | Future saveMap(String mapName, Map mapData) async {
17 | String jsonString = jsonEncode(mapData);
18 | return await sharedPreferences.setString(mapName, jsonString);
19 | }
20 |
21 | /// Save a list (converted to JSON string) with a specified key.
22 | Future saveList(String listName, List listData) async {
23 | String jsonString = jsonEncode(listData);
24 | return await sharedPreferences.setString(listName, jsonString);
25 | }
26 |
27 | /// Retrieve a string value by key.
28 | String? get(String key) {
29 | return sharedPreferences.getString(key);
30 | }
31 |
32 | /// Retrieve a map (decoded from JSON string) by key.
33 | Map? getMap(String mapName) {
34 | String? jsonString = sharedPreferences.getString(mapName);
35 | if (jsonString != null) {
36 | return jsonDecode(jsonString) as Map;
37 | }
38 | return null;
39 | }
40 |
41 | /// Retrieve a list (decoded from JSON string) by key.
42 | List? getList(String listName) {
43 | String? jsonString = sharedPreferences.getString(listName);
44 | if (jsonString != null) {
45 | return jsonDecode(jsonString) as List;
46 | }
47 | return null;
48 | }
49 |
50 | /// Remove a value by key.
51 | Future remove(String key) async {
52 | return await sharedPreferences.remove(key);
53 | }
54 |
55 | /// Clear all stored data.
56 | Future clear() async {
57 | return await sharedPreferences.clear();
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/lib/src/data/local/db/secure_storage_database.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter_secure_storage/flutter_secure_storage.dart';
4 | import 'package:flutter_clean_coded/src/core/dependencies/app_dep_injector.dart';
5 |
6 | class SecureStorageDatabase {
7 | final FlutterSecureStorage secureStorage;
8 |
9 | SecureStorageDatabase({required this.secureStorage});
10 |
11 | /// Save a key-value pair as a string.
12 | Future save(String key, String value) async {
13 | await secureStorage.write(key: key, value: value);
14 | }
15 |
16 | /// Save a map (converted to JSON string) with a specified key.
17 | Future saveMap(String mapName, Map mapData) async {
18 | String jsonString = jsonEncode(mapData);
19 | await secureStorage.write(key: mapName, value: jsonString);
20 | }
21 |
22 | /// Save a list (converted to JSON string) with a specified key.
23 | Future saveList(String listName, List listData) async {
24 | String jsonString = jsonEncode(listData);
25 | await secureStorage.write(key: listName, value: jsonString);
26 | }
27 |
28 | /// Retrieve a string value by key.
29 | Future get(String key) async {
30 | return await secureStorage.read(key: key);
31 | }
32 |
33 | /// Retrieve a map (decoded from JSON string) by key.
34 | Future