diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..29a3a50
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,43 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..d2765fc
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "54e66469a933b60ddf175f858f82eaeb97e48c8d"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ - platform: android
+ create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ - platform: ios
+ create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ - platform: linux
+ create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ - platform: macos
+ create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ - platform: web
+ create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ - platform: windows
+ create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+ base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..0d29021
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,28 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at https://dart.dev/lints.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..83300dd
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,69 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+android {
+ namespace "com.example.beta_app1"
+ compileSdk flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.example.beta_app1"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ minifyEnabled true
+ shrinkResources true
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..8515904
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/beta_app1/MainActivity.kt b/android/app/src/main/kotlin/com/example/beta_app1/MainActivity.kt
new file mode 100644
index 0000000..520d936
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/beta_app1/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.example.beta_app1
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity()
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..bc157bd
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,18 @@
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+tasks.register("clean", Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..598d13f
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx4G
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..e1ca574
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..1d6d19b
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,26 @@
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }
+ settings.ext.flutterSdkPath = flutterSdkPath()
+
+ includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
+
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+
+plugins {
+ id "dev.flutter.flutter-plugin-loader" version "1.0.0"
+ id "com.android.application" version "7.3.0" apply false
+ id "org.jetbrains.kotlin.android" version "1.7.10" apply false
+}
+
+include ":app"
diff --git a/flutter_01.png b/flutter_01.png
new file mode 100644
index 0000000..bbf2159
Binary files /dev/null and b/flutter_01.png differ
diff --git a/fonts/Poppins-Bold.ttf b/fonts/Poppins-Bold.ttf
new file mode 100644
index 0000000..00559ee
Binary files /dev/null and b/fonts/Poppins-Bold.ttf differ
diff --git a/fonts/Poppins-Italic.ttf b/fonts/Poppins-Italic.ttf
new file mode 100644
index 0000000..12b7b3c
Binary files /dev/null and b/fonts/Poppins-Italic.ttf differ
diff --git a/fonts/Poppins-Regular.ttf b/fonts/Poppins-Regular.ttf
new file mode 100644
index 0000000..9f0c71b
Binary files /dev/null and b/fonts/Poppins-Regular.ttf differ
diff --git a/images/ahri_coven.gif b/images/ahri_coven.gif
new file mode 100644
index 0000000..cf6fbb7
Binary files /dev/null and b/images/ahri_coven.gif differ
diff --git a/images/ahri_icon.jpg b/images/ahri_icon.jpg
new file mode 100644
index 0000000..09618dd
Binary files /dev/null and b/images/ahri_icon.jpg differ
diff --git a/images/ahri_ori.gif b/images/ahri_ori.gif
new file mode 100644
index 0000000..3a08ee7
Binary files /dev/null and b/images/ahri_ori.gif differ
diff --git a/images/arga.jpg b/images/arga.jpg
new file mode 100644
index 0000000..88beb63
Binary files /dev/null and b/images/arga.jpg differ
diff --git a/images/hidroponik.png b/images/hidroponik.png
new file mode 100644
index 0000000..ac8ae90
Binary files /dev/null and b/images/hidroponik.png differ
diff --git a/images/nature.gif b/images/nature.gif
new file mode 100644
index 0000000..234d2c9
Binary files /dev/null and b/images/nature.gif differ
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..7c56964
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 12.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..b711c81
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,616 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+ 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 PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy 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 = ""; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 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 */
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ 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 */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 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 = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 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 */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 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;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ 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;
+ alwaysOutOfDate = 1;
+ 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 */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency 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;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ 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;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ 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 = 12.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.betaApp1;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.betaApp1.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.betaApp1.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.betaApp1.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ 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;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ 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 = 12.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;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ 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;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ 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 = 12.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.betaApp1;
+ 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.betaApp1;
+ 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 */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 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..8e3ca5d
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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..7353c41
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..797d452
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..6ed2d93
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..4cd7b00
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..fe73094
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..321773c
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..797d452
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..502f463
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..0ec3034
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..0ec3034
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..e9f5fea
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..84ac32a
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..8953cba
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..0467bf1
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..725aab8
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Beta App1
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ beta_app1
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/lib/backup/bakcup.dart b/lib/backup/bakcup.dart
new file mode 100644
index 0000000..ece3500
--- /dev/null
+++ b/lib/backup/bakcup.dart
@@ -0,0 +1,474 @@
+// import 'package:flutter/material.dart';
+// import 'package:shared_preferences/shared_preferences.dart';
+// import 'package:mqtt_client/mqtt_server_client.dart';
+// import 'package:mqtt_client/mqtt_client.dart';
+
+// import 'package:beta_app1/login/api_service.dart';
+// import 'package:beta_app1/login/user.dart';
+// import 'package:beta_app1/login/login.dart';
+// import 'package:beta_app1/page/control.dart';
+// import 'package:beta_app1/page/monitoring.dart';
+// import 'package:beta_app1/page/info.dart';
+// import 'package:beta_app1/page/homecontent.dart';
+
+// class HomePage extends StatefulWidget {
+// @override
+// _HomePageState createState() => _HomePageState();
+// }
+
+// class _HomePageState extends State {
+// int _currentIndex = 0;
+// bool _isConnected = false;
+// late MqttServerClient _client;
+// final ApiService apiService = ApiService();
+
+// List _children = [];
+// @override
+// void initState() {
+// super.initState();
+// _initializeClient();
+// }
+
+// void _initializeClient() async {
+// final broker = '192.168.0.111';
+// final port = 1883; // MQTT default port
+// final clientId = 'Mqqt_Flutter';
+
+// _client = MqttServerClient(broker, clientId);
+// _client.port = port;
+// _client.keepAlivePeriod = 20;
+// _client.connectTimeoutPeriod = 2000;
+// _client.onConnected = _onConnected;
+
+// // Membuat objek MqttConnectMessage dengan autentikasi
+// final connMess = MqttConnectMessage()
+// .withClientIdentifier(clientId)
+// .withWillTopic('willtopic')
+// .withWillMessage('My Will message')
+// .startClean()
+// .withWillQos(MqttQos.atLeastOnce);
+// print('EXAMPLE::Mosquitto client Connecting....');
+// _client.connectionMessage = connMess;
+
+// try {
+// await _client.connect();
+// setState(() {
+// _isConnected = true;
+// });
+// } catch (e) {
+// print('Exception: $e');
+// _showErrorDialog('Failed to connect to MQTT broker');
+// }
+
+// _children = [
+// HomeContent(),
+// SensorMonitoringScreen(),
+// ControlScreen(
+// client: _client,
+// ),
+// InfoScreen(),
+// ];
+// }
+
+// void onTabTapped(int index) {
+// setState(() {
+// _currentIndex = index;
+// });
+// }
+
+// Future removeAuthToken() async {
+// final prefs = await SharedPreferences.getInstance();
+// await prefs.remove('auth_token');
+// }
+
+// void _logout() async {
+// final prefs = await SharedPreferences.getInstance();
+// final token = prefs.getString('auth_token');
+
+// if (token != null) {
+// try {
+// await apiService.logout(token);
+// await removeAuthToken();
+// Navigator.pushReplacement(
+// context,
+// MaterialPageRoute(builder: (context) => LoginPage()),
+// );
+// } catch (e) {
+// _showErrorDialog('Failed to logout. Please try again');
+// }
+// }
+// }
+
+// void _showErrorDialog(String message) {
+// showDialog(
+// context: context,
+// builder: (BuildContext context) {
+// return AlertDialog(
+// title: Text('Error'),
+// content: Text(message),
+// actions: [
+// TextButton(
+// onPressed: () {
+// Navigator.of(context).pop();
+// },
+// child: Text('Ok'),
+// ),
+// ],
+// );
+// },
+// );
+// }
+
+// void _toggleConnection() async {
+// if (_isConnected) {
+// _client.disconnect();
+// setState(() {
+// _isConnected = false;
+// });
+// } else {
+// final broker = '192.168.0.111';
+// final port = 1883; // MQTT default port
+// final clientId = 'Mqqt_Flutter';
+
+// _client = MqttServerClient(broker, clientId);
+// _client.port = port;
+// _client.keepAlivePeriod = 20;
+// _client.connectTimeoutPeriod = 2000;
+// _client.onConnected = _onConnected;
+
+// // Membuat objek MqttConnectMessage dengan autentikasi
+// final connMess = MqttConnectMessage()
+// .withClientIdentifier(clientId)
+// .withWillTopic('willtopic')
+// .withWillMessage('My Will message')
+// .startClean()
+// .withWillQos(MqttQos.atLeastOnce);
+// print('EXAMPLE::Mosquitto client Connecting....');
+// _client.connectionMessage = connMess;
+
+// try {
+// await _client.connect();
+// setState(() {
+// _isConnected = true;
+// });
+// } catch (e) {
+// print('Exception: $e');
+// _showErrorDialog('Failed to connect to MQTT broker');
+// }
+// }
+// }
+
+// void _onConnected() {
+// print('Connected');
+// }
+
+// @override
+// Widget build(BuildContext context) {
+// return Scaffold(
+// appBar: AppBar(
+// title: Text(
+// ['Dashboard', 'Monitoring', 'Control', 'Info'][_currentIndex],
+// style: TextStyle(fontWeight: FontWeight.bold),
+// ),
+// centerTitle: true,
+// ),
+// drawer: Drawer(
+// child: FutureBuilder>(
+// future: apiService.fetchUsers(),
+// builder: (context, snapshot) {
+// if (snapshot.hasData) {
+// List? users = snapshot.data;
+// return ListView(
+// padding: EdgeInsets.zero,
+// children: [
+// UserAccountsDrawerHeader(
+// accountName: Text(users!.first.fullname),
+// accountEmail: Text(users.first.username),
+// currentAccountPicture: CircleAvatar(
+// backgroundImage: AssetImage('images/ahri_icon.jpg'),
+// ),
+// decoration: BoxDecoration(
+// color: Colors.green,
+// ),
+// ),
+// ListTile(
+// leading: Icon(Icons.logout),
+// title: Text('Logout'),
+// onTap: _logout,
+// ),
+// ],
+// );
+// } else if (snapshot.hasError) {
+// return Text('${snapshot.error}');
+// }
+// return Center(child: CircularProgressIndicator());
+// },
+// ),
+// ),
+// body: Stack(
+// children: [
+// AnimatedSwitcher(
+// duration: Duration(milliseconds: 300),
+// child: _children[_currentIndex],
+// ),
+// ],
+// ),
+// bottomNavigationBar: BottomNavigationBar(
+// currentIndex: _currentIndex,
+// onTap: onTabTapped,
+// items: const [
+// BottomNavigationBarItem(
+// icon: Icon(Icons.home_filled),
+// label: 'Home',
+// ),
+// BottomNavigationBarItem(
+// icon: Icon(Icons.monitor),
+// label: 'Monitor',
+// ),
+// BottomNavigationBarItem(
+// icon: Icon(Icons.settings),
+// label: 'Control',
+// ),
+// BottomNavigationBarItem(
+// icon: Icon(Icons.info),
+// label: 'Info',
+// ),
+// ],
+// type: BottomNavigationBarType.fixed,
+// selectedItemColor: Colors.green,
+// unselectedItemColor: Colors.grey,
+// showSelectedLabels: true,
+// showUnselectedLabels: false,
+// selectedLabelStyle: TextStyle(
+// fontWeight: FontWeight.bold,
+// ),
+// ),
+// floatingActionButton: FloatingActionButton(
+// onPressed: _toggleConnection,
+// child: Icon(_isConnected ? Icons.wifi : Icons.wifi_off),
+// backgroundColor: _isConnected ? Colors.green : Colors.red,
+// ),
+// floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
+// );
+// }
+// }
+
+
+// connect_error) {
+// die("Connection failed: " . $conn->connect_error);
+// }
+
+// // Query to get data from the first table
+// $sql1 = "SELECT x, y1, y2 FROM table1";
+// $result1 = $conn->query($sql1);
+
+// $data1 = array();
+// if ($result1->num_rows > 0) {
+// while($row = $result1->fetch_assoc()) {
+// $data1[] = $row;
+// }
+// }
+
+// // Query to get data from the second table
+// $sql2 = "SELECT x, y FROM table2";
+// $result2 = $conn->query($sql2);
+
+// $data2 = array();
+// if ($result2->num_rows > 0) {
+// while($row = $result2->fetch_assoc()) {
+// $data2[] = $row;
+// }
+// }
+
+// $conn->close();
+
+// header('Content-Type: application/json');
+// echo json_encode(array('table1' => $data1, 'table2' => $data2));
+// ?>
+
+
+// import 'package:flutter/material.dart';
+// import 'package:mqtt_client/mqtt_client.dart';
+// import 'package:mqtt_client/mqtt_server_client.dart';
+
+// import 'package:beta_app1/widget/monitoring/TdsMonitor.dart';
+// import 'package:beta_app1/widget/monitoring/WaterflowMonitoring.dart';
+// import 'package:beta_app1/widget/monitoring/Ultrasonik.dart';
+
+// class SensorMonitoringScreen extends StatefulWidget {
+// final MqttServerClient client;
+
+// SensorMonitoringScreen({required this.client});
+
+// @override
+// _SensorMonitoringScreenState createState() => _SensorMonitoringScreenState();
+// }
+
+// class _SensorMonitoringScreenState extends State {
+// double? tdsValue;
+// double? waterflow1Value;
+// double? waterflow2Value;
+// double? ultrasonicValue;
+
+// @override
+// void initState() {
+// super.initState();
+// _subscribeToTopics();
+// }
+
+// void _subscribeToTopics() {
+// if (widget.client.connectionStatus!.state ==
+// MqttConnectionState.connected) {
+// widget.client.subscribe('tds_topic', MqttQos.atMostOnce);
+// widget.client.subscribe('waterflow1_topic', MqttQos.atLeastOnce);
+// widget.client.subscribe('waterflow2_topic', MqttQos.atLeastOnce);
+// widget.client.subscribe('ultrasonic_topic', MqttQos.atLeastOnce);
+
+// widget.client.updates!.listen(
+// (List> messages) {
+// final message = messages[0].payload as MqttPublishMessage;
+// final payload =
+// MqttPublishPayload.bytesToStringAsString(message.payload.message);
+
+// double? value;
+// try {
+// value = double.parse(payload);
+// } catch (e) {
+// print('Error parsing payload: $e');
+// }
+
+// setState(() {
+// switch (messages[0].topic) {
+// case 'tds_topic':
+// tdsValue = value;
+// break;
+// case 'waterflow1_topic':
+// waterflow1Value = value;
+// break;
+// case 'waterflow2_topic':
+// waterflow2Value = value;
+// break;
+// case 'ultrasonic_topic':
+// ultrasonicValue = value;
+// break;
+// default:
+// print('Unknown topic: ${messages[0].topic}');
+// }
+// });
+// },
+// );
+// } else {
+// print('MQTT Client is not connected');
+// }
+// }
+
+// @override
+// Widget build(BuildContext context) {
+// return Scaffold(
+// appBar: AppBar(
+// toolbarHeight: 0,
+// titleSpacing: 0,
+// ),
+// body: SingleChildScrollView(
+// child: Padding(
+// padding: EdgeInsets.all(16.0),
+// child: Column(
+// crossAxisAlignment: CrossAxisAlignment.stretch,
+// children: [
+// TDSMonitor(value: tdsValue ?? 0.0),
+// SizedBox(height: 16.0),
+// WaterflowMonitor(
+// waterflow1Value: waterflow1Value ?? 0.0,
+// waterflow2Value: waterflow2Value ?? 0.0,
+// ),
+// SizedBox(height: 16.0),
+// UltrasonicMonitor(
+// ultrasonicValue: ultrasonicValue ?? 0.0,
+// ),
+// ],
+// ),
+// ),
+// ),
+// );
+// }
+// }
+
+
+// import 'package:flutter/material.dart';
+
+// class UltrasonicMonitor extends StatelessWidget {
+// final double value;
+
+// UltrasonicMonitor({required this.value});
+
+// @override
+// Widget build(BuildContext context) {
+// return Container(
+// padding: EdgeInsets.all(16.0),
+// decoration: BoxDecoration(
+// color: Colors.grey.withOpacity(0.2),
+// borderRadius: BorderRadius.circular(8.0),
+// ),
+// child: Row(
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
+// children: [
+// Text(
+// 'Ultrasonic',
+// style: TextStyle(
+// fontSize: 18.0,
+// fontWeight: FontWeight.bold,
+// ),
+// ),
+// SizedBox(
+// height: 200.0, // Tinggi maksimum container
+// child: Stack(
+// alignment: Alignment.bottomCenter,
+// children: [
+// Container(
+// width: 50.0,
+// decoration: BoxDecoration(
+// color: Colors.blue.withOpacity(0.2),
+// borderRadius: BorderRadius.circular(8.0),
+// ),
+// ),
+// ConstrainedBox(
+// constraints: BoxConstraints(
+// maxHeight: 200.0), // Batasi tinggi maksimum
+// child: AnimatedContainer(
+// duration: Duration(milliseconds: 500),
+// width: 50.0,
+// height: value * 2, // Ubah menjadi nilai yang sesuai
+// decoration: BoxDecoration(
+// color: Colors.blue,
+// borderRadius: BorderRadius.circular(8.0),
+// ),
+// ),
+// ),
+// Positioned(
+// bottom: value * 2 + 8.0, // Ubah menjadi nilai yang sesuai
+// child: Text(
+// '${value.toStringAsFixed(2)} cm',
+// style: TextStyle(
+// fontSize: 16.0,
+// fontWeight: FontWeight.bold,
+// ),
+// ),
+// ),
+// ],
+// ),
+// ),
+// ],
+// ),
+// );
+// }
+// }
\ No newline at end of file
diff --git a/lib/login/api_service.dart b/lib/login/api_service.dart
new file mode 100644
index 0000000..43a6b13
--- /dev/null
+++ b/lib/login/api_service.dart
@@ -0,0 +1,48 @@
+import 'dart:convert';
+import 'package:http/http.dart' as http;
+import 'package:shared_preferences/shared_preferences.dart';
+import 'user.dart';
+
+class ApiService {
+ static String baseUrl = '';
+
+ static Future initializeBaseUrl() async {
+ final prefs = await SharedPreferences.getInstance();
+ final mqttServerIp = prefs.getString('mqtt_server_ip') ?? '192.168.48.153';
+ baseUrl = 'http://$mqttServerIp/test_api/';
+ }
+
+ Future> fetchUsers() async {
+ if (baseUrl.isEmpty) {
+ await initializeBaseUrl();
+ }
+
+ final prefs = await SharedPreferences.getInstance();
+ final username = prefs.getString('auth_username');
+
+ final url = username != null
+ ? Uri.parse('$baseUrl/get_data.php?username=$username')
+ : Uri.parse('$baseUrl/get_data.php');
+
+ final response = await http.get(url);
+
+ if (response.statusCode == 200) {
+ final List jsonList = jsonDecode(response.body);
+ return jsonList.map((json) => User.fromJson(json)).toList();
+ } else {
+ throw Exception('Failed to fetch users');
+ }
+ }
+
+ Future logout(String token) async {
+ final url = Uri.parse('$baseUrl/logout.php');
+ final response = await http.post(
+ url,
+ body: {'token': token},
+ );
+
+ if (response.statusCode != 200) {
+ throw Exception('Failed to logout');
+ }
+ }
+}
diff --git a/lib/login/login.dart b/lib/login/login.dart
new file mode 100644
index 0000000..e8166a8
--- /dev/null
+++ b/lib/login/login.dart
@@ -0,0 +1,270 @@
+// ignore_for_file: use_build_context_synchronously
+
+import 'package:flutter/material.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'register.dart';
+import 'dart:async';
+import 'dart:convert';
+import 'package:http/http.dart' as http;
+import 'package:beta_app1/page/dashboard.dart';
+
+class LoginPage extends StatefulWidget {
+ const LoginPage({super.key});
+
+ @override
+ State createState() => _LoginPageState();
+}
+
+class _LoginPageState extends State {
+ TextEditingController usernameController = TextEditingController();
+ TextEditingController passwordController = TextEditingController();
+ bool _obscureText = true;
+
+ @override
+ void initState() {
+ super.initState();
+ _cekLogin();
+ }
+
+ Future _prosesLogin() async {
+ if (usernameController.text.isEmpty || passwordController.text.isEmpty) {
+ _showDialog('Login Gagal', 'Harap isi semua field.', false);
+ return;
+ }
+
+ final prefs = await SharedPreferences.getInstance();
+ String mqttServerIp =
+ prefs.getString('mqtt_server_ip') ?? '192.168.183.153';
+ String url = 'http://$mqttServerIp/test_api/login.php';
+
+ final response = await http.post(
+ Uri.parse(url),
+ body: {
+ "username": usernameController.text,
+ "password": passwordController.text,
+ },
+ );
+
+ if (response.statusCode == 200) {
+ final responseBody = json.decode(response.body);
+
+ if (responseBody['success']) {
+ final datauser = responseBody['data'];
+ final token = datauser['token'];
+ final username = datauser['username'];
+
+ await saveAuthToken(
+ token, username); // Simpan token ke SharedPreferences
+
+ _showDialog(
+ 'Login Berhasil', 'Selamat datang, ${datauser['fullname']}!', true);
+ } else {
+ _showDialog('Login Gagal', responseBody['message'], false);
+ }
+ } else {
+ _showDialog('Login Gagal', 'Terjadi kesalahan pada server.', false);
+ }
+ }
+
+ Future saveAuthToken(String token, String username) async {
+ if (token.isNotEmpty && username.isNotEmpty) {
+ final prefs = await SharedPreferences.getInstance();
+ await prefs.setString('auth_username', username);
+ await prefs.setString('auth_token', token);
+ } else {
+ _showDialog(
+ 'Upaya Login Gagal', 'Cek Kembali Username dan Password', false);
+ }
+ }
+
+ Future getAuthToken() async {
+ final prefs = await SharedPreferences.getInstance();
+ return prefs.getString('auth_token');
+ }
+
+ Future _cekLogin() async {
+ final authToken = await getAuthToken();
+ if (authToken != null) {
+ Navigator.pushReplacement(
+ context, MaterialPageRoute(builder: (context) => HomePage()));
+ }
+ }
+
+ void _showDialog(String title, String content, bool isSuccess) {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return AlertDialog(
+ title: Text(title),
+ content: Text(content),
+ actions: [
+ TextButton(
+ child: const Text("OK"),
+ onPressed: () {
+ Navigator.of(context).pop();
+ if (isSuccess) {
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(builder: (context) => HomePage()),
+ );
+ }
+ },
+ ),
+ ],
+ );
+ },
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: Center(
+ child: SingleChildScrollView(
+ child: Padding(
+ padding: const EdgeInsets.all(16.0),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Image.asset(
+ "images/nature.gif",
+ height: 200,
+ width: 200,
+ ),
+ const SizedBox(height: 25),
+ Card(
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(15.0),
+ ),
+ elevation: 8,
+ margin: const EdgeInsets.symmetric(horizontal: 16.0),
+ child: Padding(
+ padding: const EdgeInsets.all(20.0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Center(
+ child: Text(
+ 'Login',
+ style: TextStyle(
+ fontSize: 24.0,
+ fontFamily: 'Poppins',
+ fontWeight: FontWeight.bold,
+ color: Color.fromARGB(150, 0, 0, 0),
+ ),
+ ),
+ ),
+ const SizedBox(height: 10),
+ TextFormField(
+ controller: usernameController,
+ decoration: InputDecoration(
+ labelText: 'Username',
+ prefixIcon: const Icon(Icons.person),
+ border: const OutlineInputBorder(
+ borderRadius:
+ BorderRadius.all(Radius.circular(12.0)),
+ ),
+ hintText: 'Please input your username',
+ hintStyle: TextStyle(
+ color: Colors.black.withOpacity(0.25),
+ fontSize: 14.0,
+ ),
+ ),
+ ),
+ const SizedBox(height: 10),
+ TextFormField(
+ controller: passwordController,
+ obscureText: _obscureText,
+ decoration: InputDecoration(
+ labelText: 'Password',
+ prefixIcon: const Icon(Icons.password),
+ border: const OutlineInputBorder(
+ borderRadius:
+ BorderRadius.all(Radius.circular(12.0)),
+ ),
+ hintText: "Please input your password",
+ hintStyle: TextStyle(
+ color: Colors.black.withOpacity(0.25),
+ fontSize: 14.0,
+ ),
+ suffixIcon: IconButton(
+ icon: Icon(
+ _obscureText
+ ? Icons.visibility
+ : Icons.visibility_off,
+ ),
+ onPressed: () {
+ setState(() {
+ _obscureText = !_obscureText;
+ });
+ },
+ ),
+ ),
+ ),
+ const SizedBox(height: 20),
+ ElevatedButton(
+ onPressed: _prosesLogin,
+ style: ElevatedButton.styleFrom(
+ backgroundColor:
+ const Color.fromARGB(255, 41, 221, 47),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(12.0),
+ ),
+ padding: const EdgeInsets.symmetric(vertical: 16.0),
+ minimumSize: const Size(double.infinity, 50),
+ ),
+ child: const Text(
+ 'Login',
+ style: TextStyle(color: Colors.white),
+ ),
+ ),
+ const SizedBox(height: 10),
+ ElevatedButton(
+ onPressed: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => RegisterPage()),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor:
+ const Color.fromARGB(255, 255, 255, 255),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(12.0),
+ ),
+ padding: const EdgeInsets.symmetric(vertical: 16.0),
+ minimumSize: const Size(double.infinity, 50),
+ ),
+ child: const Text(
+ 'Register',
+ style: TextStyle(
+ color: Color.fromARGB(166, 26, 21, 21)),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(height: 20),
+ const Text(
+ "Apps Made For",
+ style: TextStyle(color: Colors.black, fontSize: 10),
+ ),
+ const Text(
+ "Nutrient Hydroponic Control",
+ style: TextStyle(color: Colors.black, fontSize: 10.0),
+ ),
+ const Text(
+ "@2024",
+ style: TextStyle(color: Colors.black, fontSize: 10.0),
+ )
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/login/register.dart b/lib/login/register.dart
new file mode 100644
index 0000000..f72f0dc
--- /dev/null
+++ b/lib/login/register.dart
@@ -0,0 +1,246 @@
+import 'package:flutter/material.dart';
+import 'package:http/http.dart' as http;
+import 'login.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+class RegisterPage extends StatefulWidget {
+ RegisterPage({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _RegisterPageState();
+}
+
+class _RegisterPageState extends State {
+ TextEditingController usernameController = TextEditingController();
+ TextEditingController passwordController = TextEditingController();
+ TextEditingController fullnameController = TextEditingController();
+ bool _obscureText = true;
+
+ String usernameError = '';
+ String passwordError = '';
+
+ Future registerUser() async {
+ String username = usernameController.text.trim();
+ String password = passwordController.text.trim();
+ String fullname = fullnameController.text.trim();
+
+ // Validasi username
+ if (username.length < 6 ||
+ !RegExp(r'^(?=.*[A-Z])(?=.*[0-9])[A-Za-z0-9]+$').hasMatch(username)) {
+ setState(() {
+ usernameError =
+ 'Username harus minimal 6 karakter, mengandung huruf kapital dan angka.';
+ });
+ return;
+ } else {
+ setState(() {
+ usernameError = '';
+ });
+ }
+
+ // Validasi password
+ if (password.length < 6 ||
+ !RegExp(r'^(?=.*?[a-zA-Z])(?=.*?[0-9])(?=.*?[!@#$%^&*()_+{}|:"<>?~`]).{6,}$')
+ .hasMatch(password)) {
+ setState(() {
+ passwordError =
+ 'Password harus minimal 6 karakter, mengandung angka dan simbol.';
+ });
+ return;
+ } else {
+ setState(() {
+ passwordError = '';
+ });
+ }
+
+ // Validasi fullname (opsional)
+
+ final prefs = await SharedPreferences.getInstance();
+ String mqttServerIp = prefs.getString('mqtt_server_ip') ?? '192.168.0.1';
+ String url = 'http://$mqttServerIp/test_api/register.php';
+
+ final response = await http.post(
+ Uri.parse(url),
+ body: {
+ "username": username,
+ "password": password,
+ "fullname": fullname,
+ },
+ );
+ if (response.statusCode == 200) {
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text('Akun berhasil dibuat'),
+ duration: Duration(seconds: 2),
+ backgroundColor: Colors.green,
+ ),
+ );
+ Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const LoginPage()),
+ );
+ } else {
+ setState(() {
+ // Handle error
+ });
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Halaman Registrasi'),
+ ),
+ body: SingleChildScrollView(
+ child: Center(
+ child: Padding(
+ padding: const EdgeInsets.all(15.0),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(10.0),
+ child:
+ Image.asset("images/nature.gif", height: 200, width: 200),
+ ),
+ const SizedBox(
+ height: 10,
+ ),
+ Card(
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(15.0),
+ ),
+ elevation: 8,
+ margin: const EdgeInsets.symmetric(horizontal: 16.0),
+ child: Padding(
+ padding: const EdgeInsets.all(20.0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Center(
+ child: Text(
+ 'Register',
+ style: TextStyle(
+ fontSize: 24.0,
+ fontFamily: 'Poppins',
+ fontWeight: FontWeight.bold,
+ color: Color.fromARGB(150, 0, 0, 0),
+ ),
+ ),
+ ),
+ const SizedBox(height: 10),
+ TextFormField(
+ controller: usernameController,
+ decoration: InputDecoration(
+ prefixIcon: const Icon(Icons.person),
+ labelText: 'Username',
+ border: const OutlineInputBorder(
+ borderRadius:
+ BorderRadius.all(Radius.circular(12.0)),
+ ),
+ hintText: 'Username',
+ hintStyle: TextStyle(
+ color: const Color.fromARGB(92, 0, 0, 0)
+ .withOpacity(0.25),
+ fontSize: 14.0,
+ ),
+ ),
+ ),
+ if (usernameError.isNotEmpty)
+ Padding(
+ padding:
+ const EdgeInsets.only(top: 8.0, left: 12.0),
+ child: Text(
+ usernameError,
+ style: const TextStyle(
+ color: Colors.red,
+ fontSize: 12.0,
+ ),
+ ),
+ ),
+ const SizedBox(height: 10),
+ TextFormField(
+ controller: fullnameController,
+ decoration: InputDecoration(
+ prefixIcon: const Icon(Icons.perm_identity),
+ labelText: 'Fullname',
+ border: const OutlineInputBorder(
+ borderRadius:
+ BorderRadius.all(Radius.circular(12.0)),
+ ),
+ hintText: 'Fullname',
+ hintStyle: TextStyle(
+ color: Colors.black.withOpacity(0.25),
+ fontSize: 14.0,
+ ),
+ ),
+ ),
+ const SizedBox(height: 10),
+ TextFormField(
+ controller: passwordController,
+ obscureText: _obscureText,
+ decoration: InputDecoration(
+ prefixIcon: const Icon(Icons.password),
+ labelText: 'Password',
+ border: const OutlineInputBorder(
+ borderRadius:
+ BorderRadius.all(Radius.circular(12.0)),
+ ),
+ hintText: 'Password',
+ hintStyle: TextStyle(
+ color: Colors.black.withOpacity(0.25),
+ fontSize: 14.0,
+ ),
+ suffixIcon: IconButton(
+ icon: Icon(
+ _obscureText
+ ? Icons.visibility
+ : Icons.visibility_off,
+ ),
+ onPressed: () {
+ setState(() {
+ _obscureText = !_obscureText;
+ });
+ },
+ ),
+ ),
+ ),
+ if (passwordError.isNotEmpty)
+ Padding(
+ padding:
+ const EdgeInsets.only(top: 8.0, left: 12.0),
+ child: Text(
+ passwordError,
+ style: const TextStyle(
+ color: Colors.red,
+ fontSize: 12.0,
+ ),
+ ),
+ ),
+ const SizedBox(
+ height: 20,
+ ),
+ ElevatedButton(
+ onPressed: registerUser,
+ style: ElevatedButton.styleFrom(
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(12.0),
+ ),
+ padding: const EdgeInsets.symmetric(vertical: 16.0),
+ minimumSize: const Size(double.infinity, 50),
+ ),
+ child: const Text('Daftar'),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/login/user.dart b/lib/login/user.dart
new file mode 100644
index 0000000..3e52069
--- /dev/null
+++ b/lib/login/user.dart
@@ -0,0 +1,20 @@
+class User {
+ final String username;
+ final String fullname;
+
+ User({required this.username, required this.fullname});
+
+ factory User.fromJson(Map json) {
+ return User(
+ username: json['username'],
+ fullname: json['fullname'],
+ );
+ }
+
+ Map toJson() {
+ return {
+ 'username': username,
+ 'fullname': fullname,
+ };
+ }
+}
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..91ec6a3
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,32 @@
+import 'package:flutter/material.dart';
+
+import 'package:beta_app1/login/register.dart';
+import 'package:beta_app1/login/login.dart';
+import 'package:beta_app1/page/dashboard.dart';
+import 'package:beta_app1/splash_screen.dart'; // Pastikan ini mengarah ke splash_screen.dart
+
+void main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ runApp(MyApp());
+}
+
+class MyApp extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ title: 'Nutrify Apps',
+ debugShowCheckedModeBanner: false,
+ theme: ThemeData(
+ primarySwatch: Colors.green,
+ visualDensity: VisualDensity.adaptivePlatformDensity,
+ fontFamily: 'Poppins',
+ ),
+ home: SplashScreen(),
+ routes: {
+ '/login': (context) => const LoginPage(),
+ '/register': (context) => RegisterPage(),
+ '/home': (context) => HomePage(),
+ },
+ );
+ }
+}
diff --git a/lib/page/control.dart b/lib/page/control.dart
new file mode 100644
index 0000000..7b4f79a
--- /dev/null
+++ b/lib/page/control.dart
@@ -0,0 +1,310 @@
+import 'package:flutter/material.dart';
+import 'package:mqtt_client/mqtt_client.dart';
+import 'package:mqtt_client/mqtt_server_client.dart';
+import 'package:beta_app1/widget/control/config.dart';
+import 'package:beta_app1/widget/control/ui_component.dart';
+import 'package:beta_app1/widget/control/logic_function.dart';
+
+class ControlScreen extends StatefulWidget {
+ final MqttServerClient client;
+
+ ControlScreen({required this.client});
+
+ @override
+ _ControlScreenState createState() => _ControlScreenState();
+}
+
+class _ControlScreenState extends State
+ with AutomaticKeepAliveClientMixin {
+ bool isManualMode = true;
+ bool _switchPump1 = false;
+ bool _switchPump2 = false;
+ bool _switchPump3 = false;
+ bool _switchUltrasonic = false;
+ bool _autoCycleNutrisi = false;
+
+ double tdsMin = 0.0;
+ double tdsMax = 0.0;
+ double currentTDS = 0.0;
+ double ultrasonicLevel = 0.0;
+
+ @override
+ void initState() {
+ super.initState();
+
+ BusinessLogic.loadPreferences().then((prefs) {
+ setState(() {
+ _switchPump1 = prefs.getBool('switchPump1') ?? false;
+ _switchPump2 = prefs.getBool('switchPump2') ?? false;
+ _switchPump3 = prefs.getBool('switchPump3') ?? false;
+ _switchUltrasonic = prefs.getBool('switchUltrasonic') ?? false;
+ _autoCycleNutrisi = prefs.getBool('autoCycleNutrisi') ?? false;
+ });
+ });
+
+ BusinessLogic.getTDSValues().then((values) {
+ setState(() {
+ tdsMin = values['initialTDS'] ?? 0.0;
+ tdsMax = values['finalTDS'] ?? 0.0;
+ });
+ });
+
+ if (widget.client.connectionStatus!.state ==
+ MqttConnectionState.connected) {
+ widget.client.updates!.listen((List> c) {
+ final MqttPublishMessage message = c[0].payload as MqttPublishMessage;
+ final payload =
+ MqttPublishPayload.bytesToStringAsString(message.payload.message);
+
+ switch (c[0].topic) {
+ case 'tds_topic':
+ setState(() {
+ currentTDS = double.parse(payload);
+ });
+ break;
+ case 'ultrasonic_topic':
+ setState(() {
+ ultrasonicLevel = double.parse(payload);
+ });
+ break;
+ case 'control':
+ setState(() {});
+ }
+ });
+
+ widget.client.subscribe('tds_topic', MqttQos.atMostOnce);
+ widget.client.subscribe('ultrasonic_topic', MqttQos.atMostOnce);
+ widget.client.subscribe('control', MqttQos.atMostOnce);
+ } else {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return AlertDialog(
+ title: Text('Koneksi MQTT'),
+ content: Text('Tolong hubungkan dengan MQTT terlebih dahulu'),
+ actions: [
+ TextButton(
+ child: Text('OK'),
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ ),
+ ],
+ );
+ },
+ );
+ });
+ }
+ }
+
+ void handleManualSwitchChange(int pumpNumber, bool value) {
+ if (widget.client.connectionStatus!.state ==
+ MqttConnectionState.connected) {
+ setState(() {
+ switch (pumpNumber) {
+ case 1:
+ _switchPump1 = value;
+ break;
+ case 2:
+ _switchPump2 = value;
+ break;
+ case 3:
+ _switchPump3 = value;
+ break;
+ case 4:
+ _switchUltrasonic = value;
+ break;
+ }
+ });
+ BusinessLogic.publishMessage(widget.client, Config.manualControlTopic,
+ value ? 'on$pumpNumber' : 'off$pumpNumber');
+ BusinessLogic.savePreferences({
+ 'switchPump1': _switchPump1,
+ 'switchPump2': _switchPump2,
+ 'switchPump3': _switchPump3,
+ 'switchUltrasonic': _switchUltrasonic,
+ 'autoCycleNutrisi': _autoCycleNutrisi,
+ });
+ } else {
+ _showMQTTDisconnectedDialog();
+ }
+ }
+
+ void handleAutoSwitchChange(bool value) {
+ if (widget.client.connectionStatus!.state ==
+ MqttConnectionState.connected) {
+ setState(() {
+ _autoCycleNutrisi = value;
+ });
+ BusinessLogic.publishMessage(widget.client, Config.manualControlTopic,
+ value ? 'onAuto' : 'offAuto');
+ BusinessLogic.savePreferences({
+ 'autoCycleNutrisi': _autoCycleNutrisi,
+ });
+ } else {
+ _showMQTTDisconnectedDialog();
+ }
+ }
+
+ void _showMQTTDisconnectedDialog() {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return AlertDialog(
+ title: Text('Koneksi MQTT'),
+ content: Text('Tolong hubungkan dengan MQTT terlebih dahulu'),
+ actions: [
+ TextButton(
+ child: Text('OK'),
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ ),
+ ],
+ );
+ },
+ );
+ }
+
+ void showCalibrationDialog() {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return CalibrationDialog(
+ initialTDS: tdsMin,
+ finalTDS: tdsMax,
+ onSave: (initialTDS, finalTDS) {
+ setState(() {
+ tdsMin = initialTDS;
+ tdsMax = finalTDS;
+ });
+ BusinessLogic.saveTDSValues(initialTDS, finalTDS);
+ },
+ mqttClient: widget.client,
+ );
+ },
+ );
+ }
+
+ @override
+ bool get wantKeepAlive => true;
+
+ @override
+ Widget build(BuildContext context) {
+ super.build(context);
+ return Scaffold(
+ appBar: AppBar(
+ centerTitle: true,
+ toolbarHeight: 0,
+ titleSpacing: 0,
+ ),
+ body: SingleChildScrollView(
+ child: Padding(
+ padding: const EdgeInsets.all(16.0),
+ child: Column(
+ children: [
+ ModeSwitch(
+ isManualMode: isManualMode,
+ onModeChanged: (mode) {
+ setState(() {
+ isManualMode = mode;
+ });
+ },
+ ),
+ const SizedBox(height: 20),
+ if (isManualMode) ...[
+ ControlButton(
+ title: 'Pompa 1',
+ subtitle: 'Pompa mengarah ke sensor TDS',
+ isActive: _switchPump1,
+ onPressed: () {
+ handleManualSwitchChange(1, !_switchPump1);
+ },
+ activeIcon: Icons.power,
+ inactiveIcon: Icons.power_off,
+ ),
+ SizedBox(height: 16.0),
+ ControlButton(
+ title: 'Pompa 2',
+ subtitle: 'Pompa Nutrisi A dan sensor waterflow 1',
+ isActive: _switchPump2,
+ onPressed: () {
+ handleManualSwitchChange(2, !_switchPump2);
+ },
+ activeIcon: Icons.power,
+ inactiveIcon: Icons.power_off,
+ ),
+ SizedBox(height: 16.0),
+ ControlButton(
+ title: 'Pompa 3',
+ subtitle: 'Pompa Nutrisi B dan sensor waterflow 2',
+ isActive: _switchPump3,
+ onPressed: () {
+ handleManualSwitchChange(3, !_switchPump3);
+ },
+ activeIcon: Icons.power,
+ inactiveIcon: Icons.power_off,
+ ),
+ SizedBox(height: 16.0),
+ ControlButton(
+ title: 'Sensor Ultrasonic',
+ subtitle: 'Sensor untuk mendeteksi level air',
+ isActive: _switchUltrasonic,
+ onPressed: () {
+ handleManualSwitchChange(4, !_switchUltrasonic);
+ },
+ activeIcon: Icons.sensors,
+ inactiveIcon: Icons.sensors_off,
+ ),
+ ] else ...[
+ ControlButton(
+ title: 'Siklus Nutrisi Otomatis',
+ subtitle: 'Mengatur siklus nutrisi secara otomatis',
+ isActive: _autoCycleNutrisi,
+ onPressed: () {
+ handleAutoSwitchChange(!_autoCycleNutrisi);
+ },
+ activeIcon: Icons.autorenew,
+ inactiveIcon: Icons.autorenew,
+ ),
+ SizedBox(height: 16.0),
+ ElevatedButton(
+ onPressed: () {
+ showCalibrationDialog();
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.green.shade600,
+ padding:
+ EdgeInsets.symmetric(vertical: 15.0, horizontal: 20.0),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(25.0),
+ ),
+ elevation: 10.0,
+ shadowColor: Colors.green.shade200,
+ ),
+ child: const Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Icon(Icons.science, color: Colors.white, size: 24.0),
+ SizedBox(width: 10.0),
+ Text(
+ 'Kalibrasi TDS',
+ style: TextStyle(
+ fontSize: 18.0,
+ fontWeight: FontWeight.bold,
+ color: Colors.white,
+ letterSpacing: 1.2,
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/page/dashboard.dart b/lib/page/dashboard.dart
new file mode 100644
index 0000000..1123a6b
--- /dev/null
+++ b/lib/page/dashboard.dart
@@ -0,0 +1,548 @@
+import 'dart:typed_data';
+import 'dart:async';
+import 'package:flutter/material.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:flutter_local_notifications/flutter_local_notifications.dart';
+import 'package:mqtt_client/mqtt_server_client.dart';
+import 'package:mqtt_client/mqtt_client.dart';
+import 'package:http/http.dart' as http;
+import 'dart:convert';
+
+import 'package:beta_app1/login/api_service.dart';
+import 'package:beta_app1/login/user.dart';
+import 'package:beta_app1/login/login.dart';
+import 'package:beta_app1/page/control.dart';
+import 'package:beta_app1/page/monitoring.dart';
+import 'package:beta_app1/page/info.dart';
+import 'package:beta_app1/page/homecontent.dart';
+
+final sensorData = SensorData();
+
+class HomePage extends StatefulWidget {
+ @override
+ _HomePageState createState() => _HomePageState();
+}
+
+class _HomePageState extends State {
+ int _currentIndex = 0;
+ bool _isConnected = false;
+ late MqttServerClient _client;
+ late StreamSubscription>>?
+ subscription;
+ final ApiService apiService = ApiService();
+ FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
+ FlutterLocalNotificationsPlugin();
+
+ List _children = [];
+
+ double? tdsmin;
+ double? tdsmax;
+ double? tdsnow;
+
+ @override
+ void initState() {
+ super.initState();
+ _initializeClient();
+
+ var initializationSettingsAndroid =
+ AndroidInitializationSettings('@mipmap/ic_launcher');
+ var initializationSettings =
+ InitializationSettings(android: initializationSettingsAndroid);
+ flutterLocalNotificationsPlugin
+ .initialize(initializationSettings)
+ .then((_) {
+ print('Notification plugin initialized');
+ });
+ }
+
+ void _initializeClient() async {
+ final prefs = await SharedPreferences.getInstance();
+ String mqttServerIp = prefs.getString('mqtt_server_ip') ?? '192.168.1.100';
+ String baseUrl = 'http://$mqttServerIp';
+
+ _client = MqttServerClient(mqttServerIp, 'Mqtt_Flutter');
+ _client.port = 1883;
+ _client.keepAlivePeriod = 20;
+ _client.connectTimeoutPeriod = 2000;
+ _client.onConnected = _onConnected;
+ _client.onDisconnected = _onDisconnected;
+ _client.autoReconnect = true;
+ _client.onAutoReconnect = _onAutoReconnect;
+ _client.onAutoReconnected = _onAutoReconnected;
+
+ final connMess = MqttConnectMessage()
+ .withClientIdentifier('Mqtt_Flutter')
+ .withWillTopic('willtopic')
+ .withWillMessage('My Will message')
+ .startClean()
+ .withWillQos(MqttQos.atLeastOnce);
+ print('Connecting to Mosquitto client...');
+ _client.connectionMessage = connMess;
+
+ try {
+ await _client.connect().timeout(Duration(seconds: 1));
+ setState(() {
+ _isConnected = true;
+ });
+ _subscribeToTopics();
+ } catch (e) {
+ print('Exception: $e');
+ _showErrorDialog('Failed to connect to MQTT broker');
+ }
+
+ _children = [
+ HomeContent(),
+ SensorMonitoringScreen(client: _client),
+ ControlScreen(client: _client),
+ InfoPage(),
+ ];
+ }
+
+ void _onConnected() {
+ print('Connected');
+ setState(() {
+ _isConnected = true;
+ });
+ }
+
+ void _onDisconnected() {
+ print('Disconnected');
+ setState(() {
+ _isConnected = false;
+ });
+ }
+
+ void _onAutoReconnect() {
+ print('Attempting to reconnect...');
+ setState(() {
+ _isConnected = false;
+ });
+ }
+
+ void _onAutoReconnected() {
+ print('Successfully reconnected');
+ setState(() {
+ _isConnected = true;
+ });
+ }
+
+//Fungsi untuk subscribe Topic MQTT sensor
+ void _subscribeToTopics() {
+ _client.subscribe('sensor/tds', MqttQos.atMostOnce);
+ _client.subscribe('sensor/waterflow1', MqttQos.atLeastOnce);
+ _client.subscribe('sensor/waterflow2', MqttQos.atLeastOnce);
+ _client.subscribe('sensor/ultrasonic', MqttQos.atLeastOnce);
+ _client.subscribe(
+ 'parameter', MqttQos.atLeastOnce); // Subscribe to parameter topic
+
+ subscription = _client.updates!.listen(
+ (List> messages) async {
+ final message = messages[0].payload as MqttPublishMessage;
+ final payload =
+ MqttPublishPayload.bytesToStringAsString(message.payload.message);
+ print('Received message: $payload from topic: ${messages[0].topic}');
+
+ try {
+ if (messages[0].topic == 'sensor/waterflow1' ||
+ messages[0].topic == 'sensor/waterflow2') {
+ Map data = jsonDecode(payload);
+
+ if (data.containsKey('speed_waterflow') &&
+ data['speed_waterflow'] != null &&
+ data.containsKey('total_cairan') &&
+ data['total_cairan'] != null) {
+ double flowRatePerSecond =
+ (data['speed_waterflow'] as num).toDouble();
+ double totalFlow = (data['total_cairan'] as num).toDouble();
+
+ if (mounted) {
+ setState(() {
+ if (messages[0].topic == 'sensor/waterflow1') {
+ sensorData.waterflow1Value = totalFlow;
+ sensorData.waterflow1speed = flowRatePerSecond;
+ } else if (messages[0].topic == 'sensor/waterflow2') {
+ sensorData.waterflow2Value = totalFlow;
+ sensorData.waterflow2speed = flowRatePerSecond;
+ }
+ });
+ }
+
+ // Simpan data ke database
+ await saveDataToDatabase(
+ messages[0].topic, totalFlow, flowRatePerSecond);
+ } else {
+ print('Invalid data format in ${messages[0].topic}: $data');
+ }
+ } else if (messages[0].topic == 'parameter') {
+ Map data = jsonDecode(payload);
+
+ if (data.containsKey('tdsmin') && data['tdsmin'] != null) {
+ setState(() {
+ tdsmin = (data['tdsmin'] as num).toDouble();
+ });
+ print('Updated tdsmin: $tdsmin');
+ }
+
+ if (data.containsKey('tdsmax') && data['tdsmax'] != null) {
+ setState(() {
+ tdsmax = (data['tdsmax'] as num).toDouble();
+ });
+ print('Updated tdsmax: $tdsmax');
+ }
+ } else {
+ double? value;
+ try {
+ value = double.parse(payload);
+ } catch (e) {
+ print('Error parsing payload: $e');
+ return;
+ }
+
+ if (mounted) {
+ setState(() {
+ switch (messages[0].topic) {
+ case 'sensor/tds':
+ sensorData.tdsValue = value;
+ tdsnow = value;
+ if (tdsnow != null && tdsmax != null && tdsnow! > tdsmax!) {
+ _showNotification(
+ 'TDS Alert',
+ 'Nilai TDS ($tdsnow) melebihi batas maksimum ($tdsmax). Mohon segera tambahkan air',
+ );
+ }
+ break;
+ case 'sensor/ultrasonic':
+ sensorData.ultrasonicValue = value;
+ break;
+ default:
+ print('Unknown topic: ${messages[0].topic}');
+ }
+ });
+ }
+
+ // Simpan data ke database
+ await saveDataToDatabase(messages[0].topic, value, null);
+ }
+ } catch (e) {
+ print('Exception in _subscribeToTopics: $e');
+ }
+ },
+ );
+ }
+
+ Future _showNotification(String title, String body) async {
+ print('Attempting to show notification');
+
+ final Int64List vibrationPattern = Int64List(4);
+ vibrationPattern[0] = 0;
+ vibrationPattern[1] = 1000;
+ vibrationPattern[2] = 5000;
+ vibrationPattern[3] = 2000;
+
+ final AndroidNotificationDetails androidNotificationDetails =
+ AndroidNotificationDetails(
+ 'alerts_channel',
+ 'Alerts',
+ channelDescription: 'Channel for important alerts',
+ importance: Importance.max,
+ priority: Priority.high,
+ ticker: 'ticker',
+ vibrationPattern: vibrationPattern,
+ enableVibration: true,
+ enableLights: true,
+ color: const Color.fromARGB(255, 255, 0, 0),
+ ledColor: const Color.fromARGB(255, 255, 0, 0),
+ ledOnMs: 1000,
+ ledOffMs: 500,
+ );
+
+ final NotificationDetails notificationDetails =
+ NotificationDetails(android: androidNotificationDetails);
+
+ try {
+ await flutterLocalNotificationsPlugin.show(
+ 0,
+ title,
+ body,
+ notificationDetails,
+ );
+ print('Notification shown successfully');
+ } catch (e) {
+ print('Error showing notification: $e');
+ }
+ }
+
+ Future saveTdsValues(double tdsmin, double tdsmax) async {
+ final SharedPreferences prefs = await SharedPreferences.getInstance();
+ await prefs.setDouble('tdsmin', tdsmin);
+ await prefs.setDouble('tdsmax', tdsmax);
+ }
+
+ Future