├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ ├── google-services.json
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── mvvm_template
│ │ │ │ └── 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
└── settings.gradle
├── 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
│ ├── GoogleService-Info.plist
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
└── firebase_app_id_file.json
├── lib
├── app.dart
├── core
│ ├── Routes
│ │ ├── route_generator.dart
│ │ └── routes.dart
│ ├── config
│ │ └── config.dart
│ ├── constants
│ │ ├── api_end_points.dart
│ │ ├── constants.dart
│ │ ├── my_utils.dart
│ │ ├── strings.dart
│ │ └── styles.dart
│ ├── enums
│ │ ├── env.dart
│ │ └── view_state.dart
│ ├── extensions
│ │ └── double_extensions.dart
│ ├── models
│ │ ├── body
│ │ │ ├── login_body.dart
│ │ │ ├── reset_password_body.dart
│ │ │ ├── signup_body.dart
│ │ │ └── update_pasword_body.dart
│ │ ├── other
│ │ │ └── onboarding.dart
│ │ ├── responses
│ │ │ ├── auth_response.dart
│ │ │ ├── base_responses
│ │ │ │ ├── base_response.dart
│ │ │ │ └── request_response.dart
│ │ │ ├── onboarding_response.dart
│ │ │ └── user_profile_response.dart
│ │ └── user
│ │ │ └── profile.dart
│ ├── others
│ │ ├── base_view_model.dart
│ │ └── logger_customization
│ │ │ ├── custom_log_output.dart
│ │ │ ├── custom_log_printer.dart
│ │ │ └── custom_logger.dart
│ ├── services
│ │ ├── api_services.dart
│ │ ├── authentication
│ │ │ ├── custom backend
│ │ │ │ └── auth_service.dart
│ │ │ └── firebase
│ │ │ │ └── fire_auth.dart
│ │ ├── database
│ │ │ ├── custom backend
│ │ │ │ └── database_service.dart
│ │ │ └── firestore
│ │ │ │ └── firebase_db_service.dart
│ │ ├── date_time_service.dart
│ │ ├── device_info_service.dart
│ │ ├── file_picker_service.dart
│ │ ├── local_storage_service.dart
│ │ ├── location_service.dart
│ │ ├── navigation_service.dart
│ │ ├── notification_service.dart
│ │ ├── url_service.dart
│ │ └── user_data_service.dart
│ └── theme
│ │ ├── app_colors.dart
│ │ └── custom_theme.dart
├── firebase_options.dart
├── locator.dart
├── main.dart
└── ui
│ ├── custom_widgets
│ ├── bottom_nav_bar
│ │ └── fab_bar.dart
│ ├── dialogs
│ │ ├── auth_dialog.dart
│ │ ├── network_error_dialog.dart
│ │ ├── request_failed_dialog.dart
│ │ └── request_success_dialog.dart
│ ├── gender_radio_group.dart
│ ├── image_container.dart
│ ├── shimmer.dart
│ ├── single_radio_button.dart
│ └── text_fields
│ │ └── custom_text_field.dart
│ └── screens
│ ├── authentication
│ ├── forget_password
│ │ ├── forget_password_screen.dart
│ │ └── forget_password_view_model.dart
│ ├── login_screen
│ │ ├── login_screen.dart
│ │ └── login_view_model.dart
│ └── signup_screen
│ │ ├── signup_screen.dart
│ │ └── signup_view_model.dart
│ ├── home_screen
│ ├── home_screen.dart
│ └── home_screen_view_model.dart
│ ├── navigation
│ ├── navigation_screen.dart
│ └── navigation_view_model.dart
│ ├── onboarding
│ ├── onboarding_screen.dart
│ └── onboarding_view_model.dart
│ ├── pin_location
│ ├── pin_location_screen.dart
│ └── pin_location_view_model.dart
│ └── splash_screen.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
│ ├── GoogleService-Info.plist
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
└── firebase_app_id_file.json
├── pubspec.lock
├── pubspec.yaml
├── web
├── 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.
5 |
6 | version:
7 | revision: eb6d86ee27deecba4a83536aa20f366a6044895c
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: eb6d86ee27deecba4a83536aa20f366a6044895c
17 | base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
18 | - platform: android
19 | create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
20 | base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
21 | - platform: ios
22 | create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
23 | base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
24 | - platform: linux
25 | create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
26 | base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
27 | - platform: macos
28 | create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
29 | base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
30 | - platform: web
31 | create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
32 | base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
33 | - platform: windows
34 | create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
35 | base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # mvvm_template
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | // START: FlutterFire Configuration
26 | apply plugin: 'com.google.gms.google-services'
27 | apply plugin: 'com.google.firebase.firebase-perf'
28 | apply plugin: 'com.google.firebase.crashlytics'
29 | // END: FlutterFire Configuration
30 | apply plugin: 'kotlin-android'
31 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
32 |
33 | android {
34 | compileSdkVersion flutter.compileSdkVersion
35 | ndkVersion flutter.ndkVersion
36 |
37 | compileOptions {
38 | sourceCompatibility JavaVersion.VERSION_1_8
39 | targetCompatibility JavaVersion.VERSION_1_8
40 | }
41 |
42 | kotlinOptions {
43 | jvmTarget = '1.8'
44 | }
45 |
46 | sourceSets {
47 | main.java.srcDirs += 'src/main/kotlin'
48 | }
49 |
50 | defaultConfig {
51 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
52 | applicationId "com.example.mvvm_template"
53 | // You can update the following values to match your application needs.
54 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
55 | minSdkVersion flutter.minSdkVersion
56 | targetSdkVersion flutter.targetSdkVersion
57 | versionCode flutterVersionCode.toInteger()
58 | versionName flutterVersionName
59 | }
60 |
61 | buildTypes {
62 | release {
63 | // TODO: Add your own signing config for the release build.
64 | // Signing with the debug keys for now, so `flutter run --release` works.
65 | signingConfig signingConfigs.debug
66 | }
67 | }
68 | }
69 |
70 | flutter {
71 | source '../..'
72 | }
73 |
74 | dependencies {
75 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
76 | }
77 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "504449834445",
4 | "project_id": "mvvm-template-apptex",
5 | "storage_bucket": "mvvm-template-apptex.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:504449834445:android:152165f721d869d0afb884",
11 | "android_client_info": {
12 | "package_name": "com.example.mvvm_template"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "504449834445-95g3imoimm81kcnt8ur6gor90paq40d2.apps.googleusercontent.com",
18 | "client_type": 3
19 | }
20 | ],
21 | "api_key": [
22 | {
23 | "current_key": "AIzaSyAbJNhCm5SEir-NYpkrg1m3Flj5pxGERDk"
24 | }
25 | ],
26 | "services": {
27 | "appinvite_service": {
28 | "other_platform_oauth_client": [
29 | {
30 | "client_id": "504449834445-95g3imoimm81kcnt8ur6gor90paq40d2.apps.googleusercontent.com",
31 | "client_type": 3
32 | }
33 | ]
34 | }
35 | }
36 | }
37 | ],
38 | "configuration_version": "1"
39 | }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/mvvm_template/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.mvvm_template
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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | // START: FlutterFire Configuration
11 | classpath 'com.google.gms:google-services:4.3.10'
12 | classpath 'com.google.firebase:perf-plugin:1.4.1'
13 | classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
14 | // END: FlutterFire Configuration
15 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | google()
22 | mavenCentral()
23 | }
24 | }
25 |
26 | rootProject.buildDir = '../build'
27 | subprojects {
28 | project.buildDir = "${rootProject.buildDir}/${project.name}"
29 | }
30 | subprojects {
31 | project.evaluationDependsOn(':app')
32 | }
33 |
34 | task clean(type: Delete) {
35 | delete rootProject.buildDir
36 | }
37 |
--------------------------------------------------------------------------------
/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.4-all.zip
6 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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, '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 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/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 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/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 |
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 |
--------------------------------------------------------------------------------
/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShahSomething/mvvm-templete/68d28a8453ecfe7d4bb9e6ae81741eb57709e8dd/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/GoogleService-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CLIENT_ID
6 | 504449834445-krdr51q5p2g13sdqn3qunj3irkc8o858.apps.googleusercontent.com
7 | REVERSED_CLIENT_ID
8 | com.googleusercontent.apps.504449834445-krdr51q5p2g13sdqn3qunj3irkc8o858
9 | API_KEY
10 | AIzaSyAMB1jzMjV-reKKlWSjo3NhC1mC6n1XTxM
11 | GCM_SENDER_ID
12 | 504449834445
13 | PLIST_VERSION
14 | 1
15 | BUNDLE_ID
16 | com.example.mvvmTemplate
17 | PROJECT_ID
18 | mvvm-template-apptex
19 | STORAGE_BUCKET
20 | mvvm-template-apptex.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:504449834445:ios:f920537a3e69af86afb884
33 |
34 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Mvvm Template
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | mvvm_template
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 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/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:504449834445:ios:f920537a3e69af86afb884",
5 | "FIREBASE_PROJECT_ID": "mvvm-template-apptex",
6 | "GCM_SENDER_ID": "504449834445"
7 | }
--------------------------------------------------------------------------------
/lib/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_screenutil/flutter_screenutil.dart';
3 | import 'package:mvvm_template/core/Routes/route_generator.dart';
4 | import 'package:mvvm_template/core/Routes/routes.dart';
5 | import 'package:mvvm_template/core/services/navigation_service.dart';
6 | import 'package:mvvm_template/core/theme/custom_theme.dart';
7 |
8 | class MyApp extends StatelessWidget {
9 | final String title;
10 |
11 | //TODO update the _designWidth and _designHeight according to your figma design
12 | static const double _designWidth = 375;
13 | static const double _designHeight = 812;
14 | const MyApp({required this.title, Key? key}) : super(key: key);
15 | @override
16 | Widget build(BuildContext context) {
17 | return ScreenUtilInit(
18 | designSize: const Size(_designWidth, _designHeight),
19 | builder: (context, widget) => MaterialApp(
20 | navigatorKey: NavigationService.navigatorKey,
21 | onGenerateRoute: RouteGenerator.generateRoute,
22 | locale: const Locale("en"),
23 | title: title,
24 | theme: CustomTheme.lightTheme,
25 | themeMode: ThemeMode.light,
26 | initialRoute: AppRoutes.splashScreenRoute,
27 | debugShowCheckedModeBanner: false,
28 | ),
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/lib/core/Routes/route_generator.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:mvvm_template/core/Routes/routes.dart';
3 | import 'package:mvvm_template/core/constants/styles.dart';
4 | import 'package:mvvm_template/core/others/logger_customization/custom_logger.dart';
5 | import 'package:mvvm_template/ui/screens/authentication/forget_password/forget_password_screen.dart';
6 | import 'package:mvvm_template/ui/screens/authentication/login_screen/login_screen.dart';
7 | import 'package:mvvm_template/ui/screens/navigation/navigation_screen.dart';
8 | import 'package:mvvm_template/ui/screens/onboarding/onboarding_screen.dart';
9 | import 'package:mvvm_template/ui/screens/splash_screen.dart';
10 |
11 | class RouteGenerator {
12 | static final log = CustomLogger(className: 'RouteGenerator');
13 | static Route generateRoute(RouteSettings settings) {
14 | final arguments = settings.arguments;
15 |
16 | log.wtf("@RouteGenerator/generateRoute ${settings.name}");
17 | switch (settings.name) {
18 | case "/":
19 | return MaterialPageRoute(
20 | settings: settings,
21 | builder: (_) => const LoginScreen(),
22 | );
23 | case AppRoutes.loginRoute:
24 | arguments;
25 | return MaterialPageRoute(
26 | settings: settings,
27 | builder: (_) => const LoginScreen(),
28 | );
29 | case AppRoutes.splashScreenRoute:
30 | arguments;
31 | return MaterialPageRoute(
32 | settings: settings,
33 | builder: (_) => const SplashScreen(),
34 | );
35 | case AppRoutes.onboardingRoute:
36 | var providedArguments = arguments as dynamic;
37 | return MaterialPageRoute(
38 | settings: settings,
39 | builder: (_) => OnboardingScreen(
40 | onboardingList: providedArguments.onboardingList,
41 | preCachedImages: providedArguments.preCachedImages,
42 | currentIndex: providedArguments.currentIndex,
43 | ),
44 | );
45 | case AppRoutes.navigationRoute:
46 | arguments;
47 | return MaterialPageRoute(
48 | settings: settings,
49 | builder: (_) => const NavigationScreen(),
50 | );
51 | case AppRoutes.forgotPasswordRoute:
52 | arguments;
53 | return MaterialPageRoute(
54 | settings: settings,
55 | builder: (_) => const ForgetPasswordScreen(),
56 | );
57 |
58 | //TODO add all the routes here
59 | }
60 |
61 | log.wtf(
62 | "@RouteGenerator/generateRoute Error : Route not defined => (${settings.name})");
63 | return MaterialPageRoute(
64 | settings: settings,
65 | builder: (context) => Scaffold(
66 | body: Container(
67 | color: Colors.red,
68 | height: MediaQuery.of(context).size.height,
69 | width: MediaQuery.of(context).size.width,
70 | child: Center(
71 | child: Text(
72 | "Route Error : Route not defined",
73 | style: myStyle(12, true, color: Colors.white),
74 | ),
75 | ),
76 | ),
77 | ),
78 | );
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/lib/core/Routes/routes.dart:
--------------------------------------------------------------------------------
1 | class AppRoutes {
2 | static const splashScreenRoute = '/splash-screen';
3 | static const loginRoute = '/login-screen';
4 | static const signUpRoute = '/signup-screen';
5 | static const onboardingRoute = '/onboarding-screen';
6 | static const navigationRoute = '/navigation-screen';
7 | static const forgotPasswordRoute = '/forgot-password-screen';
8 | static const homePageRoute = '/home';
9 | static const profilePageRoute = '/profile';
10 | static const settingsPageRoute = '/settings';
11 | static const notificationsPageRoute = '/notifications';
12 | static const aboutPageRoute = '/about';
13 | }
14 |
--------------------------------------------------------------------------------
/lib/core/config/config.dart:
--------------------------------------------------------------------------------
1 | import 'package:mvvm_template/core/enums/env.dart';
2 |
3 | class Config {
4 | final Env _env;
5 | final String _devBaseUrl = '';
6 | final String _testBaseUrl = '';
7 | final String _productionBaseUrl = '';
8 | late String _baseUrl;
9 |
10 |
11 | /// Getters
12 | Env get env => _env;
13 | String get baseUrl => _baseUrl;
14 |
15 | /// Constructor
16 | Config(this._env) {
17 | _setupBaseUrl();
18 | }
19 |
20 | _setupBaseUrl() {
21 | if (_env == Env.production) {
22 | _baseUrl = _productionBaseUrl;
23 | } else if (_env == Env.production) {
24 | _baseUrl = _testBaseUrl;
25 | } else if (_env == Env.production) {
26 | _baseUrl = _devBaseUrl;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/lib/core/constants/api_end_points.dart:
--------------------------------------------------------------------------------
1 | class EndPoints {
2 | static const userProfile = 'user_profile';
3 | static const onboardingData = 'onboarding_data';
4 | static const fcmToken = 'fcm_token';
5 | static const clearFcmToken = 'clear_fcm_token';
6 | static const login = 'login';
7 | static const signUp = 'sign_up';
8 | static const resetPassword = 'reset_password';
9 | }
10 |
--------------------------------------------------------------------------------
/lib/core/constants/constants.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:mvvm_template/core/constants/strings.dart';
3 | import 'package:mvvm_template/core/theme/app_colors.dart';
4 |
5 | class Constants {
6 | static Images appImages = Images();
7 | static AppIcons appIcons = AppIcons();
8 | static AppShadows appShadows = AppShadows();
9 | }
10 |
11 | class Images {
12 | final String loginBackground = '$assetsPath/images/login_bg.png';
13 | }
14 |
15 | class AppIcons {
16 | final String appLogo = '$assetsPath/icons/logo.png';
17 | final String overview = '$assetsPath/icons/overview.png';
18 | final String users = '$assetsPath/icons/users.png';
19 | final String caregivers = '$assetsPath/icons/caregivers.png';
20 | final String document = '$assetsPath/icons/document.png';
21 | final String dollar = '$assetsPath/icons/dollar.png';
22 | final String bottomHomeIcon = "$assetsPath/bottom_home_icon.png";
23 | final String bottomCardIcon = "${assetsPath}bottom_card_icon.png";
24 | final String bottomCategoryIcon = "${assetsPath}bottom_category_icon.png";
25 | final String bottomProfileIcon = "${assetsPath}bottom_profile_icon.png";
26 | }
27 |
28 | class AppShadows {
29 | final List cardShadow = [
30 | BoxShadow(
31 | color: AppColors.blackColor.withOpacity(0.05),
32 | spreadRadius: -1,
33 | blurRadius: 8,
34 | offset: const Offset(0, 5),
35 | )
36 | ];
37 | final BoxShadow backButtonShadow = const BoxShadow(
38 | color: AppColors.greyColor,
39 | spreadRadius: 2,
40 | blurRadius: 30,
41 | blurStyle: BlurStyle.normal,
42 | offset: Offset(0, 2),
43 | );
44 |
45 | final BoxShadow inputFieldShadow = const BoxShadow(
46 | color: AppColors.greyColor,
47 | spreadRadius: 10,
48 | blurRadius: 30,
49 | blurStyle: BlurStyle.normal,
50 | offset: Offset(0, 2),
51 | );
52 | }
53 |
--------------------------------------------------------------------------------
/lib/core/constants/strings.dart:
--------------------------------------------------------------------------------
1 | //TODO put all the constant strings here
2 |
3 | const String assetsPath = "assets";
4 |
5 | const welcomeMsg = 'Welcome message';
6 |
--------------------------------------------------------------------------------
/lib/core/constants/styles.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_fonts/google_fonts.dart';
3 |
4 | //TODO put all the custom text styles here
5 |
6 | TextStyle myStyle(
7 | double size,
8 | bool isBold, {
9 | Color color = Colors.black,
10 | FontWeight? overrideBold = FontWeight.bold,
11 | }) {
12 | return GoogleFonts.lato(
13 | fontSize: size,
14 | fontWeight: (isBold) ? overrideBold : FontWeight.normal,
15 | color: color);
16 | }
17 |
--------------------------------------------------------------------------------
/lib/core/enums/env.dart:
--------------------------------------------------------------------------------
1 | enum Env { dev, test, production }
2 |
--------------------------------------------------------------------------------
/lib/core/enums/view_state.dart:
--------------------------------------------------------------------------------
1 | ///
2 | /// [idle] : When data is ready to renders on the UI.
3 | ///
4 | /// [busy] : When there is some process(loading data, performing
5 | /// any time taking task) going on and to block new process requests.
6 | ///
7 | enum ViewState {
8 | idle,
9 | busy,
10 | loading,
11 | }
12 |
--------------------------------------------------------------------------------
/lib/core/extensions/double_extensions.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | extension DoubleExtension on double {
4 | /// Rounds the double to a specific decimal place
5 | double roundedPrecision(int places) {
6 | double mod = pow(10.0, places) as double;
7 | return ((this * mod).round().toDouble() / mod);
8 | }
9 |
10 | /// good for string output because it can remove trailing zeros
11 | /// and sometimes periods. Or optionally display the exact number of trailing
12 | /// zeros
13 | /// Format: input number: 1234567, Output: 1,234,567
14 | String roundedPrecisionToString(
15 | int places, {
16 | bool trailingZeros = false,
17 | }) {
18 | double mod = pow(10.0, places) as double;
19 | double round = ((this * mod).round().toDouble() / mod);
20 | String doubleToString =
21 | trailingZeros ? round.toStringAsFixed(places) : round.toString();
22 | if (!trailingZeros) {
23 | RegExp trailingZeros = RegExp(r'^[0-9]+.0+$');
24 | if (trailingZeros.hasMatch(doubleToString)) {
25 | doubleToString = doubleToString.split('.')[0];
26 | }
27 | }
28 |
29 | RegExp reg = RegExp(r'(\d{1,3})(?=(\d{3})+(?!\d))');
30 | mathFunc(Match match) => '${match[1]},';
31 |
32 | return doubleToString.replaceAllMapped(reg, mathFunc);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/core/models/body/login_body.dart:
--------------------------------------------------------------------------------
1 | class LoginBody {
2 | String? email;
3 | String? password;
4 |
5 | LoginBody({this.email, this.password});
6 |
7 | toJson() => {
8 | 'email': email,
9 | 'password': password,
10 | };
11 | }
12 |
--------------------------------------------------------------------------------
/lib/core/models/body/reset_password_body.dart:
--------------------------------------------------------------------------------
1 | class ResetPasswordBody {
2 | String? email;
3 |
4 | ResetPasswordBody({
5 | this.email,
6 | });
7 |
8 | toJson() => {'email': email};
9 | }
10 |
--------------------------------------------------------------------------------
/lib/core/models/body/signup_body.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:dio/dio.dart' as dio;
4 |
5 | class SignUpBody {
6 | String? email;
7 | String? password;
8 | String? name;
9 | String? location;
10 | String? gender;
11 | String? phone;
12 | File? image;
13 | // String? fcmToken;
14 |
15 | /// Other fields to be added as well.
16 | SignUpBody({
17 | this.email,
18 | this.password,
19 | this.gender,
20 | this.location,
21 | this.name,
22 | this.phone,
23 | this.image,
24 | // this.fcmToken,
25 | });
26 |
27 | toJson() async {
28 | return {
29 | 'email': email,
30 | 'password': password,
31 | 'name': name,
32 | 'location': location,
33 | 'gender': gender,
34 | 'phone': phone,
35 | 'image':
36 | image != null ? await dio.MultipartFile.fromFile(image!.path) : null,
37 | // 'fcm_token': this.fcmToken,
38 | };
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/core/models/body/update_pasword_body.dart:
--------------------------------------------------------------------------------
1 | class UpdatePasswordBody {
2 | String? oldPassword;
3 | String? newPassword;
4 |
5 | UpdatePasswordBody({this.oldPassword, this.newPassword});
6 |
7 | toJson() => {
8 | 'oldPassword': oldPassword,
9 | 'newPassword': newPassword,
10 | };
11 | }
12 |
--------------------------------------------------------------------------------
/lib/core/models/other/onboarding.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Onboarding {
4 | late String? imgUrl;
5 | late String? title;
6 |
7 | Onboarding(this.imgUrl, this.title);
8 |
9 | Onboarding.fromJson(json) {
10 | debugPrint('$json');
11 | title = json['title'];
12 | imgUrl = json['image_url'];
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/core/models/responses/auth_response.dart:
--------------------------------------------------------------------------------
1 | import 'package:mvvm_template/core/models/responses/base_responses/base_response.dart';
2 |
3 | class AuthResponse extends BaseResponse {
4 | String? accessToken;
5 |
6 | /// Default constructor
7 | AuthResponse(success, {error, this.accessToken})
8 | : super(success, error: error);
9 |
10 | /// Named Constructor
11 | AuthResponse.fromJson(json) : super.fromJson(json) {
12 | if (json['body'] != null) accessToken = json['body']['token'];
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/core/models/responses/base_responses/base_response.dart:
--------------------------------------------------------------------------------
1 | class BaseResponse {
2 | late bool success;
3 | String? error;
4 |
5 | BaseResponse(this.success, {this.error});
6 |
7 | BaseResponse.fromJson(json) {
8 | success = json['success'];
9 | error = json['error'];
10 | }
11 |
12 | toJson() {
13 | return {
14 | 'success': success,
15 | 'error': error,
16 | };
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/core/models/responses/base_responses/request_response.dart:
--------------------------------------------------------------------------------
1 | class RequestResponse {
2 | late bool success;
3 | String? error;
4 | late Map data;
5 |
6 | RequestResponse(this.success, {this.error});
7 |
8 | RequestResponse.fromJson(json) {
9 | data = json;
10 | success = json['success'];
11 | error = json['error'];
12 | }
13 |
14 | toJson() {
15 | return {
16 | 'success': success,
17 | 'error': error,
18 | 'body': data,
19 | };
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/core/models/responses/onboarding_response.dart:
--------------------------------------------------------------------------------
1 | import 'package:mvvm_template/core/models/other/onboarding.dart';
2 | import 'package:mvvm_template/core/models/responses/base_responses/base_response.dart';
3 |
4 | class OnboardingResponse extends BaseResponse {
5 | late List onboardingsList = [];
6 |
7 | /// Default constructor
8 | OnboardingResponse(success, {error}) : super(success, error: error);
9 |
10 | /// Named Constructor
11 | OnboardingResponse.fromJson(json) : super.fromJson(json) {
12 | if (json['body'] != null) {
13 | json['body']?['boarding']?.forEach((onboardingJson) {
14 | onboardingsList.add(Onboarding.fromJson(onboardingJson));
15 | });
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/core/models/responses/user_profile_response.dart:
--------------------------------------------------------------------------------
1 | import 'package:mvvm_template/core/models/responses/base_responses/base_response.dart';
2 | import 'package:mvvm_template/core/models/user/profile.dart';
3 |
4 | class UserProfileResponse extends BaseResponse {
5 | UserProfile? profile;
6 |
7 | UserProfileResponse(success, {error}) : super(success, error: error);
8 |
9 | UserProfileResponse.fromJson(json) : super.fromJson(json) {
10 | if (json['body'] != null) {
11 | profile = UserProfile.fromJson(json['body']['user']);
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/core/models/user/profile.dart:
--------------------------------------------------------------------------------
1 | import 'package:dio/dio.dart' as dio;
2 |
3 | class UserProfile {
4 | String? uid;
5 | String? name;
6 | String? email;
7 | String? fcmToken;
8 | String? emailVerifiedAt;
9 | String? phone;
10 | String? imageUrl;
11 | String? gender;
12 | String? location;
13 | String? mobile;
14 | String? dob;
15 |
16 | UserProfile(
17 | {this.name,
18 | this.email,
19 | this.fcmToken,
20 | this.emailVerifiedAt,
21 | this.phone,
22 | this.imageUrl,
23 | this.gender,
24 | this.location,
25 | this.mobile,
26 | this.dob,
27 | this.uid});
28 |
29 | UserProfile.fromJson(Map json) {
30 | name = json['name'];
31 | email = json['email'];
32 | fcmToken = json['fcm_token'];
33 | emailVerifiedAt = json['email_verified_at'];
34 | phone = json['phone'];
35 | imageUrl = json['image_url'];
36 | gender = json['gender'];
37 | location = json['location'];
38 | dob = json['dob'];
39 | uid = json['uid'];
40 | }
41 |
42 | Future