diff --git a/.gitignore b/.gitignore
index 0fa6b67..8906afc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,46 +1,46 @@
-# Miscellaneous
-*.class
-*.log
-*.pyc
-*.swp
-.DS_Store
-.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
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.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
index fd70cab..6376fbe 100644
--- a/.metadata
+++ b/.metadata
@@ -1,10 +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: 77d935af4db863f6abd0b9c31c7e6df2a13de57b
- channel: stable
-
-project_type: app
+# 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: 77d935af4db863f6abd0b9c31c7e6df2a13de57b
+ channel: stable
+
+project_type: app
diff --git a/README.md b/README.md
index 9fb5ee9..014ebc9 100644
--- a/README.md
+++ b/README.md
@@ -1,25 +1,29 @@
-# Testify
-
-Self-assessment or Self-evaluation is defined as the wide variety of mechanisms and techniques through which students describe (i.e., assess) and possibly assign merit or worth (i.e., evaluate) to the qualities of their own learning/knowledge.
-We aim to shed light onto these mechanisms and techniques through an all-inclusive, easy to use Self-assessment System (i.e., framework) in the medical industry which enhances self-regulated learning (SRL) or at least the central components of it such as goal setting and monitoring, or metacognition.
-
-
-## Poster!
-
-
-## Getting started
-
-In your project folder, run the following commands in your terminal:
-```
-git clone https://github.com/TheYoungWolf-Productions/testify.git
-cd testify
-flutter pub get
-```
-`Note:` You need your [GitHub](https://docs.github.com/en/get-started/quickstart/set-up-git) and [Flutter](https://docs.flutter.dev/get-started/install/windows) already setup.
-
-## Contributors
-
-- theYoungWolf
-- Muhammad Abdullah
-- Minahial Khalid
-- **Sponsors:** Pookidevs :v:
+# Testify
+
+Self-assessment or Self-evaluation is defined as the wide variety of mechanisms and techniques through which students describe (i.e., assess) and possibly assign merit or worth (i.e., evaluate) to the qualities of their own learning/knowledge.
+We aim to shed light onto these mechanisms and techniques through an all-inclusive, easy to use Self-assessment System (i.e., framework) in the medical industry which enhances self-regulated learning (SRL) or at least the central components of it such as goal setting and monitoring, or metacognition.
+
+
+## Poster!
+
+
+## Getting started
+
+In your project folder, run the following commands in your terminal:
+```
+git clone https://github.com/TheYoungWolf-Productions/testify.git
+cd testify
+flutter pub get
+```
+`Note:` You need your [GitHub](https://docs.github.com/en/get-started/quickstart/set-up-git) and [Flutter](https://docs.flutter.dev/get-started/install/windows) already setup. I recommend using *VSCode* as the editor with __Flutter__ extension.
+
+### :loudspeaker: Guidelines
+- :bulb: The team will ***STRICTLY*** follow the [Git Workflow](https://nvie.com/posts/a-successful-git-branching-model/)
+- :bulb: Every pull request needs to have an **assigned** reviewer.
+
+## Contributors
+
+- :wolf: theYoungWolf :wolf:
+- Muhammad Abdullah
+- Minahial Khalid
+- **Sponsors:** Pookidevs :v:
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 61b6c4d..a7acf24 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -1,29 +1,29 @@
-# This file configures the analyzer, which statically analyzes Dart code to
-# check for errors, warnings, and lints.
-#
-# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
-# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
-# invoked from the command line by running `flutter analyze`.
-
-# The following line activates a set of recommended lints for Flutter apps,
-# packages, and plugins designed to encourage good coding practices.
-include: package:flutter_lints/flutter.yaml
-
-linter:
- # The lint rules applied to this project can be customized in the
- # section below to disable rules from the `package:flutter_lints/flutter.yaml`
- # included above or to enable additional rules. A list of all available lints
- # and their documentation is published at
- # https://dart-lang.github.io/linter/lints/index.html.
- #
- # Instead of disabling a lint rule for the entire project in the
- # section below, it can also be suppressed for a single line of code
- # or a specific dart file by using the `// ignore: name_of_lint` and
- # `// ignore_for_file: name_of_lint` syntax on the line or in the file
- # producing the lint.
- rules:
- # avoid_print: false # Uncomment to disable the `avoid_print` rule
- # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
-
-# Additional information about this file can be found at
-# https://dart.dev/guides/language/analysis-options
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
index 6f56801..5d99765 100644
--- a/android/.gitignore
+++ b/android/.gitignore
@@ -1,13 +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
+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
index 5050e0c..2ed36dc 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -1,68 +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 flutter.compileSdkVersion
-
- 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.testify"
- 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 {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
+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 flutter.compileSdkVersion
+
+ 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.testify"
+ 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 {
+ 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
index 2cc5f64..580437e 100644
--- a/android/app/src/debug/AndroidManifest.xml
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -1,7 +1,7 @@
-
-
-
-
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index f30c238..5df60fe 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,34 +1,34 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/testify/MainActivity.kt b/android/app/src/main/kotlin/com/example/testify/MainActivity.kt
index 4ecad09..ae508d7 100644
--- a/android/app/src/main/kotlin/com/example/testify/MainActivity.kt
+++ b/android/app/src/main/kotlin/com/example/testify/MainActivity.kt
@@ -1,6 +1,6 @@
-package com.example.testify
-
-import io.flutter.embedding.android.FlutterActivity
-
-class MainActivity: FlutterActivity() {
-}
+package com.example.testify
+
+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
index f74085f..1cb7aa2 100644
--- a/android/app/src/main/res/drawable-v21/launch_background.xml
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -1,12 +1,12 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
index 304732f..8403758 100644
--- a/android/app/src/main/res/drawable/launch_background.xml
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -1,12 +1,12 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
index 3db14bb..6b2369f 100644
--- a/android/app/src/main/res/values-night/styles.xml
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -1,18 +1,18 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
index d460d1e..3e29b54 100644
--- a/android/app/src/main/res/values/styles.xml
+++ b/android/app/src/main/res/values/styles.xml
@@ -1,18 +1,18 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
index 2cc5f64..580437e 100644
--- a/android/app/src/profile/AndroidManifest.xml
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -1,7 +1,7 @@
-
-
-
-
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
index 24047dc..6b57dfa 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,31 +1,31 @@
-buildscript {
- ext.kotlin_version = '1.3.50'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:4.1.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-subprojects {
- project.evaluationDependsOn(':app')
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
+buildscript {
+ ext.kotlin_version = '1.3.50'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:4.1.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
index 94adc3a..46c1f16 100644
--- a/android/gradle.properties
+++ b/android/gradle.properties
@@ -1,3 +1,3 @@
-org.gradle.jvmargs=-Xmx1536M
-android.useAndroidX=true
-android.enableJetifier=true
+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
index bc6a58a..571984a 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +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-6.7-all.zip
+#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-6.7-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
index 44e62bc..33f0745 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -1,11 +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"
+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/Brandon_bld.otf b/assets/Fonts/Brandon_bld.otf
new file mode 100644
index 0000000..d70c281
Binary files /dev/null and b/assets/Fonts/Brandon_bld.otf differ
diff --git a/assets/Fonts/Brandon_med.otf b/assets/Fonts/Brandon_med.otf
new file mode 100644
index 0000000..113eb24
Binary files /dev/null and b/assets/Fonts/Brandon_med.otf differ
diff --git a/assets/Images/calculator.svg b/assets/Images/calculator.svg
new file mode 100644
index 0000000..e988fff
--- /dev/null
+++ b/assets/Images/calculator.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/Images/create_quiz.svg b/assets/Images/create_quiz.svg
new file mode 100644
index 0000000..1682976
--- /dev/null
+++ b/assets/Images/create_quiz.svg
@@ -0,0 +1,57 @@
+
diff --git a/assets/Images/lab.svg b/assets/Images/lab.svg
new file mode 100644
index 0000000..4e9920a
--- /dev/null
+++ b/assets/Images/lab.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/Images/login.svg b/assets/Images/login.svg
new file mode 100644
index 0000000..cc6272d
--- /dev/null
+++ b/assets/Images/login.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/Images/login_bottomRight.svg b/assets/Images/login_bottomRight.svg
new file mode 100644
index 0000000..517f851
--- /dev/null
+++ b/assets/Images/login_bottomRight.svg
@@ -0,0 +1,62 @@
+
diff --git a/assets/Images/login_bottomRight_png.png b/assets/Images/login_bottomRight_png.png
new file mode 100644
index 0000000..38bae3b
Binary files /dev/null and b/assets/Images/login_bottomRight_png.png differ
diff --git a/assets/Images/login_topLeftBubble_1.png b/assets/Images/login_topLeftBubble_1.png
new file mode 100644
index 0000000..df0f7c9
Binary files /dev/null and b/assets/Images/login_topLeftBubble_1.png differ
diff --git a/assets/Images/logout.svg b/assets/Images/logout.svg
new file mode 100644
index 0000000..2f532a5
--- /dev/null
+++ b/assets/Images/logout.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/Images/notes.svg b/assets/Images/notes.svg
new file mode 100644
index 0000000..00038ae
--- /dev/null
+++ b/assets/Images/notes.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/Images/notes_screen.svg b/assets/Images/notes_screen.svg
new file mode 100644
index 0000000..e1ed78f
--- /dev/null
+++ b/assets/Images/notes_screen.svg
@@ -0,0 +1,50 @@
+
diff --git a/assets/Images/prevQuiz.svg b/assets/Images/prevQuiz.svg
new file mode 100644
index 0000000..e1ed78f
--- /dev/null
+++ b/assets/Images/prevQuiz.svg
@@ -0,0 +1,50 @@
+
diff --git a/assets/Images/testAnalysis.svg b/assets/Images/testAnalysis.svg
new file mode 100644
index 0000000..4602d15
--- /dev/null
+++ b/assets/Images/testAnalysis.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/Images/testResults.svg b/assets/Images/testResults.svg
new file mode 100644
index 0000000..8c4e652
--- /dev/null
+++ b/assets/Images/testResults.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/Images/zoom.svg b/assets/Images/zoom.svg
new file mode 100644
index 0000000..6a928a9
--- /dev/null
+++ b/assets/Images/zoom.svg
@@ -0,0 +1,3 @@
+
diff --git a/ios/.gitignore b/ios/.gitignore
index 7a7f987..ad322bc 100644
--- a/ios/.gitignore
+++ b/ios/.gitignore
@@ -1,34 +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
+**/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
index 8d4492f..80391e4 100644
--- a/ios/Flutter/AppFrameworkInfo.plist
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -1,26 +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
-
-
+
+
+
+
+ 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
index 592ceee..dfd2626 100644
--- a/ios/Flutter/Debug.xcconfig
+++ b/ios/Flutter/Debug.xcconfig
@@ -1 +1,2 @@
-#include "Generated.xcconfig"
+#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
index 592ceee..a97381a 100644
--- a/ios/Flutter/Release.xcconfig
+++ b/ios/Flutter/Release.xcconfig
@@ -1 +1,2 @@
-#include "Generated.xcconfig"
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Podfile b/ios/Podfile
new file mode 100644
index 0000000..1e8c3c9
--- /dev/null
+++ b/ios/Podfile
@@ -0,0 +1,41 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '9.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index 974c657..8048b3f 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -1,481 +1,481 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 50;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1300;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- LastSwiftMigration = 1100;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 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.example.testify;
- 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_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.testify;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.example.testify;
- 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 */;
-}
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1300;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 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.example.testify;
+ 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_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.testify;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.testify;
+ 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
index 919434a..c4b79bd 100644
--- a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -1,7 +1,7 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
index 18d9810..fc6bf80 100644
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -1,8 +1,8 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
index f9b0d7c..af0309c 100644
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -1,8 +1,8 @@
-
-
-
-
- PreviewsEnabled
-
-
-
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index c87d15a..f9cbb25 100644
--- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -1,87 +1,87 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
index 1d526a1..59c6d39 100644
--- a/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -1,7 +1,7 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
index 18d9810..fc6bf80 100644
--- a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -1,8 +1,8 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
index f9b0d7c..af0309c 100644
--- a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -1,8 +1,8 @@
-
-
-
-
- PreviewsEnabled
-
-
-
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
index 70693e4..3763683 100644
--- a/ios/Runner/AppDelegate.swift
+++ b/ios/Runner/AppDelegate.swift
@@ -1,13 +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)
- }
-}
+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
index d36b1fa..1950fd8 100644
--- a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -1,122 +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"
- }
-}
+{
+ "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/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
index 0bedcf2..d08a4de 100644
--- a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -1,23 +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"
- }
-}
+{
+ "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/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
index 89c2725..65a94b5 100644
--- a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -1,5 +1,5 @@
-# Launch Screen Assets
-
-You can customize the launch screen with your own desired assets by replacing the image files in this directory.
-
+# 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
index f2e259c..497371e 100644
--- a/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -1,37 +1,37 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
index f3c2851..bbb83ca 100644
--- a/ios/Runner/Base.lproj/Main.storyboard
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -1,26 +1,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 37f1375..0f37f86 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -1,47 +1,47 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleDisplayName
- Testify
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- testify
- 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
-
-
-
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Testify
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ testify
+ 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
index 308a2a5..fae207f 100644
--- a/ios/Runner/Runner-Bridging-Header.h
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -1 +1 @@
-#import "GeneratedPluginRegistrant.h"
+#import "GeneratedPluginRegistrant.h"
diff --git a/lib/auth_storage.dart b/lib/auth_storage.dart
new file mode 100644
index 0000000..03a99db
--- /dev/null
+++ b/lib/auth_storage.dart
@@ -0,0 +1,41 @@
+import 'package:path_provider/path_provider.dart';
+import 'dart:io';
+
+
+class AuthStorage {
+ Future getLocalPath() async {
+ var dir = await getApplicationDocumentsDirectory();
+ return dir.path;
+ }
+
+ Future getLocalFile() async {
+ String path = await getLocalPath();
+ return File('$path/auth.txt');
+ }
+
+ Future writeAuth(String email, String password) async {
+ File file = await getLocalFile();
+ return file.writeAsString('$email' + ' ' + '$password');
+ }
+
+ Future readAuth() async {
+ try {
+ final file = await getLocalFile();
+ String content = await file.readAsString();
+ return content;
+ } catch(e) {
+ return "";
+ }
+ }
+
+ Future deleteFile() async {
+ try {
+ final file = await getLocalFile();
+
+ await file.delete();
+ return "";
+ } catch (e) {
+ return "";
+ }
+ }
+}
\ No newline at end of file
diff --git a/lib/generated_plugin_registrant.dart b/lib/generated_plugin_registrant.dart
new file mode 100644
index 0000000..4d2b808
--- /dev/null
+++ b/lib/generated_plugin_registrant.dart
@@ -0,0 +1,17 @@
+//
+// Generated file. Do not edit.
+//
+
+// ignore_for_file: directives_ordering
+// ignore_for_file: lines_longer_than_80_chars
+// ignore_for_file: depend_on_referenced_packages
+
+import 'package:shared_preferences_web/shared_preferences_web.dart';
+
+import 'package:flutter_web_plugins/flutter_web_plugins.dart';
+
+// ignore: public_member_api_docs
+void registerPlugins(Registrar registrar) {
+ SharedPreferencesPlugin.registerWith(registrar);
+ registrar.registerMessageHandler();
+}
diff --git a/lib/main.dart b/lib/main.dart
index 202509b..1e0f65d 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,115 +1,40 @@
-import 'package:flutter/material.dart';
-
-void main() {
- runApp(const MyApp());
-}
-
-class MyApp extends StatelessWidget {
- const MyApp({Key? key}) : super(key: key);
-
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter Demo',
- theme: ThemeData(
- // This is the theme of your application.
- //
- // Try running your application with "flutter run". You'll see the
- // application has a blue toolbar. Then, without quitting the app, try
- // changing the primarySwatch below to Colors.green and then invoke
- // "hot reload" (press "r" in the console where you ran "flutter run",
- // or simply save your changes to "hot reload" in a Flutter IDE).
- // Notice that the counter didn't reset back to zero; the application
- // is not restarted.
- primarySwatch: Colors.blue,
- ),
- home: const MyHomePage(title: 'Flutter Demo Home Page'),
- );
- }
-}
-
-class MyHomePage extends StatefulWidget {
- const MyHomePage({Key? key, required this.title}) : super(key: key);
-
- // This widget is the home page of your application. It is stateful, meaning
- // that it has a State object (defined below) that contains fields that affect
- // how it looks.
-
- // This class is the configuration for the state. It holds the values (in this
- // case the title) provided by the parent (in this case the App widget) and
- // used by the build method of the State. Fields in a Widget subclass are
- // always marked "final".
-
- final String title;
-
- @override
- State createState() => _MyHomePageState();
-}
-
-class _MyHomePageState extends State {
- int _counter = 0;
-
- void _incrementCounter() {
- setState(() {
- // This call to setState tells the Flutter framework that something has
- // changed in this State, which causes it to rerun the build method below
- // so that the display can reflect the updated values. If we changed
- // _counter without calling setState(), then the build method would not be
- // called again, and so nothing would appear to happen.
- _counter++;
- });
- }
-
- @override
- Widget build(BuildContext context) {
- // This method is rerun every time setState is called, for instance as done
- // by the _incrementCounter method above.
- //
- // The Flutter framework has been optimized to make rerunning build methods
- // fast, so that you can just rebuild anything that needs updating rather
- // than having to individually change instances of widgets.
- return Scaffold(
- appBar: AppBar(
- // Here we take the value from the MyHomePage object that was created by
- // the App.build method, and use it to set our appbar title.
- title: Text(widget.title),
- ),
- body: Center(
- // Center is a layout widget. It takes a single child and positions it
- // in the middle of the parent.
- child: Column(
- // Column is also a layout widget. It takes a list of children and
- // arranges them vertically. By default, it sizes itself to fit its
- // children horizontally, and tries to be as tall as its parent.
- //
- // Invoke "debug painting" (press "p" in the console, choose the
- // "Toggle Debug Paint" action from the Flutter Inspector in Android
- // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
- // to see the wireframe for each widget.
- //
- // Column has various properties to control how it sizes itself and
- // how it positions its children. Here we use mainAxisAlignment to
- // center the children vertically; the main axis here is the vertical
- // axis because Columns are vertical (the cross axis would be
- // horizontal).
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- const Text(
- 'You have pushed the button this many times:',
- ),
- Text(
- '$_counter',
- style: Theme.of(context).textTheme.headline4,
- ),
- ],
- ),
- ),
- floatingActionButton: FloatingActionButton(
- onPressed: _incrementCounter,
- tooltip: 'Increment',
- child: const Icon(Icons.add),
- ), // This trailing comma makes auto-formatting nicer for build methods.
- );
- }
-}
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'package:testify/auth_storage.dart';
+import 'package:testify/screens/Authentication/login.dart';
+import 'package:testify/screens/Welcome/GenerateQuiz/generate_quiz.dart';
+import 'package:testify/screens/Welcome/QuizModule/quiz_module.dart';
+import 'package:testify/screens/home.dart';
+
+void main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitUp,
+ DeviceOrientation.portraitDown,
+ ]);
+
+ runApp(MyApp());
+}
+
+class MyApp extends StatefulWidget {
+ // This widget is the root of your application.
+ @override
+ State createState() => _MyAppState();
+}
+
+class _MyAppState extends State {
+
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ initialRoute: '/',
+ routes: {
+ // When navigating to the "/" route, build the FirstScreen widget.
+ '/': (context) => Login(fromWhere: "main",),
+ // When navigating to the "/second" route, build the SecondScreen widget.
+ '/home': (context) => Home(),
+ },
+ // home: Login(fromWhere: "main",)
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/models/DashboardStatsModel/dashboard_stats_model.dart b/lib/models/DashboardStatsModel/dashboard_stats_model.dart
new file mode 100644
index 0000000..e4b5a6b
--- /dev/null
+++ b/lib/models/DashboardStatsModel/dashboard_stats_model.dart
@@ -0,0 +1,113 @@
+// To parse this JSON data, do
+//
+// final dashboardStatsModel = dashboardStatsModelFromJson(jsonString);
+
+import 'dart:convert';
+
+DashboardStatsModel dashboardStatsModelFromJson(String str) => DashboardStatsModel.fromJson(json.decode(str));
+
+String dashboardStatsModelToJson(DashboardStatsModel data) => json.encode(data.toJson());
+
+class DashboardStatsModel {
+ DashboardStatsModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory DashboardStatsModel.fromJson(Map json) => DashboardStatsModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.totalQuestions,
+ required this.usedQuestions,
+ required this.unUsedQuestions,
+ required this.totalQuizzes,
+ required this.completedQuizzes,
+ required this.suspendedQuizzes,
+ required this.answeredQuestions,
+ required this.correctQuestions,
+ required this.incorrectQuestions,
+ required this.omittedQuestions,
+ required this.bestSubject,
+ required this.worstSubject,
+ required this.allQuizScores,
+ });
+
+ bool status;
+ int totalQuestions;
+ int usedQuestions;
+ int unUsedQuestions;
+ int totalQuizzes;
+ int completedQuizzes;
+ int suspendedQuizzes;
+ int answeredQuestions;
+ int correctQuestions;
+ int incorrectQuestions;
+ int omittedQuestions;
+ String bestSubject;
+ String worstSubject;
+ List allQuizScores;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ totalQuestions: json["totalQuestions"],
+ usedQuestions: json["usedQuestions"],
+ unUsedQuestions: json["unUsedQuestions"],
+ totalQuizzes: json["totalQuizzes"],
+ completedQuizzes: json["completedQuizzes"],
+ suspendedQuizzes: json["suspendedQuizzes"],
+ answeredQuestions: json["answeredQuestions"],
+ correctQuestions: json["correctQuestions"],
+ incorrectQuestions: json["incorrectQuestions"],
+ omittedQuestions: json["omittedQuestions"],
+ bestSubject: json["bestSubject"],
+ worstSubject: json["worstSubject"],
+ allQuizScores: List.from(json["allQuizScores"].map((x) => AllQuizScore.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "totalQuestions": totalQuestions,
+ "usedQuestions": usedQuestions,
+ "unUsedQuestions": unUsedQuestions,
+ "totalQuizzes": totalQuizzes,
+ "completedQuizzes": completedQuizzes,
+ "suspendedQuizzes": suspendedQuizzes,
+ "answeredQuestions": answeredQuestions,
+ "correctQuestions": correctQuestions,
+ "incorrectQuestions": incorrectQuestions,
+ "omittedQuestions": omittedQuestions,
+ "bestSubject": bestSubject,
+ "worstSubject": worstSubject,
+ "allQuizScores": List.from(allQuizScores.map((x) => x.toJson())),
+ };
+}
+
+class AllQuizScore {
+ AllQuizScore({
+ required this.id,
+ required this.score,
+ });
+
+ int id;
+ double score;
+
+ factory AllQuizScore.fromJson(Map json) => AllQuizScore(
+ id: json["ID"],
+ score: json["Score"].toDouble(),
+ );
+
+ Map toJson() => {
+ "ID": id,
+ "Score": score,
+ };
+}
diff --git a/lib/models/GenerateQuizModels/QuizModuleModels/generate_quiz_model.dart b/lib/models/GenerateQuizModels/QuizModuleModels/generate_quiz_model.dart
new file mode 100644
index 0000000..562990a
--- /dev/null
+++ b/lib/models/GenerateQuizModels/QuizModuleModels/generate_quiz_model.dart
@@ -0,0 +1,97 @@
+// To parse this JSON data, do
+//
+// final generateQuizSuccessful = generateQuizSuccessfulFromJson(jsonString);
+
+import 'dart:convert';
+
+GenerateQuizSuccessful generateQuizSuccessfulFromJson(String str) => GenerateQuizSuccessful.fromJson(json.decode(str));
+
+String generateQuizSuccessfulToJson(GenerateQuizSuccessful data) => json.encode(data.toJson());
+
+class GenerateQuizSuccessful {
+ GenerateQuizSuccessful({
+ required this.data,
+ });
+
+ Data data;
+
+ factory GenerateQuizSuccessful.fromJson(Map json) => GenerateQuizSuccessful(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.questions,
+ required this.totalQuestions,
+ required this.quizId,
+ });
+
+ bool status;
+ List questions;
+ int totalQuestions;
+ int quizId;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ questions: List.from(json["questions"].map((x) => Question.fromJson(x))),
+ totalQuestions: json["totalQuestions"],
+ quizId: json["quizId"],
+ );
+
+ Map toJson() => {
+ "status": status,
+ "questions": List.from(questions.map((x) => x.toJson())),
+ "totalQuestions": totalQuestions,
+ "quizId": quizId,
+ };
+}
+
+class Question {
+ Question({
+ required this.id,
+ required this.title,
+ required this.question,
+ required this.correctMsg,
+ required this.answerType,
+ required this.postId,
+ required this.options,
+ required this.statistics,
+ });
+
+ int id;
+ String title;
+ String question;
+ String correctMsg;
+ String answerType;
+ int postId;
+ List options;
+ List statistics;
+
+ factory Question.fromJson(Map json) => Question(
+ id: json["id"],
+ title: json["title"],
+ question: json["question"],
+ correctMsg: json["correct_msg"],
+ answerType: json["answer_type"],
+ postId: json["postId"],
+ options: List.from(json["options"].map((x) => x)),
+ statistics: List.from(json["statistics"].map((x) => x)),
+ );
+
+ Map toJson() => {
+ "id": id,
+ "title": title,
+ "question": question,
+ "correct_msg": correctMsg,
+ "answer_type": answerType,
+ "postId": postId,
+ "options": List.from(options.map((x) => x)),
+ "statistics": List.from(statistics.map((x) => x)),
+ };
+}
diff --git a/lib/models/GenerateQuizModels/get_system_categories_successful.dart b/lib/models/GenerateQuizModels/get_system_categories_successful.dart
new file mode 100644
index 0000000..6ec60af
--- /dev/null
+++ b/lib/models/GenerateQuizModels/get_system_categories_successful.dart
@@ -0,0 +1,97 @@
+// To parse this JSON data, do
+//
+// final getSystemCategoriesSuccessfulModel = getSystemCategoriesSuccessfulModelFromJson(jsonString);
+
+import 'dart:convert';
+
+GetSystemCategoriesSuccessfulModel getSystemCategoriesSuccessfulModelFromJson(String str) => GetSystemCategoriesSuccessfulModel.fromJson(json.decode(str));
+
+String getSystemCategoriesSuccessfulModelToJson(GetSystemCategoriesSuccessfulModel data) => json.encode(data.toJson());
+
+class GetSystemCategoriesSuccessfulModel {
+ GetSystemCategoriesSuccessfulModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory GetSystemCategoriesSuccessfulModel.fromJson(Map json) => GetSystemCategoriesSuccessfulModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.categories,
+ required this.totalQuestions,
+ required this.questions,
+ });
+
+ bool status;
+ List categories;
+ int totalQuestions;
+ List questions;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ categories: List.from(json["categories"].map((x) => Category.fromJson(x))),
+ totalQuestions: json["totalQuestions"],
+ questions: List.from(json["questions"].map((x) => x)),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "categories": List.from(categories.map((x) => x.toJson())),
+ "totalQuestions": totalQuestions,
+ "questions": List.from(questions.map((x) => x)),
+ };
+}
+
+class Category {
+ Category({
+ required this.parentCategory,
+ required this.subCategories,
+ });
+
+ String parentCategory;
+ List subCategories;
+
+ factory Category.fromJson(Map json) => Category(
+ parentCategory: json["parentCategory"],
+ subCategories: List.from(json["subCategories"].map((x) => SubCategory.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "parentCategory": parentCategory,
+ "subCategories": List.from(subCategories.map((x) => x.toJson())),
+ };
+}
+
+class SubCategory {
+ SubCategory({
+ required this.id,
+ required this.title,
+ required this.questions,
+ });
+
+ String id;
+ String title;
+ int questions;
+
+ factory SubCategory.fromJson(Map json) => SubCategory(
+ id: json["ID"],
+ title: json["Title"],
+ questions: json["Questions"],
+ );
+
+ Map toJson() => {
+ "ID": id,
+ "Title": title,
+ "Questions": questions,
+ };
+}
diff --git a/lib/models/GenerateQuizModels/get_system_categories_unsuccessful.dart b/lib/models/GenerateQuizModels/get_system_categories_unsuccessful.dart
new file mode 100644
index 0000000..fbea9f6
--- /dev/null
+++ b/lib/models/GenerateQuizModels/get_system_categories_unsuccessful.dart
@@ -0,0 +1,29 @@
+// To parse this JSON data, do
+//
+// final getSystemCategoriesUnsuccessfulModel = getSystemCategoriesUnsuccessfulModelFromJson(jsonString);
+
+import 'dart:convert';
+
+GetSystemCategoriesUnsuccessfulModel getSystemCategoriesUnsuccessfulModelFromJson(String str) => GetSystemCategoriesUnsuccessfulModel.fromJson(json.decode(str));
+
+String getSystemCategoriesUnsuccessfulModelToJson(GetSystemCategoriesUnsuccessfulModel data) => json.encode(data.toJson());
+
+class GetSystemCategoriesUnsuccessfulModel {
+ GetSystemCategoriesUnsuccessfulModel({
+ required this.status,
+ required this.msg,
+ });
+
+ bool status;
+ String msg;
+
+ factory GetSystemCategoriesUnsuccessfulModel.fromJson(Map json) => GetSystemCategoriesUnsuccessfulModel(
+ status: json["status"],
+ msg: json["msg"],
+ );
+
+ Map toJson() => {
+ "status": status,
+ "msg": msg,
+ };
+}
diff --git a/lib/models/GetPreviousQuizzesModel/ResumeQuiz/resume_quiz_model.dart b/lib/models/GetPreviousQuizzesModel/ResumeQuiz/resume_quiz_model.dart
new file mode 100644
index 0000000..f292d4b
--- /dev/null
+++ b/lib/models/GetPreviousQuizzesModel/ResumeQuiz/resume_quiz_model.dart
@@ -0,0 +1,257 @@
+
+import 'dart:convert';
+
+ResumeQuizModel resumeQuizModelFromJson(String str) => ResumeQuizModel.fromJson(json.decode(str));
+
+String resumeQuizModelToJson(ResumeQuizModel data) => json.encode(data.toJson());
+
+class ResumeQuizModel {
+ ResumeQuizModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory ResumeQuizModel.fromJson(Map json) => ResumeQuizModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.questions,
+ required this.previousQuizzes,
+ });
+
+ bool status;
+ List questions;
+ List previousQuizzes;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ questions: List.from(json["questions"].map((x) => Question.fromJson(x))),
+ previousQuizzes: List.from(json["previousQuizzes"].map((x) => PreviousQuizz.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "questions": List.from(questions.map((x) => x.toJson())),
+ "previousQuizzes": List.from(previousQuizzes.map((x) => x.toJson())),
+ };
+}
+
+class PreviousQuizz {
+ PreviousQuizz({
+ required this.quizId,
+ required this.userId,
+ required this.quizMeta,
+ required this.sortId,
+ this.examId,
+ });
+
+ int quizId;
+ int userId;
+ QuizMeta quizMeta;
+ DateTime sortId;
+ dynamic examId;
+
+ factory PreviousQuizz.fromJson(Map json) => PreviousQuizz(
+ quizId: json["quiz_id"],
+ userId: json["user_id"],
+ quizMeta: QuizMeta.fromJson(json["quiz_meta"]),
+ sortId: DateTime.parse(json["sortId"]),
+ examId: json["exam_id"],
+ );
+
+ Map toJson() => {
+ "quiz_id": quizId,
+ "user_id": userId,
+ "quiz_meta": quizMeta.toJson(),
+ "sortId": sortId.toIso8601String(),
+ "exam_id": examId,
+ };
+}
+
+class QuizMeta {
+ QuizMeta({
+ required this.quizId,
+ required this.quizTitle,
+ required this.quizDate,
+ required this.quizScore,
+ required this.quizTotalQuestions,
+ required this.quizStatus,
+ required this.quizQuestions,
+ required this.quizMode,
+ required this.quizTime,
+ required this.isTimed,
+ required this.omittedQuestions,
+ required this.selectedOptionsArray,
+ });
+
+ // int quizId;
+ // String quizTitle;
+ // DateTime quizDate;
+ // String quizScore;
+ // int quizTotalQuestions;
+ // String quizStatus;
+ // String quizQuestions;
+ // String quizMode;
+ // String quizTime;
+ // bool isTimed;
+ // List omittedQuestions;
+ // List selectedOptionsArray;
+
+ dynamic quizId; // Problem
+ String quizTitle;
+ DateTime quizDate;
+ dynamic quizScore; // Problem
+ int quizTotalQuestions;
+ String quizStatus;
+ String quizQuestions;
+ String quizMode;
+ String quizTime;
+ bool isTimed;
+ List omittedQuestions;
+ // List selectedOptionsArray;
+ List selectedOptionsArray;
+
+ factory QuizMeta.fromJson(Map json) => QuizMeta(
+ quizId: json["quizId"],
+ quizTitle: json["quizTitle"],
+ quizDate: DateTime.parse(json["quizDate"]),
+ quizScore: json["quizScore"],
+ quizTotalQuestions: json["quizTotalQuestions"],
+ quizStatus: json["quizStatus"],
+ quizQuestions: json["quizQuestions"],
+ quizMode: json["quizMode"],
+ quizTime: json["quizTime"],
+ isTimed: json["isTimed"],
+ omittedQuestions: List.from(json["omittedQuestions"].map((x) => x)),
+ // selectedOptionsArray: List.from(json["selectedOptionsArray"].map((x) => x)),
+ selectedOptionsArray: List.from(json["selectedOptionsArray"].map((x) => SelectedOptionsArray.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "quizId": quizId,
+ "quizTitle": quizTitle,
+ "quizDate": quizDate.toIso8601String(),
+ "quizScore": quizScore,
+ "quizTotalQuestions": quizTotalQuestions,
+ "quizStatus": quizStatus,
+ "quizQuestions": quizQuestions,
+ "quizMode": quizMode,
+ "quizTime": quizTime,
+ "isTimed": isTimed,
+ "omittedQuestions": List.from(omittedQuestions.map((x) => x)),
+ // "selectedOptionsArray": List.from(selectedOptionsArray.map((x) => x)),
+ "selectedOptionsArray": List.from(selectedOptionsArray.map((x) => x.toJson())),
+ };
+}
+
+class SelectedOptionsArray {
+ SelectedOptionsArray({
+ this.index,
+ this.correctanswerindex,
+ this.correct,
+ this.optionIndexSelected,
+ this.time
+ });
+
+ dynamic index;
+ dynamic correctanswerindex;
+ dynamic correct;
+ dynamic optionIndexSelected;
+ dynamic time;
+
+ factory SelectedOptionsArray.fromJson(Map json) => SelectedOptionsArray(
+ index: json["index"] == null ? null : json["index"],
+ correctanswerindex: json["Correctanswerindex"] == null ? null : json["Correctanswerindex"],
+ correct: json["correct"] == null ? null : json["correct"],
+ optionIndexSelected: json["optionIndexSelected"] == null ? null : json["optionIndexSelected"],
+ time: json["time"] == null ? null : json["time"],
+ );
+
+ Map toJson() => {
+ "index": index,
+ "Correctanswerindex": correctanswerindex,
+ "correct": correct,
+ "optionIndexSelected": optionIndexSelected,
+ };
+}
+
+class Question {
+ Question({
+ required this.id,
+ required this.title,
+ required this.question,
+ required this.correctMsg,
+ required this.answerType,
+ required this.postId,
+ this.userId,
+ this.submitData,
+ this.notes,
+ this.questionId,
+ this.noteId,
+ this.noteMeta,
+ required this.marked,
+ required this.options,
+ required this.statistics,
+ });
+
+ int id;
+ String title;
+ String question;
+ String correctMsg;
+ String answerType;
+ int postId;
+ dynamic userId;
+ dynamic submitData;
+ dynamic notes;
+ dynamic questionId;
+ dynamic noteId;
+ dynamic noteMeta;
+ int marked;
+ List options;
+ List statistics;
+
+ factory Question.fromJson(Map json) => Question(
+ id: json["id"],
+ title: json["title"],
+ question: json["question"],
+ correctMsg: json["correct_msg"],
+ answerType: json["answer_type"],
+ postId: json["postId"],
+ userId: json["user_id"] == null ? null : json["user_id"],
+ submitData: json["submitData"] == null ? null : json["submitData"],
+ notes: json["notes"] == null ? null : json["notes"],
+ questionId: json["questionId"] == null ? null : json["questionId"],
+ noteId: json["noteId"] == null ? null : json["noteId"],
+ noteMeta: json["note_meta"] == null ? null : json["note_meta"],
+ marked: json["marked"],
+ options: List.from(json["options"].map((x) => x)),
+ statistics: List.from(json["statistics"].map((x) => x)),
+ );
+
+ Map toJson() => {
+ "id": id,
+ "title": title,
+ "question": question,
+ "correct_msg": correctMsg,
+ "answer_type": answerType,
+ "postId": postId,
+ "user_id": userId ?? null,
+ "submitData": submitData == null ? null : submitData,
+ "notes": notes,
+ "questionId": questionId,
+ "noteId": noteId,
+ "note_meta": noteMeta,
+ "marked": marked,
+ "options": List.from(options.map((x) => x)),
+ "statistics": List.from(statistics.map((x) => x)),
+ };
+}
diff --git a/lib/models/GetPreviousQuizzesModel/TestAnalysisModel/test_analysis_model.dart b/lib/models/GetPreviousQuizzesModel/TestAnalysisModel/test_analysis_model.dart
new file mode 100644
index 0000000..5ba7209
--- /dev/null
+++ b/lib/models/GetPreviousQuizzesModel/TestAnalysisModel/test_analysis_model.dart
@@ -0,0 +1,133 @@
+// To parse this JSON data, do
+//
+// final testAnalysisModel = testAnalysisModelFromJson(jsonString);
+
+import 'dart:convert';
+
+TestAnalysisModel testAnalysisModelFromJson(String str) => TestAnalysisModel.fromJson(json.decode(str));
+
+String testAnalysisModelToJson(TestAnalysisModel data) => json.encode(data.toJson());
+
+class TestAnalysisModel {
+ TestAnalysisModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory TestAnalysisModel.fromJson(Map json) => TestAnalysisModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.bestSubject,
+ required this.worstSubject,
+ required this.timeTaken,
+ required this.totalQuestionsAnswered,
+ required this.totalCorrect,
+ required this.totalIncorrect,
+ required this.totalOmitted,
+ required this.totalCorrectToCorrect,
+ required this.totalCorrectToIncorrect,
+ required this.totalIncorrectToCorrect,
+ required this.totalIncorrectToIncorrect,
+ required this.subjects,
+ required this.systems,
+ required this.topics,
+ });
+
+ bool status;
+ String bestSubject;
+ String worstSubject;
+ String timeTaken;
+ int totalQuestionsAnswered;
+ int totalCorrect;
+ int totalIncorrect;
+ int totalOmitted;
+ int totalCorrectToCorrect;
+ int totalCorrectToIncorrect;
+ int totalIncorrectToCorrect;
+ int totalIncorrectToIncorrect;
+ List subjects;
+ List systems;
+ List topics;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ bestSubject: json["bestSubject"],
+ worstSubject: json["worstSubject"],
+ timeTaken: json["timeTaken"],
+ totalQuestionsAnswered: json["totalQuestionsAnswered"],
+ totalCorrect: json["totalCorrect"],
+ totalIncorrect: json["totalIncorrect"],
+ totalOmitted: json["totalOmitted"],
+ totalCorrectToCorrect: json["totalCorrectToCorrect"],
+ totalCorrectToIncorrect: json["totalCorrectToIncorrect"],
+ totalIncorrectToCorrect: json["totalIncorrectToCorrect"],
+ totalIncorrectToIncorrect: json["totalIncorrectToIncorrect"],
+ subjects: List.from(json["subjects"].map((x) => Subject.fromJson(x))),
+ systems: List.from(json["systems"].map((x) => Subject.fromJson(x))),
+ topics: List.from(json["topics"].map((x) => Subject.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "bestSubject": bestSubject,
+ "worstSubject": worstSubject,
+ "timeTaken": timeTaken,
+ "totalQuestionsAnswered": totalQuestionsAnswered,
+ "totalCorrect": totalCorrect,
+ "totalIncorrect": totalIncorrect,
+ "totalOmitted": totalOmitted,
+ "totalCorrectToCorrect": totalCorrectToCorrect,
+ "totalCorrectToIncorrect": totalCorrectToIncorrect,
+ "totalIncorrectToCorrect": totalIncorrectToCorrect,
+ "totalIncorrectToIncorrect": totalIncorrectToIncorrect,
+ "subjects": List.from(subjects.map((x) => x.toJson())),
+ "systems": List.from(systems.map((x) => x.toJson())),
+ "topics": List.from(topics.map((x) => x.toJson())),
+ };
+}
+
+class Subject {
+ Subject({
+ required this.srNo,
+ this.category,
+ required this.totalQuestions,
+ required this.correctQuestions,
+ required this.incorrectQuestions,
+ required this.omittedQuestions,
+ });
+
+ int srNo;
+ dynamic category;
+ int totalQuestions;
+ int correctQuestions;
+ int incorrectQuestions;
+ int omittedQuestions;
+
+ factory Subject.fromJson(Map json) => Subject(
+ srNo: json["SrNo"],
+ category: json["Category"] == null ? null : json["Category"],
+ totalQuestions: json["TotalQuestions"],
+ correctQuestions: json["CorrectQuestions"],
+ incorrectQuestions: json["IncorrectQuestions"],
+ omittedQuestions: json["OmittedQuestions"],
+ );
+
+ Map toJson() => {
+ "SrNo": srNo,
+ "Category": category == null ? null : category,
+ "TotalQuestions": totalQuestions,
+ "CorrectQuestions": correctQuestions,
+ "IncorrectQuestions": incorrectQuestions,
+ "OmittedQuestions": omittedQuestions,
+ };
+}
diff --git a/lib/models/GetPreviousQuizzesModel/get_previous_quizzes_model.dart b/lib/models/GetPreviousQuizzesModel/get_previous_quizzes_model.dart
new file mode 100644
index 0000000..a3aa346
--- /dev/null
+++ b/lib/models/GetPreviousQuizzesModel/get_previous_quizzes_model.dart
@@ -0,0 +1,97 @@
+// To parse this JSON data, do
+//
+// final getPreviousQuizzesModel = getPreviousQuizzesModelFromJson(jsonString);
+
+import 'dart:convert';
+
+GetPreviousQuizzesModel getPreviousQuizzesModelFromJson(String str) => GetPreviousQuizzesModel.fromJson(json.decode(str));
+
+String getPreviousQuizzesModelToJson(GetPreviousQuizzesModel data) => json.encode(data.toJson());
+
+class GetPreviousQuizzesModel {
+ GetPreviousQuizzesModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory GetPreviousQuizzesModel.fromJson(Map json) => GetPreviousQuizzesModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.quizzes,
+ });
+
+ bool status;
+ List quizzes;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ quizzes: List.from(json["quizzes"].map((x) => Quiz.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "quizzes": List.from(quizzes.map((x) => x.toJson())),
+ };
+}
+
+class Quiz {
+ Quiz({
+ required this.quizId,
+ required this.name,
+ required this.score,
+ required this.date,
+ required this.status,
+ required this.questions,
+ required this.totalQuestions,
+ required this.subjects,
+ required this.systems,
+ required this.topics,
+ });
+
+ int quizId;
+ String name;
+ String score;
+ String date;
+ String status;
+ List questions;
+ String totalQuestions;
+ List subjects;
+ List systems;
+ List topics;
+
+ factory Quiz.fromJson(Map json) => Quiz(
+ quizId: json["quizId"],
+ name: json["name"],
+ score: json["score"],
+ date: json["date"],
+ status: json["status"],
+ questions: List.from(json["questions"].map((x) => x)),
+ totalQuestions: json["totalQuestions"],
+ subjects: List.from(json["subjects"].map((x) => x)),
+ systems: List.from(json["systems"].map((x) => x)),
+ topics: List.from(json["topics"].map((x) => x)),
+ );
+
+ Map toJson() => {
+ "quizId": quizId,
+ "name": name,
+ "score": score,
+ "date": date,
+ "status": status,
+ "questions": List.from(questions.map((x) => x)),
+ "totalQuestions": totalQuestions,
+ "subjects": List.from(subjects.map((x) => x)),
+ "systems": List.from(systems.map((x) => x)),
+ "topics": List.from(topics.map((x) => x)),
+ };
+}
diff --git a/lib/models/NotesModel/notes_model.dart b/lib/models/NotesModel/notes_model.dart
new file mode 100644
index 0000000..703b87d
--- /dev/null
+++ b/lib/models/NotesModel/notes_model.dart
@@ -0,0 +1,81 @@
+// To parse this JSON data, do
+//
+// final notesModel = notesModelFromJson(jsonString);
+
+import 'dart:convert';
+
+NotesModel notesModelFromJson(String str) => NotesModel.fromJson(json.decode(str));
+
+String notesModelToJson(NotesModel data) => json.encode(data.toJson());
+
+class NotesModel {
+ NotesModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory NotesModel.fromJson(Map json) => NotesModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.notes,
+ });
+
+ bool status;
+ List notes;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ notes: List.from(json["notes"].map((x) => Note.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "notes": List.from(notes.map((x) => x.toJson())),
+ };
+}
+
+class Note {
+ Note({
+ required this.idpsasUserNotes,
+ required this.questionId,
+ required this.userId,
+ required this.quizId,
+ required this.notes,
+ required this.noteMeta,
+ });
+
+ int idpsasUserNotes;
+ int questionId;
+ int userId;
+ int quizId;
+ String notes;
+ String noteMeta;
+
+ factory Note.fromJson(Map json) => Note(
+ idpsasUserNotes: json["idpsas_user_notes"],
+ questionId: json["question_id"],
+ userId: json["user_id"],
+ quizId: json["quiz_id"],
+ notes: json["notes"],
+ noteMeta: json["note_meta"],
+ );
+
+ Map toJson() => {
+ "idpsas_user_notes": idpsasUserNotes,
+ "question_id": questionId,
+ "user_id": userId,
+ "quiz_id": quizId,
+ "notes": notes,
+ "note_meta": noteMeta,
+ };
+}
diff --git a/lib/models/PerformanceModels/get_performance_stats_model.dart b/lib/models/PerformanceModels/get_performance_stats_model.dart
new file mode 100644
index 0000000..059b0f0
--- /dev/null
+++ b/lib/models/PerformanceModels/get_performance_stats_model.dart
@@ -0,0 +1,113 @@
+// To parse this JSON data, do
+//
+// final getPerformanceStatsModel = getPerformanceStatsModelFromJson(jsonString);
+
+import 'dart:convert';
+
+GetPerformanceStatsModel getPerformanceStatsModelFromJson(String str) => GetPerformanceStatsModel.fromJson(json.decode(str));
+
+String getPerformanceStatsModelToJson(GetPerformanceStatsModel data) => json.encode(data.toJson());
+
+class GetPerformanceStatsModel {
+ GetPerformanceStatsModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory GetPerformanceStatsModel.fromJson(Map json) => GetPerformanceStatsModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.bestSubject,
+ required this.worstSubject,
+ required this.omittedSubject,
+ required this.totalQuizzes,
+ required this.completedQuizzes,
+ required this.suspendedQuizzes,
+ required this.subjects,
+ required this.systems,
+ required this.topics,
+ });
+
+ bool status;
+ String bestSubject;
+ String worstSubject;
+ String omittedSubject;
+ int totalQuizzes;
+ int completedQuizzes;
+ int suspendedQuizzes;
+ List subjects;
+ List systems;
+ List topics;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ bestSubject: json["bestSubject"],
+ worstSubject: json["worstSubject"],
+ omittedSubject: json["omittedSubject"],
+ totalQuizzes: json["totalQuizzes"],
+ completedQuizzes: json["completedQuizzes"],
+ suspendedQuizzes: json["suspendedQuizzes"],
+ subjects: List.from(json["subjects"].map((x) => Subject.fromJson(x))),
+ systems: List.from(json["systems"].map((x) => Subject.fromJson(x))),
+ topics: List.from(json["topics"].map((x) => Subject.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "bestSubject": bestSubject,
+ "worstSubject": worstSubject,
+ "omittedSubject": omittedSubject,
+ "totalQuizzes": totalQuizzes,
+ "completedQuizzes": completedQuizzes,
+ "suspendedQuizzes": suspendedQuizzes,
+ "subjects": List.from(subjects.map((x) => x.toJson())),
+ "systems": List.from(systems.map((x) => x.toJson())),
+ "topics": List.from(topics.map((x) => x.toJson())),
+ };
+}
+
+class Subject {
+ Subject({
+ required this.srNo,
+ required this.category,
+ required this.totalQuestions,
+ required this.correctQuestions,
+ required this.incorrectQuestions,
+ required this.omittedQuestions,
+ });
+
+ int srNo;
+ dynamic category;
+ int totalQuestions;
+ int correctQuestions;
+ int incorrectQuestions;
+ int omittedQuestions;
+
+ factory Subject.fromJson(Map json) => Subject(
+ srNo: json["SrNo"],
+ category: json["Category"] == null ? null : json["Category"],
+ totalQuestions: json["TotalQuestions"],
+ correctQuestions: json["CorrectQuestions"],
+ incorrectQuestions: json["IncorrectQuestions"],
+ omittedQuestions: json["OmittedQuestions"],
+ );
+
+ Map toJson() => {
+ "SrNo": srNo,
+ "Category": category == null ? null : category,
+ "TotalQuestions": totalQuestions,
+ "CorrectQuestions": correctQuestions,
+ "IncorrectQuestions": incorrectQuestions,
+ "OmittedQuestions": omittedQuestions,
+ };
+}
diff --git a/lib/models/resultDetails/result_details_model.dart b/lib/models/resultDetails/result_details_model.dart
new file mode 100644
index 0000000..d3b8d72
--- /dev/null
+++ b/lib/models/resultDetails/result_details_model.dart
@@ -0,0 +1,113 @@
+// To parse this JSON data, do
+//
+// final resultDetailsModel = resultDetailsModelFromJson(jsonString);
+
+import 'dart:convert';
+
+ResultDetailsModel resultDetailsModelFromJson(String str) => ResultDetailsModel.fromJson(json.decode(str));
+
+String resultDetailsModelToJson(ResultDetailsModel data) => json.encode(data.toJson());
+
+class ResultDetailsModel {
+ ResultDetailsModel({
+ required this.data,
+ });
+
+ Data data;
+
+ factory ResultDetailsModel.fromJson(Map json) => ResultDetailsModel(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.quizId,
+ required this.score,
+ required this.timeTaken,
+ required this.totalQuestions,
+ required this.answeredQuestions,
+ required this.totalCorrect,
+ required this.totalIncorrect,
+ required this.totalOmitted,
+ required this.quizResults,
+ });
+
+ String status;
+ int quizId;
+ int score;
+ String timeTaken;
+ int totalQuestions;
+ int answeredQuestions;
+ int totalCorrect;
+ int totalIncorrect;
+ int totalOmitted;
+ List quizResults;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ quizId: json["quizId"],
+ score: json["score"],
+ timeTaken: json["timeTaken"],
+ totalQuestions: json["totalQuestions"],
+ answeredQuestions: json["answeredQuestions"],
+ totalCorrect: json["totalCorrect"],
+ totalIncorrect: json["totalIncorrect"],
+ totalOmitted: json["totalOmitted"],
+ quizResults: List.from(json["quizResults"].map((x) => QuizResult.fromJson(x))),
+ );
+
+ Map toJson() => {
+ "status": status,
+ "quizId": quizId,
+ "score": score,
+ "timeTaken": timeTaken,
+ "totalQuestions": totalQuestions,
+ "answeredQuestions": answeredQuestions,
+ "totalCorrect": totalCorrect,
+ "totalIncorrect": totalIncorrect,
+ "totalOmitted": totalOmitted,
+ "quizResults": List.from(quizResults.map((x) => x.toJson())),
+ };
+}
+
+class QuizResult {
+ QuizResult({
+ required this.questionId,
+ required this.subject,
+ required this.system,
+ required this.topic,
+ required this.status,
+ required this.averageCorrectToOthers,
+ });
+
+ int questionId;
+ String subject;
+ String system;
+ dynamic topic;
+ int status;
+ int averageCorrectToOthers;
+
+ factory QuizResult.fromJson(Map json) => QuizResult(
+ questionId: json["QuestionID"],
+ subject: json["Subject"],
+ system: json["System"],
+ topic: json["Topic"],
+ status: json["Status"],
+ averageCorrectToOthers: json["AverageCorrectToOthers"],
+ );
+
+ Map toJson() => {
+ "QuestionID": questionId,
+ "Subject": subject,
+ "System": system,
+ "Topic": topic,
+ "Status": status,
+ "AverageCorrectToOthers": averageCorrectToOthers,
+ };
+}
diff --git a/lib/models/user_model_successful_login.dart b/lib/models/user_model_successful_login.dart
new file mode 100644
index 0000000..f179778
--- /dev/null
+++ b/lib/models/user_model_successful_login.dart
@@ -0,0 +1,57 @@
+// To parse this JSON data, do
+//
+// final userModelSuccessfulLogin = userModelSuccessfulLoginFromJson(jsonString);
+
+import 'dart:convert';
+
+UserModelSuccessfulLogin userModelSuccessfulLoginFromJson(String str) => UserModelSuccessfulLogin.fromJson(json.decode(str));
+
+String userModelSuccessfulLoginToJson(UserModelSuccessfulLogin data) => json.encode(data.toJson());
+
+class UserModelSuccessfulLogin {
+ UserModelSuccessfulLogin({
+ required this.data,
+ });
+
+ Data data;
+
+ factory UserModelSuccessfulLogin.fromJson(Map json) => UserModelSuccessfulLogin(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.id,
+ required this.username,
+ required this.ifAdmin,
+ required this.token,
+ });
+
+ bool status;
+ int id;
+ String username;
+ bool ifAdmin;
+ String token;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ id: json["ID"],
+ username: json["username"],
+ ifAdmin: json["ifAdmin"],
+ token: json["token"],
+ );
+
+ Map toJson() => {
+ "status": status,
+ "ID": id,
+ "username": username,
+ "ifAdmin": ifAdmin,
+ "token": token,
+ };
+}
diff --git a/lib/models/user_model_unsuccessful_login.dart b/lib/models/user_model_unsuccessful_login.dart
new file mode 100644
index 0000000..6eb9603
--- /dev/null
+++ b/lib/models/user_model_unsuccessful_login.dart
@@ -0,0 +1,45 @@
+// To parse this JSON data, do
+//
+// final userModelUnsuccessfulLogin = userModelUnsuccessfulLoginFromJson(jsonString);
+
+import 'dart:convert';
+
+UserModelUnsuccessfulLogin userModelUnsuccessfulLoginFromJson(String str) => UserModelUnsuccessfulLogin.fromJson(json.decode(str));
+
+String userModelUnsuccessfulLoginToJson(UserModelUnsuccessfulLogin data) => json.encode(data.toJson());
+
+class UserModelUnsuccessfulLogin {
+ UserModelUnsuccessfulLogin({
+ required this.data,
+ });
+
+ Data data;
+
+ factory UserModelUnsuccessfulLogin.fromJson(Map json) => UserModelUnsuccessfulLogin(
+ data: Data.fromJson(json["data"]),
+ );
+
+ Map toJson() => {
+ "data": data.toJson(),
+ };
+}
+
+class Data {
+ Data({
+ required this.status,
+ required this.message,
+ });
+
+ bool status;
+ String message;
+
+ factory Data.fromJson(Map json) => Data(
+ status: json["status"],
+ message: json["message"],
+ );
+
+ Map toJson() => {
+ "status": status,
+ "message": message,
+ };
+}
diff --git a/lib/screens/Authentication/login.dart b/lib/screens/Authentication/login.dart
new file mode 100644
index 0000000..6b394b7
--- /dev/null
+++ b/lib/screens/Authentication/login.dart
@@ -0,0 +1,597 @@
+import 'dart:convert';
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/flutter_svg.dart';
+import 'package:http/http.dart' as http;
+import 'package:path_provider/path_provider.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:testify/auth_storage.dart';
+import 'package:testify/models/user_model_successful_login.dart';
+import 'package:testify/models/user_model_unsuccessful_login.dart';
+import 'package:testify/screens/home.dart';
+
+class Login extends StatefulWidget {
+ const Login({Key? key, required this.fromWhere}) : super(key: key);
+
+ final String fromWhere;
+ @override
+ State createState() => _LoginState();
+}
+
+class _LoginState extends State {
+ //Data Fields:
+ final _formKey = GlobalKey();
+ String _email = "";
+ String _password = "";
+ bool _isChecked = false;
+ //To start animation
+ bool _loaded = false;
+ final _duration = const Duration(milliseconds: 450);
+ var _dataPreviouslyStored = false;
+ late UserModelSuccessfulLogin _successfulUser;
+ late UserModelUnsuccessfulLogin _unsuccessfulUser;
+ // var _successfulUser;
+ // var _unsuccessfulUser;
+ var _invalidUsername = false;
+ var _invalidPassword = false;
+ bool _isLoggingIn = false; // To start and finish CircularProgress Indicator
+
+ //The data gets stored to local storage. Continue from there.
+ AuthStorage storage = AuthStorage();
+
+ //Controllers
+ final _emailController = TextEditingController();
+ final _passwordController = TextEditingController();
+
+ @override
+ void initState() {
+ super.initState();
+ //To delete the auth file when the user logs out.
+ if(widget.fromWhere == "Home") {
+ storage.deleteFile();
+ setState(() {
+ _email = "";
+ _password = "";
+ _isChecked = false;
+ _dataPreviouslyStored = false;
+ _emailController.text = "";
+ _passwordController.text = "";
+ });
+ }
+ else {
+ storage.readAuth().then((value) {
+ if(value.isNotEmpty) {
+ var temp = value.split(" ");
+ setState(() {
+ _email = temp[0];
+ _password = temp[1];
+ _dataPreviouslyStored = true;
+ _emailController.text = temp[0];
+ _passwordController.text = temp[1];
+ });
+
+ }
+ else {
+
+ }
+ });
+ }
+
+ Future.delayed(const Duration(microseconds: 0), () {
+ setState(() {
+ _loaded = true;
+ });
+ });
+ }
+
+ //https://demo.pookidevs.com/auth/login
+ Future getUserData(BuildContext context, String email, String password) async {
+ setState(() {
+ _isLoggingIn = true;
+ });
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ const String apiUrl = "https://demo.pookidevs.com/auth/login";
+ http.post(Uri.parse(apiUrl), headers: {
+ 'Content-type': 'application/json; charset=UTF-8',
+ }, body: json.encode(
+ {
+ "user":
+ {
+ "user_email": email,
+ "user_pass": password
+ }
+ })
+ ).then((response) {
+ // print(json.decode(response.body).toString());
+ if(response.statusCode == 200) {
+ setState(() {
+ _isLoggingIn = false;
+ });
+ //The entered credentials are correct.
+ if(json.decode(response.body).toString().substring(0,20) == "{data: {status: true") {
+ final responseString = (response.body);
+ var loginData = userModelSuccessfulLoginFromJson(responseString);
+ final UserModelSuccessfulLogin successfulUser = loginData;
+ setState(() {
+ _successfulUser = successfulUser;
+ _isLoggingIn = false;
+ });
+ //Saves Token to use later.
+ prefs.setString('token', _successfulUser.data.token);
+ prefs.setInt("userId", _successfulUser.data.id);
+ _navigateAndDisplaySelection(context);
+ }
+ //Credentials are incorrect
+ else if(json.decode(response.body).toString().substring(0,21) == "{data: {status: false") {
+ final responseString = (response.body);
+ var loginData = userModelUnsuccessfulLoginFromJson(responseString);
+ final UserModelUnsuccessfulLogin unsuccessfulUser = loginData;
+ setState(() {
+ _unsuccessfulUser = unsuccessfulUser;
+ _isLoggingIn = false;
+ });
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text(_unsuccessfulUser.data.message)));
+ // _navigateAndDisplaySelection(context);
+ var splitMessage = (_unsuccessfulUser.data.message).split(" ");
+ if(splitMessage.length == 4) {
+ setState(() {
+ _invalidPassword = true;
+ _invalidUsername = true;
+ });
+ }
+ else if(splitMessage.length == 2) {
+ setState(() {
+ _invalidUsername = false;
+ _invalidPassword = true;
+ });
+ }
+ }
+ } else {
+ setState(() {
+ _isLoggingIn = false;
+ });
+ }
+ }).catchError((error){
+ setState(() {
+ _isLoggingIn = false;
+ });
+ var errorSplit = error.toString().split(":");
+ if(errorSplit[0].toLowerCase() == "socketexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("No Internet Connection")));
+ }
+ // else if(errorSplit[0].toLowerCase() == "httpexception") {
+ // ScaffoldMessenger.of(context)
+ // ..removeCurrentSnackBar()
+ // ..showSnackBar(SnackBar(content: Text("Couldn't find the said thing.")));
+ // }
+ else if(errorSplit[0].toLowerCase() == "formatexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Bad Response Format")));
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text(error.toString())));
+ }
+ });
+
+ }
+
+ //After form validation navigation to next screen.
+ void _navigateAndDisplaySelection(BuildContext context) async {
+ if(_successfulUser.data.status == true) {
+ if(_isChecked == true) {
+ storage.writeAuth(_email, _password);
+ Navigator.pushNamed(context, '/home');
+ }
+ else {
+ storage.writeAuth(_email, _password);
+ storage.deleteFile();
+ Navigator.pushNamed(context, '/home');
+ }
+ }
+ }
+
+ @override
+ void dispose() {
+ _emailController.dispose();
+ _passwordController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ var height=MediaQuery.of(context).size.height/926;
+ var width=MediaQuery.of(context).size.width/428;
+ return WillPopScope(
+ onWillPop: () async {
+ // ScaffoldMessenger.of(context)
+ // ..removeCurrentSnackBar()
+ // ..showSnackBar(SnackBar(content: Text("")));
+ return false;
+ },
+ child: GestureDetector(
+ onTap: () {
+ FocusScopeNode currentFocus = FocusScope.of(context);
+ if (!currentFocus.hasPrimaryFocus) {
+ currentFocus.unfocus();
+ }
+ },
+ child: Scaffold(
+ backgroundColor: Color(0xff3F2668),//Color copied from xD=#3F2668
+ body: SingleChildScrollView(
+ child: Container(
+ height: (MediaQuery.of(context).size.height),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ AnimatedCrossFade(
+ crossFadeState: _loaded ? CrossFadeState.showFirst : CrossFadeState.showSecond,
+ duration: _duration,
+ firstChild: Container(
+ height: (MediaQuery.of(context).size.height) *0.3,
+ color: Colors.transparent,
+ child: Align(
+ alignment: Alignment.topLeft,
+ child: Image(
+ image: AssetImage("assets/Images/login_topLeftBubble_1.png"),
+ ),
+ ),
+ ),
+ secondChild: Container(
+ height: (MediaQuery.of(context).size.height) *0.3,
+ color: Colors.transparent,
+ child: Text(""),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *0.02159,),
+ AnimatedCrossFade(
+ crossFadeState: _loaded ? CrossFadeState.showFirst : CrossFadeState.showSecond,
+ duration: _duration,
+ secondChild: Text(""),
+ firstChild: Container(
+ child: Form(
+ key: _formKey,
+ child: Stack(
+ alignment: Alignment.bottomCenter,
+ children: [
+ Column(//Add extra space at the end of the container(the one that has TextFormField) so that the login button can be aligned.
+ children: [
+ Container(//For Borders of lighter area //Main Container to add Welcome, TextFormFields and Login.
+ //tbd: Get the color right!
+ margin: EdgeInsets.only(top: 0, bottom: 0, left: (MediaQuery.of(context).size.width) *(31/428), right: (MediaQuery.of(context).size.width) *(31/428),),
+ padding: EdgeInsets.only(top: 0, bottom: (MediaQuery.of(context).size.height) *0.0179, left: 0, right: 0,),
+ decoration: BoxDecoration(
+ color: Color.fromRGBO(176, 166, 194, 210),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(10)),
+ border: Border.all(
+ color: Color(0xff757575),
+ width: 0,
+ ),
+ boxShadow: [
+ BoxShadow(
+ color: Color(0xff0000004D),
+ ),
+ ],
+ ),
+ child: Column(
+ children: [
+ Container(
+ padding: EdgeInsets.only(top: (MediaQuery.of(context).size.height) *0.020518, bottom: 0, left: 0, right: 0,),
+ child: Text("Welcome!",
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *0.0410,//38,
+ ),),
+ ),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Container(
+ padding: EdgeInsets.only(top: 0, bottom: 0, left: 0, right: 0,),
+ child: Text("Don't have an account?",
+ style: TextStyle(
+ color: Color.fromRGBO(255, 255, 255, 100),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height)*0.0194,
+ ),),
+ ),
+ Container(
+ padding: EdgeInsets.only(top: 0, bottom: 0, left: 0, right: 0,),
+ child: Text(" Sign Up",
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height)*0.0194,
+ ),),
+ ),
+ ],
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height)*0.04535,),
+ Container(
+ //color: Colors.white,
+ height: (MediaQuery.of(context).size.height)*0.055,
+ //padding: EdgeInsets.fromLTRB(20.0, (MediaQuery.of(context).size.height - MediaQuery.of(context).padding.top)*0.0037797, 20.0, (MediaQuery.of(context).size.height - MediaQuery.of(context).padding.top)*0.0037797),
+ margin: EdgeInsets.only(top: 0, bottom: 0, left: (MediaQuery.of(context).size.width) *(45/428), right: (MediaQuery.of(context).size.width) *(45/428),),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.all(Radius.circular(10)),
+ border: Border.all(
+ color: _invalidUsername == true ? Colors.red : Color(0xff757575),
+ width: _invalidUsername == true ? 3 : 1,
+ ),
+ boxShadow: [
+ BoxShadow(
+ color: Color(0xff0000004D),
+ ),
+ ],
+ ),
+ child: TextFormField(
+ controller: _emailController,
+ keyboardType: TextInputType.emailAddress,
+ decoration: InputDecoration(
+ suffixIcon: _invalidUsername == true ? Text("! ",
+ style: TextStyle(
+ color: Colors.red,
+ fontSize: (MediaQuery.of(context).size.height)*(20/926),
+ fontFamily: 'Brandon-med',
+ ),) : Text(""),
+ suffixIconConstraints: BoxConstraints(minWidth: 0, minHeight: 0),
+ hintText: "Username",
+ hintStyle: TextStyle(color: _dataPreviouslyStored ? Color(0xff171616) : Color(0xffAEAEAE),
+ fontSize: (MediaQuery.of(context).size.height)*(20/926),
+ fontFamily: 'Brandon-med',),
+ contentPadding: EdgeInsets.fromLTRB(20.0, (MediaQuery.of(context).size.height)*0.0037797, 20.0, (MediaQuery.of(context).size.height)*0.0037797),
+ enabledBorder: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.transparent,
+ width: 0.0,
+ ),
+ borderRadius: BorderRadius.circular(10.0),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.transparent,
+ width: 0.0,
+ ),
+ ),
+ ),
+ //validator: (val) => val!.isEmpty ? "Please enter a Username." : null,
+ onChanged: (val) {
+ setState(() {
+ _dataPreviouslyStored == null ? val = "" :
+ (_dataPreviouslyStored ? val = _email : _email = val);
+ _email = val;
+ });
+ //_email = val;
+ },
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: (MediaQuery.of(context).size.height)*(20/926),
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height)*0.0226781,),
+ Container(
+ //color: Colors.white,
+ height: (MediaQuery.of(context).size.height)*0.055,
+ margin: EdgeInsets.only(top: 0, bottom: 0, left: (MediaQuery.of(context).size.width) *(45/428), right: (MediaQuery.of(context).size.width) *(45/428),),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.all(Radius.circular(10)),
+ border: Border.all(
+ color: _invalidPassword == true ? Colors.red : Color(0xff757575),
+ width: _invalidPassword == true ? 3 : 1,
+ ),
+ boxShadow: [
+ BoxShadow(
+ color: Color(0xff0000004D),
+ ),
+ ],
+ ),
+ child: TextFormField(
+ controller: _passwordController,
+ obscureText: true,
+ decoration: InputDecoration(
+ suffixIcon: _invalidPassword == true ? Text("! ",
+ style: TextStyle(
+ color: Colors.red,
+ fontSize: (MediaQuery.of(context).size.height)*(20/926),
+ fontFamily: 'Brandon-med',
+ ),) : Text(""),
+ suffixIconConstraints: BoxConstraints(minWidth: 0, minHeight: 0),
+ hintText: "Password",
+ hintStyle: TextStyle(color: _dataPreviouslyStored ? Colors.black : Color(0xffAEAEAE),
+ fontSize: (MediaQuery.of(context).size.height)*(20/926),
+ fontFamily: 'Brandon-med',),
+ contentPadding: EdgeInsets.fromLTRB(20.0, (MediaQuery.of(context).size.height)*0.0037797, 20.0, (MediaQuery.of(context).size.height)*0.0037797),
+ enabledBorder: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.transparent,
+ width: 0.0,
+ ),
+ borderRadius: BorderRadius.circular(10.0),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.transparent,
+ width: 0.0,
+ ),
+ ),
+ ),
+ //validator: (val) => val!.isEmpty ? "Please enter a Password." : null,
+ onChanged: (val) {
+ setState(() {
+ // ignore: unnecessary_null_comparison
+ setState(() {
+ _dataPreviouslyStored == null ? val = "" :
+ (_dataPreviouslyStored ? val = _password : _password = val);
+ _password = val;
+ });
+ });
+ },
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: (MediaQuery.of(context).size.height)*(20/926),
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height)*0.024838,),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ GestureDetector(
+ onTap: () {
+ if(_isChecked == false) {
+ setState(() {
+ _isChecked = true;
+ });
+ } else if(_isChecked == true) {
+ setState(() {
+ _isChecked = false;
+ });
+ }
+ },
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.start,
+ children: [
+ Container(
+ margin: EdgeInsets.only(top: 0, bottom: 0, left: (MediaQuery.of(context).size.width) *(45/428), right: 0,),
+ height: (MediaQuery.of(context).size.height)*0.0167,
+ width: (MediaQuery.of(context).size.height)*0.0167,
+ color: Colors.white,
+ child: Transform.scale(
+ scale: (MediaQuery.of(context).size.height)*0.001,
+ child: Checkbox(
+ side: BorderSide(
+ color: Color(0xffB0A6C2),
+ width: 0,
+ ),
+ checkColor: Color(0xff3F2668),
+ activeColor: Colors.white,
+ value: _isChecked,
+ onChanged: (bool? value) {
+ setState(() {
+ _isChecked = value!;
+ });
+ },
+ ),
+ ),
+ ),
+ Container(
+ padding: EdgeInsets.only(top: 0, bottom: 0, left: (MediaQuery.of(context).size.width) *(5/428), right: 0,),
+ child: Text("Remember me!",
+ style: TextStyle(
+ color: Color.fromRGBO(255, 255, 255, 100),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height)*0.0161987,
+ ),),
+ ),
+ ],
+ ),
+ ),
+ Container(
+ padding: EdgeInsets.only(top: 0, bottom: 0, left: 0, right: (MediaQuery.of(context).size.width) *(45/428),),
+ child: Text("Forgot Password?",
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height)*0.0161987,
+ ),),
+ ),
+ ],
+ ),
+ _isLoggingIn ? Container() : SizedBox(height: height*80),
+ _isLoggingIn ? SizedBox(
+ height: height*80,
+ child: Container(
+ alignment: Alignment.center,
+ height: height*5,
+ child: SizedBox(height: height*25,width:height*25,child: const CircularProgressIndicator(color: Colors.white,strokeWidth: 1,))),
+ ) : Container(),
+ ],
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(25/926),),
+ ],
+ ),
+ GestureDetector(
+ child: Container(//Login button
+ child: Align(
+ alignment: Alignment.center,
+ child: SvgPicture.asset(
+ "assets/Images/login.svg",
+ height: (MediaQuery.of(context).size.height) *0.0486,
+ ),
+ ),
+ ),
+ onTap: () {
+ if(_formKey.currentState!.validate()) {
+ getUserData(context, _emailController.text, _passwordController.text);
+ }
+ },
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ AnimatedCrossFade(
+ crossFadeState: _loaded ? CrossFadeState.showFirst : CrossFadeState.showSecond,
+ duration: _duration,
+ secondChild: Container(
+ height: (MediaQuery.of(context).size.height) *0.183,
+ child: Text("")),
+ firstChild: Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ //crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Stack(
+ //alignment: Alignment.centerRight,
+ children: [
+ Positioned(
+ left: (MediaQuery.of(context).size.height) *(80/926),
+ top: (MediaQuery.of(context).size.height) *(50/926),
+ child: Align(
+ alignment: Alignment.bottomRight,
+ child: SvgPicture.asset(
+ "assets/Images/login_bottomRight.svg",
+ height: (MediaQuery.of(context).size.height) *0.183,
+ width: (MediaQuery.of(context).size.height) *0.183,
+ ),
+ ),
+ ),
+ Positioned(//Remove and add again
+ child: Align(
+ alignment: Alignment.bottomRight,
+ child: SvgPicture.asset(
+ "assets/Images/login_bottomRight.svg",
+ height: (MediaQuery.of(context).size.height) *0.183,
+ width: (MediaQuery.of(context).size.height) *0.183,
+ color: Colors.transparent,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/screens/Components/styles.dart b/lib/screens/Components/styles.dart
new file mode 100644
index 0000000..a25f7a5
--- /dev/null
+++ b/lib/screens/Components/styles.dart
@@ -0,0 +1,23 @@
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+
+class Styles{
+static Color appBg=Color(0XFFF8F9FB);
+static Color darkPurple=Color(0xFF3F2668);
+static Color lightPurple=Color(0xFF6D5A8D);
+static Color darkGrey=Color(0xFF3F3F3F);
+static Gradient purpleGradient=LinearGradient(
+ begin: Alignment.topLeft,
+ end: Alignment.bottomRight,
+ colors: [
+ lightPurple,
+ darkPurple
+ ]);
+static BoxShadow boxShad= BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 4,
+ offset: Offset(0, 0),
+ );
+
+}
\ No newline at end of file
diff --git a/lib/screens/Welcome/GenerateQuiz/generate_quiz.dart b/lib/screens/Welcome/GenerateQuiz/generate_quiz.dart
new file mode 100644
index 0000000..9ead0ea
--- /dev/null
+++ b/lib/screens/Welcome/GenerateQuiz/generate_quiz.dart
@@ -0,0 +1,1730 @@
+import 'dart:convert';
+import 'package:flutter/services.dart';
+
+import 'package:flutter/cupertino.dart';
+import 'package:http/http.dart' as http;
+
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/flutter_svg.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:testify/models/GenerateQuizModels/get_system_categories_successful.dart';
+import 'package:testify/models/GenerateQuizModels/get_system_categories_unsuccessful.dart';
+import 'package:testify/screens/Authentication/login.dart';
+import 'package:testify/screens/Welcome/QuizModule/quiz_module.dart';
+import 'package:testify/screens/Welcome/side_menu_bar.dart';
+import 'dart:math' as math;
+
+class GenerateQuiz extends StatefulWidget {
+ @override
+ State createState() => _GenerateQuizState();
+}
+
+class _GenerateQuizState extends State with SingleTickerProviderStateMixin {
+ late TabController _tabController;
+ late TextEditingController _textCountController;
+
+ // Once the data is loaded only then it shows the containers.
+ bool _hasDataLoaded = false;
+
+ //Total Questions returned by the API.
+ // First gets its value when getUserData is run and then gets updated as getQuestionCounts is run.
+ int _totalQuestions = 0;
+ List _questions = [];
+ bool _gettingQuestionsCount = false;
+
+ //Tab 1 Data:
+ //Not allowing Subjects or topics to be selected if Systems is empty
+ bool _systemsDisabled = true;
+ bool _topicsDisabled = true;
+ //Title, ID, questions(total questions available), isSelected(which checkbox is clicked), finalTitles(titles that work on getQuestionsCount).
+ var systemsEverything = {
+ "title": [], // Saves titles
+ "finalTitles": [], // Save the final titles that are to be sent to getQuestionsCount
+ "ID": [], // Saves IDs
+ "questions": [], // Saves questions
+ "isSelected": [] // Whichever checkbox is true that bool turns true.
+ };
+
+ // Tab 2 Data:
+ var subjectsEverything = {
+ "title": [],
+ "finalTitles": [], // Save the final titles that are to be sent to getQuestionsCount
+ "ID": [],
+ "questions": [],
+ "isSelected": []
+ };
+
+ // Tab 3 Data:
+ var topicsEverything = {
+ "title": [],
+ "finalTitles": [], // Save the final titles that are to be sent to getQuestionsCount
+ "ID": [],
+ "questions": [],
+ "isSelected": []
+ };
+
+ //Tab 4 Data:
+ //If no option is selected everything stays false and zero is sent.
+ /*None is not populated*/
+ List _questionTypesTitle = ["None", "Unused Questions", "Incorrect Questions", "Correct Questions", "Omitted Questions", "Marked Questions", "All"];
+ List _questionTypeSelectedBool = [true, false, false, false, false, false, false];
+ int _questionTypeInt = 0;
+
+ //Tab 5 Data:
+ List _difficultyLevelTitle = ["Very Easy", "Easy", "Medium", "Hard", "Very Hard"];
+ List _difficultyLevelBool = [false, false, false, false, false];
+ List _difficultyLevel = [];
+ //Generate Quiz
+ bool _tutorMode = true;
+ bool _timedMode = false;
+ // Just a form key for the questionCount
+ final _numberOfQuestionsKey = GlobalKey();
+ var _questionsCount;
+
+ //Shared Pref
+ var _token;
+ var _userId;
+
+ // Token Valid
+ var _getSystemCategoriesSuccessful;
+ // Token Incorrect
+ var _getSystemCategoriesUnsuccessful;
+
+ //When getQuestionCount is run(Just used to get the totalQuestions
+ var _getQuestionsCountCategoriesSuccessful;
+ var _getQuestionsCountCategoriesUnsuccessful;
+
+ @override
+ void initState() {
+ super.initState();
+ _textCountController = TextEditingController();
+ _tabController = TabController(vsync: this, length: 5);
+ getUserDataSST();
+ }
+
+ //This is run only once.
+ Future getUserDataSST() async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ final String apiUrlSystemCategories = "https://demo.pookidevs.com/quiz/generator/getAllCategories";
+ _token = prefs.getString('token')!;
+ _userId = prefs.getInt("userId")!;
+ http.get(Uri.parse(apiUrlSystemCategories), headers: {
+ 'Content-type': 'application/json; charset=UTF-8', 'Authorization' : _token.toString(),
+ },).then((response) {
+ // print(jsonDecode(response.body).toString());
+ if(response.statusCode == 200) {
+ if(json.decode(response.body).toString().substring(0,20) == "{data: {status: true") {
+ final responseString = (response.body);
+ var systemCategoriesDataSuccessful = getSystemCategoriesSuccessfulModelFromJson(responseString);
+ final GetSystemCategoriesSuccessfulModel getSystemCategoriesSuccessful = systemCategoriesDataSuccessful;
+ setState(() {
+ _getSystemCategoriesSuccessful = getSystemCategoriesSuccessful;
+ _hasDataLoaded = true;
+ _totalQuestions = _getSystemCategoriesSuccessful.data.totalQuestions;
+ _questions = _getSystemCategoriesSuccessful.data.questions;
+ });
+ // print(_questions);
+ } else {
+
+ }
+ //Adds data to lists
+ categorizeUserData();
+ }
+ else { // Status Code is 401 here that is why if written in the above if statement it would not work.
+ //Token is Invalid
+ if(json.decode(response.body).toString().substring(0,14) == "{status: false") {
+ final responseString = (response.body);
+ var systemCategoriesDataUnsuccessful = getSystemCategoriesUnsuccessfulModelFromJson(responseString);
+ final GetSystemCategoriesUnsuccessfulModel getSystemCategoriesUnsuccessful = systemCategoriesDataUnsuccessful;
+ setState(() {
+ _getSystemCategoriesUnsuccessful = getSystemCategoriesUnsuccessful;
+ });
+ print(_getSystemCategoriesUnsuccessful.msg);
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Token Expired!")));
+ final result = Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const Login(fromWhere:"Home")),
+ );
+ }
+ else {
+
+ }
+ }
+ }
+ ).catchError((error){
+ setState(() {
+ _hasDataLoaded = true;
+ });
+ var errorSplit = error.toString().split(":");
+ if(errorSplit[0].toLowerCase() == "socketexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("No Internet Connection")));
+ }
+ // else if(errorSplit[0].toLowerCase() == "httpexception") {
+ // ScaffoldMessenger.of(context)
+ // ..removeCurrentSnackBar()
+ // ..showSnackBar(SnackBar(content: Text("Couldn't find the said thing.")));
+ // }
+ else if(errorSplit[0].toLowerCase() == "formatexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Bad Response Format")));
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text(error.toString())));
+ }
+ });
+ }
+
+ Future getQuestionsCount() async {
+ // print(subjectsEverything["finalTitles"]);
+ // print(systemsEverything["finalTitles"]);
+ // print(topicsEverything["finalTitles"]);
+ // print(_userId);
+ // print(_questionTypeInt);
+ // print(_difficultyLevel);
+ setState(() {
+ _gettingQuestionsCount = true;
+ });
+
+ final String apiUrl = "https://demo.pookidevs.com/quiz/generator/getQuestionCounts";
+ http.post(Uri.parse(apiUrl), headers: {
+ 'Content-type': 'application/json; charset=UTF-8', 'Authorization' : _token.toString(),
+ }, body: json.encode(
+ {
+ "data":
+ {
+ "subjects": subjectsEverything["finalTitles"],
+ "systems": systemsEverything["finalTitles"],
+ "topics": topicsEverything["finalTitles"],
+ "userId": _userId, // Add _userId here.
+ "statusLevels": _questionTypeInt, // Add _questionType here
+ "difficultyLevels": _difficultyLevel, // Add _difficultyLevels here
+ }
+ })
+ ).then((response) {
+ setState(() {
+ _gettingQuestionsCount = false;
+ });
+ if(response.statusCode == 200) {
+ // print("getQuestionsCount() : " + response.body.toString());
+ if(json.decode(response.body).toString().substring(0,20) == "{data: {status: true") {
+ final responseString = (response.body);
+ var QuestionsCountCategoriesSuccessful = getSystemCategoriesSuccessfulModelFromJson(responseString);
+ final GetSystemCategoriesSuccessfulModel getQuestionsCountCategoriesSuccessful = QuestionsCountCategoriesSuccessful;
+ setState(() {
+ _getQuestionsCountCategoriesSuccessful = getQuestionsCountCategoriesSuccessful;
+ _totalQuestions = _getQuestionsCountCategoriesSuccessful.data.totalQuestions;
+ _questions = _getQuestionsCountCategoriesSuccessful.data.questions;
+ });
+ // print(_getSystemCategoriesSuccessful);
+ print(_totalQuestions);
+ print(_questions);
+ } else {
+
+ }
+ } else {
+ //Token is Invalid
+ if(json.decode(response.body).toString().substring(0,14) == "{status: false") {
+ final responseString = (response.body);
+ var QuestionsCountCategoriesDataUnsuccessful = getSystemCategoriesUnsuccessfulModelFromJson(responseString);
+ final GetSystemCategoriesUnsuccessfulModel getQuestionsCountCategoriesUnsuccessful = QuestionsCountCategoriesDataUnsuccessful;
+ setState(() {
+ _getQuestionsCountCategoriesUnsuccessful = getQuestionsCountCategoriesUnsuccessful;
+ });
+ print(_getQuestionsCountCategoriesUnsuccessful.msg);
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Token Expired!")));
+ final result = Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const Login(fromWhere:"Home")),
+ );
+ }
+ else {
+
+ }
+ }
+ }).catchError((error){
+ setState(() {
+ _hasDataLoaded = true;
+ });
+ var errorSplit = error.toString().split(":");
+ if(errorSplit[0].toLowerCase() == "socketexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("No Internet Connection")));
+ }
+ // else if(errorSplit[0].toLowerCase() == "httpexception") {
+ // ScaffoldMessenger.of(context)
+ // ..removeCurrentSnackBar()
+ // ..showSnackBar(SnackBar(content: Text("Couldn't find the said thing.")));
+ // }
+ else if(errorSplit[0].toLowerCase() == "formatexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Bad Response Format")));
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text(error.toString())));
+ }
+ });
+
+ }
+
+ //Add data to lists. Only done the first time.
+ categorizeUserData() {
+ //To clear any past data
+ int c = 0;
+ while((c<_getSystemCategoriesSuccessful.data.categories.toList().length) & (_getSystemCategoriesSuccessful.data.categories.toList().length > 0)) {
+ var tempLength = _getSystemCategoriesSuccessful.data.categories.toList().length;
+ if(_getSystemCategoriesSuccessful.data.categories[c].subCategories != null) {
+ if(_getSystemCategoriesSuccessful.data.categories[c].parentCategory.toString() == "systems") {
+ //Gets the length of subjects(Number of Subjects)
+ var lenSystems = _getSystemCategoriesSuccessful.data.categories[c].subCategories.toList().length;
+ int i = 0;
+ setState(() {
+ while((lenSystems>0) & (i0) & (i0) & (i[
+ Color(0xff7F1AF1),
+ Color(0xff482384)
+ ])
+ ),
+ ),
+ title: const Text("Generate Quiz",
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-bld',
+ ),
+ ),
+ actions: [
+ TextButton(
+ onPressed: () async {
+ final result = await Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const Login(fromWhere:"Home")),
+ );
+ },
+ child: SvgPicture.asset(
+ "assets/Images/logout.svg",
+ height: (MediaQuery.of(context).size.height) *(32/926),
+ ),
+ ),
+ ],
+ ),
+ body: SingleChildScrollView(
+ child: Container(
+ padding: EdgeInsets.only(top:(MediaQuery.of(context).size.height) *(15/926),
+ bottom: (MediaQuery.of(context).size.height) *(8/926),
+ left: (MediaQuery.of(context).size.width) *(18/428),
+ right: (MediaQuery.of(context).size.width) *(18/428)),
+ child: Column(
+ children: [
+ Row(
+ children: [
+ Container(
+ width: (MediaQuery.of(context).size.width) *(221/428),
+ //height: (MediaQuery.of(context).size.height) *(91/926),
+ child: Column(
+ children: [
+ Align(
+ alignment: Alignment.topLeft,
+ child: Text("Create Quiz",
+ style: TextStyle(
+ color: Color(0xff232323),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(25/926),//38,
+ ),),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(2/926),),
+ Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras imperdiet finibus elit non luctus. Morbi auctor mattis ante.",
+ style: TextStyle(
+ color: Color(0xFF483A3A),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(13/926),//38,
+ ),),
+ ],
+ ),
+ ),
+ SizedBox(width: (MediaQuery.of(context).size.width) *(39/428),),
+ Container(
+ //color: Colors.transparent,
+ child: SvgPicture.asset(
+ "assets/Images/create_quiz.svg",
+ height: (MediaQuery.of(context).size.height) *(100/926),
+ //width: (MediaQuery.of(context).size.width) *(132/428),
+ ),
+ ),
+ ],
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(25/926),),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(13.28/926),),
+ Container(
+ height: (MediaQuery.of(context).size.height) *(596/926),
+ width: double.infinity,
+ child: TabBarView(
+ // physics: NeverScrollableScrollPhysics(),
+ controller: _tabController,
+ children: [
+ //Tab1: Subjects
+ Column(
+ children: [
+ Container(
+ height: (MediaQuery.of(context).size.height) *(40.32/926),
+ width: (MediaQuery.of(context).size.width) *(386/428),
+ decoration: BoxDecoration(
+ color: Color(0xFF3F2668),
+ borderRadius: BorderRadius.only(bottomLeft: Radius.circular(15.0), topRight: Radius.circular(15.0),),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: Center(
+ child: Text("Select Subjects",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(26.31/926),//38,
+ ),),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(33/926)),
+ Container(
+ padding: EdgeInsets.only(left: (MediaQuery.of(context).size.width) *(10/428), right: (MediaQuery.of(context).size.width) *(10/428)),
+ width: (MediaQuery.of(context).size.width) *(366/428),
+ child: _hasDataLoaded == false ?
+ Container(height: (MediaQuery.of(context).size.height) *(460/926),child: Center(child: CircularProgressIndicator(color: Color(0xFF3F2668),)))
+ :
+ Container(
+ height: (MediaQuery.of(context).size.height) *(460/926),
+ child: subjectsEverything["title"]!.length <= 0 ? Container(
+ child: Align(
+ alignment: Alignment.topCenter,
+ child: Text("No Subjects Available!",
+ style: TextStyle(
+ color: Color(0xffAEAEAE),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926),//38,
+ ),),
+ ),
+ ) :
+ Container(
+ height: (MediaQuery.of(context).size.height) *(460/926),
+ child: GridView(
+ gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
+ crossAxisCount: 2,
+ crossAxisSpacing:
+ w * 30,
+ mainAxisExtent:
+ h * 50,
+ mainAxisSpacing: h*50
+ ),
+ children: [
+ for(int i = 0; i 0) {
+ setState(() {
+ _systemsDisabled = false;
+ });
+ }
+
+ //Unchecking the previously checked boxes.
+ if(subjectsEverything["isSelected"]![i] == false) {
+ if(systemsEverything["isSelected"]!.length > 0) {
+ for(int i = 0; i 0) {
+ for(int i = 0; i[
+ for(int i = 0; i 0) {
+ setState(() {
+ _topicsDisabled = false;
+ });
+ }
+
+ //Unchecking the previously checked boxes.
+ if(systemsEverything["isSelected"]![i] == false) {
+ // topicsEverything
+ if(topicsEverything["isSelected"]!.length > 0) {
+ for(int i = 0; i AlertDialog(
+ content: Text(
+ 'Select Subjects First!',
+ style: TextStyle(
+ color: Color(0xffA1A1A1),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) * (21 / 926),
+ ),
+ ),
+ actions: [
+ Divider(),
+ TextButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ child: Text('Okay',
+ style: TextStyle(
+ color: Color(0xff3F2668),
+ fontFamily: 'Brandon-bld',
+ fontSize:
+ (MediaQuery.of(context).size.height) * (21 / 926),
+ )),
+ ),
+ ],
+ ),
+ );
+ }
+ },
+ ),
+ ),
+ ],
+ )
+ ),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(10.74/926),),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(68/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(3)),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: TextButton(
+ onPressed: () {
+ //Animates to next tab
+ _backTab();
+ },
+ child: Center(
+ child: Text("Back",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(68/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),
+ borderRadius:
+ BorderRadius.circular(h * 7),
+ ),
+ child: TextButton(
+ style: TextButton.styleFrom(
+ padding:
+ EdgeInsets.zero),
+ onPressed: () {
+ //Animates to next tab
+ _nextTab();
+ },
+ child: Center(
+ child: Text(
+ "Next",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ fontSize: h * 20,
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+
+ //Tab3: Topics
+ Column(
+ children: [
+ Container(
+ height: (MediaQuery.of(context).size.height) *(40.32/926),
+ width: (MediaQuery.of(context).size.width) *(366/428),
+ //color: Colors.red,
+ decoration: BoxDecoration(
+ color: Color(0xFF3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.only(bottomLeft: Radius.circular(15.0), topRight: Radius.circular(15.0),),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: Center(
+ child: Text("Select Topics",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(26.31/926),//38,
+ ),),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(33/926)),
+ Container(
+ padding: EdgeInsets.only(left: (MediaQuery.of(context).size.width) *(10/428), right: (MediaQuery.of(context).size.width) *(10/428)),
+ width: (MediaQuery.of(context).size.width) *(366/428),
+ child: _hasDataLoaded == false ?
+ Container(height: (MediaQuery.of(context).size.height) *(460/926),child: Center(child: CircularProgressIndicator(color: Color(0xFF3F2668),)))
+ :
+ Container(
+ height: (MediaQuery.of(context).size.height) *(460/926),
+ child: topicsEverything["title"]!.length <= 0 ? Container(
+ child: Align(
+ alignment: Alignment.topCenter,
+ child: Text("No Topics Available!",
+ style: TextStyle(
+ color: Color(0xffAEAEAE),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926),//38,
+ ),),
+ ),
+ ) :
+ Container(
+ height: (MediaQuery.of(context).size.height) *(120.9/926),
+ child: GridView(
+ gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
+ crossAxisCount: 2,
+ crossAxisSpacing:
+ w * 30,
+ mainAxisExtent:
+ h * 50,
+ mainAxisSpacing: h*50
+ ),
+ children: [
+ for(int i = 0; i AlertDialog(
+ content: Text(
+ 'Select Systems First!',
+ style: TextStyle(
+ color: Color(0xffA1A1A1),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) * (21 / 926),
+ ),
+ ),
+ actions: [
+ Divider(),
+ TextButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ child: Text('Okay',
+ style: TextStyle(
+ color: Color(0xff3F2668),
+ fontFamily: 'Brandon-bld',
+ fontSize:
+ (MediaQuery.of(context).size.height) * (21 / 926),
+ )),
+ ),
+ ],
+ ),
+ );
+ }
+ // print(subjectsEverything["finalTitles"]);
+ // print(systemsEverything["finalTitles"]);
+ // print(topicsEverything["finalTitles"]);
+ getQuestionsCount();
+ },
+ ),
+ ),
+ ],
+ )
+ ),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(10.74/926),),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(68/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(3)),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: TextButton(
+ onPressed: () {
+ //Animates to next tab
+ _backTab();
+ },
+ child: Center(
+ child: Text("Back",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(68/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(3)),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: TextButton(
+ onPressed: () {
+ //Animates to next tab
+ _nextTab();
+ },
+ child: Center(
+ child: Text("Next",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+
+ //Tab4: Question Types
+ Column(
+ children: [
+ Container(
+ height: (MediaQuery.of(context).size.height) *(40.32/926),
+ width: (MediaQuery.of(context).size.width) *(386/428),
+ //color: Colors.red,
+ decoration: BoxDecoration(
+ color: Color(0xFF3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.only(bottomLeft: Radius.circular(15.0), topRight: Radius.circular(15.0),),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: Center(
+ child: Text("Select Question Types",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(26.31/926),//38,
+ ),),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(33/926)),
+ Container(
+ padding: EdgeInsets.only(left: (MediaQuery.of(context).size.width) *(10/428), right: (MediaQuery.of(context).size.width) *(10/428)),
+ width: (MediaQuery.of(context).size.width) *(366/428),
+ height: (MediaQuery.of(context).size.height) *(460/926),
+ child: Column(
+ children: [
+ for(int i = 1; i<7; i++)
+ Column(
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Container(
+ height: (MediaQuery.of(context).size.height) *(40.224/926),
+ width: (MediaQuery.of(context).size.width) *(302/428),
+ color: _questionTypeSelectedBool[i] == false ? Colors.white : Color(0xFF3F2668),
+ child: TextButton(
+ style: TextButton.styleFrom(
+ padding: EdgeInsets.zero,),
+ child: Text(_questionTypesTitle[i],
+ style: TextStyle(
+ color: _questionTypeSelectedBool[i] == false ? Color(0xFF3F3D56) : Colors.white,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height)*(15/926),
+ ),),
+ onPressed: () {
+ _questionTypesLogic(i);
+ getQuestionsCount();
+ },
+ ),
+ ),
+ _questionTypeSelectedBool[i] == false ?
+ GestureDetector(
+ onTap: () {
+ _questionTypesLogic(i);
+ getQuestionsCount();
+ },
+ child: Container(
+ height: (MediaQuery.of(context).size.height) *(34.224/926),
+ width: (MediaQuery.of(context).size.height) *(34.224/926),
+ // width: (MediaQuery.of(context).size.width) *(29.224/428),
+ decoration: BoxDecoration(
+ border: Border.all(width: 9, color: Color(0xFFA1A1A1)),
+ borderRadius: BorderRadius.all(Radius.circular(50)),
+ ),
+ ),
+ )
+ :
+ GestureDetector(
+ onTap: () {
+ _questionTypesLogic(i);
+ getQuestionsCount();
+ },
+ child: Container(
+ child: Icon(Icons.check,
+ size: (MediaQuery.of(context).size.height) *(34.224/926),
+ color: Color(0xFF3F2668),)
+ ),
+ ),
+ ],
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(25.224/926)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(10.74/926),),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(68/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(3)),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: TextButton(
+ onPressed: () {
+ //Animates to next tab
+ _backTab();
+ },
+ child: Center(
+ child: Text("Back",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(68/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(3)),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: TextButton(
+ onPressed: () {
+ //Animates to next tab
+ _nextTab();
+ },
+ child: Center(
+ child: Text("Next",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+
+ //Tab5: Generate Quiz
+ Column(
+ children: [
+ Container(
+ height: (MediaQuery.of(context).size.height) *(40.32/926),
+ width: (MediaQuery.of(context).size.width) *(386/428),
+ //color: Colors.red,
+ decoration: BoxDecoration(
+ color: Color(0xFF3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.only(bottomLeft: Radius.circular(15.0), topRight: Radius.circular(15.0),),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: Center(
+ child: Text("Generate Quiz",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(26.31/926),//38,
+ ),),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(22.8/926)),
+ Container(
+ width: (MediaQuery.of(context).size.width) *(386/428), // 460/926
+ height: (MediaQuery.of(context).size.height) *(460/926),
+ child: Column(
+ children: [
+ Center(
+ child: Text("Set Difficulty Level",
+ style: TextStyle(
+ color: Color(0xFF232323),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(16/926),
+ ),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(26.59/926),),
+ Row(
+ children: [
+ for(int i = 1; i<6; i++)
+ Row(
+ children: [
+ Container(
+ height: (MediaQuery.of(context).size.height) *(40.224/926),
+ width: (MediaQuery.of(context).size.width) *((60)/428),
+ color: _difficultyLevelBool[i-1] == false ? Color(0xFFE4E4E4) : Color(0xFF7F1AF1),
+ child: TextButton(
+ style: TextButton.styleFrom(
+ padding: EdgeInsets.zero,),
+ child: Text(_difficultyLevelTitle[i-1],
+ style: TextStyle(
+ color: _difficultyLevelBool[i-1] == false ? Color(0xFF3F2668) : Colors.white,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height)*(13/926),
+ ),),
+ onPressed: () {
+ setState(() {
+ if(_difficultyLevelBool[i-1] == false) {
+ _difficultyLevelBool[i-1] = true;
+ _difficultyLevel.add(i);
+ }
+ else if(_difficultyLevelBool[i-1] == true) {
+ _difficultyLevelBool[i-1] = false;
+ _difficultyLevel.remove(i);
+ }
+ });
+ getQuestionsCount();
+ },
+ ),
+ ),
+ if(i != 5)
+ // SizedBox(width: (MediaQuery.of(context).size.width) *(46/926)),
+ for(int j = 0; j<6; j++)
+ Row(
+ children: [
+ Container(
+ child: Container(
+ height: (MediaQuery.of(context).size.height) *(2/926),
+ width: (MediaQuery.of(context).size.width) *(3.55/428),
+ decoration: BoxDecoration(
+ color: Color(0xFFE4E4E4),
+ shape: BoxShape.circle,
+ ),
+ ),
+ ),
+ ],
+ )
+ ],
+ ),
+ ],
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(48/926),),
+ Center(
+ child: Text("Generate Quiz",
+ style: TextStyle(
+ color: Color(0xFF232323),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(16/926),
+ ),
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(28/926),),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Row(
+ children: [
+ Container(
+ height: (MediaQuery.of(context).size.height) *(30/926),
+ width: (MediaQuery.of(context).size.width) *(98/428),
+ padding: EdgeInsets.zero,
+ margin: EdgeInsets.zero,
+ decoration: BoxDecoration(
+ color: _tutorMode? Color(0xff3F2668) : Colors.white,
+ border: Border.all(color: Color(0xff3F2668)),
+ borderRadius: BorderRadius.only(topLeft: Radius.circular(3), bottomLeft: Radius.circular(3)),
+ ),
+ //color: Colors.red,
+ child: InkWell(
+ onTap: () {
+ if(_tutorMode == false) {
+ setState(() {
+ _tutorMode = true;
+ print(_tutorMode);
+ });
+ }
+ },
+ child: Center(
+ child: Text("Tutor Mode",
+ style: TextStyle(
+ color: _tutorMode? Colors.white : Color(0xff3F2668),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926)
+ ),
+ ),
+ ),
+ )
+ ),
+ Container(
+ height: (MediaQuery.of(context).size.height) *(30/926),
+ width: (MediaQuery.of(context).size.width) *(98/428),
+ padding: EdgeInsets.zero,
+ margin: EdgeInsets.zero,
+ decoration: BoxDecoration(
+ color: _tutorMode? Colors.white : Color(0xff3F2668),
+ border: Border.all(color: Color(0xff3F2668)),
+ borderRadius: BorderRadius.only(topRight: Radius.circular(3), bottomRight: Radius.circular(3)),
+ ),
+ //color: Colors.red,
+ child: InkWell(
+ onTap: () {
+ if(_tutorMode == true) {
+ setState(() {
+ _tutorMode = false;
+ // print(_tutorMode);
+ });
+ }
+ },
+ child: Center(
+ child: Text("Exam Mode",
+ style: TextStyle(
+ color: _tutorMode? Color(0xff3F2668) : Colors.white,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926)
+ ),
+ ),
+ ),
+ )
+ ),
+ ],
+ ),
+ Row(
+ children: [
+ Transform.scale(
+ scale: 1,
+ child: Container(
+ height: (MediaQuery.of(context).size.height) *(20/926),
+ child: Switch(
+ value: _timedMode,
+ onChanged: (value) {
+ setState(() {
+ _timedMode = value;
+ // print(_timedMode);
+ });
+ },
+ activeColor: Color(0xff3F2668),
+ ),
+ ),
+ ),
+ Container(
+ child: Text("Timed Mode",
+ style: TextStyle(
+ color: Color(0xff483A3A),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926)
+ ),
+ ),
+ ),
+ SizedBox(width: (MediaQuery.of(context).size.width) *(10/428)),
+
+ ],
+ ),
+ ],
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(40/926)),
+ Container(
+ padding: EdgeInsets.only(bottom: (MediaQuery.of(context).size.height) *(15/926)),
+ child: Row(
+ children: [
+ Text("Enter The Number Of Questions: ",
+ style: TextStyle(
+ color: Color(0xff3F3D56),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926)
+ ),
+ ),
+ Container(
+ height: (MediaQuery.of(context).size.height) *(24/926),
+ width: (MediaQuery.of(context).size.width) *(40.01/428),
+ color: Colors.white,
+ child: Form(
+ key: _numberOfQuestionsKey,
+ child: TextField(
+ controller: _textCountController,
+ keyboardType: TextInputType.number,
+ inputFormatters: [
+ FilteringTextInputFormatter.digitsOnly
+ ], // Only numbers can be entered
+ textAlign: TextAlign.center,
+ decoration: InputDecoration(
+ hintText: "4",
+ hintStyle: TextStyle(color: Color(0xffAEAEAE),
+ fontSize: (MediaQuery.of(context).size.height)*(15/926),
+ fontFamily: 'Brandon-med',),
+ contentPadding: EdgeInsets.fromLTRB(2.0, 1, 2.0, 1),
+ enabledBorder: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Color(0xFF7070709E),
+ width: 1.0,
+ ),
+ borderRadius: BorderRadius.circular(3.0),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.transparent,
+ width: 0.0,
+ ),
+ ),
+ ),
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: (MediaQuery.of(context).size.height)*(15/926),
+ fontFamily: 'Brandon-med',
+ ),
+ onChanged: (val) {
+ final number = num.tryParse(val);
+ if(number != null) {
+ var totalQuestions;
+ try {
+ totalQuestions = _totalQuestions;
+ } catch (error) {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Error")));
+ }
+ if((int.parse(val)>totalQuestions) || (int.parse(val)>40)) {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Enter a smaller number")));
+ _textCountController.clear();
+ setState(() {
+ _questionsCount = 0;
+ });
+ }
+ else if(int.parse(val) <= 0) {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Enter a bigger number")));
+ _textCountController.clear();
+ setState(() {
+ _questionsCount = 0;
+ });
+ }
+ else{
+ setState(() {
+ _questionsCount = int.parse(val);
+ });
+ }
+ }
+ },
+ ),
+ ),
+ ),
+ Text(" /" + (_gettingQuestionsCount ? "Loading..." : _totalQuestions.toString()),
+ style: TextStyle(
+ color: Color(0xFF98A4A4),
+ fontSize: (MediaQuery.of(context).size.height)*(15/926),
+ fontFamily: 'Brandon-med',
+ ),),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(21/926),),
+
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(68/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(3)),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: TextButton(
+ onPressed: () {
+ //Animates to next tab
+ _backTab();
+ },
+ child: Center(
+ child: Text("Back",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.symmetric(
+ horizontal: w * 25),
+ height: (MediaQuery.of(context).size.height) *(42/926),
+ width: (MediaQuery.of(context).size.width) *(100/428),
+ decoration: BoxDecoration(
+ color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ borderRadius: BorderRadius.all(Radius.circular(3)),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,//Color(0xff00000029),
+ spreadRadius: 2,
+ blurRadius: 2,
+ offset: Offset(0, 0),
+ ),
+ ],
+ ),
+ child: TextButton(
+ onPressed: _gettingQuestionsCount ? null : () {
+ print("adsdsa");
+ // print(num.tryParse(_questionsCount));
+ if(_questionsCount > 0) {
+ final result = Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => QuizModule(totalQuestions: _questionsCount, questions: _questions, timedMode: _timedMode, mode: _tutorMode ? "tutor" : "exam", whatsDone: "new",)),
+ );
+ }
+ },
+ child: Center(
+ child: Text("Create Quiz",
+ style: TextStyle(
+ color: Colors.white,
+ fontFamily: 'Brandon-med',
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/screens/Welcome/Notes/noteDetails.dart b/lib/screens/Welcome/Notes/noteDetails.dart
new file mode 100644
index 0000000..b19afc2
--- /dev/null
+++ b/lib/screens/Welcome/Notes/noteDetails.dart
@@ -0,0 +1,477 @@
+import 'dart:convert';
+
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/svg.dart';
+import 'package:http/http.dart' as http;
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:testify/screens/Welcome/Notes/notes.dart';
+
+import '../../Authentication/login.dart';
+import '../side_menu_bar.dart';
+class NoteDetails extends StatefulWidget {
+ final int noteId;
+ final String noteText;
+ NoteDetails({required this.noteId,required this.noteText});
+
+ @override
+ State createState() => _NoteDetailsState();
+}
+
+class _NoteDetailsState extends State {
+ var _note;
+ late TextEditingController _textController;
+
+ //Shared Pref
+ var _token;
+
+ @override
+ void initState() {
+ super.initState();
+ _textController = TextEditingController();
+ }
+
+ @override
+ void dispose() {
+ _textController.dispose();
+ super.dispose();
+ }
+
+ Future editNotesAPI() async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ _token = prefs.getString('token')!;
+ final String editNotesAPI = "https://demo.pookidevs.com/quiz/notes/editNotes";
+ http.post(Uri.parse(editNotesAPI), headers: {
+ 'Content-type': 'application/json; charset=UTF-8', 'Authorization' : _token.toString(),
+ }, body: json.encode(
+ {
+ "note": {
+ "noteId": widget.noteId,
+ "description": _note
+ }
+ }
+ )
+ ).then((response) {
+ print(jsonDecode(response.body).toString());
+ // print(json.decode(response.body).toString().substring(json.decode(response.body).toString().length-12,json.decode(response.body).toString().length));
+ if((response.statusCode == 200) & (json.decode(response.body).toString().substring(json.decode(response.body).toString().length-13,json.decode(response.body).toString().length) == "Note Edited}}")) {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Note Edited!")));
+ Navigator.of(context).pop();
+ }
+ else if((response.statusCode == 200) & (json.decode(response.body).toString().substring(0,14) == "{status: false")) { // Token Invalid
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Token Expired!")));
+ final result = Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const Login(fromWhere:"Home")),
+ );
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Note not Edited!")));
+ }
+ }
+ ).catchError((error){
+ var errorSplit = error.toString().split(":");
+ if(errorSplit[0].toLowerCase() == "socketexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("No Internet Connection")));
+ }
+ // else if(errorSplit[0].toLowerCase() == "httpexception") {
+ // ScaffoldMessenger.of(context)
+ // ..removeCurrentSnackBar()
+ // ..showSnackBar(SnackBar(content: Text("Couldn't find the said thing.")));
+ // }
+ else if(errorSplit[0].toLowerCase() == "formatexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Bad Response Format")));
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text(error.toString())));
+ }
+ });
+ }
+
+ Future deleteNotesAPI() async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ _token = prefs.getString('token')!;
+ final String editNotesAPI = "https://demo.pookidevs.com/quiz/notes/deleteNotes";
+ print(widget.noteId.runtimeType);
+ http.post(Uri.parse(editNotesAPI), headers: {
+ 'Content-type': 'application/json; charset=UTF-8', 'Authorization' : _token.toString(),
+ }, body: json.encode(
+ {
+ "noteId": widget.noteId
+ }
+ )
+ ).then((response) {
+ print(jsonDecode(response.body).toString());
+ // print(json.decode(response.body).toString().substring(json.decode(response.body).toString().length-12,json.decode(response.body).toString().length));
+ if((response.statusCode == 200) & (json.decode(response.body).toString().substring(json.decode(response.body).toString().length-14,json.decode(response.body).toString().length) == "Note Deleted}}")) {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Note Deleted!")));
+ Navigator.of(context)
+ .popUntil(ModalRoute.withName("/home"));
+ Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => Notes()),
+ );
+ }
+ else if((response.statusCode == 200) & (json.decode(response.body).toString().substring(0,14) == "{status: false")) { // Token Invalid
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Token Expired!")));
+ final result = Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const Login(fromWhere:"Home")),
+ );
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Note not Deleted!")));
+ }
+ }
+ ).catchError((error){
+ var errorSplit = error.toString().split(":");
+ if(errorSplit[0].toLowerCase() == "socketexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("No Internet Connection")));
+ }
+ // else if(errorSplit[0].toLowerCase() == "httpexception") {
+ // ScaffoldMessenger.of(context)
+ // ..removeCurrentSnackBar()
+ // ..showSnackBar(SnackBar(content: Text("Couldn't find the said thing.")));
+ // }
+ else if(errorSplit[0].toLowerCase() == "formatexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Bad Response Format")));
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text(error.toString())));
+ }
+ });
+ }
+
+ Widget editNotes(BuildContext context) {
+ return SizedBox(
+ child: AlertDialog(
+ contentPadding: EdgeInsets.all(MediaQuery.of(context).size.width*(15/428)),
+ content: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ 'Take Notes',
+ style: TextStyle(
+ color: Color(0xffB0A6C2),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) * (18 / 926),
+ ),
+ ),
+ IconButton(icon:Icon(Icons.cancel),iconSize:23,color: Color(0xFF3F2668),onPressed: () {
+ Navigator.of(context).pop();
+ },),
+ ],
+ ),
+ Divider(),
+ TextField(
+ controller: _textController,
+ keyboardType: TextInputType.multiline,
+ minLines: 1,//Normal textInputField will be displayed
+ maxLines: 5,// when user presses enter it will adapt to it
+ decoration: InputDecoration(
+ hintText: "Add notes here...",
+ hintStyle: TextStyle(color: Color(0xffAEAEAE),
+ fontSize: (MediaQuery.of(context).size.height)*(15/926),
+ fontFamily: 'Brandon-med',),
+ contentPadding: EdgeInsets.fromLTRB(2.0, 1, 2.0, 1),
+ focusedBorder: OutlineInputBorder(
+ borderSide: BorderSide(
+ color: Colors.transparent,
+ width: 0.0,
+ ),
+ ),
+ ),
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: (MediaQuery.of(context).size.height)*(15/926),
+ fontFamily: 'Brandon-med',
+ ),
+ onChanged: (String value) {
+ setState(() {
+ _note = value;
+ });
+ },
+ ),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ IconButton(onPressed:(){
+ setState((){
+ _note='';
+ _textController.clear();
+ }
+ );
+ } , iconSize: 21 ,icon: Icon(Icons.refresh,color: Color(0xFF3F2668))),
+ TextButton(
+ onPressed: () {
+ editNotesAPI();
+ _textController.clear();
+ },
+ style: TextButton.styleFrom(
+ padding: EdgeInsets.zero,),
+ child: Container(
+ height: (MediaQuery.of(context).size.height) * (31 / 926),
+ width:(MediaQuery.of(context).size.width) * (97 / 428),
+ decoration: BoxDecoration(borderRadius:BorderRadius.circular(4),color: Color(0xFFDDDAE2),),
+ child:Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children:[
+ Icon(Icons.save,color: Color(0xFF3F2668),),
+ SizedBox(
+ height: (MediaQuery.of(context).size.width) *
+ (14 / 428),
+ ),
+ Text(
+ 'Save',
+ style: TextStyle(
+ color: Color(0xff3F2668),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) * (19 / 926),
+ ),
+ ),
+ ])
+ ),)
+ ],
+ )
+ ],
+ ),
+ ),);}
+
+ Widget deleteNote(BuildContext context) {
+ return SizedBox(
+ child: AlertDialog(
+ contentPadding: EdgeInsets.all(MediaQuery.of(context).size.width*(15/428)),
+ content: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ 'Delete Note',
+ style: TextStyle(
+ color: Color(0xffB0A6C2),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) * (18 / 926),
+ ),
+ ),
+ IconButton(icon:Icon(Icons.cancel),iconSize:23,color: Color(0xFF3F2668),onPressed: () {
+ Navigator.of(context).pop();
+ },),
+ ],
+ ),
+ Divider(),
+ Text("Are you sure you want to delete this note?",
+ ),
+ ],
+ ),
+ actions: [
+ Divider(),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ TextButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ child: Text('No',
+ style: TextStyle(
+ color: Color(0xff3F2668),
+ fontFamily: 'Brandon-bld',
+ fontSize:
+ (MediaQuery.of(context).size.height) * (21 / 926),
+ )),
+ ),
+ Divider(),
+ TextButton(
+ onPressed: () {
+ deleteNotesAPI();
+ // print(questionsData["id"]![questionNumber].toString());
+ // BookmarkQuestionAPI();
+ },
+ child: Text('Yes',
+ style: TextStyle(
+ color: Color(0xff3F2668),
+ fontFamily: 'Brandon-bld',
+ fontSize:
+ (MediaQuery.of(context).size.height) * (21 / 926),
+ )),
+ ),
+ ],
+ ),
+ ],
+ ),
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return WillPopScope(
+ onWillPop: () async {
+ Navigator.of(context)
+ .popUntil(ModalRoute.withName("/home"));
+ final result = await Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => Notes()),
+ );
+ return false;
+ },
+ child: Scaffold(
+ backgroundColor: Color(0xffF8F9FB),
+ drawer: SideMenuBar(),
+ appBar: AppBar(
+ toolbarHeight: (MediaQuery.of(context).size.height) *(73.52/926),
+ backgroundColor: Color(0xff3F2668),
+ elevation: 2,
+ centerTitle: true,
+ flexibleSpace: Container(
+ decoration: const BoxDecoration(
+ gradient: LinearGradient(
+ begin: Alignment.topCenter,
+ end: Alignment.bottomCenter,
+ colors: [
+ Color(0xff7F1AF1),
+ Color(0xff482384)
+ ])
+ ),
+ ),
+ title: const Text("Notes",
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-bld',
+ ),
+ ),
+ actions: [
+ TextButton(
+ onPressed: () async {
+ final result = await Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const Login(fromWhere:"Home")),
+ );
+ },
+ child: SvgPicture.asset(
+ "assets/Images/logout.svg",
+ height: (MediaQuery.of(context).size.height) *(32/926),
+ ),
+ ),
+ ],
+ ),
+ body: SingleChildScrollView(
+ padding: EdgeInsets.only(top:(MediaQuery.of(context).size.height) *(28/926),
+ bottom: (MediaQuery.of(context).size.height) *(28/926),
+ left: (MediaQuery.of(context).size.width) *(24/428),
+ right: (MediaQuery.of(context).size.width) *(24/428)),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Notes',style: TextStyle(color: Color(0xFF3F2668),fontFamily: 'Brandon-bld',fontSize: MediaQuery.of(context).size.height*20/926),),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(10/926),),
+ Container(
+ height: (MediaQuery.of(context).size.height) *(488/926),
+ padding: EdgeInsets.all( (MediaQuery.of(context).size.height) *(25/926)),
+ decoration: BoxDecoration(
+ color: Color(0xffB0A6C2),
+ ),
+ child: Column(
+ children: [
+ Container(height:(MediaQuery.of(context).size.height*380/926),child: Text(_note != null ? _note : widget.noteText,style: TextStyle(color: Color(0xFF3F2668),fontFamily: 'Brandon-med',fontSize: MediaQuery.of(context).size.height*18/926),)),
+ Row(
+ mainAxisAlignment:MainAxisAlignment.center,children: [
+ GestureDetector(
+ onTap: () {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) =>
+ deleteNote(context),
+ );
+ },
+ child: Column(
+ children: [
+ Container(decoration: BoxDecoration(shape: BoxShape.circle,color: Color(0xFF3F2668) ),
+ child: Padding(
+ padding: EdgeInsets.all(MediaQuery.of(context).size.height*5/926),
+ child: Icon(Icons.delete,size: MediaQuery.of(context).size.height*25/926,color: Colors.white,),
+ ),),
+ Text('Delete',style: TextStyle(color: Color(0xFF3F2668),fontFamily: 'Brandon-med',fontSize: MediaQuery.of(context).size.height*10/926))
+ ],
+ ),
+ ),
+ SizedBox(
+ width: (MediaQuery.of(context).size.width) * (20 / 428),
+ ),
+ GestureDetector(
+ onTap: () {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) =>
+ editNotes(context),
+ );
+ },
+ child: Column(
+ children: [
+ Container(decoration: BoxDecoration(shape: BoxShape.circle,color: Color(0xFF3F2668) ),
+ child: Padding(
+ padding: EdgeInsets.all(MediaQuery.of(context).size.height*5/926),
+ child: Icon(Icons.edit,size: MediaQuery.of(context).size.height*25/926,color: Colors.white,),
+ ),),
+ Text('Edit',style: TextStyle(color: Color(0xFF3F2668),fontFamily: 'Brandon-med',fontSize: MediaQuery.of(context).size.height*10/926))
+ ],
+ ),
+ )],)
+ ],
+ ),
+
+ ),
+ TextButton(
+ onPressed: () async {
+ Navigator.of(context)
+ .popUntil(ModalRoute.withName("/home"));
+ final result = await Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => Notes()),
+ );
+ },
+ child: Row(
+ children: [
+ Icon(Icons.arrow_back_ios_outlined, color: Color(0xFF3F2668), size: MediaQuery.of(context).size.height*(18/926),),
+ SizedBox(width: 3,),
+ Text('Back',style: TextStyle(color: Color(0xFF3F2668),fontFamily: 'Brandon-med',fontSize: MediaQuery.of(context).size.height*15/926)),
+ ],
+ ),
+ )
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/screens/Welcome/Notes/notes.dart b/lib/screens/Welcome/Notes/notes.dart
new file mode 100644
index 0000000..25b3af2
--- /dev/null
+++ b/lib/screens/Welcome/Notes/notes.dart
@@ -0,0 +1,282 @@
+import 'dart:convert';
+
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/flutter_svg.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:testify/models/NotesModel/notes_model.dart';
+import 'package:testify/screens/Welcome/Notes/notesTile.dart';
+import 'package:http/http.dart' as http;
+
+import '../../Authentication/login.dart';
+import '../side_menu_bar.dart';
+class Notes extends StatefulWidget {
+ @override
+ _NotesState createState() => _NotesState();
+}
+
+class _NotesState extends State {
+
+ bool _hasNotesDataLoaded = false;
+
+ //Shared Pref
+ var _token;
+ var _userId;
+
+ var _notesSuccessful;
+
+ var _notesData = {
+ "idpsas_user_notes": [],
+ "question_id": [],
+ "user_id": [],
+ "quiz_id": [],
+ "notes": [],
+ "note_meta": [],
+ };
+
+ @override
+ void initState() {
+ super.initState();
+ getNotes();
+ }
+
+ Future getNotes() async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ final String NotesAPI = "https://demo.pookidevs.com/quiz/notes/getNotes";
+ _token = prefs.getString('token')!;
+ _userId = prefs.getInt("userId")!;
+ http.get(Uri.parse(NotesAPI), headers: {
+ 'Content-type': 'application/json; charset=UTF-8', 'Authorization' : _token.toString(),
+ },).then((response) {
+ // print(jsonDecode(response.body));
+ if(response.statusCode == 200) {
+ if(json.decode(response.body).toString().substring(0,20) == "{data: {status: true"){
+ final responseString = (response.body);
+ var getNotes = notesModelFromJson(responseString);
+ final NotesModel getNotesSuccessful = getNotes;
+ setState(() {
+ _notesSuccessful = getNotesSuccessful;
+ });
+ print(_notesSuccessful);
+ // print(_getPreviousQuizzesSuccessful.data.quizzes[0].quizId);
+ categorizeNotesData();
+ }
+ }
+ else {
+ //Token is Invalid
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Token Expired!")));
+ final result = Navigator.pushAndRemoveUntil(
+ context,
+ MaterialPageRoute(builder: (BuildContext context) => const Login(fromWhere:"Home")),
+ ModalRoute.withName('/'),
+ );
+ }
+ }
+ ).catchError((error){
+ setState(() {
+ _hasNotesDataLoaded = true;
+ });
+ var errorSplit = error.toString().split(":");
+ if(errorSplit[0].toLowerCase() == "socketexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("No Internet Connection")));
+ }
+ else if(errorSplit[0].toLowerCase() == "formatexception") {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text("Bad Response Format")));
+ }
+ else {
+ ScaffoldMessenger.of(context)
+ ..removeCurrentSnackBar()
+ ..showSnackBar(SnackBar(content: Text(error.toString())));
+ }
+ });
+ }
+
+ categorizeNotesData() {
+ var noteMetaEntry = {
+ "noteTopic": "",
+ "noteSystem": "",
+ "noteSubject": ""
+ };
+ String notesMetaString;
+ var decodeNotesMetaString;
+ int c = 0;
+ while((c<_notesSuccessful.data.notes.toList().length) & (_notesSuccessful.data.notes.toList().length > 0)) {
+ setState(() {
+ _notesData["idpsas_user_notes"]!.add(_notesSuccessful.data.notes[c].idpsasUserNotes);
+ _notesData["question_id"]!.add(_notesSuccessful.data.notes[c].questionId);
+ _notesData["user_id"]!.add(_notesSuccessful.data.notes[c].userId);
+ _notesData["quiz_id"]!.add(_notesSuccessful.data.notes[c].quizId);
+ _notesData["notes"]!.add(_notesSuccessful.data.notes[c].notes);
+ // notesMetaString = _notesSuccessful.data.notes[c].noteMeta;
+ // notesMetaString = notesMetaString.replaceAll("\\", "");
+ // decodeNotesMetaString = jsonDecode(notesMetaString);
+ // noteMetaEntry["noteTopic"] = decodeNotesMetaString["noteTopic"];
+ // noteMetaEntry["noteSystem"] = decodeNotesMetaString["noteSystem"];
+ // noteMetaEntry["noteSubject"] = decodeNotesMetaString["noteSubject"];
+ // _notesData["note_meta"]!.add(noteMetaEntry);
+ });
+ c++;
+ }
+ setState(() {
+ _hasNotesDataLoaded = true;
+ });
+ print(_notesData);
+ }
+
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Color(0xffF8F9FB),
+ drawer: SideMenuBar(),
+ appBar: AppBar(
+ toolbarHeight: (MediaQuery.of(context).size.height) *(73.52/926),
+ backgroundColor: Color(0xff3F2668),
+ elevation: 2,
+ centerTitle: true,
+ flexibleSpace: Container(
+ decoration: const BoxDecoration(
+ gradient: LinearGradient(
+ begin: Alignment.topCenter,
+ end: Alignment.bottomCenter,
+ colors: [
+ Color(0xff7F1AF1),
+ Color(0xff482384)
+ ])
+ ),
+ ),
+ title: const Text("Notes",
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-bld',
+ ),
+ ),
+ actions: [
+ TextButton(
+ onPressed: () async {
+ final result = await Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const Login(fromWhere:"Home")),
+ );
+ },
+ child: SvgPicture.asset(
+ "assets/Images/logout.svg",
+ height: (MediaQuery.of(context).size.height) *(32/926),
+ ),
+ ),
+ ],
+ ),
+ body:SingleChildScrollView(
+ padding: EdgeInsets.only(top:(MediaQuery.of(context).size.height) *(15/926),
+ bottom: (MediaQuery.of(context).size.height) *(8/926),
+ left: (MediaQuery.of(context).size.width) *(18/428),
+ right: (MediaQuery.of(context).size.width) *(18/428)),
+ child: Column(
+ children: [
+ Row(
+ children: [
+ Container(
+ width: (MediaQuery.of(context).size.width) *(221/428),
+ //height: (MediaQuery.of(context).size.height) *(91/926),
+ child: Column(
+ children: [
+ Align(
+ alignment: Alignment.topLeft,
+ child: Text("Notes",
+ style: TextStyle(
+ color: Color(0xff232323),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(25/926),//38,
+ ),),
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height) *(2/926),),
+ Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras imperdiet finibus elit non luctus. Morbi auctor mattis ante.",
+ style: TextStyle(
+ color: Color(0xFF483A3A),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(13/926),//38,
+ ),),
+ ],
+ ),
+ ),
+ SizedBox(width: (MediaQuery.of(context).size.width) *(39/428),),
+ Container(
+ //color: Colors.transparent,
+ child: SvgPicture.asset(
+ "assets/Images/notes_screen.svg",
+ height: (MediaQuery.of(context).size.height) *(100/926),
+ //width: (MediaQuery.of(context).size.width) *(132/428),
+ ),
+ ),
+ ],
+ ),
+ SizedBox(height: (MediaQuery.of(context).size.height)*(30/926),),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: _hasNotesDataLoaded == false ? CircularProgressIndicator(color: Color(0xFF3F2668)) : Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ if(_notesData["idpsas_user_notes"]!.length <= 0)
+ Container(
+ child: Align(
+ alignment: Alignment.topCenter,
+ child: Text("No Notes Available!",
+ style: TextStyle(
+ color: Color(0xffAEAEAE),
+ fontFamily: 'Brandon-bld',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926),//38,
+ ),),
+ ),
+ ),
+ GridView.count(shrinkWrap:true,crossAxisCount: 2,crossAxisSpacing:(MediaQuery.of(context).size.width) *(68/428) ,mainAxisSpacing: (MediaQuery.of(context).size.height) *(41/926),childAspectRatio: 1,children: [
+ for(int i = 0; i<_notesData["idpsas_user_notes"]!.length; i++)
+ NotesTile(noteId: _notesData["idpsas_user_notes"]![i], noteText: _notesData["notes"]![i]),
+ ],),
+ // SizedBox(height: (MediaQuery.of(context).size.height)*(92/926),),
+ // InkWell(
+ // child: Container(
+ // height: (MediaQuery.of(context).size.height) *(30/926),
+ // width: (MediaQuery.of(context).size.width) *(110/428),
+ // decoration: BoxDecoration(
+ // color: Color(0xff3F2668),//0xffB0A6C2, rgba(176, 166, 194, 1)
+ // borderRadius: BorderRadius.all(Radius.circular(2)),
+ // boxShadow: [
+ // BoxShadow(
+ // color: Colors.black12,//Color(0xff00000029),
+ // spreadRadius: 2,
+ // blurRadius: 2,
+ // offset: Offset(0, 0),
+ // ),
+ // ],
+ // ),
+ // child: TextButton(
+ // onPressed: () {
+ //
+ // },
+ // child: Center(
+ // child: Text("Show More",
+ // style: TextStyle(
+ // color: Colors.white,
+ // fontFamily: 'Brandon-med',
+ // fontSize: (MediaQuery.of(context).size.height) *(20/926)
+ // ),
+ // ),
+ // ),
+ // ),
+ // ),
+ // ),
+ ],
+ ),
+ )
+
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/screens/Welcome/Notes/notesTile.dart b/lib/screens/Welcome/Notes/notesTile.dart
new file mode 100644
index 0000000..39b77d3
--- /dev/null
+++ b/lib/screens/Welcome/Notes/notesTile.dart
@@ -0,0 +1,42 @@
+import 'package:flutter/material.dart';
+import 'package:testify/screens/Welcome/Notes/noteDetails.dart';
+class NotesTile extends StatelessWidget {
+ final int noteId;
+ final String noteText;
+ NotesTile({required this.noteId,required this.noteText});
+ @override
+ Widget build(BuildContext context) {
+ String substring;
+ if (noteText.length>100){substring=noteText.substring(0,100);}
+ else substring=noteText;
+ return InkWell(
+ onTap: ()async{
+ await Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => NoteDetails(noteId: noteId, noteText: noteText)),
+ );
+ },
+ child: Container(
+ padding: EdgeInsets.symmetric(vertical: MediaQuery.of(context).size.height*(20/926),horizontal:(MediaQuery.of(context).size.width) *(20/428) ),
+ height: MediaQuery.of(context).size.height*(137/926),
+ width:MediaQuery.of(context).size.height*(137/926) ,
+ decoration: BoxDecoration(color: Color(0xff3F2668),borderRadius: BorderRadius.circular(MediaQuery.of(context).size.height*10/926)),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Note Id: '+noteId.toString(),style: TextStyle(
+ color: Color(0xffB0A6C2),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(15/926),//38,
+ ),),
+ Text(substring,textAlign:TextAlign.justify,style: TextStyle(
+ color: Colors.white70,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) *(13/926),//38,
+ ),)
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/screens/Welcome/PreviousQuiz/TestAnalysis/analysisDetails.dart b/lib/screens/Welcome/PreviousQuiz/TestAnalysis/analysisDetails.dart
new file mode 100644
index 0000000..6b7ca74
--- /dev/null
+++ b/lib/screens/Welcome/PreviousQuiz/TestAnalysis/analysisDetails.dart
@@ -0,0 +1,407 @@
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/svg.dart';
+import 'package:expandable/expandable.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:testify/models/GetPreviousQuizzesModel/TestAnalysisModel/test_analysis_model.dart';
+
+import '../../../Authentication/login.dart';
+import '../../side_menu_bar.dart';
+
+class DetailsTile extends StatelessWidget {
+ final int id;
+ final String name;
+ final int totalQuestions;
+ final int correctQuestions;
+ final int incorrectQuestions;
+ final int omittedQuestions;
+ DetailsTile({required this.id, required this.name, required this.totalQuestions, required this.correctQuestions, required this.incorrectQuestions, required this.omittedQuestions});
+ @override
+ Widget build(BuildContext context) {
+ return ExpandableNotifier(child: Column(children: [
+ Expandable(
+ collapsed: ExpandableButton(
+ child: Container(
+ height: MediaQuery.of(context).size.height * (78 / 926),
+ width: MediaQuery.of(context).size.width * (363 / 428),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ border: Border.all(color: Color(0xff8B8B8B)),
+ boxShadow: const [
+ BoxShadow(
+ offset: Offset(0, 4),
+ blurRadius: 6,
+ color: Colors.grey // background color
+ ),
+ ],
+ borderRadius: BorderRadius.circular(
+ MediaQuery.of(context).size.height * 5 / 926)),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Container(
+ height: MediaQuery.of(context).size.height * (78 / 926),
+ width: MediaQuery.of(context).size.height * (78 / 926),
+ padding: EdgeInsets.symmetric(
+ vertical: MediaQuery.of(context).size.height * (12 / 926),
+ horizontal:
+ (MediaQuery.of(context).size.width) * (5 / 428)),
+ color: Color(0xff6D5A8D),
+ child: Text(
+ 'Sr.No\n' + id.toString(),
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),
+ ),
+ ),
+ Container(
+ padding: EdgeInsets.symmetric(
+ vertical: MediaQuery.of(context).size.height * (12 / 926),
+ horizontal:
+ (MediaQuery.of(context).size.width) * (12 / 428)),
+ child: Text(
+ name,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: Color(0xff8B8B8B),
+ fontFamily: 'Brandon-med',
+ fontSize:
+ (MediaQuery.of(context).size.height) * (21 / 926),
+ ),
+ )),
+ Container(
+ padding: EdgeInsets.symmetric(
+ vertical: MediaQuery.of(context).size.height * (12 / 926),
+ horizontal:
+ (MediaQuery.of(context).size.width) * (12 / 428)),
+ child: Icon(
+ Icons.arrow_drop_down,
+ size: MediaQuery.of(context).size.height * (35 / 926),
+ color: Color(0xff6D5A8D),
+ ),
+ )
+ ],
+ ),
+ ),
+ ),
+ expanded: ExpandableButton(
+ child:Column(
+ children: [
+ Container(
+ height: MediaQuery.of(context).size.height * (78 / 926),
+ width: MediaQuery.of(context).size.width * (363 / 428),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ border: Border.all(color:Color(0xff8B8B8B)),
+ boxShadow: const [
+ BoxShadow(
+ offset: Offset(0, 4),
+ blurRadius: 6,
+ color: Colors.grey // background color
+ ),
+ ],
+ borderRadius: BorderRadius.circular(
+ MediaQuery.of(context).size.height * 5 / 926)),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Container(
+ height: MediaQuery.of(context).size.height * (78 / 926),
+ width: MediaQuery.of(context).size.height * (78 / 926),
+ padding: EdgeInsets.symmetric(
+ vertical: MediaQuery.of(context).size.height * (12 / 926),
+ horizontal:
+ (MediaQuery.of(context).size.width) * (5 / 428)),
+ color: Color(0xff6D5A8D),
+ child: Text(
+ 'Sr.No\n' + id.toString(),
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: Color(0xffFFFEFE),
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),
+ ),
+ ),
+ Container(
+ padding: EdgeInsets.symmetric(
+ vertical: MediaQuery.of(context).size.height * (12 / 926),
+ horizontal:
+ (MediaQuery.of(context).size.width) * (12 / 428)),
+ child: Text(
+ name,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: Color(0xff8B8B8B),
+ fontFamily: 'Brandon-med',
+ fontSize:
+ (MediaQuery.of(context).size.height) * (21 / 926),
+ ),
+ )),
+ Container(
+ padding: EdgeInsets.symmetric(
+ vertical: MediaQuery.of(context).size.height * (12 / 926),
+ horizontal:
+ (MediaQuery.of(context).size.width) * (12 / 428)),
+ child: Icon(
+ Icons.arrow_drop_down,
+ size: MediaQuery.of(context).size.height * (35 / 926),
+ color: Color(0xff6D5A8D),
+ ),
+ )
+ ],
+ ),
+ ),
+ Container(
+ height: MediaQuery.of(context).size.height * (78 / 926),
+ width: MediaQuery.of(context).size.width * (363 / 428),
+ color: Color(0xA4E4E4E4),
+ padding: EdgeInsets.symmetric(
+ vertical: MediaQuery.of(context).size.height * (10 / 926),
+ horizontal: (MediaQuery.of(context).size.width) * (10 / 428)),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [
+ Text('Total Questions: ', style: TextStyle(
+ color: Color(0xFF3F2668) ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),),
+ SizedBox(width:MediaQuery.of(context).size.width * (10 / 428)),
+ Text(totalQuestions.toString(),style: TextStyle(
+ color: Colors.grey ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),)
+ ],),
+
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text('Correct Questions: ', style: TextStyle(
+ color: Color(0xFF3F2668) ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),),
+ SizedBox(width:MediaQuery.of(context).size.width * (10 / 428)),
+ Text(correctQuestions.toString(),style: TextStyle(
+ color: Colors.grey ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),)
+ ],),],),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [ Row(children: [
+ Text('Incorrect Questions: ', style: TextStyle(
+ color: Color(0xFF3F2668) ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),),
+ SizedBox(width:MediaQuery.of(context).size.width * (10 / 428)),
+ Text(incorrectQuestions.toString(),style: TextStyle(
+ color: Colors.grey ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),)
+ ],),
+ Row(children: [
+ Text('Omitted Questions: ', style: TextStyle(
+ color: Color(0xFF3F2668) ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),),
+ SizedBox(width:MediaQuery.of(context).size.width * (10 / 428)),
+ Text(omittedQuestions.toString(),style: TextStyle(
+ color: Colors.grey ,
+ fontFamily: 'Brandon-med',
+ fontSize: (MediaQuery.of(context).size.height) * (17 / 926),
+ ),)
+ ],),],)
+
+
+ ],
+ ),
+ )
+ ],
+ ),
+ ))
+ ],));
+ }
+
+
+ // }
+}
+
+class AnalysisDetails extends StatefulWidget {
+ @override
+ _AnalysisDetailsState createState() => _AnalysisDetailsState();
+}
+
+class _AnalysisDetailsState extends State