diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..034a5be
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,48 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+*.lock
+.DS_Store
+pubspec.lock
+.atom/
+.buildlog/
+.history
+.svn/
+
+# 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/
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# 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..0f055bf
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,10 @@
+# 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 and should not be manually edited.
+
+version:
+ revision: ffb2ecea5223acdd139a5039be2f9c796962833d
+ channel: stable
+
+project_type: app
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..90c25c1
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,34 @@
+# 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:
+ always_specify_types: true
+ always_declare_return_types: true
+ always_use_package_imports: true
+ avoid_empty_else: true
+ avoid_annotating_with_dynamic: true
+ # 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..4e4b395
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,68 @@
+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"
+
+android {
+ compileSdkVersion 31
+
+ 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.mohem_flutter_app"
+ minSdkVersion 16
+ targetSdkVersion 30
+ 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/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..50ab38d
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..472e794
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/mohem_flutter_app/MainActivity.kt b/android/app/src/main/kotlin/com/mohem_flutter_app/MainActivity.kt
new file mode 100644
index 0000000..ec84fc4
--- /dev/null
+++ b/android/app/src/main/kotlin/com/mohem_flutter_app/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.mohem_flutter_app
+
+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..449a9f9
--- /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..d74aa35
--- /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..50ab38d
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..66edc25
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,29 @@
+buildscript {
+ ext.kotlin_version = '1.6.0'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.0.3'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+ 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..ed1a787
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Jun 23 08:50:38 CEST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.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/ar/Cairo-Bold/Cairo-Bold.eot b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.eot
new file mode 100644
index 0000000..ed5f0c3
Binary files /dev/null and b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.eot differ
diff --git a/assets/fonts/ar/Cairo-Bold/Cairo-Bold.otf b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.otf
new file mode 100644
index 0000000..8bc25fb
Binary files /dev/null and b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.otf differ
diff --git a/assets/fonts/ar/Cairo-Bold/Cairo-Bold.ttf b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.ttf
new file mode 100644
index 0000000..4f02689
Binary files /dev/null and b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.ttf differ
diff --git a/assets/fonts/ar/Cairo-Bold/Cairo-Bold.woff b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.woff
new file mode 100644
index 0000000..91e3d06
Binary files /dev/null and b/assets/fonts/ar/Cairo-Bold/Cairo-Bold.woff differ
diff --git a/assets/fonts/ar/Cairo-Light/Cairo-Light.eot b/assets/fonts/ar/Cairo-Light/Cairo-Light.eot
new file mode 100644
index 0000000..d76c539
Binary files /dev/null and b/assets/fonts/ar/Cairo-Light/Cairo-Light.eot differ
diff --git a/assets/fonts/ar/Cairo-Light/Cairo-Light.otf b/assets/fonts/ar/Cairo-Light/Cairo-Light.otf
new file mode 100644
index 0000000..f8812a9
Binary files /dev/null and b/assets/fonts/ar/Cairo-Light/Cairo-Light.otf differ
diff --git a/assets/fonts/ar/Cairo-Light/Cairo-Light.ttf b/assets/fonts/ar/Cairo-Light/Cairo-Light.ttf
new file mode 100644
index 0000000..840cbc3
Binary files /dev/null and b/assets/fonts/ar/Cairo-Light/Cairo-Light.ttf differ
diff --git a/assets/fonts/ar/Cairo-Light/Cairo-Light.woff b/assets/fonts/ar/Cairo-Light/Cairo-Light.woff
new file mode 100644
index 0000000..9534bb4
Binary files /dev/null and b/assets/fonts/ar/Cairo-Light/Cairo-Light.woff differ
diff --git a/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.eot b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.eot
new file mode 100644
index 0000000..98bc246
Binary files /dev/null and b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.eot differ
diff --git a/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.otf b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.otf
new file mode 100644
index 0000000..73f8bf0
Binary files /dev/null and b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.otf differ
diff --git a/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.ttf b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.ttf
new file mode 100644
index 0000000..177a3b6
Binary files /dev/null and b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.ttf differ
diff --git a/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.woff b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.woff
new file mode 100644
index 0000000..8d7013c
Binary files /dev/null and b/assets/fonts/en/WorkSans-Bold/WorkSans-Bold.woff differ
diff --git a/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.eot b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.eot
new file mode 100644
index 0000000..9541e41
Binary files /dev/null and b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.eot differ
diff --git a/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.otf b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.otf
new file mode 100644
index 0000000..be5e0ac
Binary files /dev/null and b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.otf differ
diff --git a/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.ttf b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.ttf
new file mode 100644
index 0000000..0b010ad
Binary files /dev/null and b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.ttf differ
diff --git a/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.woff b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.woff
new file mode 100644
index 0000000..12226d7
Binary files /dev/null and b/assets/fonts/en/WorkSans-Light/WorkSans-Light_0.woff differ
diff --git a/assets/fonts/en/WorkSans-Light/WorkSans-Regular.otf b/assets/fonts/en/WorkSans-Light/WorkSans-Regular.otf
new file mode 100644
index 0000000..be88832
Binary files /dev/null and b/assets/fonts/en/WorkSans-Light/WorkSans-Regular.otf differ
diff --git a/assets/fonts/en/WorkSans-Light/WorkSans-Regular.ttf b/assets/fonts/en/WorkSans-Light/WorkSans-Regular.ttf
new file mode 100644
index 0000000..0ac4520
Binary files /dev/null and b/assets/fonts/en/WorkSans-Light/WorkSans-Regular.ttf differ
diff --git a/assets/fonts/en/WorkSans-Light/WorkSans-Regular.woff b/assets/fonts/en/WorkSans-Light/WorkSans-Regular.woff
new file mode 100644
index 0000000..89af38b
Binary files /dev/null and b/assets/fonts/en/WorkSans-Light/WorkSans-Regular.woff differ
diff --git a/assets/fonts/poppins/Poppins-Black.ttf b/assets/fonts/poppins/Poppins-Black.ttf
new file mode 100644
index 0000000..a9520b7
Binary files /dev/null and b/assets/fonts/poppins/Poppins-Black.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-ExtraBold.ttf b/assets/fonts/poppins/Poppins-ExtraBold.ttf
new file mode 100644
index 0000000..8f008c3
Binary files /dev/null and b/assets/fonts/poppins/Poppins-ExtraBold.ttf differ
diff --git a/assets/fonts/poppins/Poppins-ExtraLight.ttf b/assets/fonts/poppins/Poppins-ExtraLight.ttf
new file mode 100644
index 0000000..ee62382
Binary files /dev/null and b/assets/fonts/poppins/Poppins-ExtraLight.ttf differ
diff --git a/assets/fonts/poppins/Poppins-Light.ttf b/assets/fonts/poppins/Poppins-Light.ttf
new file mode 100644
index 0000000..2ab0221
Binary files /dev/null and b/assets/fonts/poppins/Poppins-Light.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..dabf7c2
Binary files /dev/null and b/assets/fonts/poppins/Poppins-SemiBold.ttf differ
diff --git a/assets/fonts/poppins/Poppins-Thin.ttf b/assets/fonts/poppins/Poppins-Thin.ttf
new file mode 100644
index 0000000..f5c0fdd
Binary files /dev/null and b/assets/fonts/poppins/Poppins-Thin.ttf differ
diff --git a/assets/icons/ic_face_id.png b/assets/icons/ic_face_id.png
new file mode 100644
index 0000000..913e850
Binary files /dev/null and b/assets/icons/ic_face_id.png differ
diff --git a/assets/icons/ic_fingerprint.png b/assets/icons/ic_fingerprint.png
new file mode 100644
index 0000000..bf73197
Binary files /dev/null and b/assets/icons/ic_fingerprint.png differ
diff --git a/assets/icons/ic_sms.png b/assets/icons/ic_sms.png
new file mode 100644
index 0000000..aa72e0e
Binary files /dev/null and b/assets/icons/ic_sms.png differ
diff --git a/assets/icons/ic_whatsapp.png b/assets/icons/ic_whatsapp.png
new file mode 100644
index 0000000..3f36403
Binary files /dev/null and b/assets/icons/ic_whatsapp.png differ
diff --git a/assets/images/add.svg b/assets/images/add.svg
new file mode 100644
index 0000000..0230942
--- /dev/null
+++ b/assets/images/add.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/announcements.svg b/assets/images/announcements.svg
new file mode 100644
index 0000000..d204e60
--- /dev/null
+++ b/assets/images/announcements.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/images/arrow_next.svg b/assets/images/arrow_next.svg
new file mode 100644
index 0000000..76de3b9
--- /dev/null
+++ b/assets/images/arrow_next.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/clear_field.svg b/assets/images/clear_field.svg
new file mode 100644
index 0000000..618ed79
--- /dev/null
+++ b/assets/images/clear_field.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/clock.svg b/assets/images/clock.svg
new file mode 100644
index 0000000..bc9faed
--- /dev/null
+++ b/assets/images/clock.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/close.svg b/assets/images/close.svg
new file mode 100644
index 0000000..7ef696b
--- /dev/null
+++ b/assets/images/close.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/delegate.svg b/assets/images/delegate.svg
new file mode 100644
index 0000000..aa2bd7a
--- /dev/null
+++ b/assets/images/delegate.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/dot_circle.svg b/assets/images/dot_circle.svg
new file mode 100644
index 0000000..b3ac566
--- /dev/null
+++ b/assets/images/dot_circle.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/fav.svg b/assets/images/fav.svg
new file mode 100644
index 0000000..ebbaf1c
--- /dev/null
+++ b/assets/images/fav.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/jpg.svg b/assets/images/jpg.svg
new file mode 100644
index 0000000..cfda5a7
--- /dev/null
+++ b/assets/images/jpg.svg
@@ -0,0 +1,12 @@
+
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/logos/loading_mohemm_logo.gif b/assets/images/logos/loading_mohemm_logo.gif
new file mode 100644
index 0000000..ffefdb0
Binary files /dev/null and b/assets/images/logos/loading_mohemm_logo.gif differ
diff --git a/assets/images/logos/mohemm_logo.svg b/assets/images/logos/mohemm_logo.svg
new file mode 100644
index 0000000..1cb9a0b
--- /dev/null
+++ b/assets/images/logos/mohemm_logo.svg
@@ -0,0 +1,62 @@
+
+
+
diff --git a/assets/images/miss_swipe.svg b/assets/images/miss_swipe.svg
new file mode 100644
index 0000000..05d32f2
--- /dev/null
+++ b/assets/images/miss_swipe.svg
@@ -0,0 +1,13 @@
+
diff --git a/assets/images/monthly_attendance.svg b/assets/images/monthly_attendance.svg
new file mode 100644
index 0000000..c84a9a1
--- /dev/null
+++ b/assets/images/monthly_attendance.svg
@@ -0,0 +1,15 @@
+
diff --git a/assets/images/more_dotted.svg b/assets/images/more_dotted.svg
new file mode 100644
index 0000000..add7848
--- /dev/null
+++ b/assets/images/more_dotted.svg
@@ -0,0 +1,19 @@
+
diff --git a/assets/images/nfc.svg b/assets/images/nfc.svg
new file mode 100644
index 0000000..aff027e
--- /dev/null
+++ b/assets/images/nfc.svg
@@ -0,0 +1,7 @@
+
diff --git a/assets/images/pdf.svg b/assets/images/pdf.svg
new file mode 100644
index 0000000..fc59aea
--- /dev/null
+++ b/assets/images/pdf.svg
@@ -0,0 +1,12 @@
+
diff --git a/assets/images/png.svg b/assets/images/png.svg
new file mode 100644
index 0000000..2a0091d
--- /dev/null
+++ b/assets/images/png.svg
@@ -0,0 +1,12 @@
+
diff --git a/assets/images/request_info.svg b/assets/images/request_info.svg
new file mode 100644
index 0000000..43ac9c1
--- /dev/null
+++ b/assets/images/request_info.svg
@@ -0,0 +1,7 @@
+
diff --git a/assets/images/side_nav.svg b/assets/images/side_nav.svg
new file mode 100644
index 0000000..a53378f
--- /dev/null
+++ b/assets/images/side_nav.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/images/skip.svg b/assets/images/skip.svg
new file mode 100644
index 0000000..01831e0
--- /dev/null
+++ b/assets/images/skip.svg
@@ -0,0 +1,14 @@
+
diff --git a/assets/images/stop.svg b/assets/images/stop.svg
new file mode 100644
index 0000000..5f658a8
--- /dev/null
+++ b/assets/images/stop.svg
@@ -0,0 +1,14 @@
+
diff --git a/assets/images/ticket_request.svg b/assets/images/ticket_request.svg
new file mode 100644
index 0000000..f489a8e
--- /dev/null
+++ b/assets/images/ticket_request.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/images/un_fav.svg b/assets/images/un_fav.svg
new file mode 100644
index 0000000..de1b852
--- /dev/null
+++ b/assets/images/un_fav.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/work_from_home.svg b/assets/images/work_from_home.svg
new file mode 100644
index 0000000..cf9a8d7
--- /dev/null
+++ b/assets/images/work_from_home.svg
@@ -0,0 +1,11 @@
+
diff --git a/assets/images/wufu.svg b/assets/images/wufu.svg
new file mode 100644
index 0000000..dd3ebab
--- /dev/null
+++ b/assets/images/wufu.svg
@@ -0,0 +1,11 @@
+
diff --git a/assets/images/xls.svg b/assets/images/xls.svg
new file mode 100644
index 0000000..658ba92
--- /dev/null
+++ b/assets/images/xls.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..1d9e8bc
--- /dev/null
+++ b/assets/langs/ar-SA.json
@@ -0,0 +1,89 @@
+{
+ "mohemm": "Mohemm",
+ "english": "English",
+ "arabic": "Arabic",
+ "login": "تسجيل الدخول",
+ "pleaseEnterLoginDetails": "الرجاء إدخال التفاصيل أدناه لتسجيل الدخول",
+ "username": "اسم المستخدم",
+ "password": "كلمة المرور",
+ "welcomeBack": "مرحبا بعودتك",
+ "wouldYouLikeToLoginWithCurrentUsername": "هل ترغب في تسجيل الدخول باسم المستخدم الحالي؟",
+ "lastLoginDetails": "تفاصيل تسجيل الدخول الأخير:",
+ "verificationType": "نوع التحقق:",
+ "pleaseVerify": "ارجوك تحقق",
+ "verifyThroughFace": "تحقق من خلال الوجه",
+ "verifyThroughFingerprint": "تحقق من خلال بصمة الإصبع",
+ "verifyThroughSMS": "تحقق من خلال الرسائل القصيرة",
+ "verifyThroughWhatsapp": "تحقق من خلال Whatsapp",
+ "useAnotherAccount": "استخدم حسابا آخر",
+ "pleaseEnterTheVerificationCodeSentTo": "الرجاء إدخال رمز التحقق المرسل إلى ",
+ "theVerificationCodeWillExpireIn": "ستنتهي صلاحية رمز التحقق في ",
+ "goodMorning": "صباح الخير",
+ "markAttendance": "علامة الحضور",
+ "timeLeftToday": "الوقت المتبقي اليوم",
+ "checkIn": "تحقق في",
+ "workList": "قائمة العمل",
+ "leaveBalance": "رصيد الاجازات",
+ "missingSwipes": "الضربات الشديدة في عداد المفقودين",
+ "ticketBalance": "رصيد التذكرة",
+ "other": "آخر",
+ "services": "خدمات",
+ "viewAllServices": "عرض جميع الخدمات",
+ "monthlyAttendance": "الحضور الشهري",
+ "workFromHome": "العمل من المنزل",
+ "ticketRequest": "طلب تذكرة",
+ "viewAllOffers": "مشاهدة جميع العروض",
+ "offers": "عروض & ",
+ "discounts": "الخصومات",
+ "newString": "جديد",
+ "setTheNewPassword": "قم بتعيين كلمة المرور الجديدة",
+ "typeYourNewPasswordBelow": "اكتب كلمة المرور الجديدة أدناه",
+ "confirmPassword": "تأكيد كلمة المرور",
+ "update": "تحديث",
+ "title": "عنوان",
+ "home": "مسكن",
+ "mySalary": "راتبي",
+ "createRequest": "إنشاء طلب",
+ "forgotPassword": "هل نسيت كلمة السر",
+ "employeeId": "هوية الموظف",
+ "loginCodeWillSentToMobileNumber": "الرجاء إدخال معرف الموظف الخاص بك ، وسيتم إرسال رمز تسجيل الدخول إلى رقم هاتفك المحمول",
+ "changePassword": "تغيير كلمة المرور",
+ "itemsForSale": "سلع للبيع",
+ "msg": "Hello {} in the {} world ",
+ "msg_named": "{} are written in the {lang} language",
+ "clickMe": "Click me",
+ "human": "Human",
+ "resources": "Resources",
+ "profile": {
+ "reset_password": {
+ "label": "Reset Password",
+ "username": "Username",
+ "password": "password"
+ }
+ },
+ "clicked": {
+ "zero": "You clicked {} times!",
+ "one": "You clicked {} time!",
+ "two": "You clicked {} times!",
+ "few": "You clicked {} times!",
+ "many": "You clicked {} times!",
+ "other": "You clicked {} times!"
+ },
+ "amount": {
+ "zero": "Your amount : {} ",
+ "one": "Your amount : {} ",
+ "two": "Your amount : {} ",
+ "few": "Your amount : {} ",
+ "many": "Your amount : {} ",
+ "other": "Your amount : {} "
+ },
+ "gender": {
+ "male": "Hi man ;) ",
+ "female": "Hello girl :)",
+ "with_arg": {
+ "male": "Hi man ;) {}",
+ "female": "Hello girl :) {}"
+ }
+ },
+ "reset_locale": "Reset Language"
+}
\ 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..9c812ce
--- /dev/null
+++ b/assets/langs/en-US.json
@@ -0,0 +1,89 @@
+{
+ "mohemm": "Mohemm",
+ "english": "English",
+ "arabic": "Arabic",
+ "login": "Login",
+ "pleaseEnterLoginDetails": "Please enter the detail below to login",
+ "username": "Username",
+ "password": "Password",
+ "welcomeBack": "Welcome back",
+ "wouldYouLikeToLoginWithCurrentUsername": "Would you like to login with current Username?",
+ "lastLoginDetails": "Last Login Details:",
+ "verificationType": "Verification Type:",
+ "pleaseVerify": "Please Verify",
+ "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",
+ "leaveBalance": "Leave Balance",
+ "missingSwipes": "Missing Swipes",
+ "ticketBalance": "Ticket Balance",
+ "other": "Other",
+ "services": "Services",
+ "viewAllServices": "View All Services",
+ "monthlyAttendance": "Monthly Attendance",
+ "workFromHome": "Work From Home",
+ "ticketRequest": "Ticket Request",
+ "viewAllOffers": "View All Offers",
+ "offers": "Offers & ",
+ "discounts": "Discounts",
+ "newString": "New",
+ "setTheNewPassword": "Set the new password",
+ "typeYourNewPasswordBelow": "Type your new password below",
+ "confirmPassword": "Confirm Password",
+ "update": "Update",
+ "title": "Title",
+ "home": "Home",
+ "mySalary": "My Salary",
+ "createRequest": "Create Request",
+ "forgotPassword": "Forgot Password",
+ "employeeId": "Employee ID",
+ "loginCodeWillSentToMobileNumber": "Please Enter your Employee ID, A login code will be sent to your mobile number",
+ "changePassword": "Change Password",
+ "itemsForSale": "Items for Sale",
+ "msg": "Hello {} in the {} world ",
+ "msg_named": "{} are written in the {lang} language",
+ "clickMe": "Click me",
+ "human": "Human",
+ "resources": "Resources",
+ "profile": {
+ "reset_password": {
+ "label": "Reset Password",
+ "username": "Username",
+ "password": "password"
+ }
+ },
+ "clicked": {
+ "zero": "You clicked {} times!",
+ "one": "You clicked {} time!",
+ "two": "You clicked {} times!",
+ "few": "You clicked {} times!",
+ "many": "You clicked {} times!",
+ "other": "You clicked {} times!"
+ },
+ "amount": {
+ "zero": "Your amount : {} ",
+ "one": "Your amount : {} ",
+ "two": "Your amount : {} ",
+ "few": "Your amount : {} ",
+ "many": "Your amount : {} ",
+ "other": "Your amount : {} "
+ },
+ "gender": {
+ "male": "Hi man ;) ",
+ "female": "Hello girl :)",
+ "with_arg": {
+ "male": "Hi man ;) {}",
+ "female": "Hello girl :) {}"
+ }
+ },
+ "reset_locale": "Reset Language"
+}
\ No newline at end of file
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..151026b
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,33 @@
+*.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..8d4492f
--- /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
+ 9.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..ec97fc6
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..c4855bf
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..7ca764b
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,539 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ 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 */; };
+ 6BB994F47479089301AC9232 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CBD2B2B1A504A0E0BA52E83 /* Pods_Runner.framework */; };
+ 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 = ""; };
+ 3085328F552329DC897B71DD /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ 3A5ABA8306DCFDB9E71D453A /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 3B4D9CAD3B112CCF7FEE1F91 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ 6CBD2B2B1A504A0E0BA52E83 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 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 = (
+ 6BB994F47479089301AC9232 /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 6BD33033650F08D3E79761E4 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 6CBD2B2B1A504A0E0BA52E83 /* Pods_Runner.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 969F82F1FCE09135D9CB4C64 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 3085328F552329DC897B71DD /* Pods-Runner.debug.xcconfig */,
+ 3B4D9CAD3B112CCF7FEE1F91 /* Pods-Runner.release.xcconfig */,
+ 3A5ABA8306DCFDB9E71D453A /* Pods-Runner.profile.xcconfig */,
+ );
+ name = Pods;
+ path = Pods;
+ sourceTree = "";
+ };
+ 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 */,
+ 969F82F1FCE09135D9CB4C64 /* Pods */,
+ 6BD33033650F08D3E79761E4 /* Frameworks */,
+ );
+ 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 = (
+ 7D19CFF3DFB977EA83F4C733 /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ AAF25E5FC427CABFCDCC628C /* [CP] Embed Pods Frameworks */,
+ );
+ 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 = 1020;
+ 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";
+ };
+ 7D19CFF3DFB977EA83F4C733 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 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";
+ };
+ AAF25E5FC427CABFCDCC628C /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* 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 = 9.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.mohemFlutterApp;
+ 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 = 9.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 = 9.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+ 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.mohemFlutterApp;
+ 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.mohemFlutterApp;
+ 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..a28140c
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..21a3cc1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
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..bf06aab
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,45 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ mohem_flutter_app
+ 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
+
+
+
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/api/api_client.dart b/lib/api/api_client.dart
new file mode 100644
index 0000000..a08ed01
--- /dev/null
+++ b/lib/api/api_client.dart
@@ -0,0 +1,176 @@
+import 'dart:async';
+import 'dart:convert';
+import 'dart:io';
+
+import 'package:flutter/foundation.dart';
+import 'package:http/http.dart';
+import 'package:http/io_client.dart';
+import 'package:mohem_flutter_app/exceptions/api_exception.dart';
+
+typedef FactoryConstructor = U Function(dynamic);
+
+class APIError {
+ int? errorCode;
+ String? errorMessage;
+
+ APIError(this.errorCode, this.errorMessage);
+
+ Map toJson() => {'errorCode': errorCode, 'errorMessage': errorMessage};
+
+ @override
+ String toString() {
+ return jsonEncode(this);
+ }
+}
+
+APIException _throwAPIException(Response response) {
+ switch (response.statusCode) {
+ case 200:
+ APIError? apiError;
+ if (response.body != null && response.body.isNotEmpty) {
+ var jsonError = jsonDecode(response.body);
+ print(jsonError);
+ apiError = APIError(jsonError['ErrorCode'], jsonError['ErrorMessage']);
+ }
+ return APIException(APIException.BAD_REQUEST, error: apiError);
+ case 400:
+ APIError? apiError;
+ if (response.body != null && response.body.isNotEmpty) {
+ var jsonError = jsonDecode(response.body);
+ apiError = APIError(jsonError['ErrorCode'], jsonError['ErrorMessage']);
+ }
+ return APIException(APIException.BAD_REQUEST, error: apiError);
+ case 401:
+ return APIException(APIException.UNAUTHORIZED);
+ case 403:
+ return APIException(APIException.FORBIDDEN);
+ case 404:
+ return APIException(APIException.NOT_FOUND);
+ case 500:
+ return APIException(APIException.INTERNAL_SERVER_ERROR);
+ case 444:
+ var downloadUrl = response.headers["location"];
+ return APIException(APIException.UPGRADE_REQUIRED, arguments: downloadUrl);
+ default:
+ return APIException(APIException.OTHER);
+ }
+}
+
+class ApiClient {
+ static final ApiClient _instance = ApiClient._internal();
+
+ ApiClient._internal();
+
+ factory ApiClient() => _instance;
+
+ Future postJsonForObject(FactoryConstructor factoryConstructor, String url, T jsonObject,
+ {String? token, Map? queryParameters, Map? headers, int retryTimes = 0}) async {
+ var _headers = {'Accept': 'application/json'};
+ if (headers != null && headers.isNotEmpty) {
+ _headers.addAll(headers);
+ }
+ if (!kReleaseMode) {
+ print("Url:$url");
+ print("body:$jsonObject");
+ }
+ var response = await postJsonForResponse(url, jsonObject, token: token, queryParameters: queryParameters, headers: _headers, retryTimes: retryTimes);
+ try {
+ if (!kReleaseMode) {
+ print("res: " + response.body);
+ }
+ var jsonData = jsonDecode(response.body);
+ if (jsonData["ErrorMessage"] == null) {
+ return factoryConstructor(jsonData);
+ } else {
+ APIError? apiError;
+ apiError = APIError(jsonData['ErrorCode'], jsonData['ErrorMessage']);
+ throw APIException(APIException.BAD_REQUEST, error: apiError);
+ }
+ } catch (ex) {
+ if (ex is APIException) {
+ rethrow;
+ } else {
+ throw APIException(APIException.BAD_RESPONSE_FORMAT, arguments: ex);
+ }
+ }
+ }
+
+ Future postJsonForResponse(String url, T jsonObject, {String? token, Map? queryParameters, Map? headers, int retryTimes = 0}) async {
+ String? requestBody;
+ if (jsonObject != null) {
+ requestBody = jsonEncode(jsonObject);
+ if (headers == null) {
+ headers = {'Content-Type': 'application/json'};
+ } else {
+ headers['Content-Type'] = 'application/json';
+ }
+ }
+
+ return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes);
+ }
+
+ Future _postForResponse(String url, requestBody, {String? token, Map? queryParameters, Map? headers, int retryTimes = 0}) async {
+ try {
+ var _headers = {};
+ if (token != null) {
+ _headers['Authorization'] = 'Bearer $token';
+ }
+
+ if (headers != null && headers.isNotEmpty) {
+ _headers.addAll(headers);
+ }
+
+ if (queryParameters != null) {
+ var queryString = new Uri(queryParameters: queryParameters).query;
+ url = url + '?' + queryString;
+ }
+ var response = await _post(Uri.parse(url), body: requestBody, headers: _headers).timeout(Duration(seconds: 60));
+
+ if (response.statusCode >= 200 && response.statusCode < 300) {
+ return response;
+ } else {
+ throw _throwAPIException(response);
+ }
+ } on SocketException catch (e) {
+ if (retryTimes > 0) {
+ print('will retry after 3 seconds...');
+ await Future.delayed(Duration(seconds: 3));
+ return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes - 1);
+ } else {
+ throw APIException(APIException.OTHER, arguments: e);
+ }
+ } on HttpException catch (e) {
+ if (retryTimes > 0) {
+ print('will retry after 3 seconds...');
+ await Future.delayed(Duration(seconds: 3));
+ return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes - 1);
+ } else {
+ throw APIException(APIException.OTHER, arguments: e);
+ }
+ } on TimeoutException catch (e) {
+ throw APIException(APIException.TIMEOUT, arguments: e);
+ } on ClientException catch (e) {
+ if (retryTimes > 0) {
+ print('will retry after 3 seconds...');
+ await Future.delayed(Duration(seconds: 3));
+ return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes - 1);
+ } else {
+ throw APIException(APIException.OTHER, arguments: e);
+ }
+ }
+ }
+
+ bool _certificateCheck(X509Certificate cert, String host, int port) => true;
+
+ Future _withClient(Future Function(Client) fn) async {
+ var httpClient = HttpClient()..badCertificateCallback = _certificateCheck;
+ var client = IOClient(httpClient);
+ try {
+ return await fn(client);
+ } finally {
+ client.close();
+ }
+ }
+
+ Future _post(url, {Map? headers, body, Encoding? encoding}) => _withClient((client) => client.post(url, headers: headers, body: body, encoding: encoding));
+}
diff --git a/lib/api/dashboard_api_client.dart b/lib/api/dashboard_api_client.dart
new file mode 100644
index 0000000..5b6f961
--- /dev/null
+++ b/lib/api/dashboard_api_client.dart
@@ -0,0 +1,69 @@
+import 'dart:async';
+
+import 'package:mohem_flutter_app/app_state/app_state.dart';
+import 'package:mohem_flutter_app/classes/consts.dart';
+import 'package:mohem_flutter_app/models/basic_member_information_model.dart';
+import 'package:mohem_flutter_app/models/check_mobile_app_version_model.dart';
+import 'package:mohem_flutter_app/models/dashboard/itg_forms_model.dart';
+import 'package:mohem_flutter_app/models/generic_response_model.dart';
+import 'package:mohem_flutter_app/models/member_login_list_model.dart';
+
+import 'api_client.dart';
+
+class DashbaordApiClient {
+ static final DashbaordApiClient _instance = DashbaordApiClient._internal();
+
+ DashbaordApiClient._internal();
+
+ factory DashbaordApiClient() => _instance;
+
+ Future getAttendanceTracking() async {
+ String url = "${ApiConsts.erpRest}GET_Attendance_Tracking";
+ Map postParams = {};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ return responseData;
+ }, url, postParams);
+ }
+
+ Future getOpenNotifications() async {
+ String url = "${ApiConsts.erpRest}GET_OPEN_NOTIFICATIONS";
+ Map postParams = {};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ return responseData;
+ }, url, postParams);
+ }
+
+ Future getItgFormsPendingTask() async {
+ String url = "${ApiConsts.cocRest}ITGFormsPendingTasks";
+ Map postParams = {};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ ItgFormsModel responseData = ItgFormsModel.fromJson(json);
+ return responseData;
+ }, url, postParams);
+ }
+
+ Future getAccrualBalances() async {
+ String url = "${ApiConsts.erpRest}GET_ACCRUAL_BALANCES";
+ Map postParams = {"P_EFFECTIVE_DATE": "1/30/2022"};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ return responseData;
+ }, url, postParams);
+ }
+
+ Future getOpenMissingSwipes() async {
+ String url = "${ApiConsts.erpRest}GET_OPEN_MISSING_SWIPES";
+ Map postParams = {};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ return responseData;
+ }, url, postParams);
+ }
+}
diff --git a/lib/api/login_api_client.dart b/lib/api/login_api_client.dart
new file mode 100644
index 0000000..fb6bb80
--- /dev/null
+++ b/lib/api/login_api_client.dart
@@ -0,0 +1,101 @@
+import 'dart:async';
+
+import 'package:mohem_flutter_app/app_state/app_state.dart';
+import 'package:mohem_flutter_app/classes/consts.dart';
+import 'package:mohem_flutter_app/models/basic_member_information_model.dart';
+import 'package:mohem_flutter_app/models/check_mobile_app_version_model.dart';
+import 'package:mohem_flutter_app/models/generic_response_model.dart';
+import 'package:mohem_flutter_app/models/member_login_list_model.dart';
+
+import 'api_client.dart';
+
+class LoginApiClient {
+ static final LoginApiClient _instance = LoginApiClient._internal();
+
+ LoginApiClient._internal();
+
+ factory LoginApiClient() => _instance;
+
+ Future checkMobileAppVersion() async {
+ String url = "${ApiConsts.utilitiesRest}CheckMobileAppVersion";
+ Map postParams = {};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) => CheckMobileAppVersionModel.fromJson(json), url, postParams);
+ }
+
+ Future memberLogin(String username, String password) async {
+ String url = "${ApiConsts.erpRest}MemberLogin";
+ Map postParams = {"P_APP_VERSION": "CS", "P_LANGUAGE": "US", "P_PASSWORD": password, "P_USER_NAME": username};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ AppState().postParamsObject?.setLogInTokenID = responseData.logInTokenID;
+ return responseData.memberLoginList;
+ }, url, postParams);
+ }
+
+ Future mohemmSendActivationCodeByOTPNotificationType(int isMobileFingerPrint, String? mobileNumber, int optSendType, String? pUserName) async {
+ String url = "${ApiConsts.erpRest}Mohemm_SendActivationCodebyOTPNotificationType";
+ Map postParams = {"IsMobileFingerPrint": isMobileFingerPrint, "MobileNumber": mobileNumber, "OTP_SendType": optSendType, "P_USER_NAME": pUserName};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) => GenericResponseModel.fromJson(json).basicMemberInformation, url, postParams);
+ }
+
+ Future checkActivationCode(bool isDeviceNFC, String? mobileNumber, String activationCode, String? pUserName) async {
+ String url = "${ApiConsts.erpRest}CheckActivationCode";
+ Map postParams = {"isDeviceNFC": isDeviceNFC, "MobileNumber": mobileNumber, "activationCode": activationCode, "P_USER_NAME": pUserName};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ AppState().setLogged = true;
+ AppState().postParamsObject?.setTokenID = responseData.tokenID;
+ AppState().postParamsObject?.mobileNumber = responseData.basicMemberInformation!.pMOBILENUMBER;
+ AppState().postParamsObject?.userName = AppState().getUserName;
+ AppState().postParamsObject?.pEmailAddress = responseData.basicMemberInformation!.pEMAILADDRESS;
+ AppState().postParamsObject?.pSessionId = responseData.pSESSIONID;
+ AppState().postParamsObject?.pUserName = AppState().getUserName;
+ AppState().postParamsObject?.pSelectedEmployeeNumber = AppState().getUserName;
+ return responseData;
+ }, url, postParams);
+ }
+
+ Future getBasicUserInformation(String pAppVersion, String pUsername) async {
+ String url = "${ApiConsts.erpRest}Get_BasicUserInformation";
+ Map postParams = {"P_APP_VERSION": pAppVersion, "P_USER_NAME": pUsername};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) => GenericResponseModel.fromJson(json).basicMemberInformation, url, postParams);
+ }
+
+ Future sendPublicActivationCode(String? mobileNumber, String? pUsername) async {
+ String url = "${ApiConsts.erpRest}SendPublicActivationCode";
+ Map postParams = {"MobileNumber": mobileNumber, "P_MOBILE_NUMBER": mobileNumber, "P_USER_NAME": pUsername};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ AppState().postParamsObject?.setLogInTokenID = responseData.logInTokenID;
+ return responseData;
+ }, url, postParams);
+ }
+
+ Future checkPublicActivationCode(String activationCode, String? pUserName) async {
+ String url = "${ApiConsts.erpRest}checkPublicActivationCode";
+ Map postParams = {"activationCode": activationCode, "P_USER_NAME": pUserName};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+ AppState().setForgetPasswordTokenID = responseData.tokenID;
+ return responseData;
+ }, url, postParams);
+ }
+
+ Future changePasswordForget(String forgetPasswordTokenID, String pNewPassword, String pConfirmNewPassword, String? pUserName) async {
+ String url = "${ApiConsts.erpRest}ChangePassword_Forget";
+ Map postParams = {"P_USER_NAME": pUserName, "ForgetPasswordTokenID": forgetPasswordTokenID, "P_Confirm_NEW_PASSWORD": pConfirmNewPassword, "P_NEW_PASSWORD": pNewPassword};
+ postParams.addAll(AppState().postParamsJson);
+ return await ApiClient().postJsonForObject((json) {
+ GenericResponseModel responseData = GenericResponseModel.fromJson(json);
+
+ return responseData;
+ }, url, postParams);
+ }
+}
diff --git a/lib/api/tangheem_user_api_client.dart b/lib/api/tangheem_user_api_client.dart
new file mode 100644
index 0000000..32a5a82
--- /dev/null
+++ b/lib/api/tangheem_user_api_client.dart
@@ -0,0 +1,34 @@
+import 'dart:async';
+
+import 'package:mohem_flutter_app/classes/consts.dart';
+import 'package:mohem_flutter_app/models/content_info_model.dart';
+import 'package:mohem_flutter_app/models/member_login_list_model.dart';
+import 'package:mohem_flutter_app/models/surah_model.dart';
+
+import 'api_client.dart';
+
+class TangheemUserApiClient {
+ static final TangheemUserApiClient _instance = TangheemUserApiClient._internal();
+
+ TangheemUserApiClient._internal();
+
+ factory TangheemUserApiClient() => _instance;
+
+ // Future getSurahs() async {
+ // String url = "${ApiConsts.tangheemUsers}AlSuar_Get";
+ // var postParams = {};
+ // return await ApiClient().postJsonForObject((json) => SurahModel.fromJson(json), url, postParams);
+ // }
+ //
+ // Future getMembers() async {
+ // String url = "${ApiConsts.tangheemUsers}Committee_Get";
+ // var postParams = {};
+ // return await ApiClient().postJsonForObject((json) => MemberModel.fromJson(json), url, postParams);
+ // }
+ //
+ // Future getContentInfo(int contentId) async {
+ // String url = "${ApiConsts.tangheemUsers}ContentInfo_Get";
+ // var postParams = {"contentTypeId": contentId};
+ // return await ApiClient().postJsonForObject((json) => ContentInfoModel.fromJson(json), url, postParams);
+ // }
+}
diff --git a/lib/app_state/app_state.dart b/lib/app_state/app_state.dart
new file mode 100644
index 0000000..65d5184
--- /dev/null
+++ b/lib/app_state/app_state.dart
@@ -0,0 +1,44 @@
+import 'package:mohem_flutter_app/models/member_login_list_model.dart';
+import 'package:mohem_flutter_app/models/post_params_model.dart';
+
+class AppState {
+ static final AppState _instance = AppState._internal();
+
+ AppState._internal();
+
+ factory AppState() => _instance;
+
+ bool isLogged = false;
+
+ set setLogged(v) => isLogged = v;
+
+ bool? get getIsLogged => isLogged;
+
+ String? forgetPasswordTokenID;
+
+ set setForgetPasswordTokenID(token) => forgetPasswordTokenID = token;
+
+ String? get getForgetPasswordTokenID => forgetPasswordTokenID;
+
+ PostParamsModel? _postParams;
+
+ PostParamsModel? get postParamsObject => _postParams;
+
+ Map get postParamsJson => isLogged ? (_postParams?.toJsonAfterLogin() ?? {}) : (_postParams?.toJson() ?? {});
+
+ void setPostParamsModel(PostParamsModel _postParams) {
+ this._postParams = _postParams;
+ }
+
+ String? _username;
+
+ set setUserName(v) => _username = v;
+
+ String? get getUserName => _username;
+
+ MemberLoginListModel? _memberLoginList;
+
+ MemberLoginListModel? get memberLoginList => _memberLoginList;
+
+ set setMemberLoginListModel(MemberLoginListModel? _memberLoginList) => this._memberLoginList = _memberLoginList;
+}
diff --git a/lib/classes/colors.dart b/lib/classes/colors.dart
new file mode 100644
index 0000000..2e5eaef
--- /dev/null
+++ b/lib/classes/colors.dart
@@ -0,0 +1,28 @@
+import 'package:flutter/cupertino.dart';
+
+class MyColors {
+ 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(0xffF8F8F8);
+ static const Color grey57Color = Color(0xff575757);
+ static const Color grey77Color = Color(0xff777777);
+ 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 lightGreyEAColor = Color(0xffEAEAEA);
+ static const Color darkWhiteColor = Color(0xffE0E0E0);
+ static const Color redColor = Color(0xffD02127);
+ static const Color yellowColor = Color(0xffF4E31C);
+ static const Color backgroundBlackColor = Color(0xff202529);
+ static const Color black = Color(0xff000000);
+ static const Color white = Color(0xffffffff);
+ static const Color green = Color(0xffffffff);
+ static const Color borderColor = Color(0xffE8E8E8);
+}
diff --git a/lib/classes/consts.dart b/lib/classes/consts.dart
new file mode 100644
index 0000000..4bad83c
--- /dev/null
+++ b/lib/classes/consts.dart
@@ -0,0 +1,22 @@
+class ApiConsts {
+ //static String baseUrl = "http://10.200.204.20:2801/"; // Local server
+ static String baseUrl = "https://uat.hmgwebservices.com"; // UAT server
+ 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 user = baseUrlServices + "api/User/";
+ static String cocRest = baseUrlServices + "COCWS.svc/REST/";
+}
+
+
+
+class GlobalConsts {
+ static String isRememberMe = "remember_me";
+ static String email = "email";
+ static String password = "password";
+ static String bookmark = "bookmark";
+ static String fontZoomSize = "font_zoom_size";
+ static String welcomeVideoUrl = "welcomeVideoUrl";
+ static String doNotShowWelcomeVideo = "doNotShowWelcomeVideo";
+}
diff --git a/lib/classes/utils.dart b/lib/classes/utils.dart
new file mode 100644
index 0000000..d80fdf5
--- /dev/null
+++ b/lib/classes/utils.dart
@@ -0,0 +1,72 @@
+import 'package:flutter/material.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+
+// import 'package:fluttertoast/fluttertoast.dart';
+import 'package:mohem_flutter_app/exceptions/api_exception.dart';
+import 'package:mohem_flutter_app/widgets/loading_dialog.dart';
+
+class Utils {
+ static bool _isLoadingVisible = false;
+
+ static bool get isLoading => _isLoadingVisible;
+
+ static void showToast(String message) {
+ Fluttertoast.showToast(
+ msg: message, toastLength: 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 void showLoading(BuildContext context) {
+ WidgetsBinding.instance?.addPostFrameCallback((_) {
+ _isLoadingVisible = true;
+ showDialog(
+ context: context,
+ barrierColor: Colors.black.withOpacity(0.5),
+ builder: (BuildContext context) => LoadingDialog(),
+ ).then((value) {
+ _isLoadingVisible = false;
+ });
+ });
+ }
+
+ static void hideLoading(BuildContext context) {
+ if (_isLoadingVisible) {
+ _isLoadingVisible = false;
+ Navigator.of(context).pop();
+ }
+ _isLoadingVisible = false;
+ }
+
+ static void handleException(dynamic exception, 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 {
+ showToast(errorMessage);
+ }
+ }
+}
diff --git a/lib/config/app_provider.dart b/lib/config/app_provider.dart
new file mode 100644
index 0000000..9ccf065
--- /dev/null
+++ b/lib/config/app_provider.dart
@@ -0,0 +1,19 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+
+class AppProvider extends StatelessWidget {
+ final Widget child;
+
+ AppProvider({required this.child});
+
+ @override
+ Widget build(BuildContext context) {
+ return child;
+ return MultiProvider(
+ providers: [
+ // ChangeNotifierProvider(create: (_) => Counter()),
+ ],
+ child: child,
+ );
+ }
+}
diff --git a/lib/config/routes.dart b/lib/config/routes.dart
new file mode 100644
index 0000000..39a4ebc
--- /dev/null
+++ b/lib/config/routes.dart
@@ -0,0 +1,40 @@
+import 'package:flutter/material.dart';
+import 'package:mohem_flutter_app/ui/landing/dashboard.dart';
+import 'package:mohem_flutter_app/ui/landing/today_attendance_screen.dart';
+import 'package:mohem_flutter_app/ui/login/forgot_password_screen.dart';
+import 'package:mohem_flutter_app/ui/login/login_screen.dart';
+import 'package:mohem_flutter_app/ui/login/new_password_screen.dart';
+import 'package:mohem_flutter_app/ui/login/verify_login_screen.dart';
+import 'package:mohem_flutter_app/ui/work_list/missing_swipe/missing_swipe_screen.dart';
+import 'package:mohem_flutter_app/ui/work_list/work_list_screen.dart';
+
+class AppRoutes {
+ static const String splash = "/splash";
+ static const String registerSelection = "/registerSelection";
+ static const String loginVerifyAccount = "/loginVerifyAccount";
+ static const String login = "/login";
+ static const String verifyLogin = "/verifyLogin";
+ static const String forgotPassword = "/forgotPassword";
+ static const String newPassword = "/newPassword";
+ static const String loginVerification = "/loginVerification";
+ static const String dashboard = "/dashboard";
+ static const String todayAttendance = "/todayAttendance";
+ static const String initialRoute = login;
+
+ //Work List
+ static const String workList = "/workList";
+ static const String missingSwipe = "/missingSwipe";
+
+ static final Map routes = {
+ login: (context) => LoginScreen(),
+ verifyLogin: (context) => VerifyLoginScreen(),
+ dashboard: (context) => Dashboard(),
+ newPassword: (context) => NewPasswordScreen(),
+ forgotPassword: (context) => ForgotPasswordScreen(),
+ todayAttendance: (context) => TodayAttendanceScreen(),
+
+ //Work List
+ workList: (context) => WorkListScreen(),
+ missingSwipe: (context) => MissingSwipeScreen(),
+ };
+}
diff --git a/lib/dialogs/otp_dialog.dart b/lib/dialogs/otp_dialog.dart
new file mode 100644
index 0000000..d82cf9c
--- /dev/null
+++ b/lib/dialogs/otp_dialog.dart
@@ -0,0 +1,228 @@
+import 'dart:async';
+
+import 'package:easy_localization/src/public_ext.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/svg.dart';
+import 'package:mohem_flutter_app/classes/colors.dart';
+import 'package:mohem_flutter_app/extensions/int_extensions.dart';
+import 'package:mohem_flutter_app/extensions/string_extensions.dart';
+import 'package:mohem_flutter_app/generated/locale_keys.g.dart';
+import 'package:mohem_flutter_app/widgets/otp_widget.dart';
+
+class OtpDialog {
+ final int type;
+ final int? mobileNo;
+ final Function(String) onSuccess;
+ final Function onFailure;
+ final BuildContext context;
+
+ int remainingTime = 120;
+
+ Future? timer;
+
+ static BuildContext? _context;
+
+ static bool? _loading;
+
+ OtpDialog(
+ this.context,
+ this.type,
+ this.mobileNo,
+ this.onSuccess,
+ this.onFailure,
+ );
+
+ GlobalKey? verifyAccountForm = GlobalKey();
+
+ final TextEditingController _pinPutController = TextEditingController();
+
+ TextEditingController digit1 = TextEditingController(text: "");
+ TextEditingController digit2 = TextEditingController(text: "");
+ TextEditingController digit3 = TextEditingController(text: "");
+ TextEditingController digit4 = TextEditingController(text: "");
+
+ Map verifyAccountFormValue = {
+ 'digit1': '',
+ 'digit2': '',
+ 'digit3': '',
+ 'digit4': '',
+ };
+ final focusD1 = FocusNode();
+ final focusD2 = FocusNode();
+ final focusD3 = FocusNode();
+ final focusD4 = FocusNode();
+ String? errorMsg;
+
+ // ProjectViewModel projectProvider;
+ String displayTime = '';
+ String? _code;
+ dynamic setState;
+ bool stopTimer = false;
+
+ // static String signature;
+
+ void displayDialog(BuildContext context) async {
+ return showDialog(
+ context: context,
+ barrierColor: Colors.black.withOpacity(0.63),
+ builder: (context) {
+ // projectProvider = Provider.of(context);
+ return Dialog(
+ backgroundColor: Colors.white,
+ shape: const RoundedRectangleBorder(),
+ insetPadding: const EdgeInsets.only(left: 21, right: 21),
+ child: StatefulBuilder(builder: (context, setState) {
+ if (displayTime == '') {
+ startTimer(setState);
+ }
+
+ return Container(
+ padding: EdgeInsets.only(left: 21, right: 18, top: 39, bottom: 59),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ SvgPicture.asset(
+ type == 1 ? "assets/images/login/verify_sms.svg" : "assets/images/login/verify_whatsapp.svg",
+ height: 50,
+ width: 50,
+ ),
+ IconButton(
+ padding: EdgeInsets.zero,
+ icon: const Icon(Icons.close),
+ constraints: const BoxConstraints(),
+ onPressed: () {
+ stopTimer = true;
+ onFailure();
+ })
+ ],
+ ),
+ 22.height,
+ (LocaleKeys.pleaseEnterTheVerificationCodeSentTo.tr() + ' xxxxxxxx' + mobileNo.toString().substring(mobileNo.toString().length - 3)).toText16(),
+ 18.height,
+ Directionality(
+ textDirection: TextDirection.ltr,
+ child: Center(
+ child: OTPWidget(
+ autoFocus: true,
+ controller: _pinPutController,
+ defaultBorderColor: const Color(0xffD8D8D8),
+ maxLength: 4,
+ onTextChanged: (text) {},
+ pinBoxColor: Colors.white,
+ onDone: (code) => _onOtpCallBack(code, null),
+ textBorderColor: const Color(0xffD8D8D8),
+ pinBoxWidth: 60,
+ pinBoxHeight: 60,
+ pinTextStyle: const TextStyle(fontSize: 24.0, color: MyColors.darkTextColor),
+ pinTextAnimatedSwitcherTransition: ProvidedPinBoxTextAnimation.scalingTransition,
+ pinTextAnimatedSwitcherDuration: const Duration(milliseconds: 300),
+ pinBoxRadius: 10,
+ keyboardType: TextInputType.number,
+ ),
+ ),
+ ),
+ 30.height,
+ RichText(
+ text: TextSpan(
+ text: LocaleKeys.theVerificationCodeWillExpireIn.tr() + '\n',
+ style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: MyColors.darkTextColor, letterSpacing: -0.48),
+ children: [
+ TextSpan(
+ text: displayTime,
+ style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: MyColors.textMixColor, letterSpacing: -0.48),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }),
+ );
+ });
+ }
+
+ InputDecoration buildInputDecoration(BuildContext context) {
+ return InputDecoration(
+ counterText: " ",
+ enabledBorder: const OutlineInputBorder(
+ borderRadius: BorderRadius.all(Radius.circular(10)),
+ borderSide: BorderSide(color: Colors.black),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderRadius: const BorderRadius.all(Radius.circular(10.0)),
+ borderSide: BorderSide(color: Theme.of(context).primaryColor),
+ ),
+ errorBorder: OutlineInputBorder(
+ borderRadius: const BorderRadius.all(Radius.circular(10.0)),
+ borderSide: BorderSide(color: Theme.of(context).errorColor),
+ ),
+ focusedErrorBorder: OutlineInputBorder(
+ borderRadius: const BorderRadius.all(Radius.circular(10.0)),
+ borderSide: BorderSide(color: Theme.of(context).errorColor),
+ ),
+ );
+ }
+
+ // String validateCodeDigit(value) {
+ // if (value.isEmpty) {
+ // return ' ';
+ // } else if (value.length == 3) {
+ // print(value);
+ // } else {
+ // return null;
+ // }
+ // }
+
+ String getSecondsAsDigitalClock(int inputSeconds) {
+ int secNum = int.parse(inputSeconds.toString()); // don't forget the second param
+ int hours = (secNum / 3600).floor();
+ int minutes = ((secNum - hours * 3600) / 60).floor();
+ double seconds = secNum - hours * 3600 - minutes * 60;
+ String minutesString = "";
+ String secondsString = "";
+ minutesString = minutes < 10 ? "0" + minutes.toString() : minutes.toString();
+ secondsString = seconds < 10 ? "0" + seconds.toStringAsFixed(0) : seconds.toStringAsFixed(0);
+ return minutesString + ":" + secondsString;
+ }
+
+ void startTimer(setState) {
+ remainingTime--;
+ if (stopTimer) return;
+ setState(() {
+ displayTime = getSecondsAsDigitalClock(remainingTime);
+ });
+
+ timer = Future.delayed(const Duration(seconds: 1), () {
+ if (remainingTime > 0) {
+ startTimer(setState);
+ } else {
+ Navigator.pop(context);
+ }
+ });
+ }
+
+ static void hideSMSBox(context) {
+ Navigator.pop(context);
+ }
+
+ void _onOtpCallBack(String otpCode, bool? isAutofill) {
+ if (otpCode.length == 4) {
+ stopTimer = true;
+ onSuccess(otpCode);
+ }
+ }
+
+ static getSignature() async {
+ // if (Platform.isAndroid) {
+ // return await SmsRetriever.getAppSignature();
+ // } else {
+ // return null;
+ // }
+ }
+}
diff --git a/lib/exceptions/api_exception.dart b/lib/exceptions/api_exception.dart
new file mode 100644
index 0000000..e3046ca
--- /dev/null
+++ b/lib/exceptions/api_exception.dart
@@ -0,0 +1,29 @@
+import 'dart:convert';
+
+import 'package:mohem_flutter_app/api/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..9b90b2f
--- /dev/null
+++ b/lib/extensions/int_extensions.dart
@@ -0,0 +1,7 @@
+import 'package:flutter/cupertino.dart';
+
+extension IntExtensions on int {
+ Widget get height => SizedBox(height: toDouble());
+
+ Widget get width => SizedBox(width: toDouble());
+}
diff --git a/lib/extensions/string_extensions.dart b/lib/extensions/string_extensions.dart
new file mode 100644
index 0000000..9db4829
--- /dev/null
+++ b/lib/extensions/string_extensions.dart
@@ -0,0 +1,109 @@
+import 'package:flutter/cupertino.dart';
+import 'package:intl/intl.dart';
+import 'package:mohem_flutter_app/classes/colors.dart';
+
+extension EmailValidator on String {
+ Widget get toWidget => Text(this);
+
+ Widget toText10({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(fontSize: 10, fontWeight: isBold ? FontWeight.bold : FontWeight.w600, color: color ?? MyColors.darkTextColor, letterSpacing: -0.4),
+ );
+
+ Widget toText11({Color? color, bool isUnderLine = false, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(
+ fontSize: 11,
+ fontWeight: 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,
+ fontWeight: isBold ? FontWeight.bold : FontWeight.w600,
+ color: color ?? MyColors.darkTextColor,
+ letterSpacing: -0.72,
+ decoration: isUnderLine ? TextDecoration.underline : null),
+ );
+
+ Widget toText13({Color? color, bool isUnderLine = false}) => Text(
+ this,
+ style: TextStyle(fontSize: 13, fontWeight: FontWeight.w600, color: color ?? MyColors.darkTextColor, letterSpacing: -0.52, decoration: isUnderLine ? TextDecoration.underline : null),
+ );
+
+ Widget toText14({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(color: color ?? MyColors.darkTextColor, fontSize: 14, letterSpacing: -0.48, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toText16({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(color: color ?? MyColors.darkTextColor, fontSize: 16, letterSpacing: -0.64, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toText17({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(color: color ?? MyColors.darkTextColor, fontSize: 17, letterSpacing: -0.68, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ Widget toText22({Color? color, bool isBold = false}) => Text(
+ this,
+ style: TextStyle(height: 1, color: color ?? MyColors.darkTextColor, fontSize: 22, 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, 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, letterSpacing: -1.92, fontWeight: isBold ? FontWeight.bold : FontWeight.w600),
+ );
+
+ 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))}";
+ }
+
+ 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";
+ }
+ }
+}
diff --git a/lib/extensions/widget_extensions.dart b/lib/extensions/widget_extensions.dart
new file mode 100644
index 0000000..787894d
--- /dev/null
+++ b/lib/extensions/widget_extensions.dart
@@ -0,0 +1,11 @@
+import 'package:flutter/material.dart';
+import 'package:flutter/widgets.dart';
+
+extension WidgetExtensions on Widget {
+ Widget onPress(VoidCallback onTap) => InkWell(onTap: onTap, child: this);
+
+ Widget paddingAll(double _value) => Padding(padding: EdgeInsets.all(_value), 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);
+}
diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart
new file mode 100644
index 0000000..b43f3bd
--- /dev/null
+++ b/lib/generated/codegen_loader.g.dart
@@ -0,0 +1,196 @@
+// 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