diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..24476c5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,44 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..814aa47
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,33 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled.
+
+version:
+ revision: d9111f64021372856901a1fd5bfbc386cade3318
+ channel: stable
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: d9111f64021372856901a1fd5bfbc386cade3318
+ base_revision: d9111f64021372856901a1fd5bfbc386cade3318
+ - platform: android
+ create_revision: d9111f64021372856901a1fd5bfbc386cade3318
+ base_revision: d9111f64021372856901a1fd5bfbc386cade3318
+ - platform: ios
+ create_revision: d9111f64021372856901a1fd5bfbc386cade3318
+ base_revision: d9111f64021372856901a1fd5bfbc386cade3318
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..61b6c4d
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,29 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..991c0bc
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,72 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+apply plugin: 'com.google.gms.google-services'
+
+android {
+ compileSdkVersion localProperties.getProperty('flutter.compileSdkVersion').toInteger()
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.hmg.hmgDr"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
+ minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger()
+ targetSdkVersion localProperties.getProperty('flutter.targetSdkVersion').toInteger()
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/android/app/google-services.json b/android/app/google-services.json
new file mode 100644
index 0000000..e656079
--- /dev/null
+++ b/android/app/google-services.json
@@ -0,0 +1,82 @@
+{
+ "project_info": {
+ "project_number": "934365232760",
+ "project_id": "hmg-dr-app",
+ "storage_bucket": "hmg-dr-app.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:934365232760:android:024b3569972f1c09f9778d",
+ "android_client_info": {
+ "package_name": "COM.HMG.HMGDR"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCpYwrmuntOBdZv6GV6KEnLj8nQRvEnZ6I"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ },
+ {
+ "client_id": "934365232760-57v2ld1qqulc4nt4o5pgjfbpc47fj3qf.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "COM.HMG.HMGDR"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:934365232760:android:e0e185e68c0d7690f9778d",
+ "android_client_info": {
+ "package_name": "com.hmg.hmgDr"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCpYwrmuntOBdZv6GV6KEnLj8nQRvEnZ6I"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ },
+ {
+ "client_id": "934365232760-57v2ld1qqulc4nt4o5pgjfbpc47fj3qf.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "COM.HMG.HMGDR"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..865d5f3
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..ba95d67
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/hmg_flutter_template/MainActivity.kt b/android/app/src/main/kotlin/com/example/hmg_flutter_template/MainActivity.kt
new file mode 100644
index 0000000..30866e3
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/hmg_flutter_template/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.hmg_flutter_template
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..865d5f3
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..1d20ff2
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,32 @@
+buildscript {
+ ext.kotlin_version = '1.6.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.1.2'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ classpath 'com.google.gms:google-services:4.3.3'
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..cb24abd
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..44e62bc
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/assets/fonts/DoctorApp.ttf b/assets/fonts/DoctorApp.ttf
new file mode 100644
index 0000000..4ef2028
Binary files /dev/null and b/assets/fonts/DoctorApp.ttf differ
diff --git a/assets/fonts/Poppins/Poppins-Bold.ttf b/assets/fonts/Poppins/Poppins-Bold.ttf
new file mode 100644
index 0000000..b94d47f
Binary files /dev/null and b/assets/fonts/Poppins/Poppins-Bold.ttf differ
diff --git a/assets/fonts/Poppins/Poppins-Medium.ttf b/assets/fonts/Poppins/Poppins-Medium.ttf
new file mode 100644
index 0000000..e90e87e
Binary files /dev/null and b/assets/fonts/Poppins/Poppins-Medium.ttf differ
diff --git a/assets/fonts/Poppins/Poppins-Regular.ttf b/assets/fonts/Poppins/Poppins-Regular.ttf
new file mode 100644
index 0000000..be06e7f
Binary files /dev/null and b/assets/fonts/Poppins/Poppins-Regular.ttf differ
diff --git a/assets/fonts/Poppins/Poppins-SemiBold.ttf b/assets/fonts/Poppins/Poppins-SemiBold.ttf
new file mode 100644
index 0000000..8987d80
Binary files /dev/null and b/assets/fonts/Poppins/Poppins-SemiBold.ttf differ
diff --git a/assets/fonts/Work_Sans/OFL.txt b/assets/fonts/Work_Sans/OFL.txt
new file mode 100644
index 0000000..5c0354e
--- /dev/null
+++ b/assets/fonts/Work_Sans/OFL.txt
@@ -0,0 +1,93 @@
+Copyright (c) 2014-2015 Wei Huang (wweeiihhuuaanngg@gmail.com)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/assets/fonts/Work_Sans/WorkSans-Black.ttf b/assets/fonts/Work_Sans/WorkSans-Black.ttf
new file mode 100644
index 0000000..fb74420
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-Black.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-Bold.ttf b/assets/fonts/Work_Sans/WorkSans-Bold.ttf
new file mode 100644
index 0000000..7caa359
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-Bold.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-ExtraBold.ttf b/assets/fonts/Work_Sans/WorkSans-ExtraBold.ttf
new file mode 100644
index 0000000..fd4b912
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-ExtraBold.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-ExtraLight.ttf b/assets/fonts/Work_Sans/WorkSans-ExtraLight.ttf
new file mode 100644
index 0000000..b97cf8c
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-ExtraLight.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-Light.ttf b/assets/fonts/Work_Sans/WorkSans-Light.ttf
new file mode 100644
index 0000000..3e981fb
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-Light.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-Medium.ttf b/assets/fonts/Work_Sans/WorkSans-Medium.ttf
new file mode 100644
index 0000000..7a2645b
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-Medium.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-Regular.ttf b/assets/fonts/Work_Sans/WorkSans-Regular.ttf
new file mode 100644
index 0000000..0ac4520
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-Regular.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-SemiBold.ttf b/assets/fonts/Work_Sans/WorkSans-SemiBold.ttf
new file mode 100644
index 0000000..589a5f5
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-SemiBold.ttf differ
diff --git a/assets/fonts/Work_Sans/WorkSans-Thin.ttf b/assets/fonts/Work_Sans/WorkSans-Thin.ttf
new file mode 100644
index 0000000..011fcd3
Binary files /dev/null and b/assets/fonts/Work_Sans/WorkSans-Thin.ttf differ
diff --git a/assets/images/loading_mohemm_logo.gif b/assets/images/loading_mohemm_logo.gif
new file mode 100644
index 0000000..ffefdb0
Binary files /dev/null and b/assets/images/loading_mohemm_logo.gif differ
diff --git a/assets/images/login/more_icon.png b/assets/images/login/more_icon.png
new file mode 100644
index 0000000..b696d34
Binary files /dev/null and b/assets/images/login/more_icon.png differ
diff --git a/assets/images/login/verify_face.svg b/assets/images/login/verify_face.svg
new file mode 100644
index 0000000..e50d1a6
--- /dev/null
+++ b/assets/images/login/verify_face.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/images/login/verify_sms.svg b/assets/images/login/verify_sms.svg
new file mode 100644
index 0000000..ae5fa9f
--- /dev/null
+++ b/assets/images/login/verify_sms.svg
@@ -0,0 +1,11 @@
+
diff --git a/assets/images/login/verify_thumb.svg b/assets/images/login/verify_thumb.svg
new file mode 100644
index 0000000..e626baf
--- /dev/null
+++ b/assets/images/login/verify_thumb.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/images/login/verify_whatsapp.svg b/assets/images/login/verify_whatsapp.svg
new file mode 100644
index 0000000..09ac85c
--- /dev/null
+++ b/assets/images/login/verify_whatsapp.svg
@@ -0,0 +1,12 @@
+
diff --git a/assets/images/svgs/bottom_nav/home-active.svg b/assets/images/svgs/bottom_nav/home-active.svg
new file mode 100644
index 0000000..8357b01
--- /dev/null
+++ b/assets/images/svgs/bottom_nav/home-active.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/bottom_nav/reader-active.svg b/assets/images/svgs/bottom_nav/reader-active.svg
new file mode 100644
index 0000000..36e7657
--- /dev/null
+++ b/assets/images/svgs/bottom_nav/reader-active.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/images/svgs/bottom_nav/reply-active.svg b/assets/images/svgs/bottom_nav/reply-active.svg
new file mode 100644
index 0000000..3fc5bd0
--- /dev/null
+++ b/assets/images/svgs/bottom_nav/reply-active.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/images/svgs/bottom_nav/schedule-active.svg b/assets/images/svgs/bottom_nav/schedule-active.svg
new file mode 100644
index 0000000..a48e165
--- /dev/null
+++ b/assets/images/svgs/bottom_nav/schedule-active.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/female avatar.svg b/assets/images/svgs/female avatar.svg
new file mode 100644
index 0000000..1cf831e
--- /dev/null
+++ b/assets/images/svgs/female avatar.svg
@@ -0,0 +1,57 @@
+
diff --git a/assets/images/svgs/female.svg b/assets/images/svgs/female.svg
new file mode 100644
index 0000000..307729c
--- /dev/null
+++ b/assets/images/svgs/female.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/inpatient.svg b/assets/images/svgs/inpatient.svg
new file mode 100644
index 0000000..0f6b79b
--- /dev/null
+++ b/assets/images/svgs/inpatient.svg
@@ -0,0 +1,4 @@
+
diff --git a/assets/images/svgs/male avatar.svg b/assets/images/svgs/male avatar.svg
new file mode 100644
index 0000000..ff17741
--- /dev/null
+++ b/assets/images/svgs/male avatar.svg
@@ -0,0 +1,56 @@
+
diff --git a/assets/images/svgs/male.svg b/assets/images/svgs/male.svg
new file mode 100644
index 0000000..80cd0c7
--- /dev/null
+++ b/assets/images/svgs/male.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/menu.svg b/assets/images/svgs/menu.svg
new file mode 100644
index 0000000..6808f51
--- /dev/null
+++ b/assets/images/svgs/menu.svg
@@ -0,0 +1,19 @@
+
diff --git a/assets/images/svgs/no_data.svg b/assets/images/svgs/no_data.svg
new file mode 100644
index 0000000..c54f043
--- /dev/null
+++ b/assets/images/svgs/no_data.svg
@@ -0,0 +1,69 @@
+
diff --git a/assets/images/svgs/profile_screen/ECG.svg b/assets/images/svgs/profile_screen/ECG.svg
new file mode 100644
index 0000000..cc697f9
--- /dev/null
+++ b/assets/images/svgs/profile_screen/ECG.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/Order Procedures.svg b/assets/images/svgs/profile_screen/Order Procedures.svg
new file mode 100644
index 0000000..9eb44df
--- /dev/null
+++ b/assets/images/svgs/profile_screen/Order Procedures.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/Progress notes.svg b/assets/images/svgs/profile_screen/Progress notes.svg
new file mode 100644
index 0000000..5fc4175
--- /dev/null
+++ b/assets/images/svgs/profile_screen/Progress notes.svg
@@ -0,0 +1,13 @@
+
diff --git a/assets/images/svgs/profile_screen/Radiology.svg b/assets/images/svgs/profile_screen/Radiology.svg
new file mode 100644
index 0000000..8f1d8a4
--- /dev/null
+++ b/assets/images/svgs/profile_screen/Radiology.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/UCAF.svg b/assets/images/svgs/profile_screen/UCAF.svg
new file mode 100644
index 0000000..79100a5
--- /dev/null
+++ b/assets/images/svgs/profile_screen/UCAF.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/admission req.svg b/assets/images/svgs/profile_screen/admission req.svg
new file mode 100644
index 0000000..1f45426
--- /dev/null
+++ b/assets/images/svgs/profile_screen/admission req.svg
@@ -0,0 +1,11 @@
+
diff --git a/assets/images/svgs/profile_screen/booked.svg b/assets/images/svgs/profile_screen/booked.svg
new file mode 100644
index 0000000..bda90bc
--- /dev/null
+++ b/assets/images/svgs/profile_screen/booked.svg
@@ -0,0 +1,10 @@
+
diff --git a/assets/images/svgs/profile_screen/create episode.svg b/assets/images/svgs/profile_screen/create episode.svg
new file mode 100644
index 0000000..88c1cc2
--- /dev/null
+++ b/assets/images/svgs/profile_screen/create episode.svg
@@ -0,0 +1,4 @@
+
diff --git a/assets/images/svgs/profile_screen/diabetic chart.svg b/assets/images/svgs/profile_screen/diabetic chart.svg
new file mode 100644
index 0000000..b558bc6
--- /dev/null
+++ b/assets/images/svgs/profile_screen/diabetic chart.svg
@@ -0,0 +1,10 @@
+
diff --git a/assets/images/svgs/profile_screen/diagnosis.svg b/assets/images/svgs/profile_screen/diagnosis.svg
new file mode 100644
index 0000000..b0c9b83
--- /dev/null
+++ b/assets/images/svgs/profile_screen/diagnosis.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/discharge summary.svg b/assets/images/svgs/profile_screen/discharge summary.svg
new file mode 100644
index 0000000..2edd6a1
--- /dev/null
+++ b/assets/images/svgs/profile_screen/discharge summary.svg
@@ -0,0 +1,7 @@
+
diff --git a/assets/images/svgs/profile_screen/health summary.svg b/assets/images/svgs/profile_screen/health summary.svg
new file mode 100644
index 0000000..186af7a
--- /dev/null
+++ b/assets/images/svgs/profile_screen/health summary.svg
@@ -0,0 +1,10 @@
+
diff --git a/assets/images/svgs/profile_screen/insurance approval.svg b/assets/images/svgs/profile_screen/insurance approval.svg
new file mode 100644
index 0000000..f6a5885
--- /dev/null
+++ b/assets/images/svgs/profile_screen/insurance approval.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/images/svgs/profile_screen/lab results.svg b/assets/images/svgs/profile_screen/lab results.svg
new file mode 100644
index 0000000..5e03a2d
--- /dev/null
+++ b/assets/images/svgs/profile_screen/lab results.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/livecare.svg b/assets/images/svgs/profile_screen/livecare.svg
new file mode 100644
index 0000000..452ffc5
--- /dev/null
+++ b/assets/images/svgs/profile_screen/livecare.svg
@@ -0,0 +1,10 @@
+
diff --git a/assets/images/svgs/profile_screen/medical report.svg b/assets/images/svgs/profile_screen/medical report.svg
new file mode 100644
index 0000000..f40a960
--- /dev/null
+++ b/assets/images/svgs/profile_screen/medical report.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/modify episode.svg b/assets/images/svgs/profile_screen/modify episode.svg
new file mode 100644
index 0000000..cdf5d3a
--- /dev/null
+++ b/assets/images/svgs/profile_screen/modify episode.svg
@@ -0,0 +1,4 @@
+
diff --git a/assets/images/svgs/profile_screen/operating report.svg b/assets/images/svgs/profile_screen/operating report.svg
new file mode 100644
index 0000000..8d9766b
--- /dev/null
+++ b/assets/images/svgs/profile_screen/operating report.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/images/svgs/profile_screen/order prescription.svg b/assets/images/svgs/profile_screen/order prescription.svg
new file mode 100644
index 0000000..21cadf7
--- /dev/null
+++ b/assets/images/svgs/profile_screen/order prescription.svg
@@ -0,0 +1,8 @@
+
diff --git a/assets/images/svgs/profile_screen/order sheets.svg b/assets/images/svgs/profile_screen/order sheets.svg
new file mode 100644
index 0000000..c9e61e9
--- /dev/null
+++ b/assets/images/svgs/profile_screen/order sheets.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/svgs/profile_screen/patient sick leave.svg b/assets/images/svgs/profile_screen/patient sick leave.svg
new file mode 100644
index 0000000..f585b17
--- /dev/null
+++ b/assets/images/svgs/profile_screen/patient sick leave.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/images/svgs/profile_screen/pending orders.svg b/assets/images/svgs/profile_screen/pending orders.svg
new file mode 100644
index 0000000..ffe95e3
--- /dev/null
+++ b/assets/images/svgs/profile_screen/pending orders.svg
@@ -0,0 +1,7 @@
+
diff --git a/assets/images/svgs/profile_screen/refer patient.svg b/assets/images/svgs/profile_screen/refer patient.svg
new file mode 100644
index 0000000..65c8f61
--- /dev/null
+++ b/assets/images/svgs/profile_screen/refer patient.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/images/svgs/profile_screen/sick leave.svg b/assets/images/svgs/profile_screen/sick leave.svg
new file mode 100644
index 0000000..0774eb7
--- /dev/null
+++ b/assets/images/svgs/profile_screen/sick leave.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/images/svgs/profile_screen/vital signs.svg b/assets/images/svgs/profile_screen/vital signs.svg
new file mode 100644
index 0000000..fe476c3
--- /dev/null
+++ b/assets/images/svgs/profile_screen/vital signs.svg
@@ -0,0 +1,8 @@
+
diff --git a/assets/images/svgs/profile_screen/walkin.svg b/assets/images/svgs/profile_screen/walkin.svg
new file mode 100644
index 0000000..0ef3ecf
--- /dev/null
+++ b/assets/images/svgs/profile_screen/walkin.svg
@@ -0,0 +1,8 @@
+
diff --git a/assets/images/svgs/verification/verify-face.svg b/assets/images/svgs/verification/verify-face.svg
new file mode 100644
index 0000000..7969cad
--- /dev/null
+++ b/assets/images/svgs/verification/verify-face.svg
@@ -0,0 +1,7 @@
+
diff --git a/assets/images/svgs/verification/verify-finger.svg b/assets/images/svgs/verification/verify-finger.svg
new file mode 100644
index 0000000..e626baf
--- /dev/null
+++ b/assets/images/svgs/verification/verify-finger.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/images/svgs/verification/verify-sms.svg b/assets/images/svgs/verification/verify-sms.svg
new file mode 100644
index 0000000..ae5fa9f
--- /dev/null
+++ b/assets/images/svgs/verification/verify-sms.svg
@@ -0,0 +1,11 @@
+
diff --git a/assets/images/svgs/verification/verify-whtsapp.svg b/assets/images/svgs/verification/verify-whtsapp.svg
new file mode 100644
index 0000000..09ac85c
--- /dev/null
+++ b/assets/images/svgs/verification/verify-whtsapp.svg
@@ -0,0 +1,12 @@
+
diff --git a/assets/langs/ar-SA.json b/assets/langs/ar-SA.json
new file mode 100644
index 0000000..8dfc92f
--- /dev/null
+++ b/assets/langs/ar-SA.json
@@ -0,0 +1,58 @@
+{
+ "mohemm": "Mohemm",
+ "english": "English",
+ "arabic": "عربي",
+ "login": "تسجيل الدخول",
+ "drSulaiman": "سليمان الحبيب",
+ "welcomeTo": "مرحبا بك في",
+ "userID": "معرف المستخدم",
+ "password": "كلمة المرور",
+ "branch": "فرع",
+ "pleaseEnterLoginDetails": "الرجاء إدخال التفاصيل أدناه لتسجيل الدخول",
+ "username": "اسم المستخدم",
+ "welcomeBack": "مرحبا بعودتك",
+ "wouldYouLikeToLoginWithCurrentUsername": "هل ترغب في تسجيل الدخول باسم المستخدم الحالي؟",
+ "lastLoginDetails": "تفاصيل تسجيل الدخول الأخير:",
+ "verificationType": "نوع التحقق:",
+ "pleaseVerify": "ارجوك تحقق",
+ "pleaseVerifyForBio": "الرجاء التحقق من تسجيل الدخول باستخدام أحد هذه الخيارات",
+ "verifyThroughFace": "تحقق من خلال الوجه",
+ "verifyThroughFingerprint": "تحقق من خلال بصمة الإصبع",
+ "verifyThroughSMS": "تحقق من خلال الرسائل القصيرة",
+ "verifyThroughWhatsapp": "تحقق من خلال Whatsapp",
+ "useAnotherAccount": "استخدم حسابا آخر",
+ "pleaseEnterTheVerificationCodeSentTo": "الرجاء إدخال رمز التحقق المرسل إلى ",
+ "theVerificationCodeWillExpireIn": "ستنتهي صلاحية رمز التحقق في ",
+ "goodMorning": "صباح الخير",
+ "markAttendance": "علامة الحضور",
+ "timeLeftToday": "الوقت المتبقي اليوم",
+ "checkIn": "تحقق في",
+ "workList": "قائمة العمل",
+ "doNotUseRecentPassword": "لا تستخدم كلمة مرور حديثة",
+ "atLeastOneLowercase": "حرف صغير واحد على الأقل",
+ "atLeastOneUppercase": "حرف كبير واحد على الأقل",
+ "atLeastOneNumeric": "رقم واحد على الأقل",
+ "minimum8Characters": "8 أحرف على الأقل",
+ "doNotAddRepeatingLetters": "لا تقم بإضافة أحرف متكررة",
+ "itShouldContainSpecialCharacter": "يجب أن يحتوي على طابع خاص",
+ "confirmPasswordMustMatch": "يجب أن يتطابق تأكيد كلمة المرور",
+ "sms": "رسالة قصيرة",
+ "fingerPrint": "بصمة",
+ "face": "التعرف على الوجه",
+ "whatsapp": "واتس اب",
+ "reject": "يرفض",
+ "approve": "يوافق",
+ "cancel": "إلغاء",
+ "otp": "OTP",
+ "verification": "تَحَقّق",
+ "resend": "إعادة إرسال",
+ "codeExpire": "انتهت صلاحية رمز التحقق",
+ "moreVerificationOpts": "المزيد من خيارات التحقق",
+ "select": "Select",
+ "days": "أيام",
+ "hr": "س",
+ "min": "د",
+ "years": "سنة",
+ "months": "أشهر",
+ "userOtherAccount": "مستخدم حساب آخر"
+}
\ No newline at end of file
diff --git a/assets/langs/en-US.json b/assets/langs/en-US.json
new file mode 100644
index 0000000..a530700
--- /dev/null
+++ b/assets/langs/en-US.json
@@ -0,0 +1,58 @@
+{
+ "mohemm": "Mohemm",
+ "english": "English",
+ "arabic": "عربي",
+ "login": "Login",
+ "drSulaiman" : "Dr Sulaiman Al Habib",
+ "welcomeTo": "Welcome to",
+ "userID" : "User ID",
+ "password" : "Password",
+ "branch" : "Branch",
+ "pleaseEnterLoginDetails": "Please enter the detail below to login",
+ "username": "Username",
+ "welcomeBack": "Welcome back",
+ "wouldYouLikeToLoginWithCurrentUsername": "Would you like to login with current Username?",
+ "lastLoginDetails": "Last Login Details:",
+ "verificationType": "Verification Type:",
+ "pleaseVerify": "Please Verify",
+ "pleaseVerifyForBio": "Please verify login with one of the following options",
+ "verifyThroughFace": "Verify Through Face",
+ "verifyThroughFingerprint": "Verify Through Fingerprint",
+ "verifyThroughSMS": "Verify Through SMS",
+ "verifyThroughWhatsapp": "Verify Through Whatsapp",
+ "useAnotherAccount": "Use Another Account",
+ "pleaseEnterTheVerificationCodeSentTo": "Please enter the verification code sent to ",
+ "theVerificationCodeWillExpireIn": "The verification code will expire in ",
+ "goodMorning": "Good Morning",
+ "markAttendance": "Mark Attendance",
+ "timeLeftToday": "Time Left Today",
+ "checkIn": "Check In",
+ "workList": "Work List",
+ "doNotUseRecentPassword": "Do not use recent password",
+ "atLeastOneLowercase": "At least one lowercase",
+ "atLeastOneUppercase": "At least one uppercase",
+ "atLeastOneNumeric": "At least one numeric",
+ "minimum8Characters": "Minimum 8 characters",
+ "doNotAddRepeatingLetters": "Do not add repeating letters",
+ "itShouldContainSpecialCharacter": "It should contain special character",
+ "confirmPasswordMustMatch": "Confirm password must match",
+ "sms": "SMS",
+ "fingerPrint": "Fingerprint",
+ "face": "Face",
+ "whatsapp": "Whatsapp",
+ "reject": "Reject",
+ "approve": "Approve",
+ "cancel": "Cancel",
+ "otp": "OTP",
+ "verification": "Verification",
+ "resend": "Resend",
+ "codeExpire": "The verification code has been expired",
+ "moreVerificationOpts" :"More verification options",
+ "select": "Select",
+ "days": "Days",
+ "hr": "Hr",
+ "min": "Min",
+ "years": "Years",
+ "months": "Months",
+ "userOtherAccount": "User Another Account"
+}
\ No newline at end of file
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..9625e10
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..da4eafe
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,481 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1300;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.hmgFlutterTemplate;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.hmgFlutterTemplate;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.hmgFlutterTemplate;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..c87d15a
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..70693e4
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..28c6bf0
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..f091b6b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cde121
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..d0ef06e
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..dcdc230
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..c8f9ed8
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..75b2d16
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..c4df70d
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..6a84f41
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..d0e1f58
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+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.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..41fc433
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,51 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Hmg Flutter Template
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ hmg_flutter_template
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/lib/classes/app_permissions.dart b/lib/classes/app_permissions.dart
new file mode 100644
index 0000000..314cf89
--- /dev/null
+++ b/lib/classes/app_permissions.dart
@@ -0,0 +1,47 @@
+
+import 'package:hmg_flutter_template/widgets/dialogs/confirm_dialog.dart';
+import 'package:flutter/material.dart';
+
+import 'package:permission_handler/permission_handler.dart';
+
+class AppPermissions {
+ static void location(Function(bool) completion, BuildContext context) {
+ Permission.location.isGranted.then((isGranted){
+ if(!isGranted){
+ Permission.location.request().then((granted){
+ completion(granted == PermissionStatus.granted);
+ });
+ }
+ completion(isGranted);
+ });
+ }
+
+ static void showErrorLocationDialog(bool isPermissionError, BuildContext context) {
+ showDialog(
+ context: context,
+ builder: (cxt) => ConfirmDialog(
+ message: "Please provide location permission",
+ onTap: () {
+ if (isPermissionError) {
+ // Geolocator.openAppSettings();
+ } else {
+ // Geolocator.openLocationSettings();
+ }
+ Navigator.pop(context);
+ // createVacationRule(list);
+ },
+ ),
+ );
+ }
+
+ static void checkAll(Function(bool) completion) {
+ [Permission.location].request().then((value) {
+ bool allGranted = false;
+ for (var element in value.values) {
+ allGranted = allGranted && element == PermissionStatus.granted;
+ }
+
+ completion(allGranted);
+ });
+ }
+}
diff --git a/lib/classes/colors.dart b/lib/classes/colors.dart
new file mode 100644
index 0000000..93ea761
--- /dev/null
+++ b/lib/classes/colors.dart
@@ -0,0 +1,65 @@
+import 'package:flutter/cupertino.dart';
+
+class MyColors {
+ static const Color kWhiteColor = Color(0xffffffff);
+ static const Color darkIconColor = Color(0xff28323A);
+ static const Color darkTextColor = Color(0xff2B353E);
+ static const Color normalTextColor = Color(0xff5A5A5A);
+ static const Color lightTextColor = Color(0xffBFBFBF);
+ static const Color gradiantStartColor = Color(0xff33c0a5);
+ static const Color gradiantEndColor = Color(0xff259db7);
+ static const Color textMixColor = Color(0xff2BB8A6);
+ static const Color backgroundColor = Color(0xffEDEDED);
+ static const Color grey41Color = Color(0xff414141);
+ static const Color grey57Color = Color(0xff575757);
+ static const Color grey67Color = Color(0xff676767);
+ static const Color grey77Color = Color(0xff777777);
+ static const Color greyF7Color = Color(0xffF7F7F7);
+ static const Color grey80Color = Color(0xff808080);
+ static const Color grey70Color = Color(0xff707070);
+ static const Color greyACColor = Color(0xffACACAC);
+ static const Color grey98Color = Color(0xff989898);
+ static const Color lightGreyEFColor = Color(0xffEFEFEF);
+ static const Color lightGreyEDColor = Color(0xffEDEDED);
+ static const Color lightGreyDeColor = Color(0xffDEDEDE);
+ static const Color lightGreyE3Color = Color(0xffE3E3E3);
+ static const Color lightGreyE6Color = Color(0xffE6E6E6);
+ static const Color lightGreyEAColor = Color(0xffEAEAEA);
+ static const Color lightGreyE5Color = Color(0xffE5E5E5);
+ static const Color darkWhiteColor = Color(0xffE0E0E0);
+ static const Color redColor = Color(0xffD02127);
+ static const Color pinkColor = Color(0xffEBA9A9);
+ static const Color pinkDarkColor = Color(0xffe3797d);
+ static const Color yellowColor = Color(0xffF4E31C);
+ static const Color orange = Color(0xFFCC9B14);
+ static const Color yellowFavColor = Color(0xffEAC321);
+ static const Color yellowColorII = Color(0xffEAA118);
+ static const Color backgroundBlackColor = Color(0xff202529);
+ static const Color black = Color(0xff000000);
+ static const Color white = Color(0xffffffff);
+ static const Color borderColor = Color(0xffE8E8E8);
+ static const Color borderE3Color = Color(0xffE3E3E3);
+ static const Color borderCEColor = Color(0xffCECECE);
+
+ //static const Color grey67Color = Color(0xff676767);
+ static const Color whiteColor = Color(0xFFEEEEEE);
+ static const Color greenColor = Color(0xff1FA269);
+ static const Color lightGreenColor = Color(0xff2AB2AB);
+ static const Color darkGreyColor = Color(0xff464646);
+ static const Color greyA5Color = Color(0xffA5A5A5);
+ static const Color blackColor = Color(0xff000014);
+ static const Color grey3AColor = Color(0xff2E303A);
+ static const Color darkColor = Color(0xff000015);
+ static const Color lightGrayColor = Color(0xff808080);
+ static const Color darkRedColor = Color(0xffD02127);
+ static const Color lightGreyColor = Color(0xffC7C7C7);
+ static const Color green69Color = Color(0xff1FA169);
+ static const Color redA3Color = Color(0xffCA3332);
+ static const Color green9CColor = Color(0xff259CB8);
+ static const Color green2DColor = Color(0xff32D892);
+ static const Color greyC4Color = Color(0xffC4C4C4);
+ static const Color grey35Color = Color(0xff535353);
+ static const Color grey9DColor = Color(0xff9D9D9D);
+ static const Color darkDigitColor = Color(0xff2D2F39);
+ static const Color grey71Color = Color(0xff717171);
+}
diff --git a/lib/classes/consts.dart b/lib/classes/consts.dart
new file mode 100644
index 0000000..e3b9999
--- /dev/null
+++ b/lib/classes/consts.dart
@@ -0,0 +1,40 @@
+class ApiConsts {
+ static const maxSmallScreen = 660;
+
+ static String baseUrl = "http://10.200.204.20:2801/"; // Local server
+ // static String baseUrl = 'https://hmgwebservices.com/';
+
+ // static String baseUrl = 'https://uat.hmgwebservices.com/';
+ static String baseUrlServices = "${baseUrl}Services/"; // server
+ // static String baseUrlServices = "https://api.cssynapses.com/tangheem/"; // Live server
+ static String utilitiesRest = "${baseUrlServices}Utilities.svc/REST/";
+ static String erpRest = "${baseUrlServices}ERP.svc/REST/";
+ static String swpRest = "${baseUrlServices}SWP.svc/REST/";
+ static String user = "${baseUrlServices}api_repo/User/";
+ static String cocRest = "${baseUrlServices}COCWS.svc/REST/";
+
+ //Chat
+ static String chatServerBaseUrl = "https://apiderichat.hmg.com";
+ static String chatServerBaseApiUrl = "https://apiderichat.hmg.com/api_repo/";
+ static String chatHubConnectionUrl = "$chatServerBaseUrl/ConnectionChatHub";
+ static String chatSearchMember = "user/getUserWithStatusAndFavAsync/";
+ static String chatRecentUrl = "UserChatHistory/getchathistorybyuserid"; //For a Mem
+ static String chatSingleUserHistoryUrl = "UserChatHistory/GetUserChatHistory";
+ static String chatMediaImageUploadUrl = "shared/upload";
+ static String chatFavoriteUsers = "FavUser/getFavUserById/";
+}
+
+class SharedPrefsConsts {
+ static String isRememberMe = "remember_me";
+ static String username = "doctorId";
+ static String password = "password";
+ static String logInTokenID = "logInTokenID";
+ static String vidaAuthTokenID = "vidaAuthTokenID";
+ static String vidaRefreshTokenID = "vidaRefreshTokenID";
+ static String authenticationTokenID = "authenticationTokenID";
+ static String projectID = "projectID";
+ static String clinicId = "clinicId";
+ static String lastLoginDate = "lastLoginDate";
+ static String lastLoginTime = "lastLoginTime";
+ static String memberModel = "memberModel";
+}
diff --git a/lib/classes/date-utils.dart b/lib/classes/date-utils.dart
new file mode 100644
index 0000000..27ff4e3
--- /dev/null
+++ b/lib/classes/date-utils.dart
@@ -0,0 +1,412 @@
+import 'package:easy_localization/easy_localization.dart';
+import 'package:flutter/cupertino.dart';
+import 'package:hmg_flutter_template/generated/locale_keys.g.dart';
+
+class AppDateUtils {
+ static String convertDateToFormat(DateTime dateTime, String dateFormat) {
+ return DateFormat(dateFormat).format(dateTime);
+ }
+
+ static DateTime convertISOStringToDateTime(String date) {
+ DateTime newDate;
+
+ newDate = DateTime.parse(date);
+
+ return newDate;
+ }
+
+ static String convertStringToDateFormat(String date, String dateFormat) {
+ DateTime dateTime;
+ if (date.contains("/Date")) {
+ dateTime = getDateTimeFromServerFormat(date);
+ } else {
+ dateTime = DateTime.parse(date);
+ }
+ return convertDateToFormat(dateTime, dateFormat);
+ }
+
+ static String convertToServerFormat(String date, String dateFormat) {
+ return '/Date(${DateFormat(dateFormat).parse(date).millisecondsSinceEpoch})/';
+ }
+
+ static String convertDateToServerFormat(DateTime date) {
+ return '/Date(${date.millisecondsSinceEpoch})/';
+ }
+
+ static convertDateFromServerFormat(String str, dateFormat) {
+ var date = getDateTimeFromServerFormat(str);
+
+ return DateFormat(dateFormat).format(date);
+ }
+
+ static DateTime getDateTimeFromServerFormat(String str) {
+ DateTime date = DateTime.now();
+ if (str != null) {
+ const start = "/Date(";
+
+ const end = "+0300)";
+ if (str.contains("/Date")) {
+ final startIndex = str.indexOf(start);
+
+ final endIndex = str.indexOf(end, startIndex + start.length);
+
+ date = DateTime.fromMillisecondsSinceEpoch(int.parse(str.substring(startIndex + start.length, endIndex)));
+ } else {
+ date = DateTime.now();
+ }
+ } else {
+ date = DateTime.parse(str);
+ }
+
+ return date;
+ }
+
+ static String differenceBetweenDateAndCurrentInYearMonthDay(DateTime firstDate, BuildContext context) {
+ DateTime now = DateTime.now();
+ // now = now.add(Duration(days: 400, minutes: 0));
+ var difference = firstDate.difference(now);
+
+ int years = now.year - firstDate.year;
+ int months = now.month - firstDate.month;
+ int days = now.day - firstDate.day;
+
+ if (months < 0 || (months == 0 && days < 0)) {
+ years--;
+ months += (days < 0 ? 11 : 12);
+ }
+ if (days < 0) {
+ final monthAgo = new DateTime(now.year, now.month - 1, firstDate.day);
+ days = now.difference(monthAgo).inDays + 1;
+ }
+ return "$days ${LocaleKeys.days.tr()}, $months ${LocaleKeys.months.tr()}, $years ${LocaleKeys.years.tr()}";
+ }
+
+ static String differenceBetweenDateAndCurrent(DateTime firstDate, BuildContext context, {bool isShowSecond = false, bool isShowDays = true}) {
+ DateTime now = DateTime.now();
+ var difference = now.difference(firstDate);
+
+ int minutesInDays = difference.inMinutes;
+ int secondInDays = difference.inSeconds;
+ int hoursInDays = minutesInDays ~/ 60; // ~/ : truncating division to make the result int
+ int second = secondInDays % 60;
+ int minutes = minutesInDays % 60;
+ int days = hoursInDays ~/ 24;
+ int hours = hoursInDays % 24;
+
+ double hoursInOneDay = difference.inHours / difference.inDays;
+
+ return "${isShowDays ? (days > 0 ? "$days ${LocaleKeys.days.tr()}," : '') : ""}${hours > 0 ? "$hours ${LocaleKeys.hr.tr()}," : ""} $minutes ${LocaleKeys.min.tr()}${isShowSecond ? ", $second Sec" : ""}";
+ }
+
+ static String differenceBetweenServerDateAndCurrent(String str, BuildContext context) {
+ const start = "/Date(";
+
+ const end = "+0300)";
+
+ final startIndex = str.indexOf(start);
+
+ final endIndex = str.indexOf(end, startIndex + start.length);
+
+ var date = DateTime.fromMillisecondsSinceEpoch(int.parse(str.substring(startIndex + start.length, endIndex)));
+ return differenceBetweenDateAndCurrent(date, context);
+ }
+
+ /// get month by
+ /// [weekDay] convert week day in int to week day name
+ static getWeekDay(int weekDay) {
+ switch (weekDay) {
+ case 1:
+ return "Monday";
+ case 2:
+ return "Tuesday";
+ case 3:
+ return "Wednesday";
+ case 4:
+ return "Thursday";
+ case 5:
+ return "Friday";
+ case 6:
+ return "Saturday ";
+ case 7:
+ return "Sunday";
+ }
+ }
+
+ /// get month by
+ /// [weekDay] convert week day in int to week day name arabic
+ static getWeekDayArabic(int weekDay) {
+ switch (weekDay) {
+ case 1:
+ return "الاثنين";
+ case 2:
+ return "الثلاثاء";
+ case 3:
+ return "الاربعاء";
+ case 4:
+ return "الخميس";
+ case 5:
+ return "الجمعه";
+ case 6:
+ return "السبت ";
+ case 7:
+ return "الاحد";
+ }
+ }
+
+ /// get month by
+ /// [month] convert month number in to month name
+ static getMonth(int month) {
+ switch (month) {
+ case 1:
+ return "January";
+ case 2:
+ return "February";
+ case 3:
+ return "March";
+ case 4:
+ return "April";
+ case 5:
+ return "May";
+ case 6:
+ return "June";
+ case 7:
+ return "July";
+ case 8:
+ return "August";
+ case 9:
+ return "September";
+ case 10:
+ return "October";
+ case 11:
+ return "November";
+ case 12:
+ return "December";
+ }
+ }
+
+ /// get month by
+ /// [month] convert month number in to month name in Arabic
+ static getMonthArabic(int month) {
+ switch (month) {
+ case 1:
+ return "يناير";
+ case 2:
+ return " فبراير";
+ case 3:
+ return "مارس";
+ case 4:
+ return "أبريل";
+ case 5:
+ return "مايو";
+ case 6:
+ return "يونيو";
+ case 7:
+ return "يوليو";
+ case 8:
+ return "أغسطس";
+ case 9:
+ return "سبتمبر";
+ case 10:
+ return " اكتوبر";
+ case 11:
+ return " نوفمبر";
+ case 12:
+ return "ديسمبر";
+ }
+ }
+
+ static getMonthByName(String month) {
+ switch (month.toLowerCase()) {
+ case 'january':
+ return 1;
+ case 'february':
+ return 2;
+ case 'march':
+ return 3;
+ case 'april':
+ return 4;
+ case 'may':
+ return 5;
+ case 'june':
+ return 6;
+ case 'july':
+ return 7;
+ case 'august':
+ return 8;
+ case 'september':
+ return 9;
+ case 'october':
+ return 10;
+ case 'november':
+ return 11;
+ case 'december':
+ return 12;
+ }
+ }
+
+ static DateTime convertStringToDate(String date) {
+ // /Date(1585774800000+0300)/
+
+ if (date != null) {
+ const start = "/Date(";
+ const end = "+0300)";
+ final startIndex = date.indexOf(start);
+ final endIndex = date.indexOf(end, startIndex + start.length);
+ DateTime newDate = DateTime.fromMillisecondsSinceEpoch(
+ int.parse(
+ date.substring(startIndex + start.length, endIndex),
+ ),
+ );
+ return newDate;
+ } else
+ return DateTime.now();
+ }
+
+ /// get data formatted like Apr 26,2020
+ /// [dateTime] convert DateTime to data formatted Arabic
+ static String getMonthDayYearDateFormattedAr(DateTime dateTime) {
+ if (dateTime != null)
+ return getMonthArabic(dateTime.month) + " " + dateTime.day.toString() + ", " + dateTime.year.toString();
+ else
+ return "";
+ }
+
+ /// get data formatted like Apr 26,2020
+ /// [dateTime] convert DateTime to data formatted
+ static String getMonthDayYearDateFormatted(DateTime dateTime, {bool isArabic = false}) {
+ if (dateTime != null)
+ return isArabic ? getMonthArabic(dateTime.month) : getMonth(dateTime.month) + " " + dateTime.day.toString() + ", " + dateTime.year.toString();
+ else
+ return "";
+ }
+
+ /// get data formatted like 26 Apr 2020
+ /// [dateTime] convert DateTime to data formatted
+ static String getDayMonthYearDateFormatted(DateTime dateTime, {bool isArabic = false, bool isMonthShort = true}) {
+ if (dateTime != null)
+ return dateTime.day.toString() +
+ " " +
+ "${isArabic ? getMonthArabic(dateTime.month) : isMonthShort ? getMonth(dateTime.month).toString().substring(0, 3) : getMonth(dateTime.month)}" +
+ " " +
+ dateTime.year.toString();
+ else
+ return "";
+ }
+
+ /// get data formatted like 26/4/2020
+ /// [dateTime] convert DateTime to data formatted
+ static String getDayMonthYearDate(DateTime dateTime, {bool isArabic = false}) {
+ if (dateTime != null)
+ return dateTime.day.toString() + "/" + "${dateTime.month}" + "/" + dateTime.year.toString();
+ else
+ return "";
+ }
+
+ /// get data formatted like 10:45 PM
+ /// [dateTime] convert DateTime to data formatted
+ static String getHour(DateTime dateTime) {
+ return DateFormat('hh:mm a').format(dateTime);
+ }
+
+ static String getAgeByBirthday(String birthOfDate, BuildContext context, {bool isServerFormat = true}) {
+ // https://leechy.dev/calculate-dates-diff-in-dart
+ DateTime birthDate;
+ if (birthOfDate.contains("/Date")) {
+ birthDate = AppDateUtils.getDateTimeFromServerFormat(birthOfDate);
+ } else {
+ birthDate = DateTime.parse(birthOfDate);
+ }
+ final now = DateTime.now();
+ int years = now.year - birthDate.year;
+ int months = now.month - birthDate.month;
+ int days = now.day - birthDate.day;
+ if (months < 0 || (months == 0 && days < 0)) {
+ years--;
+ months += (days < 0 ? 11 : 12);
+ }
+ if (days < 0) {
+ final monthAgo = new DateTime(now.year, now.month - 1, birthDate.day);
+ days = now.difference(monthAgo).inDays + 1;
+ }
+ return "$years ${LocaleKeys.years.tr()} $months ${LocaleKeys.months.tr()} $days ${LocaleKeys.days.tr()}";
+ }
+
+ static bool isToday(DateTime dateTime) {
+ DateTime todayDate = DateTime.now().toUtc();
+ if (dateTime.day == todayDate.day && dateTime.month == todayDate.month && dateTime.year == todayDate.year) {
+ return true;
+ }
+ return false;
+ }
+
+ static String getDate(DateTime dateTime) {
+ print(dateTime);
+ if (dateTime != null)
+ return getMonth(dateTime.month) + " " + dateTime.day.toString() + "," + dateTime.year.toString();
+ else
+ return "";
+ }
+
+ static String getDateFormatted(DateTime dateTime) {
+ print(dateTime);
+ if (dateTime != null)
+ return dateTime.day.toString() + "/" + dateTime.month.toString() + "/" + dateTime.year.toString();
+ else
+ return "";
+ }
+
+ static String getTimeHHMMA(DateTime dateTime) {
+ return DateFormat('hh:mm a').format(dateTime);
+ }
+
+ static String getTimeHHMMA2(DateTime dateTime) {
+ return DateFormat('hh:mm').format(dateTime);
+ }
+
+ static String getStartTime(String dateTime) {
+ String time = dateTime;
+
+ if (dateTime.length > 7) time = dateTime.substring(0, 5);
+ return time;
+ }
+
+ static String getTimeFormated(DateTime dateTime) {
+ print(dateTime);
+ if (dateTime != null)
+ return dateTime.hour.toString() + ":" + dateTime.minute.toString();
+ else
+ return "";
+ }
+
+ // handel date like "09/05/2021 17:00"
+ static DateTime getDateTimeFromString(String str) {
+ List array = str.split('/');
+ int day = int.parse(array[0]);
+ int month = int.parse(array[1]);
+
+ List array2 = array[2].split(' ');
+ int year = int.parse(array2[0]);
+ String hour = array2[1];
+ List hourList = hour.split(":");
+
+ DateTime date = DateTime(year, month, day, int.parse(hourList[0]), int.parse(hourList[1]));
+
+ return date;
+ }
+
+ static convertDateFormatImproved(String str) {
+ String newDate = "";
+ const start = "/Date(";
+ if (str.isNotEmpty) {
+ const end = "+0300)";
+
+ final startIndex = str.indexOf(start);
+ final endIndex = str.indexOf(end, startIndex + start.length);
+
+ var date = new DateTime.fromMillisecondsSinceEpoch(int.parse(str.substring(startIndex + start.length, endIndex)));
+ newDate = date.year.toString() + "/" + date.month.toString().padLeft(2, '0') + "/" + date.day.toString().padLeft(2, '0');
+ }
+
+ return newDate;
+ }
+}
diff --git a/lib/classes/decorations_helper.dart b/lib/classes/decorations_helper.dart
new file mode 100644
index 0000000..35d302d
--- /dev/null
+++ b/lib/classes/decorations_helper.dart
@@ -0,0 +1,25 @@
+import 'package:flutter/material.dart';
+import 'package:hmg_flutter_template/classes/colors.dart';
+
+class MyDecorations {
+ static Decoration shadowDecoration = BoxDecoration(
+ color: MyColors.kWhiteColor,
+ borderRadius: BorderRadius.circular(15),
+ boxShadow: [
+ BoxShadow(
+ color: const Color(0xff000000).withOpacity(.05),
+ blurRadius: 26,
+ offset: const Offset(0, -3),
+ ),
+ ],
+ );
+
+ static Decoration getContainersDecoration(Color color) {
+ Decoration answerContainerDecoration = BoxDecoration(
+ borderRadius: BorderRadius.circular(10),
+ color: color,
+ border: Border.all(width: 1, color: MyColors.lightGreyEFColor),
+ );
+ return answerContainerDecoration;
+ }
+}
diff --git a/lib/classes/enums.dart b/lib/classes/enums.dart
new file mode 100644
index 0000000..cf27602
--- /dev/null
+++ b/lib/classes/enums.dart
@@ -0,0 +1,29 @@
+// enum APPSTATUS {
+// loading,
+// unAuthenticated,
+// authenticated,
+// unverified,
+// }
+
+enum AuthMethodTypes {
+ sms,
+ whatsApp,
+ fingerPrint,
+ faceID,
+ moreOptions,
+}
+
+enum ViewState {
+ hide,
+ idle,
+ busy,
+ error,
+ busyLocal,
+ errorLocal,
+}
+
+enum LoginType {
+ FROM_LOGIN,
+ SILENT_LOGIN,
+ SILENT_WITH_OTP,
+}
diff --git a/lib/classes/file_process.dart b/lib/classes/file_process.dart
new file mode 100644
index 0000000..83bee75
--- /dev/null
+++ b/lib/classes/file_process.dart
@@ -0,0 +1,40 @@
+import 'dart:convert';
+import 'dart:io';
+import 'dart:typed_data';
+
+
+import 'package:path_provider/path_provider.dart';
+
+class FileProcess {
+ static bool isFolderCreated = false;
+ static Directory? directory;
+
+ static Future checkDocumentFolder() async {
+ try {
+ if (!isFolderCreated) {
+ directory = await getApplicationDocumentsDirectory();
+ await directory!.exists().then((value) {
+ if (value) directory!.create();
+ isFolderCreated = true;
+ });
+ }
+ } catch (e) {
+ print(e.toString());
+ }
+ }
+
+ static void openFile(String fileName) {
+ String dir = directory!.path + "/$fileName.pdf";
+ // OpenFile.open(dir);
+ }
+
+ static Future downloadFile(String base64Content, String fileName) async {
+ Uint8List bytes = base64.decode(base64Content);
+ await checkDocumentFolder();
+ String dir = directory!.path + "/" + fileName + ".pdf";
+ File file = File(dir);
+ if (!file.existsSync()) file.create();
+ await file.writeAsBytes(bytes);
+ return file;
+ }
+}
diff --git a/lib/classes/lottie_consts.dart b/lib/classes/lottie_consts.dart
new file mode 100644
index 0000000..1b714a4
--- /dev/null
+++ b/lib/classes/lottie_consts.dart
@@ -0,0 +1,7 @@
+class MyLottieConsts {
+ static const String hourGlassLottie = "assets/lottie/hourglass.json";
+ static const String celebrate1Lottie = "assets/lottie/celebrate1.json";
+ static const String celebrate2Lottie = "assets/lottie/celebrate2.json";
+ static const String winnerLottie = "assets/lottie/winner3.json";
+ static const String allQuestions = "assets/lottie/all_questions.json";
+}
diff --git a/lib/classes/size_config.dart b/lib/classes/size_config.dart
new file mode 100644
index 0000000..8a6c664
--- /dev/null
+++ b/lib/classes/size_config.dart
@@ -0,0 +1,103 @@
+import 'package:flutter/cupertino.dart';
+import 'package:hmg_flutter_template/classes/consts.dart';
+
+class SizeConfig {
+ static double _blockWidth = 0;
+ static double _blockHeight = 0;
+
+ static double? realScreenWidth;
+ static double? realScreenHeight;
+ static double? screenWidth;
+ static double? screenHeight;
+ static double? textMultiplier;
+ static double? imageSizeMultiplier;
+ static double? heightMultiplier;
+ static bool isPortrait = true;
+ static double? widthMultiplier;
+ static bool isMobilePortrait = false;
+ static bool isMobile = false;
+ static bool isHeightShort = false;
+ static bool isHeightVeryShort = false;
+ static bool isHeightMiddle = false;
+ static bool isHeightLarge = false;
+ static bool isWidthLarge = false;
+
+ void init(BoxConstraints constraints, Orientation orientation) {
+ realScreenHeight = constraints.maxHeight;
+ realScreenWidth = constraints.maxWidth;
+ if (constraints.maxWidth <= ApiConsts.maxSmallScreen) {
+ isMobile = true;
+ }
+ if (constraints.maxHeight < 600) {
+ isHeightVeryShort = true;
+ } else if (constraints.maxHeight < 800) {
+ isHeightShort = true;
+ } else if (constraints.maxHeight < 1000) {
+ isHeightMiddle = true;
+ } else {
+ isHeightLarge = true;
+ }
+
+ if (constraints.maxWidth > 600) {
+ isWidthLarge = true;
+ }
+
+ if (orientation == Orientation.portrait) {
+ isPortrait = true;
+ if (realScreenWidth! < 450) {
+ isMobilePortrait = true;
+ }
+ // textMultiplier = _blockHeight;
+ // imageSizeMultiplier = _blockWidth;
+ screenHeight = realScreenHeight;
+ screenWidth = realScreenWidth;
+ } else {
+ isPortrait = false;
+ isMobilePortrait = false;
+ // textMultiplier = _blockWidth;
+ // imageSizeMultiplier = _blockHeight;
+ screenHeight = realScreenWidth;
+ screenWidth = realScreenHeight;
+ }
+ _blockWidth = screenWidth! / 100;
+ _blockHeight = screenHeight! / 100;
+
+ textMultiplier = _blockHeight;
+ imageSizeMultiplier = _blockWidth;
+ heightMultiplier = _blockHeight;
+ widthMultiplier = _blockWidth;
+
+ print('realScreenWidth $realScreenWidth');
+ print('realScreenHeight $realScreenHeight');
+ print('textMultiplier $textMultiplier');
+ print('imageSizeMultiplier $imageSizeMultiplier');
+ print('heightMultiplier$heightMultiplier');
+ print('widthMultiplier $widthMultiplier');
+ print('isPortrait $isPortrait');
+ print('isMobilePortrait $isMobilePortrait');
+ }
+
+ static getTextMultiplierBasedOnWidth({double? width}) {
+ // TODO handel LandScape case
+ if (width != null) {
+ return width / 100;
+ }
+ return widthMultiplier;
+ }
+
+ static getWidthMultiplier({double? width}) {
+ // TODO handel LandScape case
+ if (width != null) {
+ return width / 100;
+ }
+ return widthMultiplier;
+ }
+
+ static getHeightMultiplier({double? height}) {
+ // TODO handel LandScape case
+ if (height != null) {
+ return height / 100;
+ }
+ return heightMultiplier;
+ }
+}
diff --git a/lib/classes/utils.dart b/lib/classes/utils.dart
new file mode 100644
index 0000000..04b8bdb
--- /dev/null
+++ b/lib/classes/utils.dart
@@ -0,0 +1,377 @@
+import 'dart:convert';
+import 'dart:io';
+import 'dart:typed_data';
+
+import 'package:easy_localization/easy_localization.dart';
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/flutter_svg.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:hmg_flutter_template/config/app_state.dart';
+import 'package:hmg_flutter_template/classes/colors.dart';
+import 'package:hmg_flutter_template/config/routes.dart';
+import 'package:hmg_flutter_template/exceptions/api_exception.dart';
+import 'package:hmg_flutter_template/extensions/int_extensions.dart';
+import 'package:hmg_flutter_template/extensions/string_extensions.dart';
+import 'package:hmg_flutter_template/extensions/widget_extensions.dart';
+import 'package:hmg_flutter_template/main.dart';
+import 'package:hmg_flutter_template/widgets/dialogs/confirm_dialog.dart';
+import 'package:hmg_flutter_template/widgets/loading_dialog.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+// ignore_for_file: avoid_annotating_with_dynamic
+
+class Utils {
+ static bool _isLoadingVisible = false;
+
+ static bool get isLoading => _isLoadingVisible;
+
+ static void showToast(String message, {bool longDuration = true}) {
+ Fluttertoast.showToast(
+ msg: message,
+ toastLength: longDuration ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1,
+ backgroundColor: Colors.black54,
+ textColor: Colors.white,
+ fontSize: 16.0);
+ }
+
+ static dynamic getNotNullValue(List list, int index) {
+ try {
+ return list[index];
+ } catch (ex) {
+ return null;
+ }
+ }
+
+ static int stringToHex(String colorCode) {
+ try {
+ return int.parse(colorCode.replaceAll("#", "0xff"));
+ } catch (ex) {
+ return (0xff000000);
+ }
+ }
+
+ static Future delay(int millis) async {
+ return await Future.delayed(Duration(milliseconds: millis));
+ }
+
+ static void showLoading({bool isNeedBinding = true}) {
+ if (isNeedBinding) {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ showLoadingDialog();
+ });
+ } else {
+ showLoadingDialog();
+ }
+ }
+
+ static void showLoadingDialog() {
+ _isLoadingVisible = true;
+ showDialog(
+ context: navigatorKey.currentContext!,
+ barrierColor: Colors.black.withOpacity(0.5),
+ builder: (BuildContext context) => LoadingDialog(),
+ ).then((value) {
+ _isLoadingVisible = false;
+ }).catchError((e) {
+ }).onError(
+ (error, stackTrace) {
+ },
+ );
+ }
+
+ static void hideLoading() {
+ try {
+ if (_isLoadingVisible) {
+ _isLoadingVisible = false;
+ Navigator.of(navigatorKey.currentContext!).pop();
+ }
+ _isLoadingVisible = false;
+ } catch (e) {
+ }
+ }
+
+ static Future getStringFromPrefs(String key) async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ return prefs.getString(key) ?? "";
+ }
+
+ static Future saveStringFromPrefs(String key, String value) async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ return await prefs.setString(key, value);
+ }
+
+ static Future getIntFromPrefs(String key) async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ return prefs.getInt(key) ?? 0;
+ }
+
+ static Future saveIntFromPrefs(String key, int value) async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ return await prefs.setInt(key, value);
+ }
+
+ static String capitalize(str) {
+ if (str != "") {
+ return "${str[0].toUpperCase()}${str.substring(1).toLowerCase()}";
+ } else {
+ return str;
+ }
+ }
+
+ static void handleException(dynamic exception, cxt, Function(String)? onErrorMessage) {
+ String errorMessage;
+ if (exception is APIException) {
+ if (exception.message == APIException.UNAUTHORIZED) {
+ return;
+ } else {
+ errorMessage = exception.error?.errorMessage ?? exception.message;
+ }
+ } else {
+ errorMessage = APIException.UNKNOWN;
+ }
+ if (onErrorMessage != null) {
+ onErrorMessage(errorMessage);
+ } else {
+ if (!AppState().isAuthenticated) {
+ showDialog(
+ context: cxt,
+ builder: (cxt) => ConfirmDialog(
+ message: errorMessage,
+ onTap: () {
+ Navigator.pushNamedAndRemoveUntil(cxt, AppRoutes.login, (Route route) => false);
+ },
+ ),
+ );
+ } else {
+ showToast(errorMessage);
+ }
+ }
+ }
+
+ static void confirmDialog(cxt, String message) {
+ showDialog(
+ context: cxt,
+ builder: (cxt) => ConfirmDialog(
+ message: message,
+ ),
+ );
+ }
+
+ static Widget getNoDataWidget(BuildContext context) {
+ return Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ SvgPicture.asset('assets/images/not_found.svg', width: 110.0, height: 110.0),
+ // LocaleKeys.noDataAvailable.tr().toText16().paddingOnly(top: 15),
+ ],
+ ).center;
+ }
+
+ static Widget getNoChatWidget(BuildContext context) {
+ return Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ SvgPicture.asset('assets/images/not_found.svg', width: 110.0, height: 110.0),
+ // LocaleKeys.noDataAvailable.tr().toText16().paddingOnly(top: 15),
+ ],
+ ).center;
+ }
+
+ static Uint8List getPostBytes(img) {
+ try {
+ var b64 = img.replaceFirst('data:image/png;base64,', '');
+ if (img != null && Utils.isBase64(b64)) return Utils.dataFromBase64String(b64);
+ } catch (e) {}
+ return Uint8List.fromList([]);
+ }
+
+ static String getBase64FromJpeg(img) {
+ try {
+ var b64 = img.replaceFirst('data:image/jpeg;base64,', '');
+ return b64;
+ } catch (e) {}
+ return "";
+ }
+
+ static bool isBase64(String str) {
+ RegExp _base64 = RegExp(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$');
+ return _base64.hasMatch(str);
+ }
+
+ static Uint8List dataFromBase64String(String base64String) {
+ return base64Decode(base64String);
+ }
+
+ static Widget tableColumnTitle(String? text, {bool showDivider = true, bool alignCenter = false}) {
+ text ??= "";
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ 6.height,
+ alignCenter ? text.toText12().center : text.toText12(),
+ 5.height,
+ if (showDivider)
+ const Divider(
+ height: 1,
+ color: Color(0xff2E303A),
+ thickness: 1,
+ )
+ ],
+ );
+ }
+
+ static Decoration containerRadius(Color background, double radius) {
+ return BoxDecoration(
+ color: background,
+ border: Border.all(
+ width: 1, //
+ color: background // <--- border width here
+ ),
+ borderRadius: BorderRadius.circular(radius),
+ );
+ }
+
+ static Widget mHeight(double h) {
+ return Container(
+ height: h,
+ );
+ }
+
+ static Widget mDivider(Color color) {
+ return Divider(
+ // width: double.infinity,
+ height: 1,
+ color: color,
+ );
+ }
+
+ static Widget tableColumnValue(String text, {bool isCapitable = true, bool alignCenter = false}) {
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ 12.height,
+ if (alignCenter)
+ (isCapitable ? text.toLowerCase().capitalizeFirstofEach : text).toText12(color: MyColors.normalTextColor).center
+ else
+ (isCapitable ? text.toLowerCase().capitalizeFirstofEach : text).toText12(color: MyColors.normalTextColor),
+ 12.height,
+ ],
+ );
+ }
+
+ /// EIT Forms date formats
+
+ static String getMonthNamedFormat(DateTime date) {
+ /// it will return like "29-Sep-2022"
+ return DateFormat('dd-MMM-yyyy').format(date);
+ }
+
+ static String reverseFormatDate(String date) {
+ String formattedDate;
+ if (date.isNotEmpty) {
+ formattedDate = date.replaceAll('/', '-');
+ formattedDate = formattedDate.replaceAll(' 00:00:00', '');
+ } else {
+ formattedDate = date;
+ }
+ return formattedDate;
+ }
+
+ static String formatStandardDate(String date) {
+ String formattedDate;
+ if (date.isNotEmpty) {
+ formattedDate = date.replaceAll('-', '/');
+ } else {
+ formattedDate = date;
+ }
+ return formattedDate;
+ }
+
+ static String reverseFormatStandardDate(String date) {
+ String formattedDate;
+ if (date.isNotEmpty) {
+ formattedDate = date.replaceAll('/', '-');
+ } else {
+ formattedDate = date;
+ }
+ return formattedDate;
+ }
+
+ static String formatDate(String date) {
+ String formattedDate;
+
+ if (date.isNotEmpty) {
+ date = date.substring(0, 10);
+ formattedDate = date.replaceAll('-', '/');
+ formattedDate = formattedDate + ' 00:00:00';
+ } else {
+ formattedDate = date;
+ }
+ return formattedDate;
+ }
+
+ static String formatDateNew(String date) {
+ String formattedDate;
+ if (date.isNotEmpty) {
+ formattedDate = date.split('T')[0];
+ if (!formattedDate.contains("00:00:00")) {
+ formattedDate = formattedDate + ' 00:00:00';
+ }
+ } else {
+ formattedDate = date;
+ }
+ return formattedDate;
+ }
+
+ static Future selectDate(BuildContext context, DateTime selectedDate) async {
+ if (!Platform.isIOS) {
+ await showCupertinoModalPopup(
+ context: context,
+ builder: (cxt) => Container(
+ height: 250,
+ color: Colors.white,
+ child: CupertinoDatePicker(
+ backgroundColor: Colors.white,
+ mode: CupertinoDatePickerMode.date,
+ onDateTimeChanged: (value) {
+ if (value != null && value != selectedDate) {
+ selectedDate = value;
+ }
+ },
+ initialDateTime: selectedDate,
+ ),
+ ),
+ );
+ } else {
+ DateTime? picked = await showDatePicker(context: context, initialDate: selectedDate, initialEntryMode: DatePickerEntryMode.calendarOnly, firstDate: DateTime(2015, 8), lastDate: DateTime(2101));
+ if (picked != null && picked != selectedDate) {
+ selectedDate = picked;
+ }
+ }
+ return selectedDate;
+ }
+
+// static void readNFc({required Function(String) onRead}) {
+//
+// NfcManager.instance.startSession(onDiscovered: (NfcTag tag) async {
+// print(tag.data);
+// var f;
+// if (Platform.isAndroid) {
+// f = MifareUltralight(tag: tag, identifier: tag.data["nfca"]["identifier"], type: 2, maxTransceiveLength: 252, timeout: 22);
+// } else {
+// f = MifareUltralight(tag: tag, identifier: tag.data["mifare"]["identifier"], type: 2, maxTransceiveLength: 252, timeout: 22);
+// }
+// String identifier = f.identifier.map((e) => e.toRadixString(16).padLeft(2, '0')).join('');
+// NfcManager.instance.stopSession();
+// onRead(identifier);
+// }).catchError((err) {
+// print(err);
+// });
+// }
+}
diff --git a/lib/config/app_state.dart b/lib/config/app_state.dart
new file mode 100644
index 0000000..0651c80
--- /dev/null
+++ b/lib/config/app_state.dart
@@ -0,0 +1,89 @@
+import 'dart:io';
+
+import 'package:easy_localization/easy_localization.dart';
+import 'package:hmg_flutter_template/main.dart';
+import 'package:hmg_flutter_template/model/base/generic_response_model2.dart';
+import 'package:hmg_flutter_template/model/base/post_params_model.dart';
+import 'package:hmg_flutter_template/model/login/imei_details_model.dart';
+import 'package:hmg_flutter_template/model/login/list_doctors_clinic_model.dart';
+import 'package:hmg_flutter_template/model/login/member_login_model.dart';
+
+class AppState {
+ // static final AppState _instance = AppState._internal();
+ //
+ // AppState._internal();
+ //
+ // factory AppState() => _instance;
+
+ //Tokens
+ String? imei, logInTokenID, vidaAuthTokenID, vidaRefreshTokenID, authenticationTokenID;
+
+ int projectID = 0;
+ int clinicId = 0;
+
+ //TODO: Must be -1 before login or logout
+ int lastLoginTyp = -1;
+ int? doctorUserId;
+ int? employeeId;
+ String? password;
+ String? lastLoginDate;
+ GetIMEIDetailsModel? lastLoginImeiDate;
+ List? listDoctorsClinic;
+
+ int setupId=91877;
+
+ GenericResponseModel2? doctorProfile;
+
+ bool isAuthenticated = false;
+
+ set setIsAuthenticated(v) => isAuthenticated = v;
+
+ bool isLogged = false;
+
+ PostParamsModel _postParamsInitConfig = PostParamsModel(
+ tokenID: "",
+ languageID: 2,
+ stamp: "",
+ iPAdress: "9.9.9.9",
+ versionID: 9,
+ channel: 9,
+ sessionID: "BlUSkYymTt",
+ isLoginForDoctorApp: true,
+ patientOutSA: false,
+ vidaAuthTokenID: null,
+ vidaRefreshTokenID: null,
+ deviceTypeID: 1,
+ generalID: 'Cs2020@2016\$2958',
+ );
+
+ void setPostParamsInitConfig() {
+ isAuthenticated = false;
+ isLogged = false;
+ _postParams = _postParamsInitConfig;
+ }
+
+ PostParamsModel? _postParams;
+
+ PostParamsModel? get postParamsObject => _postParams;
+
+ // Map get postParamsJson => isLogged ? (_postParams?.toJsonAfterLogin() ?? {}) : (_postParams?.toJson() ?? {});
+ Map get postParamsJson {
+ _postParams!.stamp = DateTime.now().toIso8601String();
+ _postParams?.vidaAuthTokenID = vidaAuthTokenID;
+ _postParams?.vidaRefreshTokenID = vidaRefreshTokenID;
+ _postParams?.imei = imei;
+ if(isLogged)
+ _postParams?.tokenID=authenticationTokenID;
+ return isLogged ? _postParams?.toJsonLogged() ?? {} : _postParams?.toJson() ?? {};
+ }
+
+ void setPostParamsModel(PostParamsModel _postParams) {
+ this._postParams = _postParams;
+ }
+
+ bool isArabic() => EasyLocalization.of(navigatorKey.currentContext!)?.locale.languageCode == "ar";
+
+ int getLanguageID(context) => EasyLocalization.of(context)?.locale.languageCode == "ar" ? 1 : 2;
+
+ MemberLoginModel? memberBeforeLogin;
+}
diff --git a/lib/config/dependencies.dart b/lib/config/dependencies.dart
new file mode 100644
index 0000000..b9d0130
--- /dev/null
+++ b/lib/config/dependencies.dart
@@ -0,0 +1,27 @@
+// import 'package:firebase_crashlytics/firebase_crashlytics.dart';
+// import 'package:flutter/material.dart';
+import 'package:hmg_flutter_template/config/app_state.dart';
+import 'package:hmg_flutter_template/services/api_client.dart';
+import 'package:hmg_flutter_template/services/api_repo/dashboard_api_repo.dart';
+import 'package:hmg_flutter_template/services/api_repo/login_api_repo.dart';
+import 'package:hmg_flutter_template/services/api_repo/patient_api_repo.dart';
+
+import 'package:hmg_flutter_template/services/firebase_service.dart';
+import 'package:injector/injector.dart';
+
+class AppDependencies {
+ static void addDependencies() {
+ Injector injector = Injector.appInstance;
+
+ //add dependencies as needed
+ //services
+ injector.registerSingleton(() => AppState());
+ injector.registerSingleton(() => ApiClient());
+ injector.registerSingleton(() => FirebaseService());
+
+ //repos
+ injector.registerSingleton(() => LoginApiRepo());
+ injector.registerSingleton(() => DashboardApiRepo());
+ injector.registerSingleton(() => PatientApiRepo());
+ }
+}
diff --git a/lib/config/routes.dart b/lib/config/routes.dart
new file mode 100644
index 0000000..04c7c5a
--- /dev/null
+++ b/lib/config/routes.dart
@@ -0,0 +1,33 @@
+import 'package:flutter/material.dart';
+import 'package:hmg_flutter_template/ui/dashboard/dashbaord_page.dart';
+import 'package:hmg_flutter_template/ui/login/login_method_page.dart';
+import 'package:hmg_flutter_template/ui/login/login_page.dart';
+import 'package:hmg_flutter_template/ui/login/splash_page.dart';
+
+
+class AppRoutes {
+ static const String initialPage = login;
+
+ //Login
+ static const String splash = "/splash";
+ static const String registerSelection = "/registerSelection";
+ static const String loginMethodsPage = "/loginMethodsPage";
+ static const String login = "/login";
+
+ //Dashboard
+ static const String dashboard = "/dashboard";
+ static const String searchPatient = "/searchPatient";
+ static const String searchedFor = "/searchedFor";
+ static const String patientProfile = "/patientProfile";
+ static const String vitalSigns = "/vitalSigns";
+
+ static final Map routes = {
+ //Login
+ splash: (BuildContext context) => SplashPage(),
+ login: (BuildContext context) => LoginPage(),
+ loginMethodsPage: (BuildContext context) => const LoginMethodsPage(),
+
+ //Dashboard
+ dashboard: (BuildContext context) => DashboardPage(),
+ };
+}
diff --git a/lib/exceptions/api_exception.dart b/lib/exceptions/api_exception.dart
new file mode 100644
index 0000000..d44100b
--- /dev/null
+++ b/lib/exceptions/api_exception.dart
@@ -0,0 +1,29 @@
+import 'dart:convert';
+
+import 'package:hmg_flutter_template/services/api_client.dart';
+
+class APIException implements Exception {
+ static const String BAD_REQUEST = 'api_common_bad_request';
+ static const String UNAUTHORIZED = 'api_common_unauthorized';
+ static const String FORBIDDEN = 'api_common_forbidden';
+ static const String NOT_FOUND = 'api_common_not_found';
+ static const String INTERNAL_SERVER_ERROR = 'api_common_internal_server_error';
+ static const String UPGRADE_REQUIRED = 'api_common_upgrade_required';
+ static const String BAD_RESPONSE_FORMAT = 'api_common_bad_response_format';
+ static const String OTHER = 'api_common_http_error';
+ static const String TIMEOUT = 'api_common_http_timeout';
+ static const String UNKNOWN = 'unexpected_error';
+
+ final String message;
+ final APIError? error;
+ final arguments;
+
+ const APIException(this.message, {this.arguments, this.error});
+
+ Map toJson() => {'message': message, 'error': error, 'arguments': '$arguments'};
+
+ @override
+ String toString() {
+ return jsonEncode(this);
+ }
+}
diff --git a/lib/extensions/int_extensions.dart b/lib/extensions/int_extensions.dart
new file mode 100644
index 0000000..7f8377d
--- /dev/null
+++ b/lib/extensions/int_extensions.dart
@@ -0,0 +1,15 @@
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+import 'package:hmg_flutter_template/classes/colors.dart';
+
+extension IntExtensions on int {
+ Widget get height => SizedBox(height: toDouble());
+
+ Widget get width => SizedBox(width: toDouble());
+
+ Widget get divider => Divider(height: toDouble(), thickness: toDouble(), color: MyColors.lightGreyEFColor);
+
+ Widget get makeItSquare => SizedBox(width: toDouble(), height: toDouble());
+
+
+}
diff --git a/lib/extensions/string_extensions.dart b/lib/extensions/string_extensions.dart
new file mode 100644
index 0000000..e2d0e2e
--- /dev/null
+++ b/lib/extensions/string_extensions.dart
@@ -0,0 +1,263 @@
+import 'package:auto_size_text/auto_size_text.dart';
+import 'package:flutter/cupertino.dart';
+import 'package:intl/intl.dart';
+import 'package:hmg_flutter_template/classes/colors.dart';
+import 'package:sizer/sizer.dart';
+
+extension CapExtension on String {
+ String get toCamelCase => "${this[0].toUpperCase()}${this.substring(1)}";
+
+ String get inCaps => '${this[0].toUpperCase()}${this.substring(1)}';
+
+ String get allInCaps => this.toUpperCase();
+
+ String get capitalizeFirstofEach => this.trim().length > 0 ? this.trim().toLowerCase().split(" ").map((str) => str.inCaps).join(" ") : "";
+}
+
+extension EmailValidator on String {
+ Widget get toWidget => Text(this);
+
+ Widget toText10({Color? color, bool isBold = false, int? maxlines, FontStyle? fontStyle, TextOverflow? textOverflow}) => Text(
+ this,
+ maxLines: maxlines,
+ overflow: textOverflow,
+ style: TextStyle(
+ fontSize: 10.sp,
+ fontStyle: fontStyle ?? FontStyle.normal,
+ fontWeight: isBold ? FontWeight.bold : FontWeight.w600,
+ color: color ?? MyColors.darkTextColor,
+ letterSpacing: -0.4,
+ ),
+ );
+
+ Widget toText11({Color? color, FontWeight? weight, bool isUnderLine = false, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(
+ fontSize: 11.sp,
+ fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.w600),
+ color: color ?? MyColors.darkTextColor,
+ letterSpacing: -0.33,
+ decoration: isUnderLine ? TextDecoration.underline : null,
+ ),
+ );
+
+ Widget toText12({Color? color, bool isUnderLine = false, bool isBold = false, bool isCenter = false, int maxLine = 0}) => Text(
+ this,
+ textAlign: isCenter ? TextAlign.center : null,
+ maxLines: (maxLine > 0) ? maxLine : null,
+ style: TextStyle(
+ fontSize: 12.sp,
+ fontWeight: isBold ? FontWeight.bold : FontWeight.w600,
+ color: color ?? MyColors.darkTextColor,
+ letterSpacing: -0.72,
+ decoration: isUnderLine ? TextDecoration.underline : null,
+ ),
+ );
+
+ Widget toText12Auto({Color? color, bool isUnderLine = false, bool isBold = false, bool isCenter = false, int maxLine = 0}) => AutoSizeText(
+ this,
+ textAlign: isCenter ? TextAlign.center : null,
+ maxLines: (maxLine > 0) ? maxLine : null,
+ minFontSize: 8,
+ style: TextStyle(
+ fontSize: 12.sp,
+ fontWeight: isBold ? FontWeight.bold : FontWeight.w600,
+ color: color ?? MyColors.darkTextColor,
+ letterSpacing: -0.72,
+ decoration: isUnderLine ? TextDecoration.underline : null,
+ ),
+ );
+
+ Widget toTextAuto({
+ Color? color,
+ bool isUnderLine = false,
+ bool isBold = false,
+ bool isCenter = false,
+ int maxLine = 0,
+ double fontSize = 12,
+ double letterSpacing = -0.72,
+ double height = 1,
+ TextOverflow? textOverflow,
+ FontWeight? fontWeight,
+ }) =>
+ AutoSizeText(
+ this,
+ textAlign: isCenter ? TextAlign.center : null,
+ maxLines: (maxLine > 0) ? maxLine : null,
+ minFontSize: 5,
+ overflow: textOverflow,
+ style: TextStyle(
+ fontSize: fontSize,
+ fontWeight: fontWeight ?? (isBold
+ ? FontWeight.bold
+ : FontWeight.w600),
+ color: color ?? MyColors.darkTextColor,
+ letterSpacing: letterSpacing,
+ decoration: isUnderLine ? TextDecoration.underline : null,
+ ),
+ );
+
+ Widget toText13({Color? color, bool isUnderLine = false}) => Text(
+ this,
+ style: TextStyle(fontSize: 13.sp, fontWeight: FontWeight.w600, color: color ?? MyColors.darkTextColor, letterSpacing: -0.52, decoration: isUnderLine ? TextDecoration.underline : null),
+ );
+
+ Widget toText14({Color? color, bool isUnderLine = false, bool isBold = false, FontWeight? weight, int? maxlines}) => Text(
+ this,
+ maxLines: maxlines,
+ style: TextStyle(
+ color: color ?? MyColors.darkTextColor,
+ fontSize: 14.sp,
+ letterSpacing: -0.48,
+ fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.w600),
+ decoration: isUnderLine ? TextDecoration.underline : null),
+ );
+
+ Widget toText16({
+ Color? color,
+ bool isUnderLine = false,
+ bool isBold = false,
+ int? maxlines,
+ TextAlign? textAlign,
+ }) =>
+ Text(
+ this,
+ maxLines: maxlines,
+ textAlign: textAlign,
+ style: TextStyle(
+ color: color ?? MyColors.darkTextColor,
+ fontSize: 16.sp,
+ letterSpacing: -0.64,
+ fontWeight: isBold ? FontWeight.bold : FontWeight.w600,
+ decoration: isUnderLine ? TextDecoration.underline : null,
+ ),
+ );
+
+ Widget toText17({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(color: color ?? MyColors.darkTextColor, fontSize: 17.sp, letterSpacing: -0.68, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toText18({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(fontSize: 18.sp, fontWeight: isBold ? FontWeight.bold : FontWeight.w600, color: color ?? MyColors.darkTextColor, letterSpacing: -1.08),
+ );
+
+ Widget toText19({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(fontSize: 19.sp, fontWeight: isBold ? FontWeight.bold : FontWeight.w600, color: color ?? MyColors.darkTextColor, letterSpacing: -1.14),
+ );
+
+ Widget toText20({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(fontSize: 20.sp, fontWeight: isBold ? FontWeight.bold : FontWeight.w600, color: color ?? MyColors.darkTextColor, letterSpacing: -0.4),
+ );
+
+ Widget toText21({Color? color, bool isBold = false, FontWeight? weight, int? maxlines}) => Text(
+ this,
+ maxLines: maxlines,
+ style: TextStyle(color: color ?? MyColors.grey3AColor, fontSize: 21.sp, letterSpacing: -0.31, fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.w600)),
+ );
+
+ Widget toText22({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(height: 1, color: color ?? MyColors.darkTextColor, fontSize: 22.sp, letterSpacing: -1.44, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toText24({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(height: 23 / 24, color: color ?? MyColors.darkTextColor, fontSize: 24.sp, letterSpacing: -1.44, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toText32({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(height: 32 / 32, color: color ?? MyColors.darkTextColor, fontSize: 32.sp, letterSpacing: -1.92, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toText44({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(height: 32 / 32, color: color ?? MyColors.darkTextColor, fontSize: 44.sp, letterSpacing: -2.64, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toSectionHeading({String upperHeading = "", String lowerHeading = ""}) {
+ String upper = "";
+ String lower = "";
+ String heading = this;
+ if (heading.isNotEmpty) {
+ List data = heading.split(" ");
+
+ if (data.length > 1) {
+ upper = data[0];
+ data.removeAt(0);
+ lower = data.join(" ");
+ } else {
+ lower = data[0];
+ }
+ }
+ if (upperHeading.isNotEmpty) {
+ upper = upperHeading;
+ }
+ if (lowerHeading.isNotEmpty) {
+ lower = lowerHeading;
+ }
+
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ if (upper.isNotEmpty) upper.toText12(),
+ lower.toText24(isBold: true),
+ ],
+ );
+ }
+
+ bool isValidEmail() {
+ return RegExp(r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$').hasMatch(this);
+ }
+
+ String toFormattedDate() {
+ String date = this.split("T")[0];
+ String time = this.split("T")[1];
+ var dates = date.split("-");
+ return "${dates[2]} ${getMonth(int.parse(dates[1]))} ${dates[0]} ${DateFormat('hh:mm a').format(DateFormat('hh:mm:ss').parse(time))}";
+ }
+
+ String getMonth(int month) {
+ switch (month) {
+ case 1:
+ return "January";
+ case 2:
+ return "February";
+ case 3:
+ return "March";
+ case 4:
+ return "April";
+ case 5:
+ return "May";
+ case 6:
+ return "June";
+ case 7:
+ return "July";
+ case 8:
+ return "August";
+ case 9:
+ return "September";
+ case 10:
+ return "October";
+ case 11:
+ return "November";
+ case 12:
+ return "December";
+ default:
+ return "";
+ }
+ }
+
+ String truncate(int max, {String suffix = ''}) {
+ try {
+ return length <= max ? this : '${substring(0, max - suffix.length)}$suffix';
+ } catch (e) {
+ return this;
+ }
+ }
+}
diff --git a/lib/extensions/util_extensions.dart b/lib/extensions/util_extensions.dart
new file mode 100644
index 0000000..349f821
--- /dev/null
+++ b/lib/extensions/util_extensions.dart
@@ -0,0 +1,33 @@
+import 'package:hmg_flutter_template/classes/enums.dart';
+
+extension SelectedAuthMethodTypesService on AuthMethodTypes {
+ int getTypeIdService() {
+ switch (this) {
+ case AuthMethodTypes.sms:
+ return 1;
+ case AuthMethodTypes.whatsApp:
+ return 2;
+ case AuthMethodTypes.fingerPrint:
+ return 3;
+ case AuthMethodTypes.faceID:
+ return 4;
+ case AuthMethodTypes.moreOptions:
+ return 5;
+ }
+ }
+
+ static getMethodsTypeService(int typeId) {
+ switch (typeId) {
+ case 1:
+ return AuthMethodTypes.sms;
+ case 2:
+ return AuthMethodTypes.whatsApp;
+ case 3:
+ return AuthMethodTypes.fingerPrint;
+ case 4:
+ return AuthMethodTypes.faceID;
+ case 5:
+ return AuthMethodTypes.moreOptions;
+ }
+ }
+}
diff --git a/lib/extensions/widget_extensions.dart b/lib/extensions/widget_extensions.dart
new file mode 100644
index 0000000..5463bf3
--- /dev/null
+++ b/lib/extensions/widget_extensions.dart
@@ -0,0 +1,157 @@
+import 'package:flutter/material.dart';
+import 'package:flutter/widgets.dart';
+import 'package:hmg_flutter_template/classes/colors.dart';
+import 'package:hmg_flutter_template/extensions/int_extensions.dart';
+import 'package:hmg_flutter_template/extensions/string_extensions.dart';
+import 'package:shimmer/shimmer.dart';
+import 'package:sizer/sizer.dart';
+
+extension WidgetExtensions on Widget {
+ Widget onPress(VoidCallback onTap) => InkWell(onTap: onTap, child: this);
+
+ Widget get expanded => Expanded(child: this);
+
+ Widget get center => Center(child: this);
+
+ Widget circle(double _value) => ClipRRect(borderRadius: BorderRadius.circular(_value), child: this);
+
+
+ Widget paddingAll(double _value) => Padding(padding: EdgeInsets.all(_value), child: this);
+
+ Widget paddingSymmetrical(double horizontal, double vertical) => Padding(padding: EdgeInsets.symmetric(horizontal: horizontal, vertical: vertical), child: this);
+
+ Widget paddingOnly({double left = 0.0, double right = 0.0, double top = 0.0, double bottom = 0.0}) =>
+ Padding(padding: EdgeInsets.only(left: left, right: right, top: top, bottom: bottom), child: this);
+
+ Widget toExpanded({int flex = 1}) => Expanded(flex: flex, child: this);
+
+ Widget toShimmer({bool isShow = true}) => isShow
+ ? Shimmer.fromColors(
+ baseColor: Color(0xffe8eff0),
+ highlightColor: Colors.white,
+ child: Container(
+ color: Colors.white,
+ child: this,
+ ),
+ )
+ : Container(
+ child: this,
+ );
+
+ Widget animatedSwither() => AnimatedSwitcher(
+ duration: const Duration(milliseconds: 500),
+ // transitionBuilder: (Widget child, Animation animation) {
+ // return ScaleTransition(scale: animation, child: child);
+ // },
+ switchInCurve: Curves.linearToEaseOut,
+ switchOutCurve: Curves.linearToEaseOut,
+ child: this,
+ );
+
+ Widget objectContainerView({String title = "", String note = "", bool disablePadding = false, double radius = 15}) {
+ return Container(
+ padding: disablePadding ? EdgeInsets.zero : const EdgeInsets.only(top: 15, bottom: 15, left: 14, right: 14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(radius),
+ boxShadow: [
+ BoxShadow(
+ color: const Color(0xff000000).withOpacity(.05),
+ blurRadius: 26,
+ offset: const Offset(0, -3),
+ ),
+ ],
+ ),
+ alignment: Alignment.center,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ if (title.isNotEmpty) title.toText16(),
+ if (title.isNotEmpty) 12.height,
+ this,
+ if (note.isNotEmpty) note.toText11(),
+ ],
+ ),
+ );
+ }
+
+ Widget objectContainerBorderView(
+ {String title = "",
+ String note = "",
+ bool disablePadding = false,
+ double radius = 15,
+ Color? color,
+ Color borderColor = MyColors.lightGreyEFColor,
+ bool disableWidth = false,
+ bool isAlignment = false}) {
+ return Container(
+ padding: disablePadding ? EdgeInsets.zero : const EdgeInsets.only(top: 15, bottom: 15, left: 14, right: 14),
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(radius),
+ color: color,
+ border: Border.all(
+ color: borderColor,
+ width: disableWidth ? 2 : 1,
+ ),
+ ),
+ alignment: isAlignment ? Alignment.center : null,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ if (title.isNotEmpty) title.toText16(),
+ if (title.isNotEmpty) 12.height,
+ this,
+ if (note.isNotEmpty) note.toText11(),
+ ],
+ ),
+ );
+ }
+}
+
+//Height Spacers in percentages
+Widget heightSpacer02per() => SizedBox(height: 0.2.h);
+
+Widget heightSpacer04per() => SizedBox(height: 0.4.h);
+
+Widget heightSpacer06per() => SizedBox(height: 0.6.h);
+
+Widget heightSpacer08per() => SizedBox(height: 0.8.h);
+
+Widget heightSpacer1per() => SizedBox(height: 1.h);
+
+Widget heightSpacer2per() => SizedBox(height: 2.h);
+
+Widget heightSpacer3per() => SizedBox(height: 3.h);
+
+Widget heightSpacer4per() => SizedBox(height: 4.h);
+
+Widget heightSpacer5per() => SizedBox(height: 5.h);
+
+Widget heightSpacer8per() => SizedBox(height: 8.h);
+
+Widget heightSpacer10per() => SizedBox(height: 10.h);
+
+Widget heightSpacer15per() => SizedBox(height: 15.h);
+
+Widget heightSpacer20per() => SizedBox(height: 20.h);
+
+//Width Spacers in percentages
+Widget widthSpacer02perc() => SizedBox(height: 0.2.w);
+
+Widget widthSpacer04perc() => SizedBox(height: 0.4.w);
+
+Widget widthSpacer06perc() => SizedBox(height: 0.6.w);
+
+Widget widthSpacer08per() => SizedBox(height: 0.8.w);
+
+Widget widthSpacer1per() => SizedBox(height: 1.w);
+
+Widget widthSpacer2per() => SizedBox(height: 2.w);
+
+Widget widthSpacer3per() => SizedBox(height: 3.w);
+
+Widget widthSpacer4per() => SizedBox(height: 4.w);
+
+Widget widthSpacer5per() => SizedBox(height: 5.w);
diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart
new file mode 100644
index 0000000..09234fb
--- /dev/null
+++ b/lib/generated/codegen_loader.g.dart
@@ -0,0 +1,132 @@
+// DO NOT EDIT. This is code generated via package:easy_localization/generate.dart
+
+// ignore_for_file: prefer_single_quotes
+
+import 'dart:ui';
+
+import 'package:easy_localization/easy_localization.dart' show AssetLoader;
+
+class CodegenLoader extends AssetLoader{
+ const CodegenLoader();
+
+ @override
+ Future