diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..2a11f8b
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+client
\ No newline at end of file
diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml
new file mode 100644
index 0000000..fc47c09
--- /dev/null
+++ b/.idea/libraries/Dart_Packages.xml
@@ -0,0 +1,660 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml
new file mode 100644
index 0000000..563d1c4
--- /dev/null
+++ b/.idea/libraries/Dart_SDK.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml
new file mode 100644
index 0000000..cbb7192
--- /dev/null
+++ b/.idea/libraries/Flutter_Plugins.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/KotlinJavaRuntime.xml b/.idea/libraries/KotlinJavaRuntime.xml
new file mode 100644
index 0000000..2b96ac4
--- /dev/null
+++ b/.idea/libraries/KotlinJavaRuntime.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..639900d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..4e73523
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/main_dart.xml b/.idea/runConfigurations/main_dart.xml
new file mode 100644
index 0000000..aab7b5c
--- /dev/null
+++ b/.idea/runConfigurations/main_dart.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..9e70ade
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled.
+
+version:
+ revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ channel: stable
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ - platform: android
+ create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ - platform: ios
+ create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ - platform: linux
+ create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ - platform: macos
+ create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ - platform: web
+ create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ - platform: windows
+ create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+ base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/API.json b/API.json
new file mode 100644
index 0000000..f830d29
--- /dev/null
+++ b/API.json
@@ -0,0 +1,48 @@
+[
+ {
+
+ "authenticate": {
+ "incoming": {
+
+ },
+
+ "outgoing": {
+ "username": "Username",
+ "password": "Password"
+ }
+ },
+
+ "serverInfo": {
+ "incoming": {
+ "name": "Server name",
+ "owner": "Server owner",
+ "version": "Server version",
+ "legal": "Any legal advice or caution"
+ }
+ },
+
+
+ "talkContacts": {
+ "incoming": [
+ {
+ "name": "Full display name",
+ "last_message": "Preview of last message",
+ "last_time": "Time of last message as Text",
+ "profile_picture": "Avatar Image as URL",
+ "unread_message": "Chat has unread messages"
+ }
+ ],
+
+ "outgoing": {
+
+ }
+ },
+
+ "talkNotifications": {
+ "incoming": {
+ "amount": "Amount of notifications"
+ }
+ }
+
+ }
+]
\ No newline at end of file
diff --git a/README.md b/README.md
index 02e75e9..0ede5e1 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,9 @@
-# Client
+# Client {
+ "name": "Full display name",
+ "last_message": "Preview of last message",
+ "last_time": "Time of last message as Text",
+ "profile_picture": "Avatar Image as URL",
+ "unread_message": "Chat has unread messages"
+ }
-Mobile client for Webuntis and Nextcloud with Talk integration
\ No newline at end of file
+Mobile client for Webuntis and Nextcloud with Talk integration
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..61b6c4d
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,29 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..361edbd
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,59 @@
+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
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "eu.mhsl.marianum.mobile.client"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
+ minSdkVersion 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 '../..'
+}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..7ac7ebe
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..5e6f018
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/java/eu/mhsl/marianum/mobile/client/MainActivity.java b/android/app/src/main/java/eu/mhsl/marianum/mobile/client/MainActivity.java
new file mode 100644
index 0000000..3f2d75f
--- /dev/null
+++ b/android/app/src/main/java/eu/mhsl/marianum/mobile/client/MainActivity.java
@@ -0,0 +1,6 @@
+package eu.mhsl.marianum.mobile.client;
+
+import io.flutter.embedding.android.FlutterActivity;
+
+public class MainActivity extends FlutterActivity {
+}
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..7ac7ebe
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..83ae220
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,31 @@
+buildscript {
+ ext.kotlin_version = '1.6.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.1.2'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+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/client_android.iml b/android/client_android.iml
new file mode 100644
index 0000000..8fc2fc1
--- /dev/null
+++ b/android/client_android.iml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..cb24abd
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..44e62bc
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/assets/ca/lets-encrypt-r3.pem b/assets/ca/lets-encrypt-r3.pem
new file mode 100644
index 0000000..43b222a
--- /dev/null
+++ b/assets/ca/lets-encrypt-r3.pem
@@ -0,0 +1,30 @@
+-----BEGIN CERTIFICATE-----
+MIIFFjCCAv6gAwIBAgIRAJErCErPDBinU/bWLiWnX1owDQYJKoZIhvcNAQELBQAw
+TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
+cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMjAwOTA0MDAwMDAw
+WhcNMjUwOTE1MTYwMDAwWjAyMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg
+RW5jcnlwdDELMAkGA1UEAxMCUjMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
+AoIBAQC7AhUozPaglNMPEuyNVZLD+ILxmaZ6QoinXSaqtSu5xUyxr45r+XXIo9cP
+R5QUVTVXjJ6oojkZ9YI8QqlObvU7wy7bjcCwXPNZOOftz2nwWgsbvsCUJCWH+jdx
+sxPnHKzhm+/b5DtFUkWWqcFTzjTIUu61ru2P3mBw4qVUq7ZtDpelQDRrK9O8Zutm
+NHz6a4uPVymZ+DAXXbpyb/uBxa3Shlg9F8fnCbvxK/eG3MHacV3URuPMrSXBiLxg
+Z3Vms/EY96Jc5lP/Ooi2R6X/ExjqmAl3P51T+c8B5fWmcBcUr2Ok/5mzk53cU6cG
+/kiFHaFpriV1uxPMUgP17VGhi9sVAgMBAAGjggEIMIIBBDAOBgNVHQ8BAf8EBAMC
+AYYwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMBIGA1UdEwEB/wQIMAYB
+Af8CAQAwHQYDVR0OBBYEFBQusxe3WFbLrlAJQOYfr52LFMLGMB8GA1UdIwQYMBaA
+FHm0WeZ7tuXkAXOACIjIGlj26ZtuMDIGCCsGAQUFBwEBBCYwJDAiBggrBgEFBQcw
+AoYWaHR0cDovL3gxLmkubGVuY3Iub3JnLzAnBgNVHR8EIDAeMBygGqAYhhZodHRw
+Oi8veDEuYy5sZW5jci5vcmcvMCIGA1UdIAQbMBkwCAYGZ4EMAQIBMA0GCysGAQQB
+gt8TAQEBMA0GCSqGSIb3DQEBCwUAA4ICAQCFyk5HPqP3hUSFvNVneLKYY611TR6W
+PTNlclQtgaDqw+34IL9fzLdwALduO/ZelN7kIJ+m74uyA+eitRY8kc607TkC53wl
+ikfmZW4/RvTZ8M6UK+5UzhK8jCdLuMGYL6KvzXGRSgi3yLgjewQtCPkIVz6D2QQz
+CkcheAmCJ8MqyJu5zlzyZMjAvnnAT45tRAxekrsu94sQ4egdRCnbWSDtY7kh+BIm
+lJNXoB1lBMEKIq4QDUOXoRgffuDghje1WrG9ML+Hbisq/yFOGwXD9RiX8F6sw6W4
+avAuvDszue5L3sz85K+EC4Y/wFVDNvZo4TYXao6Z0f+lQKc0t8DQYzk1OXVu8rp2
+yJMC6alLbBfODALZvYH7n7do1AZls4I9d1P4jnkDrQoxB3UqQ9hVl3LEKQ73xF1O
+yK5GhDDX8oVfGKF5u+decIsH4YaTw7mP3GFxJSqv3+0lUFJoi5Lc5da149p90Ids
+hCExroL1+7mryIkXPeFM5TgO9r0rvZaBFOvV2z0gp35Z0+L4WPlbuEjN/lxPFin+
+HlUjr8gRsI3qfJOQFy/9rKIJR0Y/8Omwt/8oTWgy1mdeHmmjk7j1nYsvC9JSQ6Zv
+MldlTTKB3zhThV1+XWYp6rjd5JW1zbVWEkLNxE7GJThEUG3szgBVGP7pSWTUTsqX
+nLRbwHOoq7hHwg==
+-----END CERTIFICATE-----
diff --git a/assets/logo/icon.png b/assets/logo/icon.png
new file mode 100644
index 0000000..dc89db9
Binary files /dev/null and b/assets/logo/icon.png differ
diff --git a/client.iml b/client.iml
new file mode 100644
index 0000000..f9d0b34
--- /dev/null
+++ b/client.iml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..9625e10
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..d869c89
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,481 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1300;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = eu.mhsl.marianum.mobile.client;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = eu.mhsl.marianum.mobile.client;
+ 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 = eu.mhsl.marianum.mobile.client;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..c87d15a
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..70693e4
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..28c6bf0
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..f091b6b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cde121
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..d0ef06e
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..dcdc230
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..c8f9ed8
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..75b2d16
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..c4df70d
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..6a84f41
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..d0e1f58
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..e683051
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,51 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Client
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ client
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/lib/app.dart b/lib/app.dart
new file mode 100644
index 0000000..7f66f15
--- /dev/null
+++ b/lib/app.dart
@@ -0,0 +1,111 @@
+
+import 'package:flutter/material.dart';
+import 'package:marianum_mobile/data/incommingPackets/talkNotificationsPacket.dart';
+import 'package:provider/provider.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+import 'data/accountModel.dart';
+import 'screen/pages/files/files.dart';
+import 'screen/pages/more/overhang.dart';
+import 'screen/pages/talk/chatOverview.dart';
+import 'screen/pages/timetable/timetable.dart';
+import 'screen/settings/settings.dart';
+
+class App extends StatefulWidget {
+ const App({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _AppState();
+}
+
+class _AppState extends State {
+ int currentPage = 0;
+
+ @override
+ Widget build(BuildContext context) {
+ final PageController pageController = PageController();
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text("Marianum Fulda"),
+ actions: [
+ IconButton(
+ padding: const EdgeInsets.only(right: 15),
+ icon: const Icon(Icons.settings),
+ onPressed: () {
+ Navigator.push(context, MaterialPageRoute(builder: (context) => const Settings()));
+ },
+ )
+ ],
+ ),
+ body: PageView(
+ controller: pageController,
+ children: const [
+ Timetable(),
+ Talk(),
+ Files(),
+ Overhang(),
+ ],
+ onPageChanged: (page) {
+ setState(() {
+ currentPage = page;
+ });
+ },
+ ),
+
+ bottomNavigationBar: BottomNavigationBar(
+ items: [
+ const BottomNavigationBarItem(icon: Icon(Icons.calendar_month), label: "Vertretung"),
+ BottomNavigationBarItem(icon: Stack(
+ children: [
+ const Icon(Icons.chat),
+
+ Consumer(
+ builder: (context, data, child) {
+ return Visibility(
+ visible: data.amount != 0,
+ child: Positioned(
+ right: 0,
+ child: Container(
+ padding: const EdgeInsets.all(1),
+ decoration: BoxDecoration(
+ color: Colors.red,
+ borderRadius: BorderRadius.circular(6),
+ ),
+ constraints: const BoxConstraints(
+ minWidth: 12,
+ minHeight: 12,
+ ),
+ child: Text(
+ "${data.amount}",
+ style: const TextStyle(
+ color: Colors.black,
+ fontSize: 10,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ),
+ ),
+ );
+ },
+ )
+ ],
+ ), label: "Talk"),
+ const BottomNavigationBarItem(icon: Icon(Icons.folder), label: "Dateien"),
+ const BottomNavigationBarItem(icon: Icon(Icons.list), label: "Mehr"),
+ ],
+ selectedItemColor: Theme.of(context).primaryColor,
+ unselectedItemColor: Colors.grey,
+ showUnselectedLabels: true,
+ showSelectedLabels: true,
+
+ currentIndex: currentPage,
+ onTap: (item) {
+ setState(() {
+ currentPage = item;
+ pageController.jumpToPage(item);
+ });
+ },
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/data/accountModel.dart b/lib/data/accountModel.dart
new file mode 100644
index 0000000..24a8586
--- /dev/null
+++ b/lib/data/accountModel.dart
@@ -0,0 +1,19 @@
+import 'package:flutter/cupertino.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:web_socket_channel/web_socket_channel.dart';
+
+class AccountModel extends ChangeNotifier {
+ bool _isLoggedIn = false;
+
+ bool get isLoggedIn => _isLoggedIn;
+
+ void logout() {
+ _isLoggedIn = false;
+ notifyListeners();
+ }
+
+ void login() {
+ _isLoggedIn = true;
+ notifyListeners();
+ }
+}
\ No newline at end of file
diff --git a/lib/data/incomingPacket.dart b/lib/data/incomingPacket.dart
new file mode 100644
index 0000000..20a0fbe
--- /dev/null
+++ b/lib/data/incomingPacket.dart
@@ -0,0 +1,43 @@
+import 'dart:async';
+import 'dart:convert';
+import 'dart:developer';
+
+import 'package:flutter/cupertino.dart';
+import 'package:marianum_mobile/data/socketConnection.dart';
+
+class IncomingPacket extends ChangeNotifier {
+
+ String packetId;
+
+ bool _isReceived = false;
+ bool get isReceived => _isReceived;
+
+ IncomingPacket(this.packetId) {
+ log("PACKETLISTENER ERSTELLT!");
+ SocketConnection.read.listen((event) {
+ if(event.startsWith("$packetId:")) {
+ _isReceived = true;
+
+ // THIS listener handles the incomming request
+ log("$packetId is handled!");
+ handle(jsonDecode(event.split("$packetId:")[1]));
+ }
+ notifyListeners();
+ });
+ }
+
+ void invoke({Object? data, bool indicateLoading = false, bool allowNotifyListeners = true}) {
+ data = data ?? {};
+ log("$packetId is invoked with data: $data");
+ SocketConnection.write.add("$packetId:${jsonEncode(data)}");
+
+ if(indicateLoading) {
+ _isReceived = false;
+ if(allowNotifyListeners) notifyListeners();
+ }
+ }
+
+ void handle(dynamic data) {
+ log("Warning: $packetId packet listener is registered, but no handle is defined!");
+ }
+}
\ No newline at end of file
diff --git a/lib/data/incommingPackets/authenticatePacket.dart b/lib/data/incommingPackets/authenticatePacket.dart
new file mode 100644
index 0000000..9e718a0
--- /dev/null
+++ b/lib/data/incommingPackets/authenticatePacket.dart
@@ -0,0 +1,19 @@
+
+import 'dart:developer';
+
+import 'package:marianum_mobile/data/incomingPacket.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+class AuthenticatePacket extends IncomingPacket {
+ AuthenticatePacket() : super("authenticate");
+
+ @override
+ void handle(data) {
+ SharedPreferences.getInstance().then((value) => {
+ invoke(data: {
+ 'username': value.getString("username"),
+ 'password': value.getString("password")
+ })
+ });
+ }
+}
\ No newline at end of file
diff --git a/lib/data/incommingPackets/fileListPacket.dart b/lib/data/incommingPackets/fileListPacket.dart
new file mode 100644
index 0000000..fe2976a
--- /dev/null
+++ b/lib/data/incommingPackets/fileListPacket.dart
@@ -0,0 +1,29 @@
+
+import 'package:marianum_mobile/data/incomingPacket.dart';
+
+class FileEntry {
+ String name;
+ bool isFolder;
+ String path;
+
+ FileEntry(this.name, this.isFolder, this.path);
+}
+
+class FileListPacket extends IncomingPacket {
+ FileListPacket() : super("fileList");
+
+ List _entries = List.empty(growable: true);
+ List get entries => _entries;
+
+ String _lastPath = "/";
+ String get lastPath => _lastPath;
+
+ @override
+ void handle(data) {
+ _entries = List.empty(growable: true);
+ _lastPath = data['backLink'];
+ data['files'].forEach((value) => {
+ _entries.add(FileEntry(value['name'], value['is_folder'], value['path']))
+ });
+ }
+}
\ No newline at end of file
diff --git a/lib/data/incommingPackets/serverInfoPacket.dart b/lib/data/incommingPackets/serverInfoPacket.dart
new file mode 100644
index 0000000..ecbb3cc
--- /dev/null
+++ b/lib/data/incommingPackets/serverInfoPacket.dart
@@ -0,0 +1,28 @@
+import 'dart:convert';
+
+import 'package:flutter/cupertino.dart';
+import 'package:marianum_mobile/data/socketConnection.dart';
+
+import '../incomingPacket.dart';
+
+class ServerInfoPacket extends IncomingPacket {
+ ServerInfoPacket() : super('serverInfo');
+
+ String _serverName = "Unbekannt";
+ String _serverOwner = "Unbekannt";
+ String _serverVersion = "?";
+ String _legal = "Keine";
+
+ String get serverName => _serverName;
+ String get serverOwner => _serverOwner;
+ String get serverVersion => _serverVersion;
+ String get legal => _legal;
+
+ @override
+ void handle(data) {
+ _serverName = data['name'];
+ _serverOwner = data['owner'];
+ _serverVersion = data['version'];
+ _legal = data['legal'];
+ }
+}
\ No newline at end of file
diff --git a/lib/data/incommingPackets/talkChatPacket.dart b/lib/data/incommingPackets/talkChatPacket.dart
new file mode 100644
index 0000000..d53d0a2
--- /dev/null
+++ b/lib/data/incommingPackets/talkChatPacket.dart
@@ -0,0 +1,26 @@
+import 'package:marianum_mobile/data/incomingPacket.dart';
+
+class TalkMessage {
+ bool self;
+ String sender;
+ String content;
+ String date;
+
+ TalkMessage(this.self, this.sender, this.content, this.date);
+}
+
+class TalkChatPacket extends IncomingPacket {
+ TalkChatPacket() : super("talkChat");
+
+ List _messages = List.empty(growable: true);
+ List get messages => _messages;
+
+ @override
+ void handle(data) {
+ _messages = List.empty(growable: true);
+ print(data);
+ data.forEach((message) => {
+ _messages.add(TalkMessage(true, message['actorId'], message['message'], message['timestamp']))
+ });
+ }
+}
\ No newline at end of file
diff --git a/lib/data/incommingPackets/talkContactsPacket.dart b/lib/data/incommingPackets/talkContactsPacket.dart
new file mode 100644
index 0000000..c414f6d
--- /dev/null
+++ b/lib/data/incommingPackets/talkContactsPacket.dart
@@ -0,0 +1,46 @@
+import 'dart:convert';
+
+import 'package:intl/intl.dart';
+import 'package:jiffy/jiffy.dart';
+import 'package:marianum_mobile/data/incomingPacket.dart';
+
+class TalkContact {
+ String name;
+ String lastMessage;
+ String lastTime;
+ String profilePicture;
+ bool unreadMessages;
+ bool isGroup;
+ String userToken;
+
+ TalkContact(this.name, this.lastMessage, this.lastTime, this.profilePicture, this.unreadMessages, this.isGroup, this.userToken);
+}
+
+class TalkContactsPaket extends IncomingPacket {
+ TalkContactsPaket() : super('talkContacts');
+
+ List _contacts = List.empty(growable: true);
+
+ List get contacts => _contacts;
+
+ @override
+ void handle(data) {
+ _contacts = List.empty(growable: true);
+ //data["ocs"]["data"].sort((a, b) => a['lastActivity'].compareTo(b['lastActivity']));
+
+ data.forEach((value) async {
+ await Jiffy.locale("de");
+ _contacts.add(
+ TalkContact(
+ value['displayName'],
+ value['lastMessage']['message'],
+ Jiffy(DateTime.fromMillisecondsSinceEpoch(value['lastActivity'] * 1000)).fromNow(),
+ value['name'] != null ? "https://cloud.marianum-fulda.de/avatar/${value['name']}/128" : "",
+ value['unreadMessages'] > 0,
+ value['type'] != 1,
+ value['token']
+ )
+ );
+ });
+ }
+}
\ No newline at end of file
diff --git a/lib/data/incommingPackets/talkNotificationsPacket.dart b/lib/data/incommingPackets/talkNotificationsPacket.dart
new file mode 100644
index 0000000..2e99e59
--- /dev/null
+++ b/lib/data/incommingPackets/talkNotificationsPacket.dart
@@ -0,0 +1,13 @@
+import 'package:marianum_mobile/data/incomingPacket.dart';
+
+class TalkNotificationsPacket extends IncomingPacket {
+ TalkNotificationsPacket() : super("talkNotifications");
+
+ int _amount = 0;
+ int get amount => _amount;
+
+ @override
+ void handle(data) {
+ _amount = data['amount'];
+ }
+}
\ No newline at end of file
diff --git a/lib/data/outgoingPacket.dart b/lib/data/outgoingPacket.dart
new file mode 100644
index 0000000..8579537
--- /dev/null
+++ b/lib/data/outgoingPacket.dart
@@ -0,0 +1,14 @@
+import 'dart:convert';
+
+import 'package:marianum_mobile/data/socketConnection.dart';
+
+class OutgoingPacket {
+ final String command;
+ final dynamic data;
+
+ OutgoingPacket({required this.command, required this.data});
+
+ void send() {
+ SocketConnection.write.add("$command:${jsonEncode(data)}");
+ }
+}
\ No newline at end of file
diff --git a/lib/data/outgoingPackets/talkContactsAskPacket.dart b/lib/data/outgoingPackets/talkContactsAskPacket.dart
new file mode 100644
index 0000000..54bd0f6
--- /dev/null
+++ b/lib/data/outgoingPackets/talkContactsAskPacket.dart
@@ -0,0 +1,8 @@
+import 'package:marianum_mobile/data/outgoingPacket.dart';
+
+class TalkContactsAskPacket extends OutgoingPacket {
+ TalkContactsAskPacket() : super(
+ command: "talkContacts",
+ data: {},
+ );
+}
\ No newline at end of file
diff --git a/lib/data/socketConnection.dart b/lib/data/socketConnection.dart
new file mode 100644
index 0000000..fb4220c
--- /dev/null
+++ b/lib/data/socketConnection.dart
@@ -0,0 +1,10 @@
+import 'package:web_socket_channel/web_socket_channel.dart';
+
+class SocketConnection {
+ static final _connection = WebSocketChannel.connect(
+ Uri.parse('ws://localhost:1234'),
+ );
+
+ static var read = _connection.stream.asBroadcastStream();
+ static var write = _connection.sink;
+}
\ No newline at end of file
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..6c6c108
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,109 @@
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'package:marianum_mobile/data/accountModel.dart';
+import 'package:marianum_mobile/data/incommingPackets/authenticatePacket.dart';
+import 'package:marianum_mobile/data/incommingPackets/fileListPacket.dart';
+import 'package:marianum_mobile/data/incommingPackets/talkChatPacket.dart';
+import 'package:marianum_mobile/data/incommingPackets/talkNotificationsPacket.dart';
+import 'package:marianum_mobile/screen/login/login.dart';
+import 'package:marianum_mobile/screen/pages/timetable/timetable.dart';
+import 'package:marianum_mobile/widget/loadingSpinner.dart';
+import 'package:provider/provider.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:web_socket_channel/web_socket_channel.dart';
+
+import 'app.dart';
+import 'data/incommingPackets/serverInfoPacket.dart';
+import 'data/incommingPackets/talkContactsPacket.dart';
+
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+
+ ByteData data = await PlatformAssetBundle().load('assets/ca/lets-encrypt-r3.pem');
+ SecurityContext.defaultContext.setTrustedCertificatesBytes(data.buffer.asUint8List());
+
+ AuthenticatePacket();
+
+ runApp(
+ MultiProvider(
+ providers: [
+ ChangeNotifierProvider(create: (context) => AccountModel()),
+ ChangeNotifierProvider(create: (context) => ServerInfoPacket()),
+ ChangeNotifierProvider(create: (context) => TalkContactsPaket()),
+ ChangeNotifierProvider(create: (context) => TalkNotificationsPacket()),
+ ChangeNotifierProvider(create: (context) => FileListPacket()),
+ ChangeNotifierProvider(create: (context) => TalkChatPacket()),
+ ],
+ child: const Main(),
+ )
+ );
+}
+
+class Main extends StatefulWidget {
+ const Main({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _MainState();
+}
+
+class _MainState extends State {
+ static const Color red = Color.fromARGB(255, 153, 51, 51);
+
+ final Future _storage = SharedPreferences.getInstance();
+
+ @override
+ void initState() {
+ super.initState();
+ _storage.then((SharedPreferences preferences) => preferences.getBool("loggedIn") ?? false).then((value) => {
+ if(value) {
+ Provider.of(context, listen: false).login()
+ } else {
+ Provider.of(context, listen: false).logout()
+ }
+ });
+
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ debugShowCheckedModeBanner: false,
+
+ title: 'Marianum Fulda',
+ theme: ThemeData(
+ brightness: Brightness.light,
+ primaryColor: red,
+ appBarTheme: const AppBarTheme(
+ backgroundColor: red,
+ ),
+ progressIndicatorTheme: const ProgressIndicatorThemeData(
+ color: red,
+ ),
+ ),
+
+ home: FutureBuilder(
+ future: _storage,
+ builder: (BuildContext context, AsyncSnapshot snapshot) {
+
+ if(snapshot.hasData) {
+
+ return Consumer(
+ builder: (context, value, child) {
+ return value.isLoggedIn ? const App() : const Login();
+ },
+ );
+
+ } else {
+
+ return const LoadingSpinner();
+
+ }
+
+ },
+ )
+
+ );
+ }
+}
diff --git a/lib/screen/login/login.dart b/lib/screen/login/login.dart
new file mode 100644
index 0000000..11f8052
--- /dev/null
+++ b/lib/screen/login/login.dart
@@ -0,0 +1,93 @@
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:flutter_login/flutter_login.dart';
+import 'package:provider/provider.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+import '../../data/accountModel.dart';
+
+class Login extends StatefulWidget {
+ const Login({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _LoginState();
+}
+
+class _LoginState extends State {
+ Duration get loginTime => const Duration(milliseconds: 2250);
+
+ final Future _storage = SharedPreferences.getInstance();
+
+ String? checkInput(value){
+ return (value ?? "").length < 5 ? "Eingabe zu kurz" : null;
+ }
+
+
+ @override
+ Widget build(BuildContext context) {
+ return FlutterLogin(
+ logo: Image.file(File("assets/logo/icon.png")).image,
+
+ userValidator: checkInput,
+ passwordValidator: checkInput,
+
+ onLogin: _authUser,
+ onSignup: null,
+ onRecoverPassword: _recoverPassword,
+
+ theme: LoginTheme(
+ primaryColor: Theme.of(context).primaryColor,
+ cardTheme: const CardTheme(
+ elevation: 10,
+ shape: InputBorder.none,
+ ),
+ ),
+
+ messages: LoginMessages(
+ loginButton: "Anmelden",
+ userHint: "Nutzername",
+ passwordHint: "Passwort",
+ ),
+
+ disableCustomPageTransformer: true,
+
+ headerWidget: const Padding(
+ padding: EdgeInsets.only(bottom: 10),
+ child: Center(
+ child: Text(
+ "Dies ist ein Inoffizieller Nextclient & Webuntis Client und wird nicht vom Marianum selbst betrieben.\nBitte bedenke, dass deine persönlichen Anmelde & Infodaten durch dritte, nicht vom Marianum betriebene, Systeme geleitet werden!",
+ textAlign: TextAlign.center,
+ ),
+ ),
+ ),
+
+ footer: "Marianum Fulda - Die persönliche Schule!",
+ title: "Marianum",
+
+ hideForgotPasswordButton: true,
+ userType: LoginUserType.name,
+
+ );
+ }
+
+ Future _authUser(LoginData data) async {
+ final SharedPreferences preferences = await _storage;
+ preferences.setBool("loggedIn", true);
+ preferences.setString("username", data.name);
+ preferences.setString("password", data.password);
+
+ debugPrint('Name: ${data.name}, Password: ${data.password}');
+ return Future.delayed(loginTime).then((_) {
+ Provider.of(context, listen: false).login();
+ return null;
+ });
+ }
+
+ Future _recoverPassword(String name) {
+ return Future.delayed(loginTime).then((_) {
+ return "Diese Funktion steht nicht zur Verfügung!";
+ });
+ }
+
+}
diff --git a/lib/screen/pages/files/files.dart b/lib/screen/pages/files/files.dart
new file mode 100644
index 0000000..ddf46ee
--- /dev/null
+++ b/lib/screen/pages/files/files.dart
@@ -0,0 +1,271 @@
+
+import 'package:flutter/material.dart';
+import 'package:marianum_mobile/data/incommingPackets/fileListPacket.dart';
+import 'package:marianum_mobile/widget/loadingPacket.dart';
+import 'package:provider/provider.dart';
+import 'package:webdav_client/webdav_client.dart';
+
+import '../../../data/accountModel.dart';
+import '../../../widget/loadingSpinner.dart';
+
+class Files extends StatefulWidget {
+ const Files({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _FilesState();
+}
+
+class _FilesState extends State {
+ // List path = List.empty(growable: true);
+ // List files = List.empty(growable: true);
+ //
+ // var client = newClient(
+ // "https://cloud.marianum-fulda.de/remote.php/dav/files/***REMOVED***/",
+ // user: "***REMOVED***",
+ // password: "***REMOVED***",
+ // );
+
+
+ @override
+ void initState() {
+ Provider.of(context, listen: false).invoke();
+ super.initState();
+
+ // client.setHeaders(
+ // {
+ // "Authorization": "Bearer",
+ // "User-Agent": "Marianum Fulda/Alpha0.1 (Development build) ; https://mhsl.eu/id.html",
+ // }
+ // );
+ //
+ // path.add("/");
+ // Future.delayed(Duration.zero).then((context) => updatePath());
+ }
+
+ // void homeFolder() {
+ // path.clear();
+ // path.add("/");
+ // updatePath();
+ // }
+ //
+ // void popFolder() {
+ // if(path.length == 1) return;
+ // path.removeLast();
+ // updatePath();
+ // }
+ //
+ // void enterFolder(String sub) {
+ // path.add(sub);
+ // updatePath();
+ // }
+ //
+ // void updatePath() {
+ //
+ // final files = client.readDir(path.join("/"));
+ //
+ // showDialog(
+ // context: context,
+ // barrierDismissible: false,
+ // builder: (BuildContext context) {
+ // return const LoadingSpinner();
+ // }
+ // );
+ //
+ // files.then((value) =>
+ // setState(() {
+ // Navigator.pop(context);
+ // this.files.clear();
+ // this.files = value;
+ // })
+ // );
+ // }
+
+ @override
+ Widget build(BuildContext context) {
+ // List items = List.empty(growable: true);
+ //
+ // var counter = 0;
+ // for (final file in files) {
+ // bool isDir = file.isDir ?? false;
+ // String name = file.name ?? "?";
+ //
+ // items.add(ListTile(
+ // title: Text(file.name ?? "?"),
+ // leading: Icon(isDir ? Icons.folder_outlined : Icons.file_copy),
+ // trailing: Icon(isDir ? Icons.arrow_right : null),
+ // onTap: () {
+ // enterFolder(file.name ?? "");
+ // },
+ // onLongPress: () {
+ // setState(() {
+ // items[counter] = ListTile(
+ // title: Text(file.name ?? "?"),
+ // trailing: const Icon(Icons.delete),
+ // );
+ // });
+ // },
+ // ));
+ //
+ // }
+ //
+ // items.insert(0, AppBar(
+ // leading: path.length == 1 ? null : IconButton(
+ // icon: const Icon(Icons.keyboard_arrow_left),
+ // onPressed: () {
+ // popFolder();
+ // },
+ // ),
+ // actions: [
+ // IconButton(
+ // icon: const Icon(Icons.home),
+ // onPressed: () {
+ // homeFolder();
+ // },
+ // ),
+ //
+ // IconButton(
+ // icon: const Icon(Icons.refresh),
+ // onPressed: () {
+ // updatePath();
+ // },
+ // )
+ // ],
+ //
+ // title: Text(path.length == 1 ? "Dateien" : path.last),
+ // ));
+ //
+ // return ListView(
+ // children: items,
+ // );
+
+ return Consumer(
+ builder: (context, data, child) {
+ List entries = List.empty(growable: true);
+
+ data.entries.forEach((element) {
+ entries.add(ListTile(
+ title: Text(element.name),
+ leading: Icon(element.isFolder ? Icons.folder : Icons.file_copy_outlined),
+ onTap: () {
+ if(element.isFolder) {
+ Provider.of(context, listen: false).invoke(
+ data: {
+ "path": element.path
+ },
+ indicateLoading: true,
+ );
+ } else {
+ // TODO: Open an File
+ }
+ },
+
+ onLongPress: () {
+ showModalBottomSheet(
+ context: context,
+ builder: (context) {
+ return ListView(
+ children: [
+ ListTile(
+ leading: Icon(Icons.delete),
+ title: Text("'${element.name.replaceRange(20, element.name.length, " ...")}' Löschen"),
+ ),
+ const ListTile(
+ leading: Icon(Icons.share),
+ title: Text("Teilen"),
+ )
+ ],
+ );
+ },
+ );
+ },
+ ));
+ });
+
+ return Scaffold(
+ appBar: AppBar(
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back_outlined),
+ onPressed: () {
+ Provider.of(context, listen: false).invoke(
+ data: {
+ "path": data.lastPath
+ },
+ indicateLoading: true,
+ );
+ }
+ ),
+
+ title: Text(data.lastPath),
+ actions: [
+ IconButton(
+ onPressed: () {
+ Provider.of(context, listen: false).invoke(indicateLoading: true);
+ },
+ icon: const Icon(Icons.home)
+ ),
+ PopupMenuButton(
+ icon: Icon(Icons.add),
+ itemBuilder: (context) {
+ return [
+ const PopupMenuItem(
+ value: 0,
+ child: ListTile(
+ leading: Icon(Icons.folder),
+ title: Text("Ordner erstellen"),
+ ),
+ ),
+ const PopupMenuItem(
+ value: 1,
+ child: ListTile(
+ leading: Icon(Icons.upload),
+ title: Text("Datei Hochladen"),
+ ),
+ )
+ ];
+ },
+ )
+ ],
+ ),
+
+ floatingActionButton: FloatingActionButton.small(
+ onPressed: () {
+ showModalBottomSheet(
+ isScrollControlled: true,
+ context: context,
+ backgroundColor: Colors.transparent,
+ builder: (context) {
+ return Container(
+ height: MediaQuery.of(context).size.height * 0.3,
+ decoration: const BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.only(
+ topLeft: Radius.circular(25.0),
+ topRight: Radius.circular(25.0),
+ )
+ ),
+ child: ListView(
+ children: const [
+ ListTile(
+ leading: Icon(Icons.create_new_folder_sharp),
+ title: Text("Neuer Ordner"),
+ ),
+ ListTile(
+ leading: Icon(Icons.upload),
+ title: Text("Hochladen"),
+ )
+ ],
+ ),
+ );
+ },
+ );
+ },
+ backgroundColor: Theme.of(context).primaryColor,
+ child: const Icon(Icons.add),
+ ),
+
+ body: LoadingPacket(packet: data, child: ListView(children: entries)),
+ );
+ },
+ );
+ }
+}
diff --git a/lib/screen/pages/more/message/message.dart b/lib/screen/pages/more/message/message.dart
new file mode 100644
index 0000000..0e210a1
--- /dev/null
+++ b/lib/screen/pages/more/message/message.dart
@@ -0,0 +1,15 @@
+import 'package:flutter/cupertino.dart';
+
+class Message extends StatefulWidget {
+ const Message({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _MessageState();
+}
+
+class _MessageState extends State {
+ @override
+ Widget build(BuildContext context) {
+ return const Text("Message");
+ }
+}
diff --git a/lib/screen/pages/more/overhang.dart b/lib/screen/pages/more/overhang.dart
new file mode 100644
index 0000000..5b1203a
--- /dev/null
+++ b/lib/screen/pages/more/overhang.dart
@@ -0,0 +1,20 @@
+
+import 'package:flutter/material.dart';
+import 'package:marianum_mobile/screen/pages/more/roomplan/roomplan.dart';
+
+import '../../../widget/ListItem.dart';
+import 'message/message.dart';
+
+class Overhang extends StatelessWidget {
+ const Overhang({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return ListView(
+ children: const [
+ ListItemNavigator(icon: Icons.newspaper, text: "Marianum Message", target: Message()),
+ ListItemNavigator(icon: Icons.room, text: "Raumplan", target: Roomplan()),
+ ],
+ );
+ }
+}
diff --git a/lib/screen/pages/more/roomplan/roomplan.dart b/lib/screen/pages/more/roomplan/roomplan.dart
new file mode 100644
index 0000000..6ee68c7
--- /dev/null
+++ b/lib/screen/pages/more/roomplan/roomplan.dart
@@ -0,0 +1,10 @@
+import 'package:flutter/cupertino.dart';
+
+class Roomplan extends StatelessWidget {
+ const Roomplan({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return const Text("asd");
+ }
+}
diff --git a/lib/screen/pages/talk/chatOverview.dart b/lib/screen/pages/talk/chatOverview.dart
new file mode 100644
index 0000000..4e22bc9
--- /dev/null
+++ b/lib/screen/pages/talk/chatOverview.dart
@@ -0,0 +1,166 @@
+import 'dart:convert';
+
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:http/http.dart' as http;
+import 'package:marianum_mobile/data/outgoingPackets/talkContactsAskPacket.dart';
+import 'package:marianum_mobile/widget/loadingPacket.dart';
+import 'package:provider/provider.dart';
+
+import '../../../data/accountModel.dart';
+import '../../../data/incommingPackets/talkContactsPacket.dart';
+import '../../../widget/loadingSpinner.dart';
+import 'chatView.dart';
+
+class Talk extends StatefulWidget {
+ const Talk({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _TalkState();
+}
+
+class _TalkState extends State {
+ // List chats = List.empty(growable: true);
+ //
+ // Future> getChats() async {
+ // var url = Uri.https("***REMOVED***:***REMOVED***@mhsl.eu", "marianum/app/middleware/chat.php");
+ // var response = await http.get(
+ // url,
+ // headers: (
+ // {
+ // "Accept": "application/json",
+ // "OCS-APIRequest": "true",
+ // }
+ // ),
+ // );
+ //
+ // return compute(parseChats, response.body);
+ // }
+
+
+ @override
+ void initState() {
+ Provider.of(context, listen: false).invoke();
+ //TalkContactsAskPacket().send();
+ super.initState();
+ // Future.delayed(Duration.zero).then((context) => updateChats());
+ // Provider.of(context, listen: false).channel.sink.add("chat");
+
+ }
+
+ void updateChats() {
+ // var chats = getChats();
+ //
+ // showDialog(
+ // context: context,
+ // barrierDismissible: false,
+ // builder: (BuildContext context) {
+ // return const LoadingSpinner();
+ // }
+ // );
+ //
+ // chats.then((value) =>
+ // setState(() {
+ // Navigator.pop(context);
+ // this.chats.clear();
+ // this.chats = value;
+ // })
+ // );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ // List chats = List.empty(growable: true);
+ //
+ // for (var element in this.chats) {
+ // chats.add(
+ // ListTile(
+ // leading: element.type == 1 ? CircleAvatar(
+ // backgroundColor: Colors.grey,
+ // foregroundImage: Image.network(element.avatar).image,
+ // ) : const Icon(Icons.group),
+ // title: Text(element.name),
+ // subtitle: Text(
+ // "${element.lastMessageAuthor}: ${element.lastMessage.replaceAll("\n", "")}",
+ // overflow: TextOverflow.ellipsis,
+ // ),
+ // onTap: () {
+ // Navigator.push(context, MaterialPageRoute(builder: (builder) => const ChatView()));
+ // },
+ // trailing: element.unreadMessages > 0 ? const Icon(Icons.mark_chat_unread) : Text(element.lastActivity),
+ // )
+ // );
+ // }
+ //
+ // return ListView(
+ // children: chats,
+ // );
+
+ return Consumer(
+ builder: (context, data, child) {
+ List chats = List.empty(growable: true);
+
+ for (var element in data.contacts) {
+ chats.add(ListTile(
+ title: Text(element.name),
+ subtitle: Text("${element.lastTime}: ${element.lastMessage}".replaceAll("\n", " "), overflow: TextOverflow.ellipsis),
+ trailing: element.unreadMessages ? const Icon(Icons.new_releases_outlined) : null,
+ leading: CircleAvatar(
+ foregroundImage: element.isGroup ? null : Image.network(element.profilePicture).image,
+ backgroundColor: Theme.of(context).primaryColor,
+ foregroundColor: Colors.white,
+ child: element.isGroup ? const Icon(Icons.group) : const Icon(Icons.person),
+ ),
+ onTap: () {
+ Navigator.of(context).push(MaterialPageRoute(builder: (context) {
+ return ChatView(
+ userToken: element.userToken,
+ );
+ }));
+ },
+ ));
+ }
+
+ return LoadingPacket(packet: data, child: ListView(children: chats));
+ },
+ );
+ }
+}
+
+//
+// List parseChats(String json) {
+// final parsed = jsonDecode(json).cast