diff --git a/.env b/.env
new file mode 100644
index 0000000..62cddb0
--- /dev/null
+++ b/.env
@@ -0,0 +1,2 @@
+API_URL=https://venbait.in/nhance/dev/employeeRest/
+TICKET_API_URL=https://venbait.in/nhance/helpdesk/dev/api/
\ No newline at end of file
diff --git a/.env.development b/.env.development
new file mode 100644
index 0000000..62cddb0
--- /dev/null
+++ b/.env.development
@@ -0,0 +1,2 @@
+API_URL=https://venbait.in/nhance/dev/employeeRest/
+TICKET_API_URL=https://venbait.in/nhance/helpdesk/dev/api/
\ No newline at end of file
diff --git a/.env.production b/.env.production
new file mode 100644
index 0000000..62cddb0
--- /dev/null
+++ b/.env.production
@@ -0,0 +1,2 @@
+API_URL=https://venbait.in/nhance/dev/employeeRest/
+TICKET_API_URL=https://venbait.in/nhance/helpdesk/dev/api/
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index b24d71e..b10fc2b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,50 +1,68 @@
-# These are some examples of commonly ignored file patterns.
-# You should customize this list as applicable to your project.
-# Learn more about .gitignore:
-# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
-
-# Node artifact files
-node_modules/
-dist/
-
-# Compiled Java class files
+# Miscellaneous
*.class
-
-# Compiled Python bytecode
-*.py[cod]
-
-# Log files
*.log
-
-# Package files
-*.jar
-
-# Maven
-target/
-dist/
-
-# JetBrains IDE
-.idea/
-
-# Unit test reports
-TEST*.xml
-
-# Generated by MacOS
+*.pyc
+*.swp
.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
-# Generated by Windows
-Thumbs.db
+# IntelliJ related
+*.iml
+*.lock
+*.packages
+*.ipr
+*.iws
+.idea/
+.vscode/
-# Applications
-*.app
-*.exe
-*.war
+# 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/
-# Large media files
-*.mp4
-*.tiff
-*.avi
-*.flv
-*.mov
-*.wmv
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+
+# Android specific files
+*.android/
+*.android.iml
+*.apk
+*.ap_
+
+# iOS specific files
+*.ios/
+*.ios.iml
+*.ipa
+*.xcworkspace
+*.xcodeproj/
+*.xcuserdatad/
+
+# macOS specific files
+.idea/workspace.xml
+
+
+# Dependency lock files
+.pubspec.lock
+
+# 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..32dc8a5
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,45 @@
+# 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: "300451adae589accbece3490f4396f10bdf15e6e"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ base_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ - platform: android
+ create_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ base_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ - platform: ios
+ create_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ base_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ - platform: linux
+ create_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ base_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ - platform: macos
+ create_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ base_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ - platform: web
+ create_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ base_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ - platform: windows
+ create_revision: 300451adae589accbece3490f4396f10bdf15e6e
+ base_revision: 300451adae589accbece3490f4396f10bdf15e6e
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d8ae702
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# nhance_app_pwa
+
+Nhance App Flutter
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..0d29021
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,28 @@
+# 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.dev/lints.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..282fcfb
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,67 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+android {
+ namespace "com.example.nhance_app_pwa"
+ compileSdk flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.example.nhance_app_pwa"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
+ 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 {}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /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..399f32a
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/nhance_app_pwa/MainActivity.kt b/android/app/src/main/kotlin/com/example/nhance_app_pwa/MainActivity.kt
new file mode 100644
index 0000000..7d8c50e
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/nhance_app_pwa/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.example.nhance_app_pwa
+
+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..ed19ad0
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..e31cd51
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..8aecbbb
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..29c4c9e
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..5332fea
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /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..bc157bd
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,18 @@
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+tasks.register("clean", Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..598d13f
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx4G
+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..e1ca574
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..748cace
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,26 @@
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }
+ settings.ext.flutterSdkPath = flutterSdkPath()
+
+ includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
+
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+
+plugins {
+ id "dev.flutter.flutter-plugin-loader" version "1.0.0"
+ id "com.android.application" version "7.3.0" apply false
+ id "org.jetbrains.kotlin.android" version "1.8.22" apply false
+}
+
+include ":app"
diff --git a/assets/Female.png b/assets/Female.png
new file mode 100644
index 0000000..824f66d
Binary files /dev/null and b/assets/Female.png differ
diff --git a/assets/Group.png b/assets/Group.png
new file mode 100644
index 0000000..7777491
Binary files /dev/null and b/assets/Group.png differ
diff --git a/assets/Group_3.png b/assets/Group_3.png
new file mode 100644
index 0000000..24d87cd
Binary files /dev/null and b/assets/Group_3.png differ
diff --git a/assets/Male.png b/assets/Male.png
new file mode 100644
index 0000000..b299639
Binary files /dev/null and b/assets/Male.png differ
diff --git a/assets/Solid_gray.png b/assets/Solid_gray.png
new file mode 100644
index 0000000..1305f77
Binary files /dev/null and b/assets/Solid_gray.png differ
diff --git a/assets/Template_File.xlsx b/assets/Template_File.xlsx
new file mode 100644
index 0000000..c8c892b
Binary files /dev/null and b/assets/Template_File.xlsx differ
diff --git a/assets/Vector.png b/assets/Vector.png
new file mode 100644
index 0000000..302c643
Binary files /dev/null and b/assets/Vector.png differ
diff --git a/assets/emoji.png b/assets/emoji.png
new file mode 100644
index 0000000..c681b9c
Binary files /dev/null and b/assets/emoji.png differ
diff --git a/assets/help.png b/assets/help.png
new file mode 100644
index 0000000..a5733bf
Binary files /dev/null and b/assets/help.png differ
diff --git a/assets/hrLogin.jpg b/assets/hrLogin.jpg
new file mode 100644
index 0000000..e2b0892
Binary files /dev/null and b/assets/hrLogin.jpg differ
diff --git a/assets/img1.png b/assets/img1.png
new file mode 100644
index 0000000..55ff320
Binary files /dev/null and b/assets/img1.png differ
diff --git a/assets/login_web.jpg b/assets/login_web.jpg
new file mode 100644
index 0000000..e772280
Binary files /dev/null and b/assets/login_web.jpg differ
diff --git a/assets/navbarLogo.png b/assets/navbarLogo.png
new file mode 100644
index 0000000..2a8d8ab
Binary files /dev/null and b/assets/navbarLogo.png differ
diff --git a/assets/nhance-loader.gif b/assets/nhance-loader.gif
new file mode 100644
index 0000000..ed96c65
Binary files /dev/null and b/assets/nhance-loader.gif differ
diff --git a/assets/nhance_app_logo.png b/assets/nhance_app_logo.png
new file mode 100644
index 0000000..414c91e
Binary files /dev/null and b/assets/nhance_app_logo.png differ
diff --git a/assets/nhance_client_logo.png b/assets/nhance_client_logo.png
new file mode 100644
index 0000000..f316a3f
Binary files /dev/null and b/assets/nhance_client_logo.png differ
diff --git a/assets/policy.png b/assets/policy.png
new file mode 100644
index 0000000..6917ff7
Binary files /dev/null and b/assets/policy.png differ
diff --git a/assets/slider1.png b/assets/slider1.png
new file mode 100644
index 0000000..66626b4
Binary files /dev/null and b/assets/slider1.png differ
diff --git a/assets/slider2.png b/assets/slider2.png
new file mode 100644
index 0000000..7ad4c86
Binary files /dev/null and b/assets/slider2.png differ
diff --git a/assets/slider3.png b/assets/slider3.png
new file mode 100644
index 0000000..a4a9cdb
Binary files /dev/null and b/assets/slider3.png differ
diff --git a/assets/tickets.png b/assets/tickets.png
new file mode 100644
index 0000000..0a575a6
Binary files /dev/null and b/assets/tickets.png differ
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..7c56964
--- /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
+ 12.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Runner/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..63906f2
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..fec4cad
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..8237d1b
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..7628e79
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..b9b0205
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..d933a55
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..97d579b
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..745e0d7
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..e37dc58
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..2a0f04a
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..8aa8dfd
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..ebf9ae1
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..4d11498
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..f189389
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..c4e886b
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..bf60c70
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Nhance App Pwa
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ nhance_app_pwa
+ 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
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/lib/customAppBar/customAppBar.dart b/lib/customAppBar/customAppBar.dart
new file mode 100644
index 0000000..a6ccd03
--- /dev/null
+++ b/lib/customAppBar/customAppBar.dart
@@ -0,0 +1,139 @@
+import 'package:flutter/material.dart';
+import 'package:adaptive_navbar/adaptive_navbar.dart';
+import 'package:nhance_app_pwa/customAppBar/responsive.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
+ @override
+ Size get preferredSize => Size.fromHeight(kToolbarHeight);
+
+ Future logout(BuildContext context) async {
+ final prefs = await SharedPreferences.getInstance();
+ final String? hrtoken = prefs.getString('hrtoken');
+ final String? token = prefs.getString('token');
+
+ if (token != null && token.isNotEmpty) {
+ if (hrtoken != null && hrtoken.isNotEmpty) {
+ prefs.remove('token');
+ Navigator.pushNamed(context, 'hrDashboard');
+ } else {
+ await prefs.clear();
+ Navigator.pushNamed(context, 'phone');
+ }
+ } else if (hrtoken != null && hrtoken.isNotEmpty) {
+ await prefs.clear();
+ Navigator.pushNamed(context, 'hrLogin');
+ }
+ // Navigator.pushNamed(context, "phone");
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final sw = MediaQuery.of(context).size.width;
+
+ return Scaffold(
+ backgroundColor: Color(0xFFFFFCE5), // Set background color for AppBar
+ appBar: PreferredSize(
+ preferredSize: preferredSize,
+ child: SafeArea(
+ child: Container(
+ padding: Responsive.isDesktop(context)
+ ? EdgeInsets.symmetric(horizontal: 16.0)
+ : EdgeInsets.symmetric(horizontal: 0),
+ child: Row(
+ children: [
+ // Logo Column
+ Expanded(
+ flex: Responsive.isDesktop(context) ? 3 : 9,
+ child: Row(
+ mainAxisAlignment: Responsive.isDesktop(context)
+ ? MainAxisAlignment.spaceEvenly
+ : MainAxisAlignment
+ .start, // Adjust the alignment as needed
+ children: [
+ Container(
+ margin: EdgeInsets.only(
+ top: 10, bottom: 10, left: 10, right: 10),
+ width: Responsive.isDesktop(context) ? 230 : 170,
+ height: Responsive.isDesktop(context) ? 230 : 170,
+ child: Image.asset(
+ 'assets/nhance_client_logo.png',
+ fit: BoxFit.contain, // Adjust the fit as needed
+ ),
+ ),
+ ],
+ ),
+ ),
+ // AdaptiveNavBar Column
+ if (Responsive.isDesktop(context))
+ Expanded(
+ flex: Responsive.isDesktop(context) ? 9 : 3,
+ child: AdaptiveNavBar(
+ screenWidth: sw,
+ backgroundColor: Color(0xFFFFFCE5),
+ leading:
+ Container(), // Set an empty container as we have the logo separately
+ title: Text(''),
+ navBarItems: [
+ NavBarItem(
+ text: "Home",
+ onTap: () {
+ Navigator.pushNamed(context, 'home');
+ },
+ ),
+ NavBarItem(
+ text: "Claim",
+ onTap: () {
+ Navigator.pushNamed(context, 'claims');
+ },
+ ),
+ NavBarItem(
+ text: "Help",
+ onTap: () {
+ Navigator.pushNamed(context, 'help');
+ },
+ ),
+ NavBarItem(
+ text: "Profile",
+ onTap: () {
+ Navigator.pushNamed(context, 'profile');
+ },
+ ),
+ ],
+ ),
+ ),
+ // Expanded(
+ // flex: Responsive.isDesktop(context) ? 1 : 3,
+ // child: Column(
+ // mainAxisAlignment: MainAxisAlignment.center,
+ // crossAxisAlignment: CrossAxisAlignment.end,
+ // children: [
+ // Row(
+ // mainAxisAlignment: MainAxisAlignment
+ // .end, // Aligns the content to the right
+ // children: [
+ // Icon(Icons.notifications, color: Colors.black),
+ // ],
+ // ),
+ // ],
+ // ),
+ // ),
+ // SizedBox(width: Responsive.isDesktop(context) ? 10 : 3),
+ // if (Responsive.isDesktop(context))
+ // Expanded(
+ // flex: Responsive.isDesktop(context) ? 2 : 3,
+ // child: Row(
+ // children: [
+ // Icon(Icons.account_circle, color: Colors.black),
+ // ],
+ // ),
+ // ),
+ // SizedBox(width: Responsive.isDesktop(context) ? 5 : 0),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/customAppBar/customFooter.dart b/lib/customAppBar/customFooter.dart
new file mode 100644
index 0000000..d4823d9
--- /dev/null
+++ b/lib/customAppBar/customFooter.dart
@@ -0,0 +1,23 @@
+import 'package:flutter/material.dart';
+
+class CustomFooter extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return Container(
+ padding: EdgeInsets.all(16.0),
+ color: Color(0xFFFFFBDE), // Background color of the footer
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text(
+ 'Copyright@ 2024 Nhance - Jubiliant',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey[600], // Text color
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
diff --git a/lib/customAppBar/responsive.dart b/lib/customAppBar/responsive.dart
new file mode 100644
index 0000000..8b419ba
--- /dev/null
+++ b/lib/customAppBar/responsive.dart
@@ -0,0 +1,47 @@
+import 'package:flutter/material.dart';
+
+class Responsive extends StatelessWidget {
+ final Widget mobile;
+ final Widget tablet;
+ final Widget desktop;
+
+ const Responsive({
+ required Key key,
+ required this.mobile,
+ required this.tablet,
+ required this.desktop,
+ }) : super(key: key);
+
+// This size work fine on my design, maybe you need some customization depends on your design
+
+ // This isMobile, isTablet, isDesktop helep us later
+ static bool isMobile(BuildContext context) =>
+ MediaQuery.of(context).size.width < 650;
+
+ static bool isTablet(BuildContext context) =>
+ MediaQuery.of(context).size.width < 1100 &&
+ MediaQuery.of(context).size.width >= 650;
+
+ static bool isDesktop(BuildContext context) =>
+ MediaQuery.of(context).size.width >= 1100;
+
+ @override
+ Widget build(BuildContext context) {
+ return LayoutBuilder(
+ // If our width is more than 1100 then we consider it a desktop
+ builder: (context, constraints) {
+ if (constraints.maxWidth >= 1100) {
+ return desktop;
+ }
+ // If width it less then 1100 and more then 650 we consider it as tablet
+ else if (constraints.maxWidth >= 650) {
+ return tablet;
+ }
+ // Or less then that we called it mobile
+ else {
+ return mobile;
+ }
+ },
+ );
+ }
+}
diff --git a/lib/customAppBar/tabs.dart b/lib/customAppBar/tabs.dart
new file mode 100644
index 0000000..549cda3
--- /dev/null
+++ b/lib/customAppBar/tabs.dart
@@ -0,0 +1,78 @@
+import 'package:flutter/material.dart';
+import 'package:animated_bottom_navigation_bar/animated_bottom_navigation_bar.dart';
+
+class CustomBottomNavigationBar extends StatefulWidget {
+ final Function(int) onTabChanged;
+ final List icons;
+ final List labels; // Add labels list
+ final int initialIndex;
+
+ const CustomBottomNavigationBar({
+ Key? key,
+ required this.onTabChanged,
+ required this.icons,
+ required this.labels,
+ this.initialIndex = 0,
+ }) : super(key: key);
+
+ @override
+ _CustomBottomNavigationBarState createState() =>
+ _CustomBottomNavigationBarState();
+}
+
+class _CustomBottomNavigationBarState extends State {
+ late int _currentIndex;
+
+ @override
+ void initState() {
+ super.initState();
+ _currentIndex = widget.initialIndex;
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return AnimatedBottomNavigationBar.builder(
+ itemCount: widget.icons.length,
+ tabBuilder: (int index, bool isActive) {
+ Color backgroundColor = Color(0xFFFFFCE5);
+ Color iconColor = isActive ? Color(0xFFE26728) : Color(0xFF404040);
+ TextStyle textStyle = TextStyle(
+ color: iconColor,
+ fontSize: 10,
+ fontWeight: isActive ? FontWeight.w400 : FontWeight.normal,
+ );
+ return Container(
+ color: backgroundColor,
+ padding: EdgeInsets.all(8), // Adjust padding as needed
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Icon(
+ widget.icons[index],
+ size: 24,
+ color: iconColor,
+ ),
+ SizedBox(height: 2), // Spacing between icon and text
+ Text(
+ widget.labels[index],
+ style: textStyle,
+ ),
+ ],
+ ),
+ );
+ },
+ activeIndex: _currentIndex,
+ gapLocation: GapLocation.none,
+ notchSmoothness: NotchSmoothness.verySmoothEdge,
+ leftCornerRadius: 32,
+ rightCornerRadius: 32,
+ onTap: (index) {
+ setState(() {
+ _currentIndex = index;
+ widget.onTabChanged(index);
+ });
+ },
+ );
+ }
+}
diff --git a/lib/customAppBar/toastHelper.dart b/lib/customAppBar/toastHelper.dart
new file mode 100644
index 0000000..8221dd8
--- /dev/null
+++ b/lib/customAppBar/toastHelper.dart
@@ -0,0 +1,223 @@
+import 'package:flutter/material.dart';
+// import 'package:fluttertoast/fluttertoast.dart';
+import 'package:toastification/toastification.dart';
+
+class ToastHelper {
+ static void showSuccessToast(BuildContext context, String message) {
+ toastification.show(
+ context: context,
+ type: ToastificationType.success,
+ style: ToastificationStyle.flatColored,
+ autoCloseDuration: const Duration(seconds: 2),
+ title: Text(message),
+ // you can also use RichText widget for title and description parameters
+ // description: RichText(
+ // text: const TextSpan(text: 'This is a sample toast message. ')),
+ alignment: Alignment.topRight,
+ direction: TextDirection.ltr,
+ animationDuration: const Duration(milliseconds: 100),
+ animationBuilder: (context, animation, alignment, child) {
+ return FadeTransition(
+ opacity: animation,
+ child: child,
+ );
+ },
+ icon: const Icon(Icons.check),
+ primaryColor: Colors.green,
+ backgroundColor: Colors.white,
+ foregroundColor: Colors.black,
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
+ margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: const [
+ BoxShadow(
+ color: Color(0x07000000),
+ blurRadius: 16,
+ offset: Offset(0, 16),
+ spreadRadius: 0,
+ )
+ ],
+ showProgressBar: true,
+ closeButtonShowType: CloseButtonShowType.onHover,
+ closeOnClick: false,
+ pauseOnHover: true,
+ dragToClose: true,
+ applyBlurEffect: true,
+ callbacks: ToastificationCallbacks(
+ onTap: (toastItem) => print('Toast ${toastItem.id} tapped'),
+ onCloseButtonTap: (toastItem) =>
+ print('Toast ${toastItem.id} close button tapped'),
+ onAutoCompleteCompleted: (toastItem) =>
+ print('Toast ${toastItem.id} auto complete completed'),
+ onDismissed: (toastItem) => print('Toast ${toastItem.id} dismissed'),
+ ),
+ );
+ }
+
+ static void showWarningToast(BuildContext context, String message) {
+ toastification.show(
+ context: context,
+ type: ToastificationType.warning,
+ style: ToastificationStyle.flatColored,
+ autoCloseDuration: const Duration(seconds: 2),
+ title: Text(message),
+ // you can also use RichText widget for title and description parameters
+ // description: RichText(
+ // text: const TextSpan(text: 'This is a sample toast message. ')),
+ alignment: Alignment.topRight,
+ direction: TextDirection.ltr,
+ animationDuration: const Duration(milliseconds: 100),
+ animationBuilder: (context, animation, alignment, child) {
+ return FadeTransition(
+ opacity: animation,
+ child: child,
+ );
+ },
+ icon: const Icon(Icons.warning),
+ primaryColor: Colors.amberAccent,
+ backgroundColor: Colors.white,
+ foregroundColor: Colors.black,
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
+ margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: const [
+ BoxShadow(
+ color: Color(0x07000000),
+ blurRadius: 16,
+ offset: Offset(0, 16),
+ spreadRadius: 0,
+ )
+ ],
+ showProgressBar: true,
+ closeButtonShowType: CloseButtonShowType.onHover,
+ closeOnClick: false,
+ pauseOnHover: true,
+ dragToClose: true,
+ applyBlurEffect: true,
+ callbacks: ToastificationCallbacks(
+ onTap: (toastItem) => print('Toast ${toastItem.id} tapped'),
+ onCloseButtonTap: (toastItem) =>
+ print('Toast ${toastItem.id} close button tapped'),
+ onAutoCompleteCompleted: (toastItem) =>
+ print('Toast ${toastItem.id} auto complete completed'),
+ onDismissed: (toastItem) => print('Toast ${toastItem.id} dismissed'),
+ ),
+ );
+ }
+
+ static void showErrorToast(BuildContext context, String message) {
+ toastification.show(
+ context: context,
+ type: ToastificationType.error,
+ style: ToastificationStyle.flatColored,
+ autoCloseDuration: const Duration(seconds: 2),
+ title: Text(message),
+ // you can also use RichText widget for title and description parameters
+ // description: RichText(
+ // text: const TextSpan(text: 'This is a sample toast message. ')),
+ alignment: Alignment.topRight,
+ direction: TextDirection.ltr,
+ animationDuration: const Duration(milliseconds: 100),
+ animationBuilder: (context, animation, alignment, child) {
+ return FadeTransition(
+ opacity: animation,
+ child: child,
+ );
+ },
+ icon: const Icon(Icons.error),
+ primaryColor: Colors.redAccent,
+ backgroundColor: Colors.white,
+ foregroundColor: Colors.black,
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
+ margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: const [
+ BoxShadow(
+ color: Color(0x07000000),
+ blurRadius: 16,
+ offset: Offset(0, 16),
+ spreadRadius: 0,
+ )
+ ],
+ showProgressBar: true,
+ closeButtonShowType: CloseButtonShowType.onHover,
+ closeOnClick: false,
+ pauseOnHover: true,
+ dragToClose: true,
+ applyBlurEffect: true,
+ callbacks: ToastificationCallbacks(
+ onTap: (toastItem) => print('Toast ${toastItem.id} tapped'),
+ onCloseButtonTap: (toastItem) =>
+ print('Toast ${toastItem.id} close button tapped'),
+ onAutoCompleteCompleted: (toastItem) =>
+ print('Toast ${toastItem.id} auto complete completed'),
+ onDismissed: (toastItem) => print('Toast ${toastItem.id} dismissed'),
+ ),
+ );
+ // _showToast(context, message, Colors.red);
+ }
+
+ static void showInfoToast(BuildContext context, String message) {
+ toastification.show(
+ context: context,
+ type: ToastificationType.info,
+ style: ToastificationStyle.flatColored,
+ autoCloseDuration: const Duration(seconds: 2),
+ title: Text(message),
+ // you can also use RichText widget for title and description parameters
+ // description: RichText(
+ // text: const TextSpan(text: 'This is a sample toast message. ')),
+ alignment: Alignment.topRight,
+ direction: TextDirection.ltr,
+ animationDuration: const Duration(milliseconds: 100),
+ animationBuilder: (context, animation, alignment, child) {
+ return FadeTransition(
+ opacity: animation,
+ child: child,
+ );
+ },
+ icon: const Icon(Icons.info),
+ primaryColor: Colors.lightBlue,
+ backgroundColor: Colors.white,
+ foregroundColor: Colors.black,
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
+ margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: const [
+ BoxShadow(
+ color: Color(0x07000000),
+ blurRadius: 16,
+ offset: Offset(0, 16),
+ spreadRadius: 0,
+ )
+ ],
+ showProgressBar: true,
+ closeButtonShowType: CloseButtonShowType.onHover,
+ closeOnClick: false,
+ pauseOnHover: true,
+ dragToClose: true,
+ applyBlurEffect: true,
+ callbacks: ToastificationCallbacks(
+ onTap: (toastItem) => print('Toast ${toastItem.id} tapped'),
+ onCloseButtonTap: (toastItem) =>
+ print('Toast ${toastItem.id} close button tapped'),
+ onAutoCompleteCompleted: (toastItem) =>
+ print('Toast ${toastItem.id} auto complete completed'),
+ onDismissed: (toastItem) => print('Toast ${toastItem.id} dismissed'),
+ ),
+ );
+ // _showToast(context, message, Colors.red);
+ }
+
+ static void _showToast(BuildContext context, String message, Color color) {
+ // Fluttertoast.showToast(
+ // msg: message,
+ // toastLength: Toast.LENGTH_SHORT,
+ // gravity: ToastGravity.TOP,
+ // timeInSecForIosWeb: 5,
+ // backgroundColor: color,
+ // textColor: Colors.white,
+ // fontSize: 16.0,
+ // );
+ }
+}
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..14c5a91
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,30 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_dotenv/flutter_dotenv.dart';
+import 'package:nhance_app_pwa/pages/claimprocess.dart';
+import 'package:nhance_app_pwa/pages/claims.dart';
+import 'package:nhance_app_pwa/pages/help.dart';
+import 'package:nhance_app_pwa/pages/home.dart';
+import 'package:nhance_app_pwa/pages/login.dart';
+import 'package:nhance_app_pwa/pages/policies.dart';
+import 'package:nhance_app_pwa/pages/profile.dart';
+import 'package:nhance_app_pwa/pages/verify.dart';
+import 'models/environment.dart';
+
+Future main() async {
+ await dotenv.load(fileName: Environment.fileName);
+
+ runApp(MaterialApp(
+ initialRoute: 'login',
+ debugShowCheckedModeBanner: false,
+ routes: {
+ 'login': (context) => login(),
+ 'verify': (context) => MyVerify(),
+ 'home': (context) => MyApp(),
+ 'policies': (context) => policies(),
+ 'claims': (context) => claims(),
+ 'help': (context) => help(),
+ 'claimprocess': (context) => claimprocess(),
+ 'profile': (context) => profile(),
+ },
+ ));
+}
diff --git a/lib/models/environment.dart b/lib/models/environment.dart
new file mode 100644
index 0000000..c289544
--- /dev/null
+++ b/lib/models/environment.dart
@@ -0,0 +1,24 @@
+import 'package:flutter/foundation.dart';
+import 'package:flutter_dotenv/flutter_dotenv.dart';
+
+class Environment {
+ static String get fileName {
+ if (kReleaseMode) {
+ return '.env.production';
+ }
+
+ return '.env.development';
+ }
+
+ static String get apiUrl {
+ return dotenv.env['API_URL'] ?? 'API_URL not found!';
+ }
+
+ static String get apiUrlTicket {
+ return dotenv.env['TICKET_API_URL'] ?? 'API_URL not found!';
+ }
+
+ static String get ticketToken {
+ return 'uncp8FvG310bEyYdV9MmStlo7KDRZ65fLWTeXCI2JzwPrNHjBqQhUiAgxsaO';
+ }
+}
diff --git a/lib/pages/claimprocess.dart b/lib/pages/claimprocess.dart
new file mode 100644
index 0000000..22fd1a9
--- /dev/null
+++ b/lib/pages/claimprocess.dart
@@ -0,0 +1,546 @@
+import 'dart:convert';
+import 'package:flutter/material.dart';
+import 'package:google_fonts/google_fonts.dart';
+import 'package:jwt_decode/jwt_decode.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import '../customAppBar/customAppBar.dart';
+import '../customAppBar/customFooter.dart';
+import '../customAppBar/tabs.dart';
+import '../customAppBar/responsive.dart';
+import '../customAppBar/toastHelper.dart';
+import '../models/environment.dart';
+import 'package:http/http.dart' as http;
+
+class claimprocess extends StatefulWidget {
+ const claimprocess({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _claimprocessState();
+}
+
+class _claimprocessState extends State {
+ int _currentIndex = 0;
+ bool isActive = true;
+ dynamic _token;
+ dynamic empCodeString;
+ dynamic empPrimaryId;
+ dynamic client_id;
+ dynamic policyList;
+ dynamic policyDataIsEmpty = 1;
+ dynamic policyHeading;
+ dynamic policyName;
+ dynamic EmployeePolicy;
+ List