diff --git a/adminkurir/.gitignore b/adminkurir/.gitignore
new file mode 100644
index 0000000..29a3a50
--- /dev/null
+++ b/adminkurir/.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/adminkurir/.metadata b/adminkurir/.metadata
new file mode 100644
index 0000000..c2aa44b
--- /dev/null
+++ b/adminkurir/.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: "603104015dd692ea3403755b55d07813d5cf8965"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: android
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: ios
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: linux
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: macos
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: web
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: windows
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+
+ # 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/adminkurir/README.md b/adminkurir/README.md
new file mode 100644
index 0000000..7b39ce0
--- /dev/null
+++ b/adminkurir/README.md
@@ -0,0 +1,16 @@
+# adminkurir
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/adminkurir/analysis_options.yaml b/adminkurir/analysis_options.yaml
new file mode 100644
index 0000000..0d29021
--- /dev/null
+++ b/adminkurir/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/adminkurir/android/.gitignore b/adminkurir/android/.gitignore
new file mode 100644
index 0000000..55afd91
--- /dev/null
+++ b/adminkurir/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/to/reference-keystore
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/adminkurir/android/app/build.gradle b/adminkurir/android/app/build.gradle
new file mode 100644
index 0000000..a089a6f
--- /dev/null
+++ b/adminkurir/android/app/build.gradle
@@ -0,0 +1,44 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
+android {
+ namespace = "com.example.adminkurir"
+ compileSdk = flutter.compileSdkVersion
+ ndkVersion = flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = JavaVersion.VERSION_1_8
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId = "com.example.adminkurir"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://flutter.dev/to/review-gradle-config.
+ minSdk = flutter.minSdkVersion
+ targetSdk = flutter.targetSdkVersion
+ versionCode = flutter.versionCode
+ versionName = flutter.versionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig = signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source = "../.."
+}
diff --git a/adminkurir/android/app/src/debug/AndroidManifest.xml b/adminkurir/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/adminkurir/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/adminkurir/android/app/src/main/AndroidManifest.xml b/adminkurir/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..4f0d3cb
--- /dev/null
+++ b/adminkurir/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/adminkurir/android/app/src/main/kotlin/com/example/adminkurir/MainActivity.kt b/adminkurir/android/app/src/main/kotlin/com/example/adminkurir/MainActivity.kt
new file mode 100644
index 0000000..4492cb7
--- /dev/null
+++ b/adminkurir/android/app/src/main/kotlin/com/example/adminkurir/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.example.adminkurir
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity()
diff --git a/adminkurir/android/app/src/main/res/drawable-v21/launch_background.xml b/adminkurir/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/adminkurir/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/adminkurir/android/app/src/main/res/drawable/launch_background.xml b/adminkurir/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/adminkurir/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/adminkurir/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/adminkurir/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..93002ff
Binary files /dev/null and b/adminkurir/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/adminkurir/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/adminkurir/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..2a9b81e
Binary files /dev/null and b/adminkurir/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/adminkurir/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/adminkurir/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..a83f45b
Binary files /dev/null and b/adminkurir/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/adminkurir/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/adminkurir/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..de19e9e
Binary files /dev/null and b/adminkurir/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/adminkurir/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/adminkurir/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..bcd56de
Binary files /dev/null and b/adminkurir/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/adminkurir/android/app/src/main/res/values-night/styles.xml b/adminkurir/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/adminkurir/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/adminkurir/android/app/src/main/res/values/styles.xml b/adminkurir/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/adminkurir/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/adminkurir/android/app/src/profile/AndroidManifest.xml b/adminkurir/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/adminkurir/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/adminkurir/android/build.gradle b/adminkurir/android/build.gradle
new file mode 100644
index 0000000..d2ffbff
--- /dev/null
+++ b/adminkurir/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/adminkurir/android/gradle.properties b/adminkurir/android/gradle.properties
new file mode 100644
index 0000000..2597170
--- /dev/null
+++ b/adminkurir/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/adminkurir/android/gradle/wrapper/gradle-wrapper.properties b/adminkurir/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..7bb2df6
--- /dev/null
+++ b/adminkurir/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-8.3-all.zip
diff --git a/adminkurir/android/settings.gradle b/adminkurir/android/settings.gradle
new file mode 100644
index 0000000..b9e43bd
--- /dev/null
+++ b/adminkurir/android/settings.gradle
@@ -0,0 +1,25 @@
+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
+ }()
+
+ includeBuild("$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 "8.1.0" apply false
+ id "org.jetbrains.kotlin.android" version "1.8.22" apply false
+}
+
+include ":app"
diff --git a/adminkurir/assets/images/ambil.jpeg b/adminkurir/assets/images/ambil.jpeg
new file mode 100644
index 0000000..73ef483
Binary files /dev/null and b/adminkurir/assets/images/ambil.jpeg differ
diff --git a/adminkurir/assets/images/barcode.png b/adminkurir/assets/images/barcode.png
new file mode 100644
index 0000000..7ff15bb
Binary files /dev/null and b/adminkurir/assets/images/barcode.png differ
diff --git a/adminkurir/assets/images/chat.png b/adminkurir/assets/images/chat.png
new file mode 100644
index 0000000..5cd644b
Binary files /dev/null and b/adminkurir/assets/images/chat.png differ
diff --git a/adminkurir/assets/images/courier.png b/adminkurir/assets/images/courier.png
new file mode 100644
index 0000000..861d0d9
Binary files /dev/null and b/adminkurir/assets/images/courier.png differ
diff --git a/adminkurir/assets/images/kurir1.png b/adminkurir/assets/images/kurir1.png
new file mode 100644
index 0000000..8a2deed
Binary files /dev/null and b/adminkurir/assets/images/kurir1.png differ
diff --git a/adminkurir/assets/images/kurir2.png b/adminkurir/assets/images/kurir2.png
new file mode 100644
index 0000000..e7e7cc4
Binary files /dev/null and b/adminkurir/assets/images/kurir2.png differ
diff --git a/adminkurir/assets/images/kurir3.png b/adminkurir/assets/images/kurir3.png
new file mode 100644
index 0000000..06c5170
Binary files /dev/null and b/adminkurir/assets/images/kurir3.png differ
diff --git a/adminkurir/assets/images/lg.png b/adminkurir/assets/images/lg.png
new file mode 100644
index 0000000..0781c69
Binary files /dev/null and b/adminkurir/assets/images/lg.png differ
diff --git a/adminkurir/assets/images/logo.png b/adminkurir/assets/images/logo.png
new file mode 100644
index 0000000..e93077c
Binary files /dev/null and b/adminkurir/assets/images/logo.png differ
diff --git a/adminkurir/assets/images/logoputih.png b/adminkurir/assets/images/logoputih.png
new file mode 100644
index 0000000..29221fe
Binary files /dev/null and b/adminkurir/assets/images/logoputih.png differ
diff --git a/adminkurir/assets/images/map.png b/adminkurir/assets/images/map.png
new file mode 100644
index 0000000..f5abea9
Binary files /dev/null and b/adminkurir/assets/images/map.png differ
diff --git a/adminkurir/assets/images/motor.jpg b/adminkurir/assets/images/motor.jpg
new file mode 100644
index 0000000..861d0d9
Binary files /dev/null and b/adminkurir/assets/images/motor.jpg differ
diff --git a/adminkurir/assets/images/nasi_ayam.jpg b/adminkurir/assets/images/nasi_ayam.jpg
new file mode 100644
index 0000000..c7b318d
Binary files /dev/null and b/adminkurir/assets/images/nasi_ayam.jpg differ
diff --git a/adminkurir/assets/images/orang.jpg b/adminkurir/assets/images/orang.jpg
new file mode 100644
index 0000000..af4a3da
Binary files /dev/null and b/adminkurir/assets/images/orang.jpg differ
diff --git a/adminkurir/assets/images/penjual.png b/adminkurir/assets/images/penjual.png
new file mode 100644
index 0000000..8c9d957
Binary files /dev/null and b/adminkurir/assets/images/penjual.png differ
diff --git a/adminkurir/assets/images/profile.png b/adminkurir/assets/images/profile.png
new file mode 100644
index 0000000..faddaf2
Binary files /dev/null and b/adminkurir/assets/images/profile.png differ
diff --git a/adminkurir/assets/images/tanya.png b/adminkurir/assets/images/tanya.png
new file mode 100644
index 0000000..bb9ffe7
Binary files /dev/null and b/adminkurir/assets/images/tanya.png differ
diff --git a/adminkurir/ios/.gitignore b/adminkurir/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/adminkurir/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/adminkurir/ios/Flutter/AppFrameworkInfo.plist b/adminkurir/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..7c56964
--- /dev/null
+++ b/adminkurir/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/adminkurir/ios/Flutter/Debug.xcconfig b/adminkurir/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/adminkurir/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/adminkurir/ios/Flutter/Release.xcconfig b/adminkurir/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/adminkurir/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/adminkurir/ios/Runner.xcodeproj/project.pbxproj b/adminkurir/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..f58ff9f
--- /dev/null
+++ b/adminkurir/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.adminkurir;
+ 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.adminkurir.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.adminkurir.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.adminkurir.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 = AppIcon;
+ 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 = AppIcon;
+ 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.adminkurir;
+ 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.adminkurir;
+ 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/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/adminkurir/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/adminkurir/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/adminkurir/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..8e3ca5d
--- /dev/null
+++ b/adminkurir/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/adminkurir/ios/Runner.xcworkspace/contents.xcworkspacedata b/adminkurir/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/adminkurir/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/adminkurir/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/adminkurir/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/adminkurir/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/adminkurir/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/adminkurir/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/adminkurir/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/adminkurir/ios/Runner/AppDelegate.swift b/adminkurir/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..6266644
--- /dev/null
+++ b/adminkurir/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import Flutter
+import UIKit
+
+@main
+@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/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/adminkurir/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/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..d17aa4e
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..141be55
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..6bf81c1
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..b56f81f
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4428cdc
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..f93c1a6
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..84b5f80
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..6bf81c1
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..cb621d0
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..97fd9a7
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
new file mode 100644
index 0000000..0757a5b
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
new file mode 100644
index 0000000..8ee7da9
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
new file mode 100644
index 0000000..d5d96a5
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
new file mode 100644
index 0000000..db75de3
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..97fd9a7
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..459fe4b
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
new file mode 100644
index 0000000..93002ff
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
new file mode 100644
index 0000000..de19e9e
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..050f4a2
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..8b48f9b
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..a6aae78
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/adminkurir/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/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/adminkurir/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/adminkurir/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/adminkurir/ios/Runner/Base.lproj/LaunchScreen.storyboard b/adminkurir/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/adminkurir/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/adminkurir/ios/Runner/Base.lproj/Main.storyboard b/adminkurir/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/adminkurir/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/adminkurir/ios/Runner/Info.plist b/adminkurir/ios/Runner/Info.plist
new file mode 100644
index 0000000..488ae30
--- /dev/null
+++ b/adminkurir/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Adminkurir
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ adminkurir
+ 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/adminkurir/ios/Runner/Runner-Bridging-Header.h b/adminkurir/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/adminkurir/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/adminkurir/ios/RunnerTests/RunnerTests.swift b/adminkurir/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/adminkurir/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/adminkurir/lib/main.dart b/adminkurir/lib/main.dart
new file mode 100644
index 0000000..047029b
--- /dev/null
+++ b/adminkurir/lib/main.dart
@@ -0,0 +1,65 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+import 'providers/auth_provider.dart';
+import 'providers/product_provider.dart';
+import 'providers/order_provider.dart';
+import 'screens/login_screen.dart';
+import 'screens/home_screen.dart';
+import 'screens/seller/seller_history_screen.dart';
+import 'utils/constants.dart';
+
+void main() {
+ runApp(const MyApp());
+}
+
+class MyApp extends StatelessWidget {
+ const MyApp({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return MultiProvider(
+ providers: [
+ ChangeNotifierProvider(create: (_) => AuthProvider()),
+ ChangeNotifierProvider(create: (_) => ProductProvider()),
+ ChangeNotifierProvider(create: (_) => OrderProvider()),
+ ],
+ child: MaterialApp(
+ title: AppStrings.appName,
+ debugShowCheckedModeBanner: false,
+ theme: ThemeData(
+ colorScheme: ColorScheme.fromSeed(seedColor: AppColors.primary),
+ useMaterial3: true,
+ fontFamily: 'Roboto',
+ appBarTheme: const AppBarTheme(
+ backgroundColor: AppColors.primary,
+ foregroundColor: Colors.white,
+ elevation: 0,
+ centerTitle: true,
+ ),
+ elevatedButtonTheme: ElevatedButtonThemeData(
+ style: ElevatedButton.styleFrom(
+ backgroundColor: AppColors.primary,
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ ),
+ elevation: 2,
+ ),
+ ),
+ cardTheme: CardTheme(
+ elevation: 2,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ ),
+ ),
+ ),
+ initialRoute: '/login',
+ routes: {
+ '/login': (context) => const LoginScreen(),
+ '/home': (context) => const HomeScreen(),
+ '/history': (context) => const SellerHistoryScreen(),
+ },
+ ),
+ );
+ }
+}
diff --git a/adminkurir/lib/models/order_model.dart b/adminkurir/lib/models/order_model.dart
new file mode 100644
index 0000000..7593922
--- /dev/null
+++ b/adminkurir/lib/models/order_model.dart
@@ -0,0 +1,95 @@
+class Order {
+ final String id;
+ final String customerId;
+ final String sellerId;
+ final String? courierId;
+ final List items;
+ final double totalAmount;
+ final String status; // 'pending', 'confirmed', 'shipped', 'delivered', 'cancelled'
+ final String shippingAddress;
+ final String? trackingNumber;
+ final DateTime createdAt;
+ final DateTime? updatedAt;
+
+ Order({
+ required this.id,
+ required this.customerId,
+ required this.sellerId,
+ this.courierId,
+ required this.items,
+ required this.totalAmount,
+ required this.status,
+ required this.shippingAddress,
+ this.trackingNumber,
+ required this.createdAt,
+ this.updatedAt,
+ });
+
+ factory Order.fromJson(Map json) {
+ return Order(
+ id: json['id'],
+ customerId: json['customer_id'],
+ sellerId: json['seller_id'],
+ courierId: json['courier_id'],
+ items: (json['items'] as List)
+ .map((item) => OrderItem.fromJson(item))
+ .toList(),
+ totalAmount: json['total_amount'].toDouble(),
+ status: json['status'],
+ shippingAddress: json['shipping_address'],
+ trackingNumber: json['tracking_number'],
+ createdAt: DateTime.parse(json['created_at']),
+ updatedAt: json['updated_at'] != null
+ ? DateTime.parse(json['updated_at'])
+ : null,
+ );
+ }
+
+ Map toJson() {
+ return {
+ 'id': id,
+ 'customer_id': customerId,
+ 'seller_id': sellerId,
+ 'courier_id': courierId,
+ 'items': items.map((item) => item.toJson()).toList(),
+ 'total_amount': totalAmount,
+ 'status': status,
+ 'shipping_address': shippingAddress,
+ 'tracking_number': trackingNumber,
+ 'created_at': createdAt.toIso8601String(),
+ 'updated_at': updatedAt?.toIso8601String(),
+ };
+ }
+}
+
+class OrderItem {
+ final String productId;
+ final String productName;
+ final int quantity;
+ final double price;
+
+ OrderItem({
+ required this.productId,
+ required this.productName,
+ required this.quantity,
+ required this.price,
+ });
+
+ factory OrderItem.fromJson(Map json) {
+ return OrderItem(
+ productId: json['product_id'],
+ productName: json['product_name'],
+ quantity: json['quantity'],
+ price: json['price'].toDouble(),
+ );
+ }
+
+ Map toJson() {
+ return {
+ 'product_id': productId,
+ 'product_name': productName,
+ 'quantity': quantity,
+ 'price': price,
+ };
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/models/product_model.dart b/adminkurir/lib/models/product_model.dart
new file mode 100644
index 0000000..0752bea
--- /dev/null
+++ b/adminkurir/lib/models/product_model.dart
@@ -0,0 +1,55 @@
+class Product {
+ final String id;
+ final String name;
+ final String description;
+ final double price;
+ final int stock;
+ final String category;
+ final List images;
+ final String sellerId;
+ final bool isActive;
+ final DateTime createdAt;
+
+ Product({
+ required this.id,
+ required this.name,
+ required this.description,
+ required this.price,
+ required this.stock,
+ required this.category,
+ required this.images,
+ required this.sellerId,
+ this.isActive = true,
+ required this.createdAt,
+ });
+
+ factory Product.fromJson(Map json) {
+ return Product(
+ id: json['id'],
+ name: json['name'],
+ description: json['description'],
+ price: json['price'].toDouble(),
+ stock: json['stock'],
+ category: json['category'],
+ images: List.from(json['images']),
+ sellerId: json['seller_id'],
+ isActive: json['is_active'] ?? true,
+ createdAt: DateTime.parse(json['created_at']),
+ );
+ }
+
+ Map toJson() {
+ return {
+ 'id': id,
+ 'name': name,
+ 'description': description,
+ 'price': price,
+ 'stock': stock,
+ 'category': category,
+ 'images': images,
+ 'seller_id': sellerId,
+ 'is_active': isActive,
+ 'created_at': createdAt.toIso8601String(),
+ };
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/models/user_model.dart b/adminkurir/lib/models/user_model.dart
new file mode 100644
index 0000000..53c7a86
--- /dev/null
+++ b/adminkurir/lib/models/user_model.dart
@@ -0,0 +1,47 @@
+class User {
+ final String id;
+ final String name;
+ final String email;
+ final String phone;
+ final String role; // 'seller' atau 'courier'
+ final String? profileImage;
+ final String? address;
+ final bool isActive;
+
+ User({
+ required this.id,
+ required this.name,
+ required this.email,
+ required this.phone,
+ required this.role,
+ this.profileImage,
+ this.address,
+ this.isActive = true,
+ });
+
+ factory User.fromJson(Map json) {
+ return User(
+ id: json['id'],
+ name: json['name'],
+ email: json['email'],
+ phone: json['phone'],
+ role: json['role'],
+ profileImage: json['profile_image'],
+ address: json['address'],
+ isActive: json['is_active'] ?? true,
+ );
+ }
+
+ Map toJson() {
+ return {
+ 'id': id,
+ 'name': name,
+ 'email': email,
+ 'phone': phone,
+ 'role': role,
+ 'profile_image': profileImage,
+ 'address': address,
+ 'is_active': isActive,
+ };
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/providers/auth_provider.dart b/adminkurir/lib/providers/auth_provider.dart
new file mode 100644
index 0000000..bc5650b
--- /dev/null
+++ b/adminkurir/lib/providers/auth_provider.dart
@@ -0,0 +1,103 @@
+import 'package:flutter/material.dart';
+import '../models/user_model.dart';
+
+class AuthProvider with ChangeNotifier {
+ User? _currentUser;
+ bool _isLoading = false;
+ String? _error;
+
+ User? get currentUser => _currentUser;
+ bool get isLoading => _isLoading;
+ String? get error => _error;
+ bool get isLoggedIn => _currentUser != null;
+
+ // Simulasi login untuk frontend
+ Future login(String email, String password) async {
+ _isLoading = true;
+ _error = null;
+ notifyListeners();
+
+ // Simulasi delay network
+ await Future.delayed(const Duration(seconds: 2));
+
+ // Simulasi login logic
+ if (email == 'seller@example.com' && password == 'password') {
+ _currentUser = User(
+ id: '1',
+ name: 'John Seller',
+ email: email,
+ phone: '+6281234567890',
+ role: 'seller',
+ address: 'Jl. Contoh No. 123, Jakarta',
+ );
+ _isLoading = false;
+ notifyListeners();
+ return true;
+ } else if (email == 'courier@example.com' && password == 'password') {
+ _currentUser = User(
+ id: '2',
+ name: 'Mike Courier',
+ email: email,
+ phone: '+6289876543210',
+ role: 'courier',
+ address: 'Jl. Kurir No. 456, Jakarta',
+ );
+ _isLoading = false;
+ notifyListeners();
+ return true;
+ } else {
+ _error = 'Email atau password salah';
+ _isLoading = false;
+ notifyListeners();
+ return false;
+ }
+ }
+
+ Future logout() async {
+ _isLoading = true;
+ notifyListeners();
+
+ // Simulasi delay
+ await Future.delayed(const Duration(seconds: 1));
+
+ _currentUser = null;
+ _isLoading = false;
+ notifyListeners();
+ }
+
+ void clearError() {
+ _error = null;
+ notifyListeners();
+ }
+
+ // Login tanpa kredensial, hanya set user dummy sesuai role
+ Future loginTanpaKredensial(String role) async {
+ _isLoading = true;
+ _error = null;
+ notifyListeners();
+
+ await Future.delayed(const Duration(milliseconds: 500));
+
+ if (role == 'seller') {
+ _currentUser = User(
+ id: '1',
+ name: 'John Seller',
+ email: 'seller@example.com',
+ phone: '+6281234567890',
+ role: 'seller',
+ address: 'Jl. Contoh No. 123, Jakarta',
+ );
+ } else if (role == 'courier') {
+ _currentUser = User(
+ id: '2',
+ name: 'Mike Courier',
+ email: 'courier@example.com',
+ phone: '+6289876543210',
+ role: 'courier',
+ address: 'Jl. Kurir No. 456, Jakarta',
+ );
+ }
+ _isLoading = false;
+ notifyListeners();
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/providers/order_provider.dart b/adminkurir/lib/providers/order_provider.dart
new file mode 100644
index 0000000..b0d824f
--- /dev/null
+++ b/adminkurir/lib/providers/order_provider.dart
@@ -0,0 +1,148 @@
+import 'package:flutter/material.dart';
+import '../models/order_model.dart';
+
+class OrderProvider with ChangeNotifier {
+ List _orders = [];
+ bool _isLoading = false;
+ String? _error;
+
+ List get orders => _orders;
+ bool get isLoading => _isLoading;
+ String? get error => _error;
+
+ // Simulasi data pesanan
+ void loadOrders() {
+ _isLoading = true;
+ notifyListeners();
+
+ // Simulasi delay
+ Future.delayed(const Duration(seconds: 1), () {
+ _orders = [
+ Order(
+ id: '1',
+ customerId: 'customer1',
+ sellerId: '1',
+ courierId: '2',
+ items: [
+ OrderItem(
+ productId: '1',
+ productName: 'Laptop Gaming ASUS ROG',
+ quantity: 1,
+ price: 15000000,
+ ),
+ ],
+ totalAmount: 15000000,
+ status: 'shipped',
+ shippingAddress: 'Jl. Customer No. 789, Jakarta',
+ trackingNumber: 'TRK001',
+ createdAt: DateTime.now().subtract(const Duration(days: 2)),
+ ),
+ Order(
+ id: '2',
+ customerId: 'customer2',
+ sellerId: '1',
+ courierId: null,
+ items: [
+ OrderItem(
+ productId: '2',
+ productName: 'Smartphone Samsung Galaxy S24',
+ quantity: 1,
+ price: 12000000,
+ ),
+ OrderItem(
+ productId: '3',
+ productName: 'Sepatu Nike Air Max',
+ quantity: 2,
+ price: 2500000,
+ ),
+ ],
+ totalAmount: 17000000,
+ status: 'confirmed',
+ shippingAddress: 'Jl. Customer No. 456, Bandung',
+ createdAt: DateTime.now().subtract(const Duration(days: 1)),
+ ),
+ Order(
+ id: '3',
+ customerId: 'customer3',
+ sellerId: '1',
+ courierId: '2',
+ items: [
+ OrderItem(
+ productId: '4',
+ productName: 'Tas Ransel Jansport',
+ quantity: 1,
+ price: 800000,
+ ),
+ ],
+ totalAmount: 800000,
+ status: 'delivered',
+ shippingAddress: 'Jl. Customer No. 123, Surabaya',
+ trackingNumber: 'TRK002',
+ createdAt: DateTime.now().subtract(const Duration(days: 3)),
+ updatedAt: DateTime.now().subtract(const Duration(hours: 2)),
+ ),
+ ];
+ _isLoading = false;
+ notifyListeners();
+ });
+ }
+
+ void addOrder(Order order) {
+ _orders.add(order);
+ notifyListeners();
+ }
+
+ void updateOrderStatus(String orderId, String status) {
+ final index = _orders.indexWhere((order) => order.id == orderId);
+ if (index != -1) {
+ final order = _orders[index];
+ _orders[index] = Order(
+ id: order.id,
+ customerId: order.customerId,
+ sellerId: order.sellerId,
+ courierId: order.courierId,
+ items: order.items,
+ totalAmount: order.totalAmount,
+ status: status,
+ shippingAddress: order.shippingAddress,
+ trackingNumber: order.trackingNumber,
+ createdAt: order.createdAt,
+ updatedAt: DateTime.now(),
+ );
+ notifyListeners();
+ }
+ }
+
+ void assignCourier(String orderId, String courierId) {
+ final index = _orders.indexWhere((order) => order.id == orderId);
+ if (index != -1) {
+ final order = _orders[index];
+ _orders[index] = Order(
+ id: order.id,
+ customerId: order.customerId,
+ sellerId: order.sellerId,
+ courierId: courierId,
+ items: order.items,
+ totalAmount: order.totalAmount,
+ status: order.status,
+ shippingAddress: order.shippingAddress,
+ trackingNumber: order.trackingNumber,
+ createdAt: order.createdAt,
+ updatedAt: DateTime.now(),
+ );
+ notifyListeners();
+ }
+ }
+
+ List getOrdersByStatus(String status) {
+ return _orders.where((order) => order.status == status).toList();
+ }
+
+ List getOrdersBySeller(String sellerId) {
+ return _orders.where((order) => order.sellerId == sellerId).toList();
+ }
+
+ List getOrdersByCourier(String courierId) {
+ return _orders.where((order) => order.courierId == courierId).toList();
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/providers/product_provider.dart b/adminkurir/lib/providers/product_provider.dart
new file mode 100644
index 0000000..d920654
--- /dev/null
+++ b/adminkurir/lib/providers/product_provider.dart
@@ -0,0 +1,100 @@
+import 'package:flutter/material.dart';
+import '../models/product_model.dart';
+
+class ProductProvider with ChangeNotifier {
+ List _products = [];
+ bool _isLoading = false;
+ String? _error;
+
+ List get products => _products;
+ bool get isLoading => _isLoading;
+ String? get error => _error;
+
+ // Simulasi data produk
+ void loadProducts() {
+ _isLoading = true;
+ notifyListeners();
+
+ // Simulasi delay
+ Future.delayed(const Duration(seconds: 1), () {
+ _products = [
+ Product(
+ id: '1',
+ name: 'Laptop Gaming ASUS ROG',
+ description: 'Laptop gaming performa tinggi dengan GPU RTX 4060',
+ price: 15000000,
+ stock: 5,
+ category: 'Electronics',
+ images: ['https://via.placeholder.com/300x200'],
+ sellerId: '1',
+ createdAt: DateTime.now(),
+ ),
+ Product(
+ id: '2',
+ name: 'Smartphone Samsung Galaxy S24',
+ description: 'Smartphone flagship dengan kamera 200MP',
+ price: 12000000,
+ stock: 10,
+ category: 'Electronics',
+ images: ['https://via.placeholder.com/300x200'],
+ sellerId: '1',
+ createdAt: DateTime.now(),
+ ),
+ Product(
+ id: '3',
+ name: 'Sepatu Nike Air Max',
+ description: 'Sepatu olahraga dengan teknologi Air Max',
+ price: 2500000,
+ stock: 15,
+ category: 'Fashion',
+ images: ['https://via.placeholder.com/300x200'],
+ sellerId: '1',
+ createdAt: DateTime.now(),
+ ),
+ Product(
+ id: '4',
+ name: 'Tas Ransel Jansport',
+ description: 'Tas ransel berkualitas tinggi untuk sekolah/kantor',
+ price: 800000,
+ stock: 20,
+ category: 'Fashion',
+ images: ['https://via.placeholder.com/300x200'],
+ sellerId: '1',
+ createdAt: DateTime.now(),
+ ),
+ ];
+ _isLoading = false;
+ notifyListeners();
+ });
+ }
+
+ void addProduct(Product product) {
+ _products.add(product);
+ notifyListeners();
+ }
+
+ void updateProduct(Product product) {
+ final index = _products.indexWhere((p) => p.id == product.id);
+ if (index != -1) {
+ _products[index] = product;
+ notifyListeners();
+ }
+ }
+
+ void deleteProduct(String productId) {
+ _products.removeWhere((product) => product.id == productId);
+ notifyListeners();
+ }
+
+ List getProductsByCategory(String category) {
+ return _products.where((product) => product.category == category).toList();
+ }
+
+ List searchProducts(String query) {
+ return _products
+ .where((product) =>
+ product.name.toLowerCase().contains(query.toLowerCase()) ||
+ product.description.toLowerCase().contains(query.toLowerCase()))
+ .toList();
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/card_courier_history_detail_screen.dart b/adminkurir/lib/screens/courier/card_courier_history_detail_screen.dart
new file mode 100644
index 0000000..f4e6215
--- /dev/null
+++ b/adminkurir/lib/screens/courier/card_courier_history_detail_screen.dart
@@ -0,0 +1,292 @@
+import 'package:flutter/material.dart';
+import 'courier_delivery_screen.dart';
+
+class CourierHistoryDetailScreen extends StatelessWidget {
+ const CourierHistoryDetailScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.blue),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ title: const Text('Detail Pesanan', style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20)),
+ centerTitle: false,
+ ),
+ body: ListView(
+ padding: const EdgeInsets.all(16),
+ children: [
+ // Status Pengantaran
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: const Row(
+ children: [
+ Icon(Icons.access_time, color: Colors.red, size: 22),
+ SizedBox(width: 8),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Status Pengantaran', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ Text('Belum diantar', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.red)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ // Info Pesanan
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: const Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('No. Pesanan', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ Text('Waktu Pemesanan', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ],
+ ),
+ ),
+ SizedBox(width: 12),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text('TRDKN2350', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black)),
+ Text('13 Januari 2025 12:34:20', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ // Info Pelanggan
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: const Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Informasi Pelanggan', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ SizedBox(height: 8),
+ Row(
+ children: [
+ Expanded(child: Text('Nama Pelanggan', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('Dewi Sartika', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(child: Text('No Hp', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('088855552222', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(child: Text('Alamat', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('Gedung Teknologi Informasi', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(child: Text('Catatan Pengantaran', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('Lantai 1 Ruang Baca JTI', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ ],
+ ),
+ ),
+ // Daftar Pesanan
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text('Pesanan', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ const SizedBox(height: 8),
+ _buildOrderItem(),
+ const SizedBox(height: 8),
+ _buildOrderItem(),
+ ],
+ ),
+ ),
+ // Info Pembayaran
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text('Informasi Pembayaran', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ const SizedBox(height: 8),
+ _buildPaymentRow('Metode Pembayaran', 'Tunai', valueColor: Colors.blue),
+ _buildPaymentRow('Biaya Pengiriman', 'Rp 20.000'),
+ _buildPaymentRow('Total Pesanan', 'Rp 20.000'),
+ _buildPaymentRow('Nominal uang pembeli', 'Rp 20.000'),
+ _buildPaymentRow('Diskon', 'Rp 0'),
+ _buildPaymentRow('Uang Kembali', 'Rp 0'),
+ const Divider(),
+ const Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text('Total Pembayaran', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ Text('Rp 22.000', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15, color: Color.fromARGB(255, 0, 0, 0))),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ bottomNavigationBar: Padding(
+ padding: const EdgeInsets.fromLTRB(16, 0, 16, 24),
+ child: SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).push(
+ MaterialPageRoute(
+ builder: (context) => const CourierDeliveryScreen(),
+ ),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(14),
+ ),
+ textStyle: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
+ ),
+ child: const Text('Antar'),
+ ),
+ ),
+ ),
+ );
+ }
+
+ Widget _buildOrderItem() {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 4),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset('assets/images/nasi_ayam.jpg', width: 60, height: 60, fit: BoxFit.cover, errorBuilder: (context, error, stackTrace) => const Icon(Icons.person, color: Colors.blue, size: 28)),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Expanded(
+ child: Text('Nasi Ayam Geprek', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Row(
+ children: [
+ const Text('Rp 10.000', style: TextStyle(color: Colors.black87, fontWeight: FontWeight.w500, fontSize: 13)),
+ const Spacer(),
+ const Text('x1', style: TextStyle(fontSize: 13, color: Colors.black54)),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Row(
+ children: [
+ const Expanded(
+ child: Text('Kantin 2', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ),
+ const Text('Status : ', style: TextStyle(fontSize: 13, color: Colors.blue)),
+ const Text('Selesai', style: TextStyle(fontSize: 13, color: Colors.blue, fontWeight: FontWeight.bold)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildPaymentRow(String label, String value, {Color? valueColor}) {
+ return Padding(
+ padding: const EdgeInsets.symmetric(vertical: 2),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(label, style: const TextStyle(fontSize: 13, color: Colors.grey)),
+ Text(value, style: TextStyle(fontSize: 13, color: valueColor ?? Colors.black)),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_capture_screen.dart b/adminkurir/lib/screens/courier/courier_capture_screen.dart
new file mode 100644
index 0000000..41ef749
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_capture_screen.dart
@@ -0,0 +1,63 @@
+import 'package:flutter/material.dart';
+
+class CourierCaptureScreen extends StatelessWidget {
+ const CourierCaptureScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.blue,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.white),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ title: const Text('Foto Bukti Pengantaran', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 18)),
+ centerTitle: true,
+ ),
+ body: Column(
+ children: [
+ const SizedBox(height: 32),
+ // Preview kamera dummy
+ Expanded(
+ child: Center(
+ child: Container(
+ width: 260,
+ height: 360,
+ decoration: BoxDecoration(
+ color: Colors.grey[200],
+ borderRadius: BorderRadius.circular(24),
+ border: Border.all(color: Colors.grey[300]!, width: 2),
+ ),
+ child: Center(
+ child: Image.asset('assets/images/barcode.png', width: 200, fit: BoxFit.contain),
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 24),
+ // Tombol capture
+ Center(
+ child: Container(
+ width: 70,
+ height: 70,
+ decoration: const BoxDecoration(
+ color: Colors.blue,
+ shape: BoxShape.circle,
+ ),
+ child: IconButton(
+ icon: const Icon(Icons.camera, color: Colors.white, size: 36),
+ onPressed: () {
+ // Aksi ambil foto (dummy)
+ },
+ ),
+ ),
+ ),
+ const SizedBox(height: 32),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_chat_detail_screen.dart b/adminkurir/lib/screens/courier/courier_chat_detail_screen.dart
new file mode 100644
index 0000000..654e641
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_chat_detail_screen.dart
@@ -0,0 +1,189 @@
+import 'package:flutter/material.dart';
+
+class CourierChatDetailScreen extends StatelessWidget {
+ final String name;
+ final Widget avatar;
+ final String phone;
+
+ const CourierChatDetailScreen({
+ Key? key,
+ required this.name,
+ required this.avatar,
+ required this.phone,
+ }) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.black),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ titleSpacing: 0,
+ title: Row(
+ children: [
+ avatar,
+ const SizedBox(width: 10),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(name, style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.black, fontSize: 16)),
+ Text(phone, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ ],
+ ),
+ ],
+ ),
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.call, color: Colors.blue),
+ onPressed: () {},
+ ),
+ IconButton(
+ icon: const Icon(Icons.more_vert, color: Colors.black),
+ onPressed: () {},
+ ),
+ ],
+ ),
+ body: Stack(
+ children: [
+ // Background motif (pakai asset atau motif sederhana)
+ Positioned.fill(
+ child: Opacity(
+ opacity: 0.08,
+ child: Image.asset(
+ 'assets/images/chat_bg.png',
+ fit: BoxFit.cover,
+ errorBuilder: (context, error, stackTrace) => Container(),
+ ),
+ ),
+ ),
+ Column(
+ children: [
+ Expanded(
+ child: ListView(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ children: [
+ Align(
+ alignment: Alignment.centerRight,
+ child: _bubble(
+ text: 'Titik sesuai lokasi ya!',
+ time: '09:29',
+ isMe: true,
+ isRead: true,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Align(
+ alignment: Alignment.centerLeft,
+ child: _bubble(
+ text: 'Ok, ditunggu yaa',
+ time: '09:30',
+ isMe: false,
+ isRead: false,
+ ),
+ ),
+ ],
+ ),
+ ),
+ _inputBar(),
+ ],
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _bubble({required String text, required String time, required bool isMe, required bool isRead}) {
+ return Container(
+ constraints: const BoxConstraints(maxWidth: 260),
+ padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
+ decoration: BoxDecoration(
+ color: isMe ? Colors.blue : Colors.grey[200],
+ borderRadius: BorderRadius.only(
+ topLeft: const Radius.circular(16),
+ topRight: const Radius.circular(16),
+ bottomLeft: Radius.circular(isMe ? 16 : 4),
+ bottomRight: Radius.circular(isMe ? 4 : 16),
+ ),
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text(
+ text,
+ style: TextStyle(
+ color: isMe ? Colors.white : Colors.black87,
+ fontSize: 14,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text(time, style: TextStyle(fontSize: 11, color: isMe ? Colors.white70 : Colors.grey)),
+ if (isMe) ...[
+ const SizedBox(width: 4),
+ Icon(Icons.done_all, size: 15, color: Colors.white70),
+ ],
+ ],
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _inputBar() {
+ return Container(
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
+ color: Colors.white,
+ child: Row(
+ children: [
+ Expanded(
+ child: Container(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(24),
+ border: Border.all(color: Colors.grey[300]!),
+ ),
+ child: Row(
+ children: [
+ Icon(Icons.emoji_emotions_outlined, color: Colors.grey[500], size: 22),
+ const SizedBox(width: 6),
+ Expanded(
+ child: TextField(
+ decoration: const InputDecoration(
+ hintText: 'Ketik pesan di sini...',
+ border: InputBorder.none,
+ isDense: true,
+ contentPadding: EdgeInsets.symmetric(vertical: 8),
+ ),
+ ),
+ ),
+ Icon(Icons.attach_file, color: Colors.grey[500], size: 20),
+ const SizedBox(width: 4),
+ Icon(Icons.camera_alt_outlined, color: Colors.grey[500], size: 20),
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(width: 8),
+ Container(
+ decoration: const BoxDecoration(
+ color: Colors.blue,
+ shape: BoxShape.circle,
+ ),
+ child: IconButton(
+ icon: const Icon(Icons.send, color: Colors.white),
+ onPressed: () {},
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_chat_screen.dart b/adminkurir/lib/screens/courier/courier_chat_screen.dart
new file mode 100644
index 0000000..5bedf74
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_chat_screen.dart
@@ -0,0 +1,118 @@
+import 'package:flutter/material.dart';
+import 'courier_chat_detail_screen.dart';
+
+class CourierChatScreen extends StatelessWidget {
+ const CourierChatScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ automaticallyImplyLeading: false,
+ title: const Text('Chat', style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20)),
+ centerTitle: false,
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.notifications, color: Colors.blue),
+ onPressed: () {},
+ ),
+ ],
+ ),
+ body: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Padding(
+ padding: EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ child: Text('Chat kamu', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ),
+ const Divider(height: 1),
+ Expanded(
+ child: ListView(
+ children: [
+ _buildChatItem(
+ context,
+ avatar: const CircleAvatar(
+ backgroundImage: AssetImage('assets/images/orang.jpg'),
+ radius: 22,
+ ),
+ name: 'Dewi Sartika',
+ message: 'Ok, ditunggu yaa',
+ time: '09:30 WIB',
+ ),
+ _buildChatItem(
+ context,
+ avatar: const CircleAvatar(
+ backgroundColor: Colors.green,
+ child: Text('F', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 20)),
+ radius: 22,
+ ),
+ name: 'Fanessa',
+ message: 'Siap diantar kak',
+ time: '09:30 WIB',
+ ),
+ _buildChatItem(
+ context,
+ avatar: const CircleAvatar(
+ backgroundImage: AssetImage('assets/images/penjual.png'),
+ radius: 22,
+ ),
+ name: 'Dikantin Cs.',
+ message: 'Baik, Kak',
+ time: '09:15 WIB',
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildChatItem(
+ BuildContext context, {
+ required Widget avatar,
+ required String name,
+ required String message,
+ required String time,
+ }) {
+ return InkWell(
+ onTap: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => CourierChatDetailScreen(
+ name: name,
+ avatar: avatar,
+ phone: name == 'Dewi Sartika' ? '088855552222' : '-',
+ ),
+ ),
+ );
+ },
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ avatar,
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(name, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ const SizedBox(height: 2),
+ Text(message, style: const TextStyle(fontSize: 13, color: Colors.grey)),
+ ],
+ ),
+ ),
+ const SizedBox(width: 8),
+ Text(time, style: const TextStyle(fontSize: 11, color: Colors.grey)),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_dashboard_screen.dart b/adminkurir/lib/screens/courier/courier_dashboard_screen.dart
new file mode 100644
index 0000000..4d106e5
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_dashboard_screen.dart
@@ -0,0 +1,581 @@
+import 'package:flutter/material.dart';
+import 'courier_delivery_screen.dart';
+import 'card_courier_history_detail_screen.dart';
+import 'courier_capture_screen.dart';
+
+class CourierDashboardScreen extends StatefulWidget {
+ const CourierDashboardScreen({super.key});
+
+ @override
+ State createState() => _CourierDashboardScreenState();
+}
+
+class _CourierDashboardScreenState extends State with SingleTickerProviderStateMixin {
+ int _tabIndex = 0;
+
+ @override
+ void initState() {
+ super.initState();
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ // Load orders
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: PreferredSize(
+ preferredSize: const Size.fromHeight(60),
+ child: AppBar(
+ backgroundColor: Colors.blue,
+ elevation: 0,
+ automaticallyImplyLeading: false,
+ title: const Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Pesanan Kurir', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20)),
+ ),
+ actions: [
+ Padding(
+ padding: const EdgeInsets.only(right: 16),
+ child: Image.asset('assets/images/logo.png', height: 40),
+ ),
+ ],
+ ),
+ ),
+ body: Column(
+ children: [
+ // Pendapatan
+ Container(
+ color: Colors.white,
+ padding: const EdgeInsets.only(top: 18, bottom: 8),
+ child: Column(
+ children: [
+ Text('Rp 400.000', style: TextStyle(fontSize: 28, fontWeight: FontWeight.bold, color: Colors.blue[600])),
+ const SizedBox(height: 2),
+ const Text('Total Pendapatan Kurir Hari Ini', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ],
+ ),
+ ),
+ // Statistik
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
+ child: Row(
+ children: [
+ _buildStatCard('Perlu Diantar', '30', Icons.local_shipping, Colors.blue),
+ const SizedBox(width: 8),
+ _buildStatCard('Selesai', '22', Icons.check_circle, Colors.blue),
+ const SizedBox(width: 8),
+ _buildStatCard('Dibatalkan', '3', Icons.cancel, Colors.blue),
+ ],
+ ),
+ ),
+ // TabBar custom
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 12),
+ decoration: BoxDecoration(
+ border: Border(bottom: BorderSide(color: Colors.grey[300]!)),
+ ),
+ child: Row(
+ children: [
+ _buildTab('Untuk Dikirim', 0),
+ _buildTab('Konfirmasi', 1),
+ _buildTab('Dibatalkan', 2),
+ ],
+ ),
+ ),
+ // List pesanan
+ Expanded(
+ child: Builder(
+ builder: (context) {
+ if (_tabIndex == 0) {
+ // Untuk Dikirim
+ return ListView(
+ padding: const EdgeInsets.all(16),
+ children: [
+ _buildOrderCard(
+ status: 'Belum diantar',
+ statusColor: Colors.red,
+ statusBg: Colors.transparent,
+ customer: 'Dewi Sartika',
+ address: 'Gedung Teknologi Informasi',
+ address2: 'Lantai 1 Ruang Baca JTI',
+ price: 'Rp 22.000',
+ badge: '+ Rp 2.000',
+ badgeColor: Colors.blue,
+ menuCount: 2,
+ buttonText: 'Antar',
+ buttonColor: Colors.blue,
+ buttonTextColor: Colors.white,
+ buttonEnabled: true,
+ logoAsset: 'assets/images/courier.png',
+ orderId: '#TRDKN2350',
+ date: '13 Januari 2025 12:34:20',
+ ),
+ ],
+ );
+ } else if (_tabIndex == 1) {
+ // Konfirmasi
+ return ListView(
+ padding: const EdgeInsets.all(16),
+ children: [
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Badge/logo kiri
+ Container(
+ width: 44,
+ height: 44,
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ shape: BoxShape.circle,
+ ),
+ child: ClipOval(
+ child: Image.asset('assets/images/logo.png', fit: BoxFit.cover),
+ ),
+ ),
+ const SizedBox(width: 10),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ const Text('#TRDKN2350', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black)),
+ const Spacer(),
+ Text('x 2 menu', style: TextStyle(fontSize: 12, color: Colors.grey[700])),
+ ],
+ ),
+ const SizedBox(height: 2),
+ const Text('13 Januari 2025 12:34:20', style: TextStyle(fontSize: 12, color: Colors.grey)),
+ const SizedBox(height: 2),
+ const Text('Dalam pengantaran', style: TextStyle(color: Colors.blue, fontWeight: FontWeight.bold, fontSize: 14)),
+ ],
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 10),
+ // Dua kolom label-isi
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Label kiri
+ Expanded(
+ flex: 2,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: const [
+ SizedBox(height: 2),
+ Text('Dipesan oleh', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ SizedBox(height: 8),
+ Text('Alamat', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ SizedBox(height: 8),
+ Text('Catatan', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ SizedBox(height: 8),
+ Text('Biaya Pengiriman', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ],
+ ),
+ ),
+ // Isi kanan
+ Expanded(
+ flex: 3,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ const Text('Dewi Sartika', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ const SizedBox(height: 8),
+ const Text('Gedung Teknologi Informasi', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ const SizedBox(height: 8),
+ const Text('Lantai 1 Ruang Baca JTI', style: TextStyle(fontSize: 13)),
+ const SizedBox(height: 8),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ Container(
+ padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: const Text('+ Rp 2.000', style: TextStyle(color: Colors.blue, fontWeight: FontWeight.bold, fontSize: 13)),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 10),
+ Row(
+ children: [
+ const Spacer(),
+ const Text('Rp 22.000', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.blue, fontSize: 15)),
+ const SizedBox(width: 10),
+ ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).push(
+ MaterialPageRoute(
+ builder: (context) => const CourierCaptureScreen(),
+ ),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 10),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10),
+ ),
+ textStyle: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
+ ),
+ child: const Text('Foto Bukti'),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ );
+ } else {
+ // Dibatalkan
+ return ListView(
+ padding: const EdgeInsets.all(16),
+ children: [
+ _buildOrderCard(
+ status: 'Dibatalkan oleh pelanggan',
+ statusColor: Colors.red,
+ statusBg: Colors.transparent,
+ customer: 'Ghea',
+ address: 'Gedung A3',
+ address2: 'Lantai 1 ketemu di lobby',
+ price: 'Rp 12.000',
+ badge: '+ Rp 2.000',
+ badgeColor: Colors.blue,
+ menuCount: 1,
+ buttonText: 'Dibatalkan',
+ buttonColor: Colors.grey[300]!,
+ buttonTextColor: Colors.white,
+ buttonEnabled: false,
+ logoAsset: 'assets/images/courier.png',
+ orderId: '#TRDKN2325',
+ date: '12 Januari 2025 12:34:20',
+ ),
+ ],
+ );
+ }
+ },
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildStatCard(String label, String value, IconData icon, Color color) {
+ return Expanded(
+ child: Container(
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(14),
+ border: Border.all(color: Colors.grey[300]!, width: 1),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.04),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Text(label, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ const SizedBox(height: 6),
+ Text(value, style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold, color: Colors.blue[600])),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildTab(String label, int idx) {
+ final active = _tabIndex == idx;
+ return Expanded(
+ child: GestureDetector(
+ onTap: () => setState(() => _tabIndex = idx),
+ child: Container(
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ decoration: BoxDecoration(
+ border: Border(
+ bottom: BorderSide(
+ color: active ? Colors.blue : Colors.transparent,
+ width: 3,
+ ),
+ ),
+ ),
+ child: Text(
+ label,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: active ? Colors.blue : Colors.grey[500],
+ fontWeight: active ? FontWeight.bold : FontWeight.normal,
+ fontSize: 15,
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+
+ Widget _buildOrderCard({
+ required String status,
+ required Color statusColor,
+ required Color statusBg,
+ required String customer,
+ required String address,
+ required String address2,
+ required String price,
+ required String badge,
+ required Color badgeColor,
+ required int menuCount,
+ required String buttonText,
+ required Color buttonColor,
+ required Color buttonTextColor,
+ required bool buttonEnabled,
+ required String logoAsset,
+ required String orderId,
+ required String date,
+ }) {
+ Widget cardContent = Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Icon bulat kiri (logo courier)
+ Container(
+ width: 44,
+ height: 44,
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ shape: BoxShape.circle,
+ ),
+ child: ClipOval(
+ child: Image.asset(
+ logoAsset,
+ fit: BoxFit.cover,
+ errorBuilder: (context, error, stackTrace) => const Icon(Icons.person, color: Colors.blue, size: 28),
+ ),
+ ),
+ ),
+ const SizedBox(width: 12),
+ // Info pesanan
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Text(orderId, style: TextStyle(fontWeight: FontWeight.bold, color: Colors.blue[900])),
+ const Spacer(),
+ Text('x $menuCount menu', style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ ],
+ ),
+ // Tanggal di bawah orderId
+ Padding(
+ padding: const EdgeInsets.only(top: 2, bottom: 2),
+ child: Text(date, style: const TextStyle(fontSize: 11, color: Colors.grey)),
+ ),
+ const SizedBox(height: 2),
+ Text(status, style: TextStyle(color: statusColor, fontSize: 13, fontWeight: FontWeight.bold)),
+ const SizedBox(height: 2),
+ Text('Nama Pelanggan : $customer', style: const TextStyle(fontSize: 13, color: Colors.black)),
+ Text('Alamat : $address', style: const TextStyle(fontSize: 13, color: Colors.black)),
+ Text('Cth : $address2', style: const TextStyle(fontSize: 13, color: Colors.black)),
+ const SizedBox(height: 2),
+ Text('Biaya Pengiriman', style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ Row(
+ children: [
+ Text(price, style: TextStyle(fontWeight: FontWeight.bold, color: Colors.blue[900], fontSize: 15)),
+ const Spacer(),
+ Flexible(
+ child: buttonText == 'Dibatalkan'
+ ? Container(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 7),
+ decoration: BoxDecoration(
+ color: Colors.grey[300],
+ borderRadius: BorderRadius.circular(14),
+ ),
+ child: const Text(
+ 'Dibatalkan',
+ style: TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ fontSize: 12,
+ ),
+ ),
+ )
+ : ElevatedButton(
+ onPressed: buttonEnabled
+ ? () {
+ _showAntarDialog(context);
+ }
+ : null,
+ style: ElevatedButton.styleFrom(
+ backgroundColor: buttonColor,
+ foregroundColor: buttonTextColor,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(16),
+ ),
+ padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 8),
+ elevation: 0,
+ ),
+ child: Text(buttonText, style: const TextStyle(fontWeight: FontWeight.bold)),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ // Jika orderId == '#TRDKN2350', bungkus dengan InkWell untuk navigasi ke detail
+ if (orderId == '#TRDKN2350') {
+ return InkWell(
+ onTap: () {
+ Navigator.of(context).push(
+ MaterialPageRoute(
+ builder: (context) => const CourierHistoryDetailScreen(),
+ ),
+ );
+ },
+ borderRadius: BorderRadius.circular(16),
+ child: cardContent,
+ );
+ }
+ return cardContent;
+ }
+
+ void _showAntarDialog(BuildContext context) {
+ showDialog(
+ context: context,
+ barrierDismissible: true,
+ builder: (context) {
+ return Dialog(
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
+ insetPadding: const EdgeInsets.symmetric(horizontal: 24),
+ child: Padding(
+ padding: const EdgeInsets.all(20),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ GestureDetector(
+ onTap: () => Navigator.of(context).pop(),
+ child: const Icon(Icons.close, size: 28, color: Colors.black54),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Image.asset('assets/images/tanya.png', height: 110),
+ const SizedBox(height: 16),
+ const Text(
+ 'Pesanan siap diantarkan?',
+ style: TextStyle(
+ color: Colors.blue,
+ fontWeight: FontWeight.bold,
+ fontSize: 20,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 8),
+ const Text(
+ 'Tekan tombol "Ya" untuk mengkonfirmasi',
+ style: TextStyle(fontSize: 15, color: Colors.grey),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 24),
+ Row(
+ children: [
+ Expanded(
+ child: ElevatedButton(
+ onPressed: () => Navigator.of(context).pop(),
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.red,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10),
+ ),
+ ),
+ child: const Text('Tidak', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16)),
+ ),
+ ),
+ const SizedBox(width: 16),
+ Expanded(
+ child: ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ Navigator.of(context).push(
+ MaterialPageRoute(
+ builder: (context) => const CourierDeliveryScreen(),
+ ),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10),
+ ),
+ ),
+ child: const Text('Ya', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16)),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_delivery_screen.dart b/adminkurir/lib/screens/courier/courier_delivery_screen.dart
new file mode 100644
index 0000000..6beb88d
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_delivery_screen.dart
@@ -0,0 +1,160 @@
+import 'package:flutter/material.dart';
+import '../home_screen.dart';
+
+class CourierDeliveryScreen extends StatelessWidget {
+ const CourierDeliveryScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: Stack(
+ children: [
+ // Map background
+ Positioned.fill(
+ child: Image.asset(
+ 'assets/images/map.png',
+ fit: BoxFit.cover,
+ ),
+ ),
+ // Back button
+ SafeArea(
+ child: Padding(
+ padding: const EdgeInsets.all(12),
+ child: Align(
+ alignment: Alignment.topLeft,
+ child: CircleAvatar(
+ backgroundColor: Colors.white,
+ child: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.blue),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ ),
+ ),
+ ),
+ ),
+ // Dummy route (bisa diganti CustomPaint/Polyline jika ingin lebih dinamis)
+ // Marker avatar (dummy posisi)
+ Positioned(
+ top: 110,
+ left: 210,
+ child: CircleAvatar(
+ radius: 18,
+ backgroundColor: Colors.white,
+ child: const CircleAvatar(
+ radius: 16,
+ backgroundImage: AssetImage('assets/images/orang.jpg'),
+ ),
+ ),
+ ),
+ Positioned(
+ top: 320,
+ left: 80,
+ child: CircleAvatar(
+ radius: 18,
+ backgroundColor: Colors.white,
+ child: const CircleAvatar(
+ radius: 16,
+ backgroundImage: AssetImage('assets/images/courier.png'),
+ ),
+ ),
+ ),
+ // Bottom sheet info pesanan
+ Align(
+ alignment: Alignment.bottomCenter,
+ child: Container(
+ width: double.infinity,
+ decoration: const BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.only(
+ topLeft: Radius.circular(24),
+ topRight: Radius.circular(24),
+ ),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black12,
+ blurRadius: 10,
+ offset: Offset(0, -2),
+ ),
+ ],
+ ),
+ padding: const EdgeInsets.fromLTRB(20, 18, 20, 24),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ CircleAvatar(
+ backgroundColor: Colors.green[50],
+ radius: 18,
+ child: const Icon(Icons.person, color: Colors.green),
+ ),
+ const SizedBox(width: 10),
+ const Text('Dipesan oleh', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ const SizedBox(width: 6),
+ const Text('Dewi Sartika', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ const Spacer(),
+ IconButton(
+ icon: const Icon(Icons.call, color: Colors.blue),
+ onPressed: () {},
+ ),
+ IconButton(
+ icon: const Icon(Icons.chat, color: Colors.blue),
+ onPressed: () {},
+ ),
+ ],
+ ),
+ const SizedBox(height: 10),
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Icon(Icons.location_on, color: Colors.red, size: 22),
+ const SizedBox(width: 8),
+ Expanded(
+ child: const Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Alamat', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ Text('Gedung Teknologi Informasi', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ SizedBox(height: 2),
+ Text('Catatan', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ Text('Lantai 1 Ruang Baca JTI', style: TextStyle(fontSize: 14)),
+ ],
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 18),
+ SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).pushAndRemoveUntil(
+ MaterialPageRoute(
+ builder: (context) => const HomeScreen(),
+ ),
+ (route) => false,
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(14),
+ ),
+ textStyle: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
+ ),
+ child: const Text('Selesai'),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_history_detail_screen.dart b/adminkurir/lib/screens/courier/courier_history_detail_screen.dart
new file mode 100644
index 0000000..7622f14
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_history_detail_screen.dart
@@ -0,0 +1,266 @@
+import 'package:flutter/material.dart';
+
+class CourierHistoryDetailScreen extends StatelessWidget {
+ const CourierHistoryDetailScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.blue),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ title: const Text('Detail Pesanan', style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20)),
+ centerTitle: false,
+ ),
+ body: ListView(
+ padding: const EdgeInsets.all(16),
+ children: [
+ // Status Pengantaran
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: const Row(
+ children: [
+ Icon(Icons.check_circle, color: Colors.green, size: 22),
+ SizedBox(width: 8),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Status Pengantaran', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ Text('Selesai', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.green)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ // Info Pesanan
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: const Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('No. Pesanan', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ Text('Waktu Pemesanan', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ],
+ ),
+ ),
+ SizedBox(width: 12),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text('TRDKN2350', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black)),
+ Text('13 Januari 2025 12:34:20', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ // Info Pelanggan
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: const Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Informasi Pelanggan', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ SizedBox(height: 8),
+ Row(
+ children: [
+ Expanded(child: Text('Nama Pelanggan', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('Dewi Sartika', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(child: Text('No Hp', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('088855552222', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(child: Text('Alamat', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('Gedung Teknologi Informasi', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(child: Text('Catatan Pengantaran', style: TextStyle(fontSize: 13, color: Colors.grey))),
+ Expanded(child: Text('Lantai 1 Ruang Baca JTI', style: TextStyle(fontSize: 13, color: Colors.black))),
+ ],
+ ),
+ ],
+ ),
+ ),
+ // Daftar Pesanan
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text('Pesanan', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ const SizedBox(height: 8),
+ _buildOrderItem(),
+ const SizedBox(height: 8),
+ _buildOrderItem(),
+ ],
+ ),
+ ),
+ // Info Pembayaran
+ Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text('Informasi Pembayaran', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ const SizedBox(height: 8),
+ _buildPaymentRow('Metode Pembayaran', 'Tunai', valueColor: Colors.blue),
+ _buildPaymentRow('Biaya Pengiriman', 'Rp 20.000'),
+ _buildPaymentRow('Total Pesanan', 'Rp 20.000'),
+ _buildPaymentRow('Nominal uang pembeli', 'Rp 20.000'),
+ _buildPaymentRow('Diskon', 'Rp 0'),
+ _buildPaymentRow('Uang Kembali', 'Rp 0'),
+ const Divider(),
+ const Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text('Total Pembayaran', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ Text('Rp 22.000', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15, color: Color.fromARGB(255, 0, 0, 0))),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildOrderItem() {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 4),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset('assets/images/nasi_ayam.jpg', width: 60, height: 60, fit: BoxFit.cover, errorBuilder: (context, error, stackTrace) => const Icon(Icons.person, color: Colors.blue, size: 28)),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Expanded(
+ child: Text('Nasi Ayam Geprek', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Row(
+ children: [
+ const Text('Rp 10.000', style: TextStyle(color: Colors.black87, fontWeight: FontWeight.w500, fontSize: 13)),
+ const Spacer(),
+ const Text('x1', style: TextStyle(fontSize: 13, color: Colors.black54)),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Row(
+ children: [
+ const Expanded(
+ child: Text('Kantin 2', style: TextStyle(fontSize: 13, color: Colors.grey)),
+ ),
+ const Text('Status : ', style: TextStyle(fontSize: 13, color: Colors.blue)),
+ const Text('Selesai', style: TextStyle(fontSize: 13, color: Colors.blue, fontWeight: FontWeight.bold)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildPaymentRow(String label, String value, {Color? valueColor}) {
+ return Padding(
+ padding: const EdgeInsets.symmetric(vertical: 2),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(label, style: const TextStyle(fontSize: 13, color: Colors.grey)),
+ Text(value, style: TextStyle(fontSize: 13, color: valueColor ?? Colors.black)),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_history_screen.dart b/adminkurir/lib/screens/courier/courier_history_screen.dart
new file mode 100644
index 0000000..6b7551b
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_history_screen.dart
@@ -0,0 +1,118 @@
+import 'package:flutter/material.dart';
+import 'courier_history_detail_screen.dart';
+
+class CourierHistoryScreen extends StatelessWidget {
+ const CourierHistoryScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ automaticallyImplyLeading: false,
+ title: const Text('Riwayat', style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20)),
+ centerTitle: false,
+ ),
+ body: ListView.builder(
+ padding: const EdgeInsets.all(16),
+ itemCount: 3,
+ itemBuilder: (context, index) => _buildHistoryCard(context),
+ ),
+ );
+ }
+
+ Widget _buildHistoryCard(BuildContext context) {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 16),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.07),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Icon bulat kiri (logo courier)
+ Container(
+ width: 44,
+ height: 44,
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ shape: BoxShape.circle,
+ ),
+ child: ClipOval(
+ child: Image.asset(
+ 'assets/images/courier.png',
+ fit: BoxFit.cover,
+ errorBuilder: (context, error, stackTrace) => Icon(Icons.person, color: Colors.blue, size: 28),
+ ),
+ ),
+ ),
+ const SizedBox(width: 12),
+ // Info pesanan
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Text('#TRDKN2350', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.blue[900])),
+ const Spacer(),
+ Text('x 2 menu', style: TextStyle(fontSize: 12, color: Colors.grey)),
+ ],
+ ),
+ Padding(
+ padding: const EdgeInsets.only(top: 2, bottom: 2),
+ child: Text('13 Januari 2025 12:34:20', style: TextStyle(fontSize: 11, color: Colors.grey[600])),
+ ),
+ const Text('Selesai', style: TextStyle(color: Colors.blue, fontSize: 13, fontWeight: FontWeight.bold)),
+ const SizedBox(height: 2),
+ const Text('Nama Pembeli : Dwi Kartika', style: TextStyle(fontSize: 13, color: Colors.black)),
+ const Text('Alamat : Gedung Teknologi Informasi', style: TextStyle(fontSize: 13, color: Colors.black)),
+ const Text('Cth : Lantai 1 Ruang Baca JTI', style: TextStyle(fontSize: 13, color: Colors.black)),
+ const SizedBox(height: 2),
+ const Text('Biaya Pengiriman', style: TextStyle(fontSize: 12, color: Colors.grey)),
+ Row(
+ children: [
+ const Text('Rp 22.000', style: TextStyle(fontWeight: FontWeight.bold, color: Colors.blue, fontSize: 15)),
+ const Spacer(),
+ SizedBox(
+ height: 32,
+ child: ElevatedButton(
+ onPressed: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => const CourierHistoryDetailScreen()),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(16),
+ ),
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 0),
+ elevation: 0,
+ ),
+ child: const Text('Lihat Detail', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/courier/courier_profile_screen.dart b/adminkurir/lib/screens/courier/courier_profile_screen.dart
new file mode 100644
index 0000000..922ae58
--- /dev/null
+++ b/adminkurir/lib/screens/courier/courier_profile_screen.dart
@@ -0,0 +1,210 @@
+import 'package:flutter/material.dart';
+
+class CourierProfileScreen extends StatefulWidget {
+ const CourierProfileScreen({super.key});
+
+ @override
+ State createState() => _CourierProfileScreenState();
+}
+
+class _CourierProfileScreenState extends State {
+ final TextEditingController _nameController = TextEditingController(text: 'Kurir 1');
+ final TextEditingController _emailController = TextEditingController(text: 'kurirpolije1@gmail.com');
+ final TextEditingController _phoneController = TextEditingController(text: '0888855552222');
+ bool _isEditingName = false;
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ automaticallyImplyLeading: false,
+ title: const Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Edit Profil', style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20)),
+ ),
+ actions: [
+ Padding(
+ padding: const EdgeInsets.only(right: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(12),
+ ),
+ child: IconButton(
+ icon: const Icon(Icons.logout, color: Colors.blue),
+ onPressed: () {
+ Navigator.of(context).pushNamedAndRemoveUntil('/login', (route) => false);
+ },
+ ),
+ ),
+ ),
+ ],
+ ),
+ body: SingleChildScrollView(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 28, vertical: 16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ const SizedBox(height: 12),
+ Center(
+ child: Stack(
+ children: [
+ Container(
+ width: 120,
+ height: 120,
+ decoration: BoxDecoration(
+ color: const Color.fromARGB(255, 108, 171, 222),
+ shape: BoxShape.circle,
+ ),
+ child: Center(
+ child: Image.asset('assets/images/profile.png', width: 80, height: 80),
+ ),
+ ),
+ Positioned(
+ bottom: 10,
+ right: 10,
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.yellow[700],
+ shape: BoxShape.circle,
+ border: Border.all(color: Colors.white, width: 2),
+ ),
+ padding: const EdgeInsets.all(4),
+ child: const Icon(Icons.edit, size: 18, color: Colors.white),
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 28),
+ // Nama Kurir
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Nama Kurir', style: TextStyle(fontSize: 14, color: Colors.grey[700])),
+ ),
+ const SizedBox(height: 6),
+ Row(
+ children: [
+ Expanded(
+ child: TextField(
+ controller: _nameController,
+ enabled: _isEditingName,
+ decoration: InputDecoration(
+ contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ filled: true,
+ fillColor: Colors.white,
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(18),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(18),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ disabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(18),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ isDense: true,
+ ),
+ style: const TextStyle(fontSize: 15),
+ ),
+ ),
+ const SizedBox(width: 8),
+ InkWell(
+ onTap: () {
+ setState(() {
+ _isEditingName = !_isEditingName;
+ });
+ },
+ child: Container(
+ padding: const EdgeInsets.all(6),
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Icon(Icons.edit, color: Colors.blue[700], size: 18),
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 18),
+ // Email
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Email', style: TextStyle(fontSize: 14, color: Colors.grey[700])),
+ ),
+ const SizedBox(height: 6),
+ TextField(
+ controller: _emailController,
+ enabled: false,
+ decoration: InputDecoration(
+ contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ filled: true,
+ fillColor: Colors.white,
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(18),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ disabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(18),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ isDense: true,
+ ),
+ style: const TextStyle(fontSize: 15),
+ ),
+ const SizedBox(height: 18),
+ // Nomor Telepon
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Nomor Telepon', style: TextStyle(fontSize: 14, color: Colors.grey[700])),
+ ),
+ const SizedBox(height: 6),
+ TextField(
+ controller: _phoneController,
+ enabled: false,
+ decoration: InputDecoration(
+ contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ filled: true,
+ fillColor: Colors.white,
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(18),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ disabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(18),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ isDense: true,
+ ),
+ style: const TextStyle(fontSize: 15),
+ ),
+ const SizedBox(height: 28),
+ SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () {},
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(14),
+ ),
+ textStyle: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
+ ),
+ child: const Text('Simpan Perubahan'),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/home_screen.dart b/adminkurir/lib/screens/home_screen.dart
new file mode 100644
index 0000000..1e9e15a
--- /dev/null
+++ b/adminkurir/lib/screens/home_screen.dart
@@ -0,0 +1,147 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+import '../providers/auth_provider.dart';
+import '../utils/constants.dart';
+import 'seller/seller_dashboard_screen.dart';
+import 'seller/seller_products_screen.dart';
+import 'seller/seller_orders_screen.dart';
+import 'seller/seller_profile_screen.dart';
+import 'seller/seller_chat_screen.dart';
+import 'courier/courier_dashboard_screen.dart';
+import 'courier/courier_profile_screen.dart';
+import 'courier/courier_history_screen.dart';
+import 'courier/courier_chat_screen.dart';
+import 'seller/seller_history_screen.dart';
+
+class HomeScreen extends StatefulWidget {
+ const HomeScreen({super.key});
+
+ @override
+ State createState() => _HomeScreenState();
+}
+
+class _HomeScreenState extends State {
+ int _currentIndex = 0;
+
+ @override
+ Widget build(BuildContext context) {
+ return Consumer(
+ builder: (context, authProvider, child) {
+ final user = authProvider.currentUser;
+ if (user == null) {
+ return const Scaffold(
+ body: Center(
+ child: CircularProgressIndicator(),
+ ),
+ );
+ }
+
+ if (user.role == UserRole.seller) {
+ return _buildSellerHome();
+ } else {
+ return _buildCourierHome();
+ }
+ },
+ );
+ }
+
+ Widget _buildSellerHome() {
+ final List sellerScreens = [
+ const SellerDashboardScreen(),
+ const SellerChatScreen(),
+ const SellerOrdersScreen(),
+ const SellerHistoryScreen(),
+ const SellerProfileScreen(),
+ ];
+
+ final List sellerItems = [
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.home),
+ label: 'Beranda',
+ ),
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.chat_bubble_outline),
+ label: 'Chat',
+ ),
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.shopping_bag),
+ label: 'Pesanan',
+ ),
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.receipt_long),
+ label: 'Riwayat',
+ ),
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.person),
+ label: 'Profil',
+ ),
+ ];
+
+ return Scaffold(
+ body: IndexedStack(
+ index: _currentIndex,
+ children: sellerScreens,
+ ),
+ bottomNavigationBar: BottomNavigationBar(
+ type: BottomNavigationBarType.fixed,
+ currentIndex: _currentIndex,
+ onTap: (index) {
+ setState(() {
+ _currentIndex = index;
+ });
+ },
+ selectedItemColor: AppColors.primary,
+ unselectedItemColor: AppColors.textSecondary,
+ showUnselectedLabels: true,
+ items: sellerItems,
+ ),
+ );
+ }
+
+ Widget _buildCourierHome() {
+ final List courierScreens = [
+ const CourierDashboardScreen(),
+ const CourierHistoryScreen(),
+ const CourierChatScreen(),
+ const CourierProfileScreen(),
+ ];
+
+ final List courierItems = [
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.list_alt),
+ label: 'Pesanan',
+ ),
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.history),
+ label: 'Riwayat',
+ ),
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.chat),
+ label: 'Chat',
+ ),
+ const BottomNavigationBarItem(
+ icon: Icon(Icons.person),
+ label: 'Profil',
+ ),
+ ];
+
+ return Scaffold(
+ body: IndexedStack(
+ index: _currentIndex,
+ children: courierScreens,
+ ),
+ bottomNavigationBar: BottomNavigationBar(
+ type: BottomNavigationBarType.fixed,
+ currentIndex: _currentIndex,
+ onTap: (index) {
+ setState(() {
+ _currentIndex = index;
+ });
+ },
+ selectedItemColor: AppColors.primary,
+ unselectedItemColor: AppColors.textSecondary,
+ items: courierItems,
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/login_courier_screen.dart b/adminkurir/lib/screens/login_courier_screen.dart
new file mode 100644
index 0000000..8bb7c40
--- /dev/null
+++ b/adminkurir/lib/screens/login_courier_screen.dart
@@ -0,0 +1,205 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+import '../providers/auth_provider.dart';
+
+class LoginCourierScreen extends StatefulWidget {
+ final VoidCallback onSwitchToSeller;
+ const LoginCourierScreen({super.key, required this.onSwitchToSeller});
+
+ @override
+ State createState() => _LoginCourierScreenState();
+}
+
+class _LoginCourierScreenState extends State {
+ final _emailController = TextEditingController();
+ final _passwordController = TextEditingController();
+ bool _obscure = true;
+
+ @override
+ void dispose() {
+ _emailController.dispose();
+ _passwordController.dispose();
+ super.dispose();
+ }
+
+ Future _loginTanpaKredensial() async {
+ final authProvider = Provider.of(context, listen: false);
+ await authProvider.loginTanpaKredensial('courier');
+ if (mounted) {
+ Navigator.of(context).pushReplacementNamed('/home');
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: SingleChildScrollView(
+ padding: const EdgeInsets.symmetric(horizontal: 28, vertical: 0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ // Logo pojok kiri atas
+ Padding(
+ padding: const EdgeInsets.only(top: 0, left: 0, bottom: 0),
+ child: Image.asset(
+ 'assets/images/logo.png',
+ height: 60,
+ alignment: Alignment.topLeft,
+ ),
+ ),
+ const SizedBox(height: 8),
+ // Ilustrasi
+ Center(
+ child: Container(
+ height: 250,
+ margin: const EdgeInsets.only(bottom: 8),
+ child: Image.asset('assets/images/motor.jpg', fit: BoxFit.contain),
+ ),
+ ),
+ const SizedBox(height: 8),
+ // Judul
+ Text(
+ 'Masuk',
+ style: const TextStyle(
+ fontSize: 22,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 20),
+ // Email
+ SizedBox(
+ height: 44,
+ child: TextField(
+ controller: _emailController,
+ style: const TextStyle(fontSize: 15),
+ decoration: InputDecoration(
+ labelText: 'Email',
+ labelStyle: TextStyle(color: Colors.grey[400], fontSize: 15),
+ prefixIcon: Icon(Icons.email, color: Colors.blue[200], size: 22),
+ enabledBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue[200]!),
+ ),
+ focusedBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue, width: 2),
+ ),
+ contentPadding: const EdgeInsets.only(top: 2),
+ ),
+ ),
+ ),
+ const SizedBox(height: 8),
+ // Password
+ SizedBox(
+ height: 44,
+ child: TextField(
+ controller: _passwordController,
+ obscureText: _obscure,
+ style: const TextStyle(fontSize: 15),
+ decoration: InputDecoration(
+ labelText: 'Password',
+ labelStyle: TextStyle(color: Colors.grey[400], fontSize: 15),
+ prefixIcon: Icon(Icons.lock, color: Colors.blue[200], size: 22),
+ suffixIcon: IconButton(
+ icon: Icon(_obscure ? Icons.visibility : Icons.visibility_off, color: Colors.blue[200], size: 22),
+ onPressed: () => setState(() => _obscure = !_obscure),
+ splashRadius: 18,
+ ),
+ enabledBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue[200]!),
+ ),
+ focusedBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue, width: 2),
+ ),
+ contentPadding: const EdgeInsets.only(top: 2),
+ ),
+ ),
+ ),
+ const SizedBox(height: 20),
+ // Link bawah field
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ GestureDetector(
+ onTap: widget.onSwitchToSeller,
+ child: const Text(
+ 'Masuk sebagai Penjual',
+ style: TextStyle(
+ color: Colors.blue,
+ fontWeight: FontWeight.w500,
+ fontSize: 13,
+ ),
+ ),
+ ),
+ GestureDetector(
+ onTap: () {},
+ child: const Text(
+ 'Lupa Password?',
+ style: TextStyle(
+ color: Colors.blue,
+ fontWeight: FontWeight.w500,
+ fontSize: 13,
+ ),
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 18),
+ // Tombol masuk
+ Consumer(
+ builder: (context, authProvider, child) {
+ return SizedBox(
+ height: 44,
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: authProvider.isLoading ? null : _loginTanpaKredensial,
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(22),
+ ),
+ elevation: 0,
+ ),
+ child: authProvider.isLoading
+ ? const SizedBox(
+ width: 22,
+ height: 22,
+ child: CircularProgressIndicator(color: Colors.white, strokeWidth: 2),
+ )
+ : const Text(
+ 'Masuk',
+ style: TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ fontSize: 17,
+ ),
+ ),
+ ),
+ );
+ },
+ ),
+ const SizedBox(height: 80),
+ // Text bawah
+ Center(
+ child: Text.rich(
+ TextSpan(
+ text: 'Tidak punya akun? ',
+ style: TextStyle(color: Colors.grey[400], fontSize: 13),
+ children: [
+ TextSpan(
+ text: 'Hubungi Admin',
+ style: TextStyle(color: Colors.blue, fontSize: 13),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/login_screen.dart b/adminkurir/lib/screens/login_screen.dart
new file mode 100644
index 0000000..3763799
--- /dev/null
+++ b/adminkurir/lib/screens/login_screen.dart
@@ -0,0 +1,38 @@
+import 'package:flutter/material.dart';
+import 'login_seller_screen.dart';
+import 'login_courier_screen.dart';
+
+class LoginScreen extends StatefulWidget {
+ const LoginScreen({super.key});
+
+ @override
+ State createState() => _LoginScreenState();
+}
+
+class _LoginScreenState extends State {
+ bool _isCourier = false;
+ final _usernameController = TextEditingController();
+ final _emailController = TextEditingController();
+ final _passwordController = TextEditingController();
+
+ @override
+ void dispose() {
+ _usernameController.dispose();
+ _emailController.dispose();
+ _passwordController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ if (_isCourier) {
+ return LoginCourierScreen(
+ onSwitchToSeller: () => setState(() => _isCourier = false),
+ );
+ } else {
+ return LoginSellerScreen(
+ onSwitchToCourier: () => setState(() => _isCourier = true),
+ );
+ }
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/login_seller_screen.dart b/adminkurir/lib/screens/login_seller_screen.dart
new file mode 100644
index 0000000..0b4936c
--- /dev/null
+++ b/adminkurir/lib/screens/login_seller_screen.dart
@@ -0,0 +1,206 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+import '../providers/auth_provider.dart';
+
+class LoginSellerScreen extends StatefulWidget {
+ final VoidCallback onSwitchToCourier;
+ const LoginSellerScreen({super.key, required this.onSwitchToCourier});
+
+ @override
+ State createState() => _LoginSellerScreenState();
+}
+
+class _LoginSellerScreenState extends State {
+ final _usernameController = TextEditingController();
+ final _passwordController = TextEditingController();
+ bool _obscure = true;
+
+ @override
+ void dispose() {
+ _usernameController.dispose();
+ _passwordController.dispose();
+ super.dispose();
+ }
+
+ Future _loginTanpaKredensial() async {
+ final authProvider = Provider.of(context, listen: false);
+ await authProvider.loginTanpaKredensial('seller');
+ if (mounted) {
+ Navigator.of(context).pushReplacementNamed('/home');
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: SingleChildScrollView(
+ padding: const EdgeInsets.symmetric(horizontal: 28, vertical: 0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ // Logo pojok kiri atas
+ Padding(
+ padding: const EdgeInsets.only(top: 0, left: 0, bottom: 0),
+ child: Image.asset(
+ 'assets/images/logo.png',
+ height: 60,
+ alignment: Alignment.topLeft,
+ ),
+ ),
+ const SizedBox(height: 8),
+ // Ilustrasi
+ Center(
+ child: Container(
+ height: 250,
+ margin: const EdgeInsets.only(bottom: 8),
+ child: Image.asset('assets/images/penjual.png', fit: BoxFit.contain),
+ ),
+ ),
+ const SizedBox(height: 8),
+ // Judul
+ Text(
+ 'Masuk',
+ style: const TextStyle(
+ fontSize: 22,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 15),
+ // Username
+ SizedBox(
+ height: 44,
+ child: TextField(
+ controller: _usernameController,
+ style: const TextStyle(fontSize: 15),
+ decoration: InputDecoration(
+ labelText: 'Username',
+ labelStyle: TextStyle(color: Colors.grey[400], fontSize: 15),
+ prefixIcon: Icon(Icons.person, color: Colors.blue[200], size: 22),
+ enabledBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue[200]!),
+ ),
+ focusedBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue, width: 2),
+ ),
+ contentPadding: const EdgeInsets.only(top: 2),
+ ),
+ ),
+ ),
+ const SizedBox(height: 8),
+ // Password
+ SizedBox(
+ height: 44,
+ child: TextField(
+ controller: _passwordController,
+ obscureText: _obscure,
+ style: const TextStyle(fontSize: 15),
+ decoration: InputDecoration(
+ labelText: 'Password',
+ labelStyle: TextStyle(color: Colors.grey[400], fontSize: 15),
+ prefixIcon: Icon(Icons.lock, color: Colors.blue[200], size: 22),
+ suffixIcon: IconButton(
+ icon: Icon(_obscure ? Icons.visibility : Icons.visibility_off, color: Colors.blue[200], size: 22),
+ onPressed: () => setState(() => _obscure = !_obscure),
+ splashRadius: 18,
+ ),
+ enabledBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue[200]!),
+ ),
+ focusedBorder: UnderlineInputBorder(
+ borderSide: BorderSide(color: Colors.blue, width: 2),
+ ),
+ contentPadding: const EdgeInsets.only(top: 2),
+ ),
+ ),
+ ),
+ const SizedBox(height: 20),
+ // Link bawah field
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ GestureDetector(
+ onTap: widget.onSwitchToCourier,
+ child: const Text(
+ 'Masuk sebagai Kurir',
+ style: TextStyle(
+ color: Colors.blue,
+ fontWeight: FontWeight.w500,
+ fontSize: 13,
+ ),
+ ),
+ ),
+ GestureDetector(
+ onTap: () {},
+ child: const Text(
+ 'Lupa Password?',
+ style: TextStyle(
+ color: Colors.blue,
+ fontWeight: FontWeight.w500,
+ fontSize: 13,
+ ),
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 22),
+ // Tombol masuk
+ Consumer(
+ builder: (context, authProvider, child) {
+ return SizedBox(
+ height: 44,
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: authProvider.isLoading ? null : _loginTanpaKredensial,
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(22),
+ ),
+ elevation: 0,
+ ),
+ child: authProvider.isLoading
+ ? const SizedBox(
+ width: 22,
+ height: 22,
+ child: CircularProgressIndicator(color: Colors.white, strokeWidth: 2),
+ )
+ : const Text(
+ 'Masuk',
+ style: TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ fontSize: 17,
+ ),
+ ),
+ ),
+ );
+ },
+ ),
+ const SizedBox(height: 80),
+ // Text bawah
+ Center(
+ child: Text.rich(
+ TextSpan(
+ text: 'Tidak punya akun? ',
+ style: TextStyle(color: Colors.grey[400], fontSize: 13),
+ children: [
+ TextSpan(
+ text: 'Hubungi Admin',
+ style: TextStyle(color: Colors.blue, fontSize: 13),
+ ),
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(height: 8),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_chat_screen.dart b/adminkurir/lib/screens/seller/seller_chat_screen.dart
new file mode 100644
index 0000000..cfac727
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_chat_screen.dart
@@ -0,0 +1,191 @@
+import 'package:flutter/material.dart';
+
+class SellerChatScreen extends StatefulWidget {
+ const SellerChatScreen({super.key});
+
+ @override
+ State createState() => _SellerChatScreenState();
+}
+
+class _SellerChatScreenState extends State {
+ bool chatOpen = false;
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Header
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 18),
+ child: Row(
+ children: [
+ const Expanded(
+ child: Text(
+ 'Chat dari Pelanggan',
+ style: TextStyle(
+ fontSize: 22,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ ),
+ ),
+ Stack(
+ alignment: Alignment.topRight,
+ children: [
+ const Icon(
+ Icons.notifications_none,
+ color: Color(0xFF29B6F6),
+ size: 28,
+ ),
+ Positioned(
+ right: 2,
+ top: 2,
+ child: Container(
+ width: 9,
+ height: 9,
+ decoration: BoxDecoration(
+ color: Colors.green,
+ shape: BoxShape.circle,
+ border: Border.all(color: Colors.white, width: 1.5),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ // Card toggle chat
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 0),
+ child: Container(
+ width: double.infinity,
+ padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 18),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey[300]!),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.03),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Row(
+ children: [
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ chatOpen ? 'Buka Chat' : 'Tutup Chat',
+ style: const TextStyle(
+ fontWeight: FontWeight.w600,
+ fontSize: 16,
+ color: Colors.black,
+ ),
+ ),
+ const SizedBox(height: 2),
+ const Text(
+ 'Klik tombol untuk menutup chat dari pelanggan',
+ style: TextStyle(fontSize: 13, color: Colors.black38),
+ ),
+ ],
+ ),
+ ),
+ _CustomToggle(
+ value: chatOpen,
+ onChanged: (val) => setState(() => chatOpen = val),
+ ),
+ ],
+ ),
+ ),
+ ),
+ // Sisa konten (ilustrasi kosong)
+ Expanded(
+ child: Center(
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Image.asset(
+ 'assets/images/chat.png',
+ width: 160,
+ fit: BoxFit.contain,
+ ),
+ const SizedBox(height: 24),
+ const Text(
+ 'Belum ada chat',
+ style: TextStyle(
+ fontSize: 18,
+ color: Colors.black54,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const SizedBox(height: 8),
+ const Text(
+ 'Chat dengan pembeli akan muncul di sini',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.black38,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
+
+class _CustomToggle extends StatelessWidget {
+ final bool value;
+ final ValueChanged onChanged;
+ const _CustomToggle({required this.value, required this.onChanged});
+
+ @override
+ Widget build(BuildContext context) {
+ return GestureDetector(
+ onTap: () => onChanged(!value),
+ child: AnimatedContainer(
+ duration: const Duration(milliseconds: 200),
+ width: 44,
+ height: 26,
+ padding: const EdgeInsets.symmetric(horizontal: 3, vertical: 2),
+ decoration: BoxDecoration(
+ color: value ? const Color(0xFFB3E5FC) : Colors.grey[300],
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: value ? const Color(0xFF29B6F6) : Colors.grey[400]!, width: 2),
+ ),
+ child: Align(
+ alignment: value ? Alignment.centerRight : Alignment.centerLeft,
+ child: Container(
+ width: 20,
+ height: 20,
+ decoration: BoxDecoration(
+ color: value ? Colors.white : Colors.grey[400],
+ shape: BoxShape.circle,
+ boxShadow: [
+ if (value)
+ BoxShadow(
+ color: Colors.black.withOpacity(0.08),
+ blurRadius: 2,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_custom_order_screen.dart b/adminkurir/lib/screens/seller/seller_custom_order_screen.dart
new file mode 100644
index 0000000..8a05432
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_custom_order_screen.dart
@@ -0,0 +1,146 @@
+import 'package:flutter/material.dart';
+import '../../utils/constants.dart';
+
+class SellerCustomOrderScreen extends StatefulWidget {
+ const SellerCustomOrderScreen({super.key});
+
+ @override
+ State createState() => _SellerCustomOrderScreenState();
+}
+
+class _SellerCustomOrderScreenState extends State {
+ bool allowMultiple = false;
+ int selectedLevel = 0;
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Header
+ Padding(
+ padding: const EdgeInsets.fromLTRB(12, 18, 18, 0),
+ child: Row(
+ children: [
+ InkWell(
+ borderRadius: BorderRadius.circular(20),
+ onTap: () => Navigator.of(context).pop(),
+ child: Container(
+ decoration: BoxDecoration(
+ color: AppColors.primary,
+ borderRadius: BorderRadius.circular(20),
+ ),
+ padding: const EdgeInsets.all(6),
+ child: const Icon(Icons.arrow_back, color: Colors.white, size: 20),
+ ),
+ ),
+ const SizedBox(width: 12),
+ const Text(
+ 'Kustom Pemesanan',
+ style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20, color: Colors.black),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 18),
+ // Nama menu dan harga
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 18),
+ child: Row(
+ children: const [
+ Expanded(
+ child: Text('Nasi Ayam Geprek', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 16)),
+ ),
+ Text('Rp 10.000', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)),
+ ],
+ ),
+ ),
+ const SizedBox(height: 18),
+ // Section Level
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 0, vertical: 0),
+ padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 0),
+ child: Column(
+ children: [
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 0),
+ child: Row(
+ children: [
+ const Text('Level', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)),
+ const Spacer(),
+ Text('izinkan pilih lebih dari 1', style: TextStyle(fontSize: 11, color: Colors.black45)),
+ const SizedBox(width: 4),
+ Checkbox(
+ value: allowMultiple,
+ onChanged: (val) => setState(() => allowMultiple = val ?? false),
+ shape: const CircleBorder(),
+ activeColor: AppColors.primary,
+ materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ ),
+ ],
+ ),
+ ),
+ const Divider(height: 1),
+ // List pilihan level
+ ...List.generate(3, (i) => _levelOption(i)),
+ ],
+ ),
+ ),
+ const Spacer(),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 18),
+ child: SizedBox(
+ width: double.infinity,
+ height: 44,
+ child: ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: AppColors.primary,
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
+ textStyle: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
+ ),
+ child: const Text('Simpan Perubahan'),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _levelOption(int i) {
+ final levels = ['Level 0', 'Level 1', 'Level 2'];
+ return InkWell(
+ onTap: () => setState(() => selectedLevel = i),
+ child: Container(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 10),
+ decoration: const BoxDecoration(
+ border: Border(bottom: BorderSide(color: Color(0xFFE0E0E0), width: 1)),
+ ),
+ child: Row(
+ children: [
+ Expanded(
+ child: Text(levels[i], style: const TextStyle(fontSize: 14)),
+ ),
+ const Text('+ Rp 0', style: TextStyle(fontSize: 14, color: Colors.black54)),
+ const SizedBox(width: 8),
+ Radio(
+ value: i,
+ groupValue: selectedLevel,
+ onChanged: (val) => setState(() => selectedLevel = val ?? 0),
+ activeColor: AppColors.primary,
+ materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_dashboard_screen.dart b/adminkurir/lib/screens/seller/seller_dashboard_screen.dart
new file mode 100644
index 0000000..bc191c3
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_dashboard_screen.dart
@@ -0,0 +1,531 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+import '../../providers/auth_provider.dart';
+import '../../providers/order_provider.dart';
+import '../../providers/product_provider.dart';
+import '../../utils/constants.dart';
+import 'package:fl_chart/fl_chart.dart';
+import 'dart:math' as math;
+
+class SellerDashboardScreen extends StatefulWidget {
+ const SellerDashboardScreen({super.key});
+
+ @override
+ State createState() => _SellerDashboardScreenState();
+}
+
+class _SellerDashboardScreenState extends State {
+ @override
+ void initState() {
+ super.initState();
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ Provider.of(context, listen: false).loadOrders();
+ Provider.of(context, listen: false).loadProducts();
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: AppColors.background,
+ body: Consumer3(
+ builder: (context, authProvider, orderProvider, productProvider, child) {
+ final user = authProvider.currentUser;
+ if (user == null) return const SizedBox.shrink();
+
+ final sellerOrders = orderProvider.getOrdersBySeller(user.id);
+ const selesai = 0;
+ const dilayani = 0;
+ const dibatalkan = 0;
+ final totalMenu = productProvider.products.length;
+ final lowStockProducts = productProvider.products.where((product) => product.stock < 5).length;
+
+ // Dummy data
+ final pendapatanHariIni = 200000;
+ final pendapatanBulanan = 1200000;
+
+ return SafeArea(
+ child: Stack(
+ children: [
+ // Multi-layer wave background
+ SizedBox(
+ width: double.infinity,
+ height: 240,
+ child: Stack(
+ children: [
+ ClipPath(
+ clipper: _WaveClipper3(),
+ child: Container(
+ height: 240,
+ decoration: BoxDecoration(
+ gradient: LinearGradient(
+ colors: [AppColors.primary.withOpacity(0.5), AppColors.secondary.withOpacity(0.4)],
+ begin: Alignment.topLeft,
+ end: Alignment.bottomRight,
+ ),
+ ),
+ ),
+ ),
+ ClipPath(
+ clipper: _WaveClipper2(),
+ child: Container(
+ height: 210,
+ decoration: BoxDecoration(
+ gradient: LinearGradient(
+ colors: [AppColors.primary.withOpacity(0.7), AppColors.secondary.withOpacity(0.6)],
+ begin: Alignment.topLeft,
+ end: Alignment.bottomRight,
+ ),
+ ),
+ ),
+ ),
+ ClipPath(
+ clipper: _WaveClipper(),
+ child: Container(
+ height: 180,
+ decoration: const BoxDecoration(
+ gradient: LinearGradient(
+ colors: [AppColors.primary, AppColors.secondary],
+ begin: Alignment.topLeft,
+ end: Alignment.bottomRight,
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ // Konten utama
+ SingleChildScrollView(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const SizedBox(height: 24),
+ // Logo dan nama aplikasi di dalam area biru
+ Row(
+ children: [
+ Image.asset(
+ 'assets/images/logoputih.png',
+ height: 20,
+ ),
+ const SizedBox(width: 10),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: const [
+ Text(
+ '',
+ style: TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ letterSpacing: 1.2,
+ ),
+ ),
+ Text(
+ '',
+ style: TextStyle(
+ color: Colors.white70,
+ fontSize: 12,
+ letterSpacing: 1.1,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 18),
+ // Card Pendapatan mengambang
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 0),
+ decoration: BoxDecoration(
+ color: AppColors.primary,
+ borderRadius: BorderRadius.circular(18),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.10),
+ blurRadius: 16,
+ offset: const Offset(0, 8),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(18),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ const Icon(Icons.receipt_long, color: Colors.white, size: 22),
+ const SizedBox(width: 8),
+ const Text(
+ 'Total Pendapatan Hari Ini',
+ style: TextStyle(color: Colors.white, fontWeight: FontWeight.w600, fontSize: 15),
+ ),
+ const Spacer(),
+ Row(
+ children: [
+ Container(
+ width: 20,
+ height: 20,
+ decoration: const BoxDecoration(
+ color: Color(0xFFB3E5FC), // biru muda solid
+ shape: BoxShape.circle,
+ ),
+ ),
+ const SizedBox(width: 6),
+ Container(
+ width: 20,
+ height: 20,
+ decoration: BoxDecoration(
+ color: Colors.transparent,
+ shape: BoxShape.circle,
+ border: Border.all(color: Color(0xFFB3E5FC), width: 2), // outline biru muda
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 8),
+ Text(
+ 'Rp ${pendapatanHariIni.toString().replaceAllMapped(RegExp(r"(\d{1,3})(?=(\d{3})+(?!\d))"), (m) => "${m[1]}.")}',
+ style: const TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ fontSize: 28,
+ ),
+ ),
+ const SizedBox(height: 6),
+ Row(
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ 'Total Pendapatan Bulanan',
+ style: TextStyle(color: Colors.white70, fontSize: 13),
+ ),
+ Text(
+ 'Rp ${pendapatanBulanan.toString().replaceAllMapped(RegExp(r"(\d{1,3})(?=(\d{3})+(?!\d))"), (m) => "${m[1]}.")}',
+ style: const TextStyle(color: Colors.white, fontWeight: FontWeight.w600, fontSize: 15),
+ ),
+ ],
+ ),
+ const Spacer(),
+ Row(
+ children: [
+ const Text('Buka Kantin', style: TextStyle(color: Colors.white, fontWeight: FontWeight.w600, fontSize: 13)),
+ const SizedBox(width: 6),
+ _CustomToggle(),
+ ],
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(height: 28),
+ // Statistik Transaksi Hari Ini
+ Padding(
+ padding: const EdgeInsets.only(top: 8, bottom: 8),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ _statCard('Selesai', 30, Colors.blue),
+ _statCard('Dilayani', 22, Colors.blue),
+ _statCard('Dibatalkan', 3, Colors.blue),
+ ],
+ ),
+ ),
+ const SizedBox(height: 8),
+ // Sebelum card Total Menu
+ const Align(
+ alignment: Alignment.centerLeft,
+ child: Padding(
+ padding: EdgeInsets.only(left: 4, bottom: 4),
+ child: Text(
+ 'Total Menu',
+ style: TextStyle(
+ color: Colors.black,
+ fontWeight: FontWeight.normal,
+ fontSize: 15,
+ ),
+ textAlign: TextAlign.left,
+ ),
+ ),
+ ),
+ // Total Menu
+ Container(
+ width: double.infinity,
+ padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ border: Border.all(color: Colors.grey[300]!),
+ ),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Image.asset('assets/images/lg.png', height: 28),
+ const SizedBox(width: 10),
+ Text('8 Menu', style: TextStyle(color: Colors.blue, fontWeight: FontWeight.w600, fontSize: 16)),
+ ],
+ ),
+ ),
+ const SizedBox(height: 12),
+ // Grafik Penjualan
+ Container(
+ width: double.infinity,
+ padding: const EdgeInsets.all(16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey[200]!),
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text('Grafik Penjualan Setiap Bulan', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ const SizedBox(height: 12),
+ SizedBox(
+ height: 180,
+ child: LineChart(
+ LineChartData(
+ gridData: FlGridData(show: true, drawVerticalLine: false, horizontalInterval: 1),
+ titlesData: FlTitlesData(
+ leftTitles: AxisTitles(
+ sideTitles: SideTitles(
+ showTitles: true,
+ reservedSize: 40,
+ getTitlesWidget: (value, meta) {
+ switch (value.toInt()) {
+ case 0:
+ return const Text('0');
+ case 3:
+ return const Text('3 jt');
+ case 6:
+ return const Text('6 jt');
+ case 8:
+ return const Text('8 jt');
+ case 10:
+ return const Text('10 jt');
+ default:
+ return const SizedBox.shrink();
+ }
+ },
+ interval: 1,
+ ),
+ ),
+ bottomTitles: AxisTitles(
+ sideTitles: SideTitles(
+ showTitles: true,
+ getTitlesWidget: (value, meta) {
+ if (value >= 0 && value < 12) {
+ return Text('${value.toInt() + 1}', style: const TextStyle(fontSize: 11));
+ }
+ return const SizedBox.shrink();
+ },
+ interval: 1,
+ ),
+ ),
+ rightTitles: const AxisTitles(sideTitles: SideTitles(showTitles: false)),
+ topTitles: const AxisTitles(sideTitles: SideTitles(showTitles: false)),
+ ),
+ borderData: FlBorderData(show: true, border: Border.all(color: Colors.grey[300]!)),
+ minX: 0,
+ maxX: 11,
+ minY: 0,
+ maxY: 10,
+ lineBarsData: [
+ LineChartBarData(
+ isCurved: false,
+ color: Color(0xFF29B6F6),
+ barWidth: 2,
+ dotData: FlDotData(show: true),
+ belowBarData: BarAreaData(show: false),
+ spots: const [
+ FlSpot(0, 6),
+ FlSpot(1, 8),
+ FlSpot(2, 3),
+ FlSpot(3, 9),
+ FlSpot(4, 5),
+ FlSpot(5, 4),
+ FlSpot(6, 3),
+ FlSpot(7, 4),
+ FlSpot(8, 5),
+ FlSpot(9, 6),
+ FlSpot(10, 7),
+ FlSpot(11, 3),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 18),
+ // Alerts
+ if (lowStockProducts > 0) ...[
+ Container(
+ padding: const EdgeInsets.all(AppSizes.paddingMedium),
+ decoration: BoxDecoration(
+ color: AppColors.warning.withOpacity(0.1),
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ border: Border.all(color: AppColors.warning.withOpacity(0.3)),
+ ),
+ child: Row(
+ children: [
+ Icon(
+ Icons.warning,
+ color: AppColors.warning,
+ size: 24,
+ ),
+ const SizedBox(width: AppSizes.paddingMedium),
+ Expanded(
+ child: Text(
+ '$lowStockProducts produk dengan stok rendah',
+ style: TextStyle(
+ color: AppColors.warning,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ const SizedBox(height: 18),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ },
+ ),
+ );
+ }
+
+ Widget _statCard(String label, int value, Color color) {
+ return Expanded(
+ child: Container(
+ margin: const EdgeInsets.symmetric(horizontal: 4),
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(10),
+ border: Border.all(color: Colors.grey[300]!),
+ ),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Text(label, style: const TextStyle(fontSize: 13, color: Colors.black87)),
+ const SizedBox(height: 6),
+ Text('$value', style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold, color: color)),
+ ],
+ ),
+ ),
+ );
+ }
+}
+
+class _WaveClipper extends CustomClipper {
+ @override
+ Path getClip(Size size) {
+ final path = Path();
+ path.moveTo(0, size.height);
+ path.quadraticBezierTo(size.width / 4, size.height - 30, size.width / 2, size.height - 10);
+ path.quadraticBezierTo(size.width * 3 / 4, 0, size.width, 30);
+ path.lineTo(size.width, size.height);
+ path.lineTo(0, size.height);
+ path.close();
+ return path;
+ }
+
+ @override
+ bool shouldReclip(CustomClipper oldClipper) => false;
+}
+
+class _WaveClipper2 extends CustomClipper {
+ @override
+ Path getClip(Size size) {
+ final path = Path();
+ path.moveTo(0, size.height * 0.85);
+ path.quadraticBezierTo(size.width / 4, size.height * 0.75, size.width / 2, size.height * 0.85);
+ path.quadraticBezierTo(size.width * 3 / 4, size.height, size.width, size.height * 0.8);
+ path.lineTo(size.width, 0);
+ path.lineTo(0, 0);
+ path.close();
+ return path;
+ }
+
+ @override
+ bool shouldReclip(CustomClipper oldClipper) => false;
+}
+
+class _WaveClipper3 extends CustomClipper {
+ @override
+ Path getClip(Size size) {
+ final path = Path();
+ path.moveTo(0, size.height * 0.7);
+ path.quadraticBezierTo(size.width / 4, size.height * 0.9, size.width / 2, size.height * 0.7);
+ path.quadraticBezierTo(size.width * 3 / 4, size.height * 0.5, size.width, size.height * 0.8);
+ path.lineTo(size.width, 0);
+ path.lineTo(0, 0);
+ path.close();
+ return path;
+ }
+
+ @override
+ bool shouldReclip(CustomClipper oldClipper) => false;
+}
+
+class _CustomToggle extends StatefulWidget {
+ @override
+ State<_CustomToggle> createState() => _CustomToggleState();
+}
+
+class _CustomToggleState extends State<_CustomToggle> {
+ bool isOn = false;
+
+ @override
+ Widget build(BuildContext context) {
+ return GestureDetector(
+ onTap: () => setState(() => isOn = !isOn),
+ child: AnimatedContainer(
+ duration: const Duration(milliseconds: 200),
+ width: 38,
+ height: 22,
+ padding: const EdgeInsets.symmetric(horizontal: 3, vertical: 2),
+ decoration: BoxDecoration(
+ color: isOn ? const Color(0xFFB3E5FC) : Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: const Color(0xFFB3E5FC), width: 2),
+ ),
+ child: Align(
+ alignment: isOn ? Alignment.centerRight : Alignment.centerLeft,
+ child: Container(
+ width: 16,
+ height: 16,
+ decoration: BoxDecoration(
+ color: isOn ? Colors.white : const Color(0xFFB3E5FC),
+ shape: BoxShape.circle,
+ boxShadow: [
+ if (isOn)
+ BoxShadow(
+ color: Colors.black.withOpacity(0.08),
+ blurRadius: 2,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_history_screen.dart b/adminkurir/lib/screens/seller/seller_history_screen.dart
new file mode 100644
index 0000000..c2c2113
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_history_screen.dart
@@ -0,0 +1,462 @@
+import 'package:flutter/material.dart';
+import '../../utils/constants.dart';
+
+class SellerHistoryScreen extends StatefulWidget {
+ const SellerHistoryScreen({super.key});
+
+ @override
+ State createState() => _SellerHistoryScreenState();
+}
+
+class _SellerHistoryScreenState extends State with SingleTickerProviderStateMixin {
+ late TabController _tabController;
+ int selectedFilter = 0;
+ int selectedDate = 0;
+
+ @override
+ void initState() {
+ super.initState();
+ _tabController = TabController(length: 3, vsync: this);
+ }
+
+ @override
+ void dispose() {
+ _tabController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Header
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 18, 24, 0),
+ child: Text(
+ 'Riwayat Pesanan',
+ style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 22),
+ ),
+ ),
+ // Tab Bar
+ Padding(
+ padding: const EdgeInsets.only(top: 18, left: 0, right: 0),
+ child: TabBar(
+ controller: _tabController,
+ labelColor: AppColors.primary,
+ unselectedLabelColor: Colors.black54,
+ indicatorColor: AppColors.primary,
+ indicatorWeight: 3,
+ labelStyle: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
+ tabs: const [
+ Tab(text: 'Riwayat'),
+ Tab(text: 'RPH'),
+ Tab(text: 'RHP'),
+ ],
+ ),
+ ),
+ // TabBarView
+ Expanded(
+ child: TabBarView(
+ controller: _tabController,
+ children: [
+ // Tab 1: Riwayat
+ _riwayatTab(),
+ // Tab 2: RPH
+ _rphTab(),
+ // Tab 3: RHP
+ _rhpTab(),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _riwayatTab() {
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Total Keseluruhan
+ Padding(
+ padding: const EdgeInsets.only(top: 18),
+ child: Center(
+ child: Column(
+ children: const [
+ Text(
+ 'Rp 2.400.000',
+ style: TextStyle(
+ color: AppColors.primary,
+ fontWeight: FontWeight.bold,
+ fontSize: 28,
+ ),
+ ),
+ SizedBox(height: 2),
+ Text(
+ 'Total Keseluruhan',
+ style: TextStyle(color: Colors.black54, fontSize: 14),
+ ),
+ ],
+ ),
+ ),
+ ),
+ // Filter dan List Riwayat
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 18, 24, 0),
+ child: Row(
+ children: [
+ const Text('List Riwayat', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)),
+ const Spacer(),
+ DropdownButtonHideUnderline(
+ child: DropdownButton(
+ value: selectedFilter,
+ icon: const Icon(Icons.keyboard_arrow_down_rounded, color: AppColors.primary),
+ style: const TextStyle(color: AppColors.primary, fontWeight: FontWeight.bold),
+ items: const [
+ DropdownMenuItem(value: 0, child: Text('Semua')),
+ DropdownMenuItem(value: 1, child: Text('Selesai')),
+ DropdownMenuItem(value: 2, child: Text('Batal')),
+ ],
+ onChanged: (val) {
+ setState(() => selectedFilter = val ?? 0);
+ },
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 8),
+ // ListView
+ Expanded(
+ child: ListView.builder(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
+ itemCount: 4,
+ itemBuilder: (context, i) {
+ return _historyCard();
+ },
+ ),
+ ),
+ ],
+ );
+ }
+
+ Widget _rphTab() {
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Info box biru
+ Padding(
+ padding: const EdgeInsets.fromLTRB(16, 18, 16, 0),
+ child: Container(
+ width: double.infinity,
+ padding: const EdgeInsets.all(12),
+ decoration: BoxDecoration(
+ color: const Color(0xFFE3F2FD),
+ borderRadius: BorderRadius.circular(12),
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: const [
+ Icon(Icons.info, color: AppColors.primary, size: 22),
+ SizedBox(width: 10),
+ Expanded(
+ child: Text(
+ 'RPH (Rekap Pendapatan Harian) berguna untuk merekap semua pendapatan Anda setiap harinya. Untuk melihat RPH berdasarkan hari tertentu, pilih tanggal sesuai yang Anda ingin lihat',
+ style: TextStyle(fontSize: 13, color: Colors.black87),
+ textAlign: TextAlign.justify,
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ // Total Saldo
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 18, 24, 0),
+ child: Row(
+ children: const [
+ Text('Total Saldo', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)),
+ Spacer(),
+ Text('Rp 800.000', style: TextStyle(color: AppColors.primary, fontWeight: FontWeight.bold, fontSize: 16)),
+ ],
+ ),
+ ),
+ // Tanggal filter
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 12, 24, 0),
+ child: Row(
+ children: [
+ const Text('Tanggal', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)),
+ const Spacer(),
+ DropdownButtonHideUnderline(
+ child: DropdownButton(
+ value: selectedDate,
+ icon: const Icon(Icons.keyboard_arrow_down_rounded, color: AppColors.primary),
+ style: const TextStyle(color: AppColors.primary, fontWeight: FontWeight.bold),
+ items: const [
+ DropdownMenuItem(value: 0, child: Text('19-03-2025 - 20-03-2025')),
+ DropdownMenuItem(value: 1, child: Text('18-03-2025 - 19-03-2025')),
+ ],
+ onChanged: (val) {
+ setState(() => selectedDate = val ?? 0);
+ },
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 8),
+ // List RPH
+ Expanded(
+ child: ListView.builder(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 0),
+ itemCount: 2,
+ itemBuilder: (context, i) {
+ return _rphCard();
+ },
+ ),
+ ),
+ ],
+ );
+ }
+
+ Widget _rhpTab() {
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Info box biru
+ Padding(
+ padding: const EdgeInsets.fromLTRB(16, 18, 16, 0),
+ child: Container(
+ width: double.infinity,
+ padding: const EdgeInsets.all(12),
+ decoration: BoxDecoration(
+ color: const Color(0xFFE3F2FD),
+ borderRadius: BorderRadius.circular(12),
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: const [
+ Icon(Icons.info, color: AppColors.primary, size: 22),
+ SizedBox(width: 10),
+ Expanded(
+ child: Text(
+ 'RHP (Rekap Harian Produk) berguna untuk merekap semua pendapatan Anda dari setiap produk yang terjual. Untuk melihat RHP berdasarkan hari tertentu, pilih tanggal sesuai yang Anda ingin lihat',
+ style: TextStyle(fontSize: 13, color: Colors.black87),
+ textAlign: TextAlign.justify,
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ // Total Saldo
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 18, 24, 0),
+ child: Row(
+ children: const [
+ Text('Total Saldo', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)),
+ Spacer(),
+ Text('Rp 800.000', style: TextStyle(color: AppColors.primary, fontWeight: FontWeight.bold, fontSize: 16)),
+ ],
+ ),
+ ),
+ // Tanggal filter
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 12, 24, 0),
+ child: Row(
+ children: [
+ const Text('Tanggal', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)),
+ const Spacer(),
+ DropdownButtonHideUnderline(
+ child: DropdownButton(
+ value: selectedDate,
+ icon: const Icon(Icons.keyboard_arrow_down_rounded, color: AppColors.primary),
+ style: const TextStyle(color: AppColors.primary, fontWeight: FontWeight.bold),
+ items: const [
+ DropdownMenuItem(value: 0, child: Text('19-03-2025 - 20-03-2025')),
+ DropdownMenuItem(value: 1, child: Text('18-03-2025 - 19-03-2025')),
+ ],
+ onChanged: (val) {
+ setState(() => selectedDate = val ?? 0);
+ },
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 8),
+ // List RHP
+ Expanded(
+ child: ListView.builder(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 0),
+ itemCount: 2,
+ itemBuilder: (context, i) {
+ return _rhpCard();
+ },
+ ),
+ ),
+ ],
+ );
+ }
+
+ Widget _historyCard() {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 14),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.04),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ border: Border.all(color: Colors.grey[200]!),
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Circle icon biru
+ CircleAvatar(
+ radius: 22,
+ backgroundColor: AppColors.primary,
+ child: const Text('KP', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
+ ),
+ const SizedBox(width: 12),
+ // Info
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: const [
+ Text('Nomor Transaksi : TRDKN2350', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ ],
+ ),
+ const SizedBox(height: 2),
+ const Text('Tanggal Pemesanan : 2024-01-13 12:54:20', style: TextStyle(fontSize: 11, color: Colors.black54)),
+ const SizedBox(height: 6),
+ const Text('Pembayaran : Tunai', style: TextStyle(fontSize: 12)),
+ const SizedBox(height: 2),
+ Row(
+ children: const [
+ Expanded(child: Text('Nasi Ayam Geprek', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14))),
+ Text('Rp 10.000', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ SizedBox(width: 8),
+ Text('x2', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ ],
+ ),
+ const SizedBox(height: 2),
+ const Text('Rp 20.000', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ const SizedBox(height: 2),
+ const Text('Pesanan Offline', style: TextStyle(fontSize: 11, color: Colors.black87)),
+ const SizedBox(height: 2),
+ Row(
+ children: const [
+ Text('Status : ', style: TextStyle(fontSize: 12, color: Colors.black54)),
+ Text('Selesai', style: TextStyle(fontSize: 12, color: AppColors.primary, fontWeight: FontWeight.bold)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _rphCard() {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 14),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.04),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ border: Border.all(color: Colors.grey[200]!),
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: const [
+ Text('Tgl : 2025-03-19 | 10 Transaksi', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ Spacer(),
+ Text('Rp 20.000', style: TextStyle(color: AppColors.primary, fontWeight: FontWeight.bold, fontSize: 14)),
+ ],
+ ),
+ const SizedBox(height: 8),
+ Row(
+ children: const [
+ Expanded(child: Text('VIRTUAL ACCOUNT', style: TextStyle(fontSize: 12, color: Colors.black54))),
+ Text('Rp 0', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 12)),
+ ],
+ ),
+ const SizedBox(height: 2),
+ Row(
+ children: const [
+ Expanded(child: Text('E-WALLET', style: TextStyle(fontSize: 12, color: Colors.black54))),
+ Text('Rp 40.000', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 12)),
+ ],
+ ),
+ const SizedBox(height: 2),
+ Row(
+ children: const [
+ Expanded(child: Text('TUNAI', style: TextStyle(fontSize: 12, color: Colors.black54))),
+ Text('Rp 67.000', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 12)),
+ ],
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _rhpCard() {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 14),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.04),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ border: Border.all(color: Colors.grey[200]!),
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: const [
+ Row(
+ children: [
+ Text('Kode Produk : 211', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ Spacer(),
+ Text('Rp 400.000', style: TextStyle(color: AppColors.primary, fontWeight: FontWeight.bold, fontSize: 14)),
+ ],
+ ),
+ SizedBox(height: 8),
+ Text('Nama : Nasi Ayam Geprek', style: TextStyle(fontSize: 13)),
+ Text('Harga : Rp 10.000', style: TextStyle(fontSize: 13)),
+ Text('Jumlah yang terjual : 40 item', style: TextStyle(fontSize: 13)),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_menu_screen.dart b/adminkurir/lib/screens/seller/seller_menu_screen.dart
new file mode 100644
index 0000000..175e456
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_menu_screen.dart
@@ -0,0 +1,168 @@
+import 'package:flutter/material.dart';
+import '../../utils/constants.dart';
+import 'seller_custom_order_screen.dart';
+
+class SellerMenuScreen extends StatefulWidget {
+ const SellerMenuScreen({super.key});
+
+ @override
+ State createState() => _SellerMenuScreenState();
+}
+
+class _SellerMenuScreenState extends State {
+ // Dummy data status tersedia/habis
+ final List available = [false, false, true, true, true, true];
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: AppColors.background,
+ body: Column(
+ children: [
+ // Header biru
+ Container(
+ width: double.infinity,
+ padding: const EdgeInsets.only(top: 36, left: 8, right: 18, bottom: 18),
+ decoration: const BoxDecoration(
+ gradient: LinearGradient(
+ colors: [AppColors.primary, AppColors.secondary],
+ begin: Alignment.topLeft,
+ end: Alignment.bottomRight,
+ ),
+ ),
+ child: Row(
+ children: [
+ IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.white),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ const SizedBox(width: 2),
+ const Expanded(
+ child: Text(
+ 'Menu Kantin',
+ style: TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ fontSize: 20,
+ ),
+ ),
+ ),
+ Image.asset('assets/images/logoputih.png', height: 22),
+ ],
+ ),
+ ),
+ // Teks instruksi
+ const Padding(
+ padding: EdgeInsets.symmetric(horizontal: 18, vertical: 10),
+ child: Text(
+ 'Untuk mengganti ketersediaan menu, silakan tekan tombol "Tersedia" atau "Habis".',
+ style: TextStyle(fontSize: 13, color: Colors.black87),
+ ),
+ ),
+ // List menu
+ Expanded(
+ child: ListView.builder(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 0),
+ itemCount: available.length,
+ itemBuilder: (context, i) {
+ return _menuCard(context, i);
+ },
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _menuCard(BuildContext context, int i) {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 6),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(18),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.04),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ border: Border.all(color: Colors.grey[200]!),
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(12),
+ child: Image.asset(
+ 'assets/images/nasi_ayam.jpg',
+ width: 68,
+ height: 68,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 10),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Expanded(
+ child: Text(
+ 'Nasi Ayam Geprek',
+ style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ ),
+ ),
+ TextButton(
+ onPressed: () {
+ Navigator.of(context).push(
+ MaterialPageRoute(builder: (_) => const SellerCustomOrderScreen()),
+ );
+ },
+ style: TextButton.styleFrom(
+ padding: EdgeInsets.zero,
+ minimumSize: const Size(40, 24),
+ tapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ visualDensity: VisualDensity.compact,
+ ),
+ child: const Text('Detail', style: TextStyle(color: AppColors.primary, fontSize: 12, fontWeight: FontWeight.w600)),
+ ),
+ ],
+ ),
+ const SizedBox(height: 2),
+ const Text('Rp 10.000', style: TextStyle(fontSize: 13, color: Colors.black87)),
+ const SizedBox(height: 8),
+ Row(
+ children: [
+ const Spacer(),
+ SizedBox(
+ height: 28,
+ child: ElevatedButton(
+ onPressed: () {
+ setState(() => available[i] = !available[i]);
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: available[i] ? AppColors.primary : Colors.red,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 0),
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
+ textStyle: const TextStyle(fontSize: 12, fontWeight: FontWeight.bold),
+ elevation: 0,
+ ),
+ child: Text(available[i] ? 'Tersedia' : 'Habis'),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_orders_screen.dart b/adminkurir/lib/screens/seller/seller_orders_screen.dart
new file mode 100644
index 0000000..d536257
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_orders_screen.dart
@@ -0,0 +1,527 @@
+import 'package:flutter/material.dart';
+import '../../models/order_model.dart';
+import '../../utils/constants.dart';
+import '../../utils/helpers.dart';
+import 'seller_menu_screen.dart';
+
+class SellerOrdersScreen extends StatefulWidget {
+ const SellerOrdersScreen({super.key});
+
+ @override
+ State createState() => _SellerOrdersScreenState();
+}
+
+class _SellerOrdersScreenState extends State {
+ String _selectedStatus = 'all';
+
+ // Tambahkan list status untuk dummy order
+ final List _orderStatusList = [
+ 'Pesanan menunggu diproses',
+ 'Pesanan menunggu diproses',
+ ];
+ final List _orderWaitingList = [false, false];
+
+ @override
+ void initState() {
+ super.initState();
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ // Load orders
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: AppColors.background,
+ body: Column(
+ children: [
+ // Header biru
+ Container(
+ width: double.infinity,
+ padding: const EdgeInsets.only(top: 36, left: 18, right: 18, bottom: 18),
+ decoration: const BoxDecoration(
+ gradient: LinearGradient(
+ colors: [AppColors.primary, AppColors.secondary],
+ begin: Alignment.topLeft,
+ end: Alignment.bottomRight,
+ ),
+ borderRadius: BorderRadius.only(
+ bottomLeft: Radius.circular(0),
+ bottomRight: Radius.circular(0),
+ ),
+ ),
+ child: Row(
+ children: [
+ const Expanded(
+ child: Text(
+ 'Pesanan',
+ style: TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ fontSize: 22,
+ ),
+ ),
+ ),
+ Image.asset('assets/images/logoputih.png', height: 20),
+ ],
+ ),
+ ),
+ // Card Atur Menu
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 12),
+ child: Container(
+ width: double.infinity,
+ padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 14),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(14),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.04),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Row(
+ children: [
+ Image.asset('assets/images/lg.png', height: 32),
+ const SizedBox(width: 10),
+ const Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Atur Menu', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
+ Text('Mau atur stok menu? Klik "Menu"', style: TextStyle(fontSize: 12, color: Colors.black54)),
+ ],
+ ),
+ ),
+ ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).push(
+ MaterialPageRoute(builder: (_) => const SellerMenuScreen()),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: AppColors.primary,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 8),
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
+ textStyle: const TextStyle(fontSize: 13, fontWeight: FontWeight.bold),
+ elevation: 0,
+ ),
+ child: const Text('Menu'),
+ ),
+ ],
+ ),
+ ),
+ ),
+ // Teks instruksi
+ const Padding(
+ padding: EdgeInsets.symmetric(horizontal: 18, vertical: 0),
+ child: Text(
+ 'Tekan tombol "Memasak" untuk memasak pesanan, lalu tekan tombol "Selesai" jika sudah menyelesaikan pesanan.',
+ style: TextStyle(fontSize: 13, color: Colors.black87),
+ ),
+ ),
+ const SizedBox(height: 8),
+ // List pesanan
+ Expanded(
+ child: ListView(
+ padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 0),
+ children: [
+ _orderCard(
+ context,
+ index: 0,
+ offline: true,
+ nama: 'Nasi Ayam Geprek',
+ gambar: 'assets/images/nasi_ayam.jpg',
+ kode: '#TRDKN2350',
+ waktu: '2024-01-13 12:54:20',
+ level: 'Level 1',
+ pembeli: 'Dwi Sartika',
+ catatan: 'Cth: Nasinya dikit',
+ meja: '23',
+ status: _orderStatusList[0],
+ ),
+ _orderCard(
+ context,
+ index: 1,
+ offline: false,
+ nama: 'Nasi Ayam Geprek',
+ gambar: 'assets/images/nasi_ayam.jpg',
+ kode: '#TRDKN2350',
+ waktu: '2024-01-13 12:54:20',
+ level: 'Level 1',
+ pembeli: 'Dwi Sartika',
+ catatan: 'Cth: Nasinya dikit\nTambah Alat Makan',
+ meja: null,
+ status: _orderStatusList[1],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _orderCard(
+ BuildContext context, {
+ required int index,
+ required bool offline,
+ required String nama,
+ required String gambar,
+ required String kode,
+ required String waktu,
+ required String level,
+ required String pembeli,
+ required String catatan,
+ String? meja,
+ required String status,
+ }) {
+ final bool isProcessing = status == 'Pesanan lagi diproses';
+ final bool isWaiting = status == 'Menunggu pesanan lain diselesaikan';
+ return Container(
+ margin: const EdgeInsets.only(bottom: 14),
+ padding: const EdgeInsets.all(10),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(14),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.04),
+ blurRadius: 4,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ border: Border.all(color: Colors.grey[200]!),
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(10),
+ child: Image.asset(
+ gambar,
+ width: 54,
+ height: 54,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 10),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Baris atas: kode, waktu, status, x1
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(kode, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 11)),
+ Text(waktu, style: const TextStyle(fontSize: 9, color: Colors.black45)),
+ ],
+ ),
+ ),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text(
+ offline ? 'Pesanan Offline' : 'Pesanan Online',
+ style: TextStyle(
+ color: offline ? Colors.black87 : AppColors.primary,
+ fontWeight: FontWeight.w600,
+ fontSize: 10,
+ ),
+ ),
+ const SizedBox(height: 2),
+ Text('x1', style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 11)),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 2),
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Info kiri
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(nama, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 13)),
+ Text(level, style: const TextStyle(fontSize: 11, color: Colors.black87)),
+ Text('Pembeli : $pembeli', style: const TextStyle(fontSize: 11, color: Colors.black87)),
+ ],
+ ),
+ ),
+ // Info kanan
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text('Cth: $catatan', style: const TextStyle(fontSize: 11, color: Colors.black54)),
+ if (meja != null)
+ Padding(
+ padding: const EdgeInsets.only(top: 1, bottom: 1),
+ child: Text('Meja : $meja', style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 11, color: Colors.black)),
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 8),
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ // Status di kiri bawah
+ Expanded(
+ child: Align(
+ alignment: Alignment.bottomLeft,
+ child: Container(
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
+ decoration: BoxDecoration(
+ color: isProcessing
+ ? Colors.green[50]
+ : isWaiting
+ ? Colors.blue[50]
+ : Colors.red[50],
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Text(
+ status,
+ style: TextStyle(
+ color: isProcessing
+ ? Colors.green
+ : isWaiting
+ ? Colors.blue
+ : Colors.red,
+ fontSize: 11,
+ fontWeight: FontWeight.w600,
+ ),
+ overflow: TextOverflow.ellipsis,
+ ),
+ ),
+ ),
+ ),
+ // Tombol di kanan bawah
+ Align(
+ alignment: Alignment.bottomRight,
+ child: SizedBox(
+ height: 28,
+ child: ElevatedButton(
+ onPressed: isProcessing
+ ? () {
+ setState(() {
+ _orderStatusList[index] = 'Menunggu pesanan lain diselesaikan';
+ _orderWaitingList[index] = true;
+ });
+ }
+ : isWaiting
+ ? null
+ : () {
+ _showConfirmCookDialog(context, index);
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: isProcessing
+ ? const Color(0xFF2196F3)
+ : isWaiting
+ ? Colors.grey[400]
+ : const Color(0xFFFFEB3B),
+ foregroundColor: isProcessing
+ ? Colors.white
+ : isWaiting
+ ? Colors.white
+ : Colors.black,
+ padding: isWaiting
+ ? const EdgeInsets.symmetric(horizontal: 12, vertical: 0)
+ : const EdgeInsets.symmetric(horizontal: 24, vertical: 0),
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
+ textStyle: const TextStyle(fontSize: 11, fontWeight: FontWeight.bold),
+ elevation: 0,
+ ),
+ child: Text(isProcessing
+ ? 'Selesai'
+ : isWaiting
+ ? 'Menunggu'
+ : 'Memasak'),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildFilterChip(String label, String status) {
+ final isSelected = _selectedStatus == status;
+ return FilterChip(
+ label: Text(label),
+ selected: isSelected,
+ onSelected: (selected) {
+ setState(() {
+ _selectedStatus = status;
+ });
+ },
+ selectedColor: AppColors.primary.withOpacity(0.2),
+ checkmarkColor: AppColors.primary,
+ labelStyle: TextStyle(
+ color: isSelected ? AppColors.primary : AppColors.textSecondary,
+ fontWeight: isSelected ? FontWeight.w600 : FontWeight.normal,
+ ),
+ );
+ }
+
+ Order _getMockOrder(int index) {
+ final mockOrders = [
+ Order(
+ id: '1',
+ customerId: 'customer1',
+ sellerId: '1',
+ courierId: '2',
+ items: [
+ OrderItem(
+ productId: '1',
+ productName: 'Laptop Gaming ASUS ROG',
+ quantity: 1,
+ price: 15000000,
+ ),
+ ],
+ totalAmount: 15000000,
+ status: OrderStatus.shipped,
+ shippingAddress: 'Jl. Customer No. 789, Jakarta',
+ trackingNumber: 'TRK001',
+ createdAt: DateTime.now().subtract(const Duration(days: 2)),
+ ),
+ Order(
+ id: '2',
+ customerId: 'customer2',
+ sellerId: '1',
+ courierId: null,
+ items: [
+ OrderItem(
+ productId: '2',
+ productName: 'Smartphone Samsung Galaxy S24',
+ quantity: 1,
+ price: 12000000,
+ ),
+ OrderItem(
+ productId: '3',
+ productName: 'Sepatu Nike Air Max',
+ quantity: 2,
+ price: 2500000,
+ ),
+ ],
+ totalAmount: 17000000,
+ status: OrderStatus.confirmed,
+ shippingAddress: 'Jl. Customer No. 456, Bandung',
+ createdAt: DateTime.now().subtract(const Duration(days: 1)),
+ ),
+ ];
+
+ return mockOrders[index % mockOrders.length];
+ }
+
+ void _showConfirmCookDialog(BuildContext context, int index) {
+ showDialog(
+ context: context,
+ barrierDismissible: true,
+ builder: (context) {
+ return Dialog(
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(18)),
+ insetPadding: const EdgeInsets.symmetric(horizontal: 32, vertical: 24),
+ child: Stack(
+ children: [
+ Padding(
+ padding: const EdgeInsets.fromLTRB(20, 20, 20, 16),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ const SizedBox(height: 8),
+ Image.asset(
+ 'assets/images/tanya.png',
+ height: 90,
+ fit: BoxFit.contain,
+ ),
+ const SizedBox(height: 16),
+ const Text(
+ 'Pesanan akan dimasak?',
+ style: TextStyle(
+ color: Color(0xFF2196F3),
+ fontWeight: FontWeight.bold,
+ fontSize: 18,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 6),
+ const Text(
+ 'Tekan tombol "Ya" untuk mengkonfirmasi',
+ style: TextStyle(
+ color: Colors.black54,
+ fontSize: 13,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 22),
+ Row(
+ children: [
+ Expanded(
+ child: ElevatedButton(
+ onPressed: () => Navigator.of(context).pop(),
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.red,
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
+ padding: const EdgeInsets.symmetric(vertical: 10),
+ elevation: 0,
+ ),
+ child: const Text('Tidak'),
+ ),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: ElevatedButton(
+ onPressed: () {
+ setState(() {
+ _orderStatusList[index] = 'Pesanan lagi diproses';
+ });
+ Navigator.of(context).pop();
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Color(0xFF2196F3),
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
+ padding: const EdgeInsets.symmetric(vertical: 10),
+ elevation: 0,
+ ),
+ child: const Text('Ya'),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ Positioned(
+ top: 8,
+ right: 8,
+ child: GestureDetector(
+ onTap: () => Navigator.of(context).pop(),
+ child: const Icon(Icons.close, size: 22, color: Colors.black45),
+ ),
+ ),
+ ],
+ ),
+ );
+ },
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_products_screen.dart b/adminkurir/lib/screens/seller/seller_products_screen.dart
new file mode 100644
index 0000000..7646ad7
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_products_screen.dart
@@ -0,0 +1,247 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+import '../../providers/product_provider.dart';
+import '../../models/product_model.dart';
+import '../../utils/constants.dart';
+import '../../utils/helpers.dart';
+import '../../widgets/custom_button.dart';
+
+class SellerProductsScreen extends StatefulWidget {
+ const SellerProductsScreen({super.key});
+
+ @override
+ State createState() => _SellerProductsScreenState();
+}
+
+class _SellerProductsScreenState extends State {
+ @override
+ void initState() {
+ super.initState();
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ Provider.of(context, listen: false).loadProducts();
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: AppColors.background,
+ appBar: AppBar(
+ title: const Text('Kelola Produk'),
+ backgroundColor: AppColors.primary,
+ foregroundColor: Colors.white,
+ elevation: 0,
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.add),
+ onPressed: () {
+ // Navigate to add product screen
+ },
+ ),
+ ],
+ ),
+ body: Consumer(
+ builder: (context, productProvider, child) {
+ if (productProvider.isLoading) {
+ return const Center(
+ child: CircularProgressIndicator(),
+ );
+ }
+
+ if (productProvider.products.isEmpty) {
+ return Center(
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Icon(
+ Icons.inventory_2,
+ size: 64,
+ color: AppColors.textSecondary,
+ ),
+ const SizedBox(height: AppSizes.paddingMedium),
+ Text(
+ 'Belum ada produk',
+ style: Theme.of(context).textTheme.titleMedium?.copyWith(
+ color: AppColors.textSecondary,
+ ),
+ ),
+ const SizedBox(height: AppSizes.paddingMedium),
+ CustomButton(
+ onPressed: () {
+ // Navigate to add product screen
+ },
+ text: 'Tambah Produk Pertama',
+ icon: Icons.add,
+ width: 200,
+ ),
+ ],
+ ),
+ );
+ }
+
+ return ListView.builder(
+ padding: const EdgeInsets.all(AppSizes.paddingMedium),
+ itemCount: productProvider.products.length,
+ itemBuilder: (context, index) {
+ final product = productProvider.products[index];
+ return _buildProductCard(product);
+ },
+ );
+ },
+ ),
+ );
+ }
+
+ Widget _buildProductCard(Product product) {
+ return Card(
+ margin: const EdgeInsets.only(bottom: AppSizes.paddingMedium),
+ elevation: 2,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(AppSizes.paddingMedium),
+ child: Row(
+ children: [
+ // Product Image
+ Container(
+ width: 80,
+ height: 80,
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ color: AppColors.background,
+ ),
+ child: product.images.isNotEmpty
+ ? ClipRRect(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ child: Image.network(
+ product.images.first,
+ fit: BoxFit.cover,
+ errorBuilder: (context, error, stackTrace) {
+ return Icon(
+ Icons.image,
+ color: AppColors.textSecondary,
+ );
+ },
+ ),
+ )
+ : Icon(
+ Icons.image,
+ color: AppColors.textSecondary,
+ ),
+ ),
+ const SizedBox(width: AppSizes.paddingMedium),
+
+ // Product Info
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ product.name,
+ style: Theme.of(context).textTheme.titleMedium?.copyWith(
+ fontWeight: FontWeight.bold,
+ color: AppColors.textPrimary,
+ ),
+ maxLines: 2,
+ overflow: TextOverflow.ellipsis,
+ ),
+ const SizedBox(height: AppSizes.paddingSmall),
+ Text(
+ product.description,
+ style: Theme.of(context).textTheme.bodyMedium?.copyWith(
+ color: AppColors.textSecondary,
+ ),
+ maxLines: 2,
+ overflow: TextOverflow.ellipsis,
+ ),
+ const SizedBox(height: AppSizes.paddingSmall),
+ Row(
+ children: [
+ Text(
+ Helpers.formatCurrency(product.price),
+ style: Theme.of(context).textTheme.titleSmall?.copyWith(
+ fontWeight: FontWeight.bold,
+ color: AppColors.primary,
+ ),
+ ),
+ const Spacer(),
+ Container(
+ padding: const EdgeInsets.symmetric(
+ horizontal: AppSizes.paddingSmall,
+ vertical: 4,
+ ),
+ decoration: BoxDecoration(
+ color: product.stock < 5
+ ? AppColors.warning.withOpacity(0.1)
+ : AppColors.success.withOpacity(0.1),
+ borderRadius: BorderRadius.circular(AppSizes.radiusSmall),
+ ),
+ child: Text(
+ 'Stok: ${product.stock}',
+ style: TextStyle(
+ fontSize: 12,
+ fontWeight: FontWeight.w500,
+ color: product.stock < 5 ? AppColors.warning : AppColors.success,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(width: AppSizes.paddingSmall),
+
+ // Action Buttons
+ Column(
+ children: [
+ IconButton(
+ icon: const Icon(Icons.edit),
+ onPressed: () {
+ // Navigate to edit product screen
+ },
+ color: AppColors.primary,
+ ),
+ IconButton(
+ icon: const Icon(Icons.delete),
+ onPressed: () {
+ _showDeleteConfirmation(product);
+ },
+ color: AppColors.error,
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ void _showDeleteConfirmation(Product product) {
+ showDialog(
+ context: context,
+ builder: (context) => AlertDialog(
+ title: const Text('Hapus Produk'),
+ content: Text('Apakah Anda yakin ingin menghapus produk "${product.name}"?'),
+ actions: [
+ TextButton(
+ onPressed: () => Navigator.of(context).pop(),
+ child: const Text('Batal'),
+ ),
+ TextButton(
+ onPressed: () {
+ Provider.of(context, listen: false)
+ .deleteProduct(product.id);
+ Navigator.of(context).pop();
+ },
+ child: const Text(
+ 'Hapus',
+ style: TextStyle(color: AppColors.error),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/screens/seller/seller_profile_screen.dart b/adminkurir/lib/screens/seller/seller_profile_screen.dart
new file mode 100644
index 0000000..d4619c5
--- /dev/null
+++ b/adminkurir/lib/screens/seller/seller_profile_screen.dart
@@ -0,0 +1,166 @@
+import 'package:flutter/material.dart';
+import '../../utils/constants.dart';
+
+class SellerProfileScreen extends StatefulWidget {
+ const SellerProfileScreen({super.key});
+
+ @override
+ State createState() => _SellerProfileScreenState();
+}
+
+class _SellerProfileScreenState extends State {
+ final TextEditingController usernameController = TextEditingController(text: 'Kantin1');
+ final TextEditingController ownerController = TextEditingController(text: 'Bu Djoko');
+ final TextEditingController kantinController = TextEditingController(text: 'Kantin 1');
+ final TextEditingController emailController = TextEditingController(text: 'kantin1@gmail.com');
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Stack(
+ children: [
+ SingleChildScrollView(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ const SizedBox(height: 8),
+ // Header: judul rata kiri
+ Row(
+ children: const [
+ Text(
+ 'Edit Profil',
+ style: TextStyle(fontWeight: FontWeight.bold, fontSize: 22),
+ ),
+ ],
+ ),
+ const SizedBox(height: 24),
+ // Foto profil bulat di tengah
+ Center(
+ child: Stack(
+ alignment: Alignment.bottomRight,
+ children: [
+ CircleAvatar(
+ radius: 54,
+ backgroundImage: AssetImage('assets/images/nasi_ayam.jpg'),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 32),
+ // Username
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Username', style: TextStyle(color: Colors.black87, fontWeight: FontWeight.w500)),
+ ),
+ const SizedBox(height: 6),
+ TextField(
+ controller: usernameController,
+ enabled: false,
+ decoration: InputDecoration(
+ contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ filled: true,
+ fillColor: Colors.grey[100],
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12), borderSide: BorderSide.none),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Nama Pemilik
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Nama Pemilik', style: TextStyle(color: Colors.black87, fontWeight: FontWeight.w500)),
+ ),
+ const SizedBox(height: 6),
+ TextField(
+ controller: ownerController,
+ enabled: false,
+ decoration: InputDecoration(
+ contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ filled: true,
+ fillColor: Colors.grey[100],
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12), borderSide: BorderSide.none),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Nama Kantin
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Nama Kantin', style: TextStyle(color: Colors.black87, fontWeight: FontWeight.w500)),
+ ),
+ const SizedBox(height: 6),
+ TextField(
+ controller: kantinController,
+ enabled: false,
+ decoration: InputDecoration(
+ contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ filled: true,
+ fillColor: Colors.grey[100],
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12), borderSide: BorderSide.none),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Email
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text('Email', style: TextStyle(color: Colors.black87, fontWeight: FontWeight.w500)),
+ ),
+ const SizedBox(height: 6),
+ TextField(
+ controller: emailController,
+ enabled: false,
+ decoration: InputDecoration(
+ contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ filled: true,
+ fillColor: Colors.grey[100],
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12), borderSide: BorderSide.none),
+ ),
+ ),
+ const SizedBox(height: 28),
+ SizedBox(
+ width: double.infinity,
+ height: 44,
+ child: ElevatedButton(
+ onPressed: () {
+ // TODO: Simpan perubahan
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: AppColors.primary,
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
+ textStyle: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
+ ),
+ child: const Text('Simpan Perubahan'),
+ ),
+ ),
+ const SizedBox(height: 24),
+ ],
+ ),
+ ),
+ ),
+ // Tombol logout di kanan atas
+ Positioned(
+ top: 0,
+ right: 0,
+ child: Container(
+ margin: const EdgeInsets.only(top: 8, right: 16),
+ decoration: BoxDecoration(
+ color: AppColors.primary,
+ borderRadius: BorderRadius.circular(10),
+ ),
+ child: IconButton(
+ icon: const Icon(Icons.logout, color: Colors.white),
+ onPressed: () {
+ Navigator.pushReplacementNamed(context, '/login');
+ },
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/utils/constants.dart b/adminkurir/lib/utils/constants.dart
new file mode 100644
index 0000000..de37590
--- /dev/null
+++ b/adminkurir/lib/utils/constants.dart
@@ -0,0 +1,108 @@
+import 'package:flutter/material.dart';
+
+class AppColors {
+ static const Color primary = Color(0xFF2196F3);
+ static const Color secondary = Color(0xFF1976D2);
+ static const Color accent = Color(0xFFFF9800);
+ static const Color success = Color(0xFF4CAF50);
+ static const Color warning = Color(0xFFFFC107);
+ static const Color error = Color(0xFFF44336);
+ static const Color background = Color(0xFFF5F5F5);
+ static const Color surface = Color(0xFFFFFFFF);
+ static const Color textPrimary = Color(0xFF212121);
+ static const Color textSecondary = Color(0xFF757575);
+ static const Color divider = Color(0xFFBDBDBD);
+}
+
+class AppSizes {
+ static const double paddingSmall = 8.0;
+ static const double paddingMedium = 16.0;
+ static const double paddingLarge = 24.0;
+ static const double radiusSmall = 4.0;
+ static const double radiusMedium = 8.0;
+ static const double radiusLarge = 12.0;
+ static const double iconSize = 24.0;
+ static const double buttonHeight = 48.0;
+}
+
+class AppStrings {
+ static const String appName = 'Admin Kurir';
+ static const String login = 'Masuk';
+ static const String logout = 'Keluar';
+ static const String email = 'Email';
+ static const String password = 'Password';
+ static const String name = 'Nama';
+ static const String phone = 'Telepon';
+ static const String address = 'Alamat';
+ static const String save = 'Simpan';
+ static const String cancel = 'Batal';
+ static const String delete = 'Hapus';
+ static const String edit = 'Edit';
+ static const String add = 'Tambah';
+ static const String search = 'Cari';
+ static const String loading = 'Memuat...';
+ static const String noData = 'Tidak ada data';
+ static const String error = 'Terjadi kesalahan';
+ static const String success = 'Berhasil';
+ static const String confirm = 'Konfirmasi';
+ static const String yes = 'Ya';
+ static const String no = 'Tidak';
+}
+
+class OrderStatus {
+ static const String pending = 'pending';
+ static const String confirmed = 'confirmed';
+ static const String shipped = 'shipped';
+ static const String delivered = 'delivered';
+ static const String cancelled = 'cancelled';
+
+ static String getDisplayName(String status) {
+ switch (status) {
+ case pending:
+ return 'Menunggu';
+ case confirmed:
+ return 'Dikonfirmasi';
+ case shipped:
+ return 'Dikirim';
+ case delivered:
+ return 'Terkirim';
+ case cancelled:
+ return 'Dibatalkan';
+ default:
+ return status;
+ }
+ }
+
+ static Color getStatusColor(String status) {
+ switch (status) {
+ case pending:
+ return AppColors.warning;
+ case confirmed:
+ return AppColors.primary;
+ case shipped:
+ return AppColors.accent;
+ case delivered:
+ return AppColors.success;
+ case cancelled:
+ return AppColors.error;
+ default:
+ return AppColors.textSecondary;
+ }
+ }
+}
+
+class UserRole {
+ static const String seller = 'seller';
+ static const String courier = 'courier';
+
+ static String getDisplayName(String role) {
+ switch (role) {
+ case seller:
+ return 'Penjual';
+ case courier:
+ return 'Kurir';
+ default:
+ return role;
+ }
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/utils/helpers.dart b/adminkurir/lib/utils/helpers.dart
new file mode 100644
index 0000000..178a129
--- /dev/null
+++ b/adminkurir/lib/utils/helpers.dart
@@ -0,0 +1,73 @@
+class Helpers {
+ static String formatCurrency(double amount) {
+ return 'Rp ${amount.toStringAsFixed(0).replaceAllMapped(
+ RegExp(r'(\d{1,3})(?=(\d{3})+(?!\d))'),
+ (Match m) => '${m[1]}.',
+ )}';
+ }
+
+ static String formatDate(DateTime date) {
+ final months = [
+ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
+ 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
+ ];
+ return '${date.day} ${months[date.month - 1]} ${date.year}, ${date.hour.toString().padLeft(2, '0')}:${date.minute.toString().padLeft(2, '0')}';
+ }
+
+ static String formatDateOnly(DateTime date) {
+ final months = [
+ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
+ 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
+ ];
+ return '${date.day} ${months[date.month - 1]} ${date.year}';
+ }
+
+ static String formatTime(DateTime date) {
+ return '${date.hour.toString().padLeft(2, '0')}:${date.minute.toString().padLeft(2, '0')}';
+ }
+
+ static String getTimeAgo(DateTime date) {
+ final now = DateTime.now();
+ final difference = now.difference(date);
+
+ if (difference.inDays > 0) {
+ return '${difference.inDays} hari yang lalu';
+ } else if (difference.inHours > 0) {
+ return '${difference.inHours} jam yang lalu';
+ } else if (difference.inMinutes > 0) {
+ return '${difference.inMinutes} menit yang lalu';
+ } else {
+ return 'Baru saja';
+ }
+ }
+
+ static String capitalize(String text) {
+ if (text.isEmpty) return text;
+ return text[0].toUpperCase() + text.substring(1).toLowerCase();
+ }
+
+ static String truncateText(String text, int maxLength) {
+ if (text.length <= maxLength) return text;
+ return '${text.substring(0, maxLength)}...';
+ }
+
+ static bool isValidEmail(String email) {
+ return RegExp(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$').hasMatch(email);
+ }
+
+ static bool isValidPhone(String phone) {
+ return RegExp(r'^\+?[\d\s-]+$').hasMatch(phone);
+ }
+
+ static String generateTrackingNumber() {
+ final now = DateTime.now();
+ final timestamp = now.millisecondsSinceEpoch.toString();
+ return 'TRK${timestamp.substring(timestamp.length - 6)}';
+ }
+
+ static String generateOrderId() {
+ final now = DateTime.now();
+ final timestamp = now.millisecondsSinceEpoch.toString();
+ return 'ORD${timestamp.substring(timestamp.length - 8)}';
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/widgets/custom_button.dart b/adminkurir/lib/widgets/custom_button.dart
new file mode 100644
index 0000000..6ce5998
--- /dev/null
+++ b/adminkurir/lib/widgets/custom_button.dart
@@ -0,0 +1,69 @@
+import 'package:flutter/material.dart';
+import '../utils/constants.dart';
+
+class CustomButton extends StatelessWidget {
+ final VoidCallback? onPressed;
+ final String text;
+ final bool isLoading;
+ final Color? backgroundColor;
+ final Color? textColor;
+ final double? width;
+ final double? height;
+ final IconData? icon;
+
+ const CustomButton({
+ super.key,
+ required this.onPressed,
+ required this.text,
+ this.isLoading = false,
+ this.backgroundColor,
+ this.textColor,
+ this.width,
+ this.height,
+ this.icon,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return SizedBox(
+ width: width ?? double.infinity,
+ height: height ?? AppSizes.buttonHeight,
+ child: ElevatedButton(
+ onPressed: isLoading ? null : onPressed,
+ style: ElevatedButton.styleFrom(
+ backgroundColor: backgroundColor ?? AppColors.primary,
+ foregroundColor: textColor ?? Colors.white,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ ),
+ elevation: 2,
+ ),
+ child: isLoading
+ ? const SizedBox(
+ width: 20,
+ height: 20,
+ child: CircularProgressIndicator(
+ strokeWidth: 2,
+ valueColor: AlwaysStoppedAnimation(Colors.white),
+ ),
+ )
+ : Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ if (icon != null) ...[
+ Icon(icon, size: 18),
+ const SizedBox(width: AppSizes.paddingSmall),
+ ],
+ Text(
+ text,
+ style: const TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/lib/widgets/custom_text_field.dart b/adminkurir/lib/widgets/custom_text_field.dart
new file mode 100644
index 0000000..ecfa4c8
--- /dev/null
+++ b/adminkurir/lib/widgets/custom_text_field.dart
@@ -0,0 +1,95 @@
+import 'package:flutter/material.dart';
+import '../utils/constants.dart';
+
+class CustomTextField extends StatelessWidget {
+ final TextEditingController? controller;
+ final String? labelText;
+ final String? hintText;
+ final IconData? prefixIcon;
+ final Widget? suffixIcon;
+ final bool obscureText;
+ final TextInputType? keyboardType;
+ final String? Function(String?)? validator;
+ final int? maxLines;
+ final int? maxLength;
+ final bool enabled;
+ final VoidCallback? onTap;
+ final void Function(String)? onChanged;
+
+ const CustomTextField({
+ super.key,
+ this.controller,
+ this.labelText,
+ this.hintText,
+ this.prefixIcon,
+ this.suffixIcon,
+ this.obscureText = false,
+ this.keyboardType,
+ this.validator,
+ this.maxLines = 1,
+ this.maxLength,
+ this.enabled = true,
+ this.onTap,
+ this.onChanged,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return TextFormField(
+ controller: controller,
+ obscureText: obscureText,
+ keyboardType: keyboardType,
+ validator: validator,
+ maxLines: maxLines,
+ maxLength: maxLength,
+ enabled: enabled,
+ onTap: onTap,
+ onChanged: onChanged,
+ style: const TextStyle(
+ color: AppColors.textPrimary,
+ fontSize: 16,
+ ),
+ decoration: InputDecoration(
+ labelText: labelText,
+ hintText: hintText,
+ prefixIcon: prefixIcon != null
+ ? Icon(
+ prefixIcon,
+ color: AppColors.textSecondary,
+ size: 20,
+ )
+ : null,
+ suffixIcon: suffixIcon,
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ borderSide: const BorderSide(color: AppColors.divider),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ borderSide: const BorderSide(color: AppColors.divider),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ borderSide: const BorderSide(color: AppColors.primary, width: 2),
+ ),
+ errorBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ borderSide: const BorderSide(color: AppColors.error),
+ ),
+ focusedErrorBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(AppSizes.radiusMedium),
+ borderSide: const BorderSide(color: AppColors.error, width: 2),
+ ),
+ filled: true,
+ fillColor: enabled ? AppColors.surface : AppColors.background,
+ contentPadding: const EdgeInsets.symmetric(
+ horizontal: AppSizes.paddingMedium,
+ vertical: AppSizes.paddingMedium,
+ ),
+ labelStyle: const TextStyle(color: AppColors.textSecondary),
+ hintStyle: const TextStyle(color: AppColors.textSecondary),
+ errorStyle: const TextStyle(color: AppColors.error),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/adminkurir/linux/.gitignore b/adminkurir/linux/.gitignore
new file mode 100644
index 0000000..d3896c9
--- /dev/null
+++ b/adminkurir/linux/.gitignore
@@ -0,0 +1 @@
+flutter/ephemeral
diff --git a/adminkurir/linux/CMakeLists.txt b/adminkurir/linux/CMakeLists.txt
new file mode 100644
index 0000000..af87e35
--- /dev/null
+++ b/adminkurir/linux/CMakeLists.txt
@@ -0,0 +1,145 @@
+# Project-level configuration.
+cmake_minimum_required(VERSION 3.10)
+project(runner LANGUAGES CXX)
+
+# The name of the executable created for the application. Change this to change
+# the on-disk name of your application.
+set(BINARY_NAME "adminkurir")
+# The unique GTK application identifier for this application. See:
+# https://wiki.gnome.org/HowDoI/ChooseApplicationID
+set(APPLICATION_ID "com.example.adminkurir")
+
+# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
+# versions of CMake.
+cmake_policy(SET CMP0063 NEW)
+
+# Load bundled libraries from the lib/ directory relative to the binary.
+set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
+
+# Root filesystem for cross-building.
+if(FLUTTER_TARGET_PLATFORM_SYSROOT)
+ set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
+ set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
+ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
+ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+endif()
+
+# Define build configuration options.
+if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
+ set(CMAKE_BUILD_TYPE "Debug" CACHE
+ STRING "Flutter build mode" FORCE)
+ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
+ "Debug" "Profile" "Release")
+endif()
+
+# Compilation settings that should be applied to most targets.
+#
+# Be cautious about adding new options here, as plugins use this function by
+# default. In most cases, you should add new options to specific targets instead
+# of modifying this function.
+function(APPLY_STANDARD_SETTINGS TARGET)
+ target_compile_features(${TARGET} PUBLIC cxx_std_14)
+ target_compile_options(${TARGET} PRIVATE -Wall -Werror)
+ target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
+ target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
+endfunction()
+
+# Flutter library and tool build rules.
+set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
+add_subdirectory(${FLUTTER_MANAGED_DIR})
+
+# System-level dependencies.
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
+
+add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
+
+# Define the application target. To change its name, change BINARY_NAME above,
+# not the value here, or `flutter run` will no longer work.
+#
+# Any new source files that you add to the application should be added here.
+add_executable(${BINARY_NAME}
+ "main.cc"
+ "my_application.cc"
+ "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
+)
+
+# Apply the standard set of build settings. This can be removed for applications
+# that need different build settings.
+apply_standard_settings(${BINARY_NAME})
+
+# Add dependency libraries. Add any application-specific dependencies here.
+target_link_libraries(${BINARY_NAME} PRIVATE flutter)
+target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
+
+# Run the Flutter tool portions of the build. This must not be removed.
+add_dependencies(${BINARY_NAME} flutter_assemble)
+
+# Only the install-generated bundle's copy of the executable will launch
+# correctly, since the resources must in the right relative locations. To avoid
+# people trying to run the unbundled copy, put it in a subdirectory instead of
+# the default top-level location.
+set_target_properties(${BINARY_NAME}
+ PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
+)
+
+
+# Generated plugin build rules, which manage building the plugins and adding
+# them to the application.
+include(flutter/generated_plugins.cmake)
+
+
+# === Installation ===
+# By default, "installing" just makes a relocatable bundle in the build
+# directory.
+set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
+if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+ set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
+endif()
+
+# Start with a clean build bundle directory every time.
+install(CODE "
+ file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
+ " COMPONENT Runtime)
+
+set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
+set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
+
+install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
+ COMPONENT Runtime)
+
+install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
+ COMPONENT Runtime)
+
+install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+
+foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
+ install(FILES "${bundled_library}"
+ DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+endforeach(bundled_library)
+
+# Copy the native assets provided by the build.dart from all packages.
+set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/")
+install(DIRECTORY "${NATIVE_ASSETS_DIR}"
+ DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+
+# Fully re-copy the assets directory on each build to avoid having stale files
+# from a previous install.
+set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
+install(CODE "
+ file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
+ " COMPONENT Runtime)
+install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
+ DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
+
+# Install the AOT library on non-Debug builds only.
+if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
+ install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+endif()
diff --git a/adminkurir/linux/flutter/CMakeLists.txt b/adminkurir/linux/flutter/CMakeLists.txt
new file mode 100644
index 0000000..d5bd016
--- /dev/null
+++ b/adminkurir/linux/flutter/CMakeLists.txt
@@ -0,0 +1,88 @@
+# This file controls Flutter-level build steps. It should not be edited.
+cmake_minimum_required(VERSION 3.10)
+
+set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
+
+# Configuration provided via flutter tool.
+include(${EPHEMERAL_DIR}/generated_config.cmake)
+
+# TODO: Move the rest of this into files in ephemeral. See
+# https://github.com/flutter/flutter/issues/57146.
+
+# Serves the same purpose as list(TRANSFORM ... PREPEND ...),
+# which isn't available in 3.10.
+function(list_prepend LIST_NAME PREFIX)
+ set(NEW_LIST "")
+ foreach(element ${${LIST_NAME}})
+ list(APPEND NEW_LIST "${PREFIX}${element}")
+ endforeach(element)
+ set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
+endfunction()
+
+# === Flutter Library ===
+# System-level dependencies.
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
+pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
+pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
+
+set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
+
+# Published to parent scope for install step.
+set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
+set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
+set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
+set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
+
+list(APPEND FLUTTER_LIBRARY_HEADERS
+ "fl_basic_message_channel.h"
+ "fl_binary_codec.h"
+ "fl_binary_messenger.h"
+ "fl_dart_project.h"
+ "fl_engine.h"
+ "fl_json_message_codec.h"
+ "fl_json_method_codec.h"
+ "fl_message_codec.h"
+ "fl_method_call.h"
+ "fl_method_channel.h"
+ "fl_method_codec.h"
+ "fl_method_response.h"
+ "fl_plugin_registrar.h"
+ "fl_plugin_registry.h"
+ "fl_standard_message_codec.h"
+ "fl_standard_method_codec.h"
+ "fl_string_codec.h"
+ "fl_value.h"
+ "fl_view.h"
+ "flutter_linux.h"
+)
+list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
+add_library(flutter INTERFACE)
+target_include_directories(flutter INTERFACE
+ "${EPHEMERAL_DIR}"
+)
+target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
+target_link_libraries(flutter INTERFACE
+ PkgConfig::GTK
+ PkgConfig::GLIB
+ PkgConfig::GIO
+)
+add_dependencies(flutter flutter_assemble)
+
+# === Flutter tool backend ===
+# _phony_ is a non-existent file to force this command to run every time,
+# since currently there's no way to get a full input/output list from the
+# flutter tool.
+add_custom_command(
+ OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
+ ${CMAKE_CURRENT_BINARY_DIR}/_phony_
+ COMMAND ${CMAKE_COMMAND} -E env
+ ${FLUTTER_TOOL_ENVIRONMENT}
+ "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
+ ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
+ VERBATIM
+)
+add_custom_target(flutter_assemble DEPENDS
+ "${FLUTTER_LIBRARY}"
+ ${FLUTTER_LIBRARY_HEADERS}
+)
diff --git a/adminkurir/linux/flutter/generated_plugin_registrant.cc b/adminkurir/linux/flutter/generated_plugin_registrant.cc
new file mode 100644
index 0000000..e71a16d
--- /dev/null
+++ b/adminkurir/linux/flutter/generated_plugin_registrant.cc
@@ -0,0 +1,11 @@
+//
+// Generated file. Do not edit.
+//
+
+// clang-format off
+
+#include "generated_plugin_registrant.h"
+
+
+void fl_register_plugins(FlPluginRegistry* registry) {
+}
diff --git a/adminkurir/linux/flutter/generated_plugin_registrant.h b/adminkurir/linux/flutter/generated_plugin_registrant.h
new file mode 100644
index 0000000..e0f0a47
--- /dev/null
+++ b/adminkurir/linux/flutter/generated_plugin_registrant.h
@@ -0,0 +1,15 @@
+//
+// Generated file. Do not edit.
+//
+
+// clang-format off
+
+#ifndef GENERATED_PLUGIN_REGISTRANT_
+#define GENERATED_PLUGIN_REGISTRANT_
+
+#include
+
+// Registers Flutter plugins.
+void fl_register_plugins(FlPluginRegistry* registry);
+
+#endif // GENERATED_PLUGIN_REGISTRANT_
diff --git a/adminkurir/linux/flutter/generated_plugins.cmake b/adminkurir/linux/flutter/generated_plugins.cmake
new file mode 100644
index 0000000..2e1de87
--- /dev/null
+++ b/adminkurir/linux/flutter/generated_plugins.cmake
@@ -0,0 +1,23 @@
+#
+# Generated file, do not edit.
+#
+
+list(APPEND FLUTTER_PLUGIN_LIST
+)
+
+list(APPEND FLUTTER_FFI_PLUGIN_LIST
+)
+
+set(PLUGIN_BUNDLED_LIBRARIES)
+
+foreach(plugin ${FLUTTER_PLUGIN_LIST})
+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
+ target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
+endforeach(plugin)
+
+foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
+endforeach(ffi_plugin)
diff --git a/adminkurir/linux/main.cc b/adminkurir/linux/main.cc
new file mode 100644
index 0000000..e7c5c54
--- /dev/null
+++ b/adminkurir/linux/main.cc
@@ -0,0 +1,6 @@
+#include "my_application.h"
+
+int main(int argc, char** argv) {
+ g_autoptr(MyApplication) app = my_application_new();
+ return g_application_run(G_APPLICATION(app), argc, argv);
+}
diff --git a/adminkurir/linux/my_application.cc b/adminkurir/linux/my_application.cc
new file mode 100644
index 0000000..630e9f9
--- /dev/null
+++ b/adminkurir/linux/my_application.cc
@@ -0,0 +1,124 @@
+#include "my_application.h"
+
+#include
+#ifdef GDK_WINDOWING_X11
+#include
+#endif
+
+#include "flutter/generated_plugin_registrant.h"
+
+struct _MyApplication {
+ GtkApplication parent_instance;
+ char** dart_entrypoint_arguments;
+};
+
+G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
+
+// Implements GApplication::activate.
+static void my_application_activate(GApplication* application) {
+ MyApplication* self = MY_APPLICATION(application);
+ GtkWindow* window =
+ GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
+
+ // Use a header bar when running in GNOME as this is the common style used
+ // by applications and is the setup most users will be using (e.g. Ubuntu
+ // desktop).
+ // If running on X and not using GNOME then just use a traditional title bar
+ // in case the window manager does more exotic layout, e.g. tiling.
+ // If running on Wayland assume the header bar will work (may need changing
+ // if future cases occur).
+ gboolean use_header_bar = TRUE;
+#ifdef GDK_WINDOWING_X11
+ GdkScreen* screen = gtk_window_get_screen(window);
+ if (GDK_IS_X11_SCREEN(screen)) {
+ const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
+ if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
+ use_header_bar = FALSE;
+ }
+ }
+#endif
+ if (use_header_bar) {
+ GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
+ gtk_widget_show(GTK_WIDGET(header_bar));
+ gtk_header_bar_set_title(header_bar, "adminkurir");
+ gtk_header_bar_set_show_close_button(header_bar, TRUE);
+ gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
+ } else {
+ gtk_window_set_title(window, "adminkurir");
+ }
+
+ gtk_window_set_default_size(window, 1280, 720);
+ gtk_widget_show(GTK_WIDGET(window));
+
+ g_autoptr(FlDartProject) project = fl_dart_project_new();
+ fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
+
+ FlView* view = fl_view_new(project);
+ gtk_widget_show(GTK_WIDGET(view));
+ gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
+
+ fl_register_plugins(FL_PLUGIN_REGISTRY(view));
+
+ gtk_widget_grab_focus(GTK_WIDGET(view));
+}
+
+// Implements GApplication::local_command_line.
+static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
+ MyApplication* self = MY_APPLICATION(application);
+ // Strip out the first argument as it is the binary name.
+ self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
+
+ g_autoptr(GError) error = nullptr;
+ if (!g_application_register(application, nullptr, &error)) {
+ g_warning("Failed to register: %s", error->message);
+ *exit_status = 1;
+ return TRUE;
+ }
+
+ g_application_activate(application);
+ *exit_status = 0;
+
+ return TRUE;
+}
+
+// Implements GApplication::startup.
+static void my_application_startup(GApplication* application) {
+ //MyApplication* self = MY_APPLICATION(object);
+
+ // Perform any actions required at application startup.
+
+ G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
+}
+
+// Implements GApplication::shutdown.
+static void my_application_shutdown(GApplication* application) {
+ //MyApplication* self = MY_APPLICATION(object);
+
+ // Perform any actions required at application shutdown.
+
+ G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application);
+}
+
+// Implements GObject::dispose.
+static void my_application_dispose(GObject* object) {
+ MyApplication* self = MY_APPLICATION(object);
+ g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
+ G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
+}
+
+static void my_application_class_init(MyApplicationClass* klass) {
+ G_APPLICATION_CLASS(klass)->activate = my_application_activate;
+ G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
+ G_APPLICATION_CLASS(klass)->startup = my_application_startup;
+ G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;
+ G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
+}
+
+static void my_application_init(MyApplication* self) {}
+
+MyApplication* my_application_new() {
+ return MY_APPLICATION(g_object_new(my_application_get_type(),
+ "application-id", APPLICATION_ID,
+ "flags", G_APPLICATION_NON_UNIQUE,
+ nullptr));
+}
diff --git a/adminkurir/linux/my_application.h b/adminkurir/linux/my_application.h
new file mode 100644
index 0000000..72271d5
--- /dev/null
+++ b/adminkurir/linux/my_application.h
@@ -0,0 +1,18 @@
+#ifndef FLUTTER_MY_APPLICATION_H_
+#define FLUTTER_MY_APPLICATION_H_
+
+#include
+
+G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
+ GtkApplication)
+
+/**
+ * my_application_new:
+ *
+ * Creates a new Flutter-based application.
+ *
+ * Returns: a new #MyApplication.
+ */
+MyApplication* my_application_new();
+
+#endif // FLUTTER_MY_APPLICATION_H_
diff --git a/adminkurir/macos/.gitignore b/adminkurir/macos/.gitignore
new file mode 100644
index 0000000..746adbb
--- /dev/null
+++ b/adminkurir/macos/.gitignore
@@ -0,0 +1,7 @@
+# Flutter-related
+**/Flutter/ephemeral/
+**/Pods/
+
+# Xcode-related
+**/dgph
+**/xcuserdata/
diff --git a/adminkurir/macos/Flutter/Flutter-Debug.xcconfig b/adminkurir/macos/Flutter/Flutter-Debug.xcconfig
new file mode 100644
index 0000000..c2efd0b
--- /dev/null
+++ b/adminkurir/macos/Flutter/Flutter-Debug.xcconfig
@@ -0,0 +1 @@
+#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/adminkurir/macos/Flutter/Flutter-Release.xcconfig b/adminkurir/macos/Flutter/Flutter-Release.xcconfig
new file mode 100644
index 0000000..c2efd0b
--- /dev/null
+++ b/adminkurir/macos/Flutter/Flutter-Release.xcconfig
@@ -0,0 +1 @@
+#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/adminkurir/macos/Flutter/GeneratedPluginRegistrant.swift b/adminkurir/macos/Flutter/GeneratedPluginRegistrant.swift
new file mode 100644
index 0000000..724bb2a
--- /dev/null
+++ b/adminkurir/macos/Flutter/GeneratedPluginRegistrant.swift
@@ -0,0 +1,12 @@
+//
+// Generated file. Do not edit.
+//
+
+import FlutterMacOS
+import Foundation
+
+import shared_preferences_foundation
+
+func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
+ SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
+}
diff --git a/adminkurir/macos/Runner.xcodeproj/project.pbxproj b/adminkurir/macos/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..48c213e
--- /dev/null
+++ b/adminkurir/macos/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,705 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXAggregateTarget section */
+ 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
+ buildPhases = (
+ 33CC111E2044C6BF0003C045 /* ShellScript */,
+ );
+ dependencies = (
+ );
+ name = "Flutter Assemble";
+ productName = FLX;
+ };
+/* End PBXAggregateTarget section */
+
+/* Begin PBXBuildFile section */
+ 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
+ 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
+ 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
+ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
+ 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
+ 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 33CC10EC2044A3C60003C045;
+ remoteInfo = Runner;
+ };
+ 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 33CC111A2044C6BA0003C045;
+ remoteInfo = FLX;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 33CC110E2044A8840003C045 /* Bundle Framework */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Bundle Framework";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
+ 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
+ 33CC10ED2044A3C60003C045 /* adminkurir.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "adminkurir.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
+ 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
+ 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
+ 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
+ 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
+ 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
+ 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
+ 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
+ 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
+ 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 331C80D2294CF70F00263BE5 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 33CC10EA2044A3C60003C045 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 331C80D6294CF71000263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C80D7294CF71000263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 33BA886A226E78AF003329D5 /* Configs */ = {
+ isa = PBXGroup;
+ children = (
+ 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
+ );
+ path = Configs;
+ sourceTree = "";
+ };
+ 33CC10E42044A3C60003C045 = {
+ isa = PBXGroup;
+ children = (
+ 33FAB671232836740065AC1E /* Runner */,
+ 33CEB47122A05771004F2AC0 /* Flutter */,
+ 331C80D6294CF71000263BE5 /* RunnerTests */,
+ 33CC10EE2044A3C60003C045 /* Products */,
+ D73912EC22F37F3D000D13A0 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 33CC10EE2044A3C60003C045 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10ED2044A3C60003C045 /* adminkurir.app */,
+ 331C80D5294CF71000263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 33CC11242044D66E0003C045 /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10F22044A3C60003C045 /* Assets.xcassets */,
+ 33CC10F42044A3C60003C045 /* MainMenu.xib */,
+ 33CC10F72044A3C60003C045 /* Info.plist */,
+ );
+ name = Resources;
+ path = ..;
+ sourceTree = "";
+ };
+ 33CEB47122A05771004F2AC0 /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
+ 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
+ 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
+ 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
+ );
+ path = Flutter;
+ sourceTree = "";
+ };
+ 33FAB671232836740065AC1E /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
+ 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
+ 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
+ 33E51914231749380026EE4D /* Release.entitlements */,
+ 33CC11242044D66E0003C045 /* Resources */,
+ 33BA886A226E78AF003329D5 /* Configs */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ D73912EC22F37F3D000D13A0 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C80D4294CF70F00263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C80D1294CF70F00263BE5 /* Sources */,
+ 331C80D2294CF70F00263BE5 /* Frameworks */,
+ 331C80D3294CF70F00263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C80DA294CF71000263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 33CC10EC2044A3C60003C045 /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 33CC10E92044A3C60003C045 /* Sources */,
+ 33CC10EA2044A3C60003C045 /* Frameworks */,
+ 33CC10EB2044A3C60003C045 /* Resources */,
+ 33CC110E2044A8840003C045 /* Bundle Framework */,
+ 3399D490228B24CF009A79C7 /* ShellScript */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 33CC11202044C79F0003C045 /* PBXTargetDependency */,
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 33CC10ED2044A3C60003C045 /* adminkurir.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 33CC10E52044A3C60003C045 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastSwiftUpdateCheck = 0920;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C80D4294CF70F00263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 33CC10EC2044A3C60003C045;
+ };
+ 33CC10EC2044A3C60003C045 = {
+ CreatedOnToolsVersion = 9.2;
+ LastSwiftMigration = 1100;
+ ProvisioningStyle = Automatic;
+ SystemCapabilities = {
+ com.apple.Sandbox = {
+ enabled = 1;
+ };
+ };
+ };
+ 33CC111A2044C6BA0003C045 = {
+ CreatedOnToolsVersion = 9.2;
+ ProvisioningStyle = Manual;
+ };
+ };
+ };
+ buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 33CC10E42044A3C60003C045;
+ productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 33CC10EC2044A3C60003C045 /* Runner */,
+ 331C80D4294CF70F00263BE5 /* RunnerTests */,
+ 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C80D3294CF70F00263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 33CC10EB2044A3C60003C045 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
+ 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3399D490228B24CF009A79C7 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
+ };
+ 33CC111E2044C6BF0003C045 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ Flutter/ephemeral/FlutterInputs.xcfilelist,
+ );
+ inputPaths = (
+ Flutter/ephemeral/tripwire,
+ );
+ outputFileListPaths = (
+ Flutter/ephemeral/FlutterOutputs.xcfilelist,
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C80D1294CF70F00263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 33CC10E92044A3C60003C045 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
+ 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
+ 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 33CC10EC2044A3C60003C045 /* Runner */;
+ targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */;
+ };
+ 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
+ targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 33CC10F52044A3C60003C045 /* Base */,
+ );
+ name = MainMenu.xib;
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 331C80DB294CF71000263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.adminkurir.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/adminkurir.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/adminkurir";
+ };
+ name = Debug;
+ };
+ 331C80DC294CF71000263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.adminkurir.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/adminkurir.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/adminkurir";
+ };
+ name = Release;
+ };
+ 331C80DD294CF71000263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.adminkurir.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/adminkurir.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/adminkurir";
+ };
+ name = Profile;
+ };
+ 338D0CE9231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ 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_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ 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_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEAD_CODE_STRIPPING = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Profile;
+ };
+ 338D0CEA231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Profile;
+ };
+ 338D0CEB231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Manual;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Profile;
+ };
+ 33CC10F92044A3C60003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ 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_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ 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_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEAD_CODE_STRIPPING = YES;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ 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_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 33CC10FA2044A3C60003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ 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_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ 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_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEAD_CODE_STRIPPING = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Release;
+ };
+ 33CC10FC2044A3C60003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 33CC10FD2044A3C60003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+ 33CC111C2044C6BA0003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Manual;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ 33CC111D2044C6BA0003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C80DB294CF71000263BE5 /* Debug */,
+ 331C80DC294CF71000263BE5 /* Release */,
+ 331C80DD294CF71000263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC10F92044A3C60003C045 /* Debug */,
+ 33CC10FA2044A3C60003C045 /* Release */,
+ 338D0CE9231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC10FC2044A3C60003C045 /* Debug */,
+ 33CC10FD2044A3C60003C045 /* Release */,
+ 338D0CEA231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC111C2044C6BA0003C045 /* Debug */,
+ 33CC111D2044C6BA0003C045 /* Release */,
+ 338D0CEB231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 33CC10E52044A3C60003C045 /* Project object */;
+}
diff --git a/adminkurir/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/adminkurir/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/adminkurir/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/adminkurir/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/adminkurir/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..b80d020
--- /dev/null
+++ b/adminkurir/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/adminkurir/macos/Runner.xcworkspace/contents.xcworkspacedata b/adminkurir/macos/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/adminkurir/macos/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/adminkurir/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/adminkurir/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/adminkurir/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/adminkurir/macos/Runner/AppDelegate.swift b/adminkurir/macos/Runner/AppDelegate.swift
new file mode 100644
index 0000000..8e02df2
--- /dev/null
+++ b/adminkurir/macos/Runner/AppDelegate.swift
@@ -0,0 +1,9 @@
+import Cocoa
+import FlutterMacOS
+
+@main
+class AppDelegate: FlutterAppDelegate {
+ override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
+ return true
+ }
+}
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..a2ec33f
--- /dev/null
+++ b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,68 @@
+{
+ "images" : [
+ {
+ "size" : "16x16",
+ "idiom" : "mac",
+ "filename" : "app_icon_16.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "16x16",
+ "idiom" : "mac",
+ "filename" : "app_icon_32.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "32x32",
+ "idiom" : "mac",
+ "filename" : "app_icon_32.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "32x32",
+ "idiom" : "mac",
+ "filename" : "app_icon_64.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "128x128",
+ "idiom" : "mac",
+ "filename" : "app_icon_128.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "128x128",
+ "idiom" : "mac",
+ "filename" : "app_icon_256.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "256x256",
+ "idiom" : "mac",
+ "filename" : "app_icon_256.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "256x256",
+ "idiom" : "mac",
+ "filename" : "app_icon_512.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "512x512",
+ "idiom" : "mac",
+ "filename" : "app_icon_512.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "512x512",
+ "idiom" : "mac",
+ "filename" : "app_icon_1024.png",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
new file mode 100644
index 0000000..82b6f9d
Binary files /dev/null and b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
new file mode 100644
index 0000000..13b35eb
Binary files /dev/null and b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
new file mode 100644
index 0000000..0a3f5fa
Binary files /dev/null and b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
new file mode 100644
index 0000000..bdb5722
Binary files /dev/null and b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
new file mode 100644
index 0000000..f083318
Binary files /dev/null and b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
new file mode 100644
index 0000000..326c0e7
Binary files /dev/null and b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ
diff --git a/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
new file mode 100644
index 0000000..2f1632c
Binary files /dev/null and b/adminkurir/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ
diff --git a/adminkurir/macos/Runner/Base.lproj/MainMenu.xib b/adminkurir/macos/Runner/Base.lproj/MainMenu.xib
new file mode 100644
index 0000000..80e867a
--- /dev/null
+++ b/adminkurir/macos/Runner/Base.lproj/MainMenu.xib
@@ -0,0 +1,343 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/adminkurir/macos/Runner/Configs/AppInfo.xcconfig b/adminkurir/macos/Runner/Configs/AppInfo.xcconfig
new file mode 100644
index 0000000..a67635f
--- /dev/null
+++ b/adminkurir/macos/Runner/Configs/AppInfo.xcconfig
@@ -0,0 +1,14 @@
+// Application-level settings for the Runner target.
+//
+// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
+// future. If not, the values below would default to using the project name when this becomes a
+// 'flutter create' template.
+
+// The application's name. By default this is also the title of the Flutter window.
+PRODUCT_NAME = adminkurir
+
+// The application's bundle identifier
+PRODUCT_BUNDLE_IDENTIFIER = com.example.adminkurir
+
+// The copyright displayed in application information
+PRODUCT_COPYRIGHT = Copyright © 2025 com.example. All rights reserved.
diff --git a/adminkurir/macos/Runner/Configs/Debug.xcconfig b/adminkurir/macos/Runner/Configs/Debug.xcconfig
new file mode 100644
index 0000000..36b0fd9
--- /dev/null
+++ b/adminkurir/macos/Runner/Configs/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include "../../Flutter/Flutter-Debug.xcconfig"
+#include "Warnings.xcconfig"
diff --git a/adminkurir/macos/Runner/Configs/Release.xcconfig b/adminkurir/macos/Runner/Configs/Release.xcconfig
new file mode 100644
index 0000000..dff4f49
--- /dev/null
+++ b/adminkurir/macos/Runner/Configs/Release.xcconfig
@@ -0,0 +1,2 @@
+#include "../../Flutter/Flutter-Release.xcconfig"
+#include "Warnings.xcconfig"
diff --git a/adminkurir/macos/Runner/Configs/Warnings.xcconfig b/adminkurir/macos/Runner/Configs/Warnings.xcconfig
new file mode 100644
index 0000000..42bcbf4
--- /dev/null
+++ b/adminkurir/macos/Runner/Configs/Warnings.xcconfig
@@ -0,0 +1,13 @@
+WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
+GCC_WARN_UNDECLARED_SELECTOR = YES
+CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
+CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
+CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
+CLANG_WARN_PRAGMA_PACK = YES
+CLANG_WARN_STRICT_PROTOTYPES = YES
+CLANG_WARN_COMMA = YES
+GCC_WARN_STRICT_SELECTOR_MATCH = YES
+CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
+CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
+GCC_WARN_SHADOW = YES
+CLANG_WARN_UNREACHABLE_CODE = YES
diff --git a/adminkurir/macos/Runner/DebugProfile.entitlements b/adminkurir/macos/Runner/DebugProfile.entitlements
new file mode 100644
index 0000000..dddb8a3
--- /dev/null
+++ b/adminkurir/macos/Runner/DebugProfile.entitlements
@@ -0,0 +1,12 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.cs.allow-jit
+
+ com.apple.security.network.server
+
+
+
diff --git a/adminkurir/macos/Runner/Info.plist b/adminkurir/macos/Runner/Info.plist
new file mode 100644
index 0000000..4789daa
--- /dev/null
+++ b/adminkurir/macos/Runner/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIconFile
+
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSMinimumSystemVersion
+ $(MACOSX_DEPLOYMENT_TARGET)
+ NSHumanReadableCopyright
+ $(PRODUCT_COPYRIGHT)
+ NSMainNibFile
+ MainMenu
+ NSPrincipalClass
+ NSApplication
+
+
diff --git a/adminkurir/macos/Runner/MainFlutterWindow.swift b/adminkurir/macos/Runner/MainFlutterWindow.swift
new file mode 100644
index 0000000..3cc05eb
--- /dev/null
+++ b/adminkurir/macos/Runner/MainFlutterWindow.swift
@@ -0,0 +1,15 @@
+import Cocoa
+import FlutterMacOS
+
+class MainFlutterWindow: NSWindow {
+ override func awakeFromNib() {
+ let flutterViewController = FlutterViewController()
+ let windowFrame = self.frame
+ self.contentViewController = flutterViewController
+ self.setFrame(windowFrame, display: true)
+
+ RegisterGeneratedPlugins(registry: flutterViewController)
+
+ super.awakeFromNib()
+ }
+}
diff --git a/adminkurir/macos/Runner/Release.entitlements b/adminkurir/macos/Runner/Release.entitlements
new file mode 100644
index 0000000..852fa1a
--- /dev/null
+++ b/adminkurir/macos/Runner/Release.entitlements
@@ -0,0 +1,8 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+
diff --git a/adminkurir/macos/RunnerTests/RunnerTests.swift b/adminkurir/macos/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..61f3bd1
--- /dev/null
+++ b/adminkurir/macos/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Cocoa
+import FlutterMacOS
+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/adminkurir/pubspec.lock b/adminkurir/pubspec.lock
new file mode 100644
index 0000000..359a79d
--- /dev/null
+++ b/adminkurir/pubspec.lock
@@ -0,0 +1,482 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+ archive:
+ dependency: transitive
+ description:
+ name: archive
+ sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.0.7"
+ args:
+ dependency: transitive
+ description:
+ name: args
+ sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.7.0"
+ async:
+ dependency: transitive
+ description:
+ name: async
+ sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.11.0"
+ boolean_selector:
+ dependency: transitive
+ description:
+ name: boolean_selector
+ sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.1"
+ characters:
+ dependency: transitive
+ description:
+ name: characters
+ sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.0"
+ checked_yaml:
+ dependency: transitive
+ description:
+ name: checked_yaml
+ sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.3"
+ cli_util:
+ dependency: transitive
+ description:
+ name: cli_util
+ sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.4.2"
+ clock:
+ dependency: transitive
+ description:
+ name: clock
+ sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.1"
+ collection:
+ dependency: transitive
+ description:
+ name: collection
+ sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.18.0"
+ crypto:
+ dependency: transitive
+ description:
+ name: crypto
+ sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.0.6"
+ cupertino_icons:
+ dependency: "direct main"
+ description:
+ name: cupertino_icons
+ sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.0.8"
+ equatable:
+ dependency: transitive
+ description:
+ name: equatable
+ sha256: "567c64b3cb4cf82397aac55f4f0cbd3ca20d77c6c03bedbc4ceaddc08904aef7"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.7"
+ fake_async:
+ dependency: transitive
+ description:
+ name: fake_async
+ sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.1"
+ ffi:
+ dependency: transitive
+ description:
+ name: ffi
+ sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.3"
+ file:
+ dependency: transitive
+ description:
+ name: file
+ sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
+ url: "https://pub.dev"
+ source: hosted
+ version: "7.0.1"
+ fl_chart:
+ dependency: "direct main"
+ description:
+ name: fl_chart
+ sha256: "00b74ae680df6b1135bdbea00a7d1fc072a9180b7c3f3702e4b19a9943f5ed7d"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.66.2"
+ flutter:
+ dependency: "direct main"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_launcher_icons:
+ dependency: "direct dev"
+ description:
+ name: flutter_launcher_icons
+ sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.13.1"
+ flutter_lints:
+ dependency: "direct dev"
+ description:
+ name: flutter_lints
+ sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.0.0"
+ flutter_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_web_plugins:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ image:
+ dependency: transitive
+ description:
+ name: image
+ sha256: "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.5.4"
+ json_annotation:
+ dependency: transitive
+ description:
+ name: json_annotation
+ sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.9.0"
+ leak_tracker:
+ dependency: transitive
+ description:
+ name: leak_tracker
+ sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
+ url: "https://pub.dev"
+ source: hosted
+ version: "10.0.5"
+ leak_tracker_flutter_testing:
+ dependency: transitive
+ description:
+ name: leak_tracker_flutter_testing
+ sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.0.5"
+ leak_tracker_testing:
+ dependency: transitive
+ description:
+ name: leak_tracker_testing
+ sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.0.1"
+ lints:
+ dependency: transitive
+ description:
+ name: lints
+ sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.0.0"
+ matcher:
+ dependency: transitive
+ description:
+ name: matcher
+ sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.12.16+1"
+ material_color_utilities:
+ dependency: transitive
+ description:
+ name: material_color_utilities
+ sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.11.1"
+ meta:
+ dependency: transitive
+ description:
+ name: meta
+ sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.15.0"
+ nested:
+ dependency: transitive
+ description:
+ name: nested
+ sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.0.0"
+ path:
+ dependency: transitive
+ description:
+ name: path
+ sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.9.0"
+ path_provider_linux:
+ dependency: transitive
+ description:
+ name: path_provider_linux
+ sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.2.1"
+ path_provider_platform_interface:
+ dependency: transitive
+ description:
+ name: path_provider_platform_interface
+ sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.2"
+ path_provider_windows:
+ dependency: transitive
+ description:
+ name: path_provider_windows
+ sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.3.0"
+ petitparser:
+ dependency: transitive
+ description:
+ name: petitparser
+ sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.0.2"
+ platform:
+ dependency: transitive
+ description:
+ name: platform
+ sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.1.6"
+ plugin_platform_interface:
+ dependency: transitive
+ description:
+ name: plugin_platform_interface
+ sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.8"
+ posix:
+ dependency: transitive
+ description:
+ name: posix
+ sha256: "6323a5b0fa688b6a010df4905a56b00181479e6d10534cecfecede2aa55add61"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.0.3"
+ provider:
+ dependency: "direct main"
+ description:
+ name: provider
+ sha256: "4abbd070a04e9ddc287673bf5a030c7ca8b685ff70218720abab8b092f53dd84"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.1.5"
+ shared_preferences:
+ dependency: "direct main"
+ description:
+ name: shared_preferences
+ sha256: "6e8bf70b7fef813df4e9a36f658ac46d107db4b4cfe1048b477d4e453a8159f5"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.5.3"
+ shared_preferences_android:
+ dependency: transitive
+ description:
+ name: shared_preferences_android
+ sha256: "9f9f3d372d4304723e6136663bb291c0b93f5e4c8a4a6314347f481a33bda2b1"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.4.7"
+ shared_preferences_foundation:
+ dependency: transitive
+ description:
+ name: shared_preferences_foundation
+ sha256: "6a52cfcdaeac77cad8c97b539ff688ccfc458c007b4db12be584fbe5c0e49e03"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.5.4"
+ shared_preferences_linux:
+ dependency: transitive
+ description:
+ name: shared_preferences_linux
+ sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.4.1"
+ shared_preferences_platform_interface:
+ dependency: transitive
+ description:
+ name: shared_preferences_platform_interface
+ sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.4.1"
+ shared_preferences_web:
+ dependency: transitive
+ description:
+ name: shared_preferences_web
+ sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.4.3"
+ shared_preferences_windows:
+ dependency: transitive
+ description:
+ name: shared_preferences_windows
+ sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.4.1"
+ sky_engine:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.99"
+ source_span:
+ dependency: transitive
+ description:
+ name: source_span
+ sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.10.0"
+ stack_trace:
+ dependency: transitive
+ description:
+ name: stack_trace
+ sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.11.1"
+ stream_channel:
+ dependency: transitive
+ description:
+ name: stream_channel
+ sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.2"
+ string_scanner:
+ dependency: transitive
+ description:
+ name: string_scanner
+ sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.2.0"
+ term_glyph:
+ dependency: transitive
+ description:
+ name: term_glyph
+ sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.2.1"
+ test_api:
+ dependency: transitive
+ description:
+ name: test_api
+ sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.7.2"
+ typed_data:
+ dependency: transitive
+ description:
+ name: typed_data
+ sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.4.0"
+ vector_math:
+ dependency: transitive
+ description:
+ name: vector_math
+ sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.4"
+ vm_service:
+ dependency: transitive
+ description:
+ name: vm_service
+ sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
+ url: "https://pub.dev"
+ source: hosted
+ version: "14.2.5"
+ web:
+ dependency: transitive
+ description:
+ name: web
+ sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.1"
+ xdg_directories:
+ dependency: transitive
+ description:
+ name: xdg_directories
+ sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.0"
+ xml:
+ dependency: transitive
+ description:
+ name: xml
+ sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.5.0"
+ yaml:
+ dependency: transitive
+ description:
+ name: yaml
+ sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.1.3"
+sdks:
+ dart: ">=3.5.4 <4.0.0"
+ flutter: ">=3.24.0"
diff --git a/adminkurir/pubspec.yaml b/adminkurir/pubspec.yaml
new file mode 100644
index 0000000..4baccaf
--- /dev/null
+++ b/adminkurir/pubspec.yaml
@@ -0,0 +1,103 @@
+name: adminkurir
+description: "Aplikasi Penjual dan Kurir"
+# The following line prevents the package from being accidentally published to
+# pub.dev using `flutter pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+# The following defines the version and build number for your application.
+# A version number is three numbers separated by dots, like 1.2.43
+# followed by an optional build number separated by a +.
+# Both the version and the builder number may be overridden in flutter
+# build by specifying --build-name and --build-number, respectively.
+# In Android, build-name is used as versionName while build-number used as versionCode.
+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
+# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
+# Read more about iOS versioning at
+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
+# In Windows, build-name is used as the major, minor, and patch parts
+# of the product and file versions while build-number is used as the build suffix.
+version: 1.0.0+1
+
+environment:
+ sdk: ^3.5.4
+
+# Dependencies specify other packages that your package needs in order to work.
+# To automatically upgrade your package dependencies to the latest versions
+# consider running `flutter pub upgrade --major-versions`. Alternatively,
+# dependencies can be manually updated by changing the version numbers below to
+# the latest version available on pub.dev. To see which dependencies have newer
+# versions available, run `flutter pub outdated`.
+dependencies:
+ flutter:
+ sdk: flutter
+ cupertino_icons: ^1.0.8
+ provider: ^6.1.1
+ shared_preferences: ^2.2.2
+ fl_chart: ^0.66.0
+
+
+ # The following adds the Cupertino Icons font to your application.
+ # Use with the CupertinoIcons class for iOS style icons.
+
+dev_dependencies:
+ flutter_test:
+ sdk: flutter
+ flutter_launcher_icons: ^0.13.1
+
+ # The "flutter_lints" package below contains a set of recommended lints to
+ # encourage good coding practices. The lint set provided by the package is
+ # activated in the `analysis_options.yaml` file located at the root of your
+ # package. See that file for information about deactivating specific lint
+ # rules and activating additional ones.
+ flutter_lints: ^4.0.0
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter packages.
+flutter:
+
+ # The following line ensures that the Material Icons font is
+ # included with your application, so that you can use the icons in
+ # the material Icons class.
+ uses-material-design: true
+
+ # To add assets to your application, add an assets section, like this:
+ assets:
+ - assets/images/
+ - assets/icons/
+ - assets/images/nasi_ayam.jpg
+ - assets/images/courier.png
+ - assets/images/barcode.png
+
+ # An image asset can refer to one or more resolution-specific "variants", see
+ # https://flutter.dev/to/resolution-aware-images
+
+ # For details regarding adding assets from package dependencies, see
+ # https://flutter.dev/to/asset-from-package
+
+ # To add custom fonts to your application, add a fonts section here,
+ # in this "flutter" section. Each entry in this list should have a
+ # "family" key with the font family name, and a "fonts" key with a
+ # list giving the asset and other descriptors for the font. For
+ # example:
+ # fonts:
+ # - family: Schyler
+ # fonts:
+ # - asset: fonts/Schyler-Regular.ttf
+ # - asset: fonts/Schyler-Italic.ttf
+ # style: italic
+ # - family: Trajan Pro
+ # fonts:
+ # - asset: fonts/TrajanPro.ttf
+ # - asset: fonts/TrajanPro_Bold.ttf
+ # weight: 700
+ #
+ # For details regarding fonts from package dependencies,
+ # see https://flutter.dev/to/font-from-package
+
+# Pindahkan konfigurasi flutter_icons ke root
+flutter_icons:
+ android: true
+ ios: true
+ image_path: "assets/images/penjual.png"
diff --git a/adminkurir/test/widget_test.dart b/adminkurir/test/widget_test.dart
new file mode 100644
index 0000000..82e3b24
--- /dev/null
+++ b/adminkurir/test/widget_test.dart
@@ -0,0 +1,30 @@
+// This is a basic Flutter widget test.
+//
+// To perform an interaction with a widget in your test, use the WidgetTester
+// utility in the flutter_test package. For example, you can send tap and scroll
+// gestures. You can also use WidgetTester to find child widgets in the widget
+// tree, read text, and verify that the values of widget properties are correct.
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+
+import 'package:adminkurir/main.dart';
+
+void main() {
+ testWidgets('Counter increments smoke test', (WidgetTester tester) async {
+ // Build our app and trigger a frame.
+ await tester.pumpWidget(const MyApp());
+
+ // Verify that our counter starts at 0.
+ expect(find.text('0'), findsOneWidget);
+ expect(find.text('1'), findsNothing);
+
+ // Tap the '+' icon and trigger a frame.
+ await tester.tap(find.byIcon(Icons.add));
+ await tester.pump();
+
+ // Verify that our counter has incremented.
+ expect(find.text('0'), findsNothing);
+ expect(find.text('1'), findsOneWidget);
+ });
+}
diff --git a/adminkurir/web/favicon.png b/adminkurir/web/favicon.png
new file mode 100644
index 0000000..8aaa46a
Binary files /dev/null and b/adminkurir/web/favicon.png differ
diff --git a/adminkurir/web/icons/Icon-192.png b/adminkurir/web/icons/Icon-192.png
new file mode 100644
index 0000000..b749bfe
Binary files /dev/null and b/adminkurir/web/icons/Icon-192.png differ
diff --git a/adminkurir/web/icons/Icon-512.png b/adminkurir/web/icons/Icon-512.png
new file mode 100644
index 0000000..88cfd48
Binary files /dev/null and b/adminkurir/web/icons/Icon-512.png differ
diff --git a/adminkurir/web/icons/Icon-maskable-192.png b/adminkurir/web/icons/Icon-maskable-192.png
new file mode 100644
index 0000000..eb9b4d7
Binary files /dev/null and b/adminkurir/web/icons/Icon-maskable-192.png differ
diff --git a/adminkurir/web/icons/Icon-maskable-512.png b/adminkurir/web/icons/Icon-maskable-512.png
new file mode 100644
index 0000000..d69c566
Binary files /dev/null and b/adminkurir/web/icons/Icon-maskable-512.png differ
diff --git a/adminkurir/web/index.html b/adminkurir/web/index.html
new file mode 100644
index 0000000..64160d2
--- /dev/null
+++ b/adminkurir/web/index.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ adminkurir
+
+
+
+
+
+
diff --git a/adminkurir/web/manifest.json b/adminkurir/web/manifest.json
new file mode 100644
index 0000000..20d7e56
--- /dev/null
+++ b/adminkurir/web/manifest.json
@@ -0,0 +1,35 @@
+{
+ "name": "adminkurir",
+ "short_name": "adminkurir",
+ "start_url": ".",
+ "display": "standalone",
+ "background_color": "#0175C2",
+ "theme_color": "#0175C2",
+ "description": "A new Flutter project.",
+ "orientation": "portrait-primary",
+ "prefer_related_applications": false,
+ "icons": [
+ {
+ "src": "icons/Icon-192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-maskable-192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "maskable"
+ },
+ {
+ "src": "icons/Icon-maskable-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ }
+ ]
+}
diff --git a/adminkurir/windows/.gitignore b/adminkurir/windows/.gitignore
new file mode 100644
index 0000000..d492d0d
--- /dev/null
+++ b/adminkurir/windows/.gitignore
@@ -0,0 +1,17 @@
+flutter/ephemeral/
+
+# Visual Studio user-specific files.
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# Visual Studio build-related files.
+x64/
+x86/
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!*.[Cc]ache/
diff --git a/adminkurir/windows/CMakeLists.txt b/adminkurir/windows/CMakeLists.txt
new file mode 100644
index 0000000..76de3ee
--- /dev/null
+++ b/adminkurir/windows/CMakeLists.txt
@@ -0,0 +1,108 @@
+# Project-level configuration.
+cmake_minimum_required(VERSION 3.14)
+project(adminkurir LANGUAGES CXX)
+
+# The name of the executable created for the application. Change this to change
+# the on-disk name of your application.
+set(BINARY_NAME "adminkurir")
+
+# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
+# versions of CMake.
+cmake_policy(VERSION 3.14...3.25)
+
+# Define build configuration option.
+get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
+if(IS_MULTICONFIG)
+ set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
+ CACHE STRING "" FORCE)
+else()
+ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
+ set(CMAKE_BUILD_TYPE "Debug" CACHE
+ STRING "Flutter build mode" FORCE)
+ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
+ "Debug" "Profile" "Release")
+ endif()
+endif()
+# Define settings for the Profile build mode.
+set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
+set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
+set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
+set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
+
+# Use Unicode for all projects.
+add_definitions(-DUNICODE -D_UNICODE)
+
+# Compilation settings that should be applied to most targets.
+#
+# Be cautious about adding new options here, as plugins use this function by
+# default. In most cases, you should add new options to specific targets instead
+# of modifying this function.
+function(APPLY_STANDARD_SETTINGS TARGET)
+ target_compile_features(${TARGET} PUBLIC cxx_std_17)
+ target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
+ target_compile_options(${TARGET} PRIVATE /EHsc)
+ target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
+ target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>")
+endfunction()
+
+# Flutter library and tool build rules.
+set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
+add_subdirectory(${FLUTTER_MANAGED_DIR})
+
+# Application build; see runner/CMakeLists.txt.
+add_subdirectory("runner")
+
+
+# Generated plugin build rules, which manage building the plugins and adding
+# them to the application.
+include(flutter/generated_plugins.cmake)
+
+
+# === Installation ===
+# Support files are copied into place next to the executable, so that it can
+# run in place. This is done instead of making a separate bundle (as on Linux)
+# so that building and running from within Visual Studio will work.
+set(BUILD_BUNDLE_DIR "$")
+# Make the "install" step default, as it's required to run.
+set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
+if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+ set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
+endif()
+
+set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
+set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
+
+install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
+ COMPONENT Runtime)
+
+install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
+ COMPONENT Runtime)
+
+install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+
+if(PLUGIN_BUNDLED_LIBRARIES)
+ install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
+ DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+endif()
+
+# Copy the native assets provided by the build.dart from all packages.
+set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/")
+install(DIRECTORY "${NATIVE_ASSETS_DIR}"
+ DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+
+# Fully re-copy the assets directory on each build to avoid having stale files
+# from a previous install.
+set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
+install(CODE "
+ file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
+ " COMPONENT Runtime)
+install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
+ DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
+
+# Install the AOT library on non-Debug builds only.
+install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
+ CONFIGURATIONS Profile;Release
+ COMPONENT Runtime)
diff --git a/adminkurir/windows/flutter/CMakeLists.txt b/adminkurir/windows/flutter/CMakeLists.txt
new file mode 100644
index 0000000..903f489
--- /dev/null
+++ b/adminkurir/windows/flutter/CMakeLists.txt
@@ -0,0 +1,109 @@
+# This file controls Flutter-level build steps. It should not be edited.
+cmake_minimum_required(VERSION 3.14)
+
+set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
+
+# Configuration provided via flutter tool.
+include(${EPHEMERAL_DIR}/generated_config.cmake)
+
+# TODO: Move the rest of this into files in ephemeral. See
+# https://github.com/flutter/flutter/issues/57146.
+set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
+
+# Set fallback configurations for older versions of the flutter tool.
+if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
+ set(FLUTTER_TARGET_PLATFORM "windows-x64")
+endif()
+
+# === Flutter Library ===
+set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
+
+# Published to parent scope for install step.
+set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
+set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
+set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
+set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
+
+list(APPEND FLUTTER_LIBRARY_HEADERS
+ "flutter_export.h"
+ "flutter_windows.h"
+ "flutter_messenger.h"
+ "flutter_plugin_registrar.h"
+ "flutter_texture_registrar.h"
+)
+list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
+add_library(flutter INTERFACE)
+target_include_directories(flutter INTERFACE
+ "${EPHEMERAL_DIR}"
+)
+target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
+add_dependencies(flutter flutter_assemble)
+
+# === Wrapper ===
+list(APPEND CPP_WRAPPER_SOURCES_CORE
+ "core_implementations.cc"
+ "standard_codec.cc"
+)
+list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
+list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
+ "plugin_registrar.cc"
+)
+list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
+list(APPEND CPP_WRAPPER_SOURCES_APP
+ "flutter_engine.cc"
+ "flutter_view_controller.cc"
+)
+list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
+
+# Wrapper sources needed for a plugin.
+add_library(flutter_wrapper_plugin STATIC
+ ${CPP_WRAPPER_SOURCES_CORE}
+ ${CPP_WRAPPER_SOURCES_PLUGIN}
+)
+apply_standard_settings(flutter_wrapper_plugin)
+set_target_properties(flutter_wrapper_plugin PROPERTIES
+ POSITION_INDEPENDENT_CODE ON)
+set_target_properties(flutter_wrapper_plugin PROPERTIES
+ CXX_VISIBILITY_PRESET hidden)
+target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
+target_include_directories(flutter_wrapper_plugin PUBLIC
+ "${WRAPPER_ROOT}/include"
+)
+add_dependencies(flutter_wrapper_plugin flutter_assemble)
+
+# Wrapper sources needed for the runner.
+add_library(flutter_wrapper_app STATIC
+ ${CPP_WRAPPER_SOURCES_CORE}
+ ${CPP_WRAPPER_SOURCES_APP}
+)
+apply_standard_settings(flutter_wrapper_app)
+target_link_libraries(flutter_wrapper_app PUBLIC flutter)
+target_include_directories(flutter_wrapper_app PUBLIC
+ "${WRAPPER_ROOT}/include"
+)
+add_dependencies(flutter_wrapper_app flutter_assemble)
+
+# === Flutter tool backend ===
+# _phony_ is a non-existent file to force this command to run every time,
+# since currently there's no way to get a full input/output list from the
+# flutter tool.
+set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
+set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
+add_custom_command(
+ OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
+ ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
+ ${CPP_WRAPPER_SOURCES_APP}
+ ${PHONY_OUTPUT}
+ COMMAND ${CMAKE_COMMAND} -E env
+ ${FLUTTER_TOOL_ENVIRONMENT}
+ "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
+ ${FLUTTER_TARGET_PLATFORM} $
+ VERBATIM
+)
+add_custom_target(flutter_assemble DEPENDS
+ "${FLUTTER_LIBRARY}"
+ ${FLUTTER_LIBRARY_HEADERS}
+ ${CPP_WRAPPER_SOURCES_CORE}
+ ${CPP_WRAPPER_SOURCES_PLUGIN}
+ ${CPP_WRAPPER_SOURCES_APP}
+)
diff --git a/adminkurir/windows/flutter/generated_plugin_registrant.cc b/adminkurir/windows/flutter/generated_plugin_registrant.cc
new file mode 100644
index 0000000..8b6d468
--- /dev/null
+++ b/adminkurir/windows/flutter/generated_plugin_registrant.cc
@@ -0,0 +1,11 @@
+//
+// Generated file. Do not edit.
+//
+
+// clang-format off
+
+#include "generated_plugin_registrant.h"
+
+
+void RegisterPlugins(flutter::PluginRegistry* registry) {
+}
diff --git a/adminkurir/windows/flutter/generated_plugin_registrant.h b/adminkurir/windows/flutter/generated_plugin_registrant.h
new file mode 100644
index 0000000..dc139d8
--- /dev/null
+++ b/adminkurir/windows/flutter/generated_plugin_registrant.h
@@ -0,0 +1,15 @@
+//
+// Generated file. Do not edit.
+//
+
+// clang-format off
+
+#ifndef GENERATED_PLUGIN_REGISTRANT_
+#define GENERATED_PLUGIN_REGISTRANT_
+
+#include
+
+// Registers Flutter plugins.
+void RegisterPlugins(flutter::PluginRegistry* registry);
+
+#endif // GENERATED_PLUGIN_REGISTRANT_
diff --git a/adminkurir/windows/flutter/generated_plugins.cmake b/adminkurir/windows/flutter/generated_plugins.cmake
new file mode 100644
index 0000000..b93c4c3
--- /dev/null
+++ b/adminkurir/windows/flutter/generated_plugins.cmake
@@ -0,0 +1,23 @@
+#
+# Generated file, do not edit.
+#
+
+list(APPEND FLUTTER_PLUGIN_LIST
+)
+
+list(APPEND FLUTTER_FFI_PLUGIN_LIST
+)
+
+set(PLUGIN_BUNDLED_LIBRARIES)
+
+foreach(plugin ${FLUTTER_PLUGIN_LIST})
+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
+ target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
+endforeach(plugin)
+
+foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
+endforeach(ffi_plugin)
diff --git a/adminkurir/windows/runner/CMakeLists.txt b/adminkurir/windows/runner/CMakeLists.txt
new file mode 100644
index 0000000..394917c
--- /dev/null
+++ b/adminkurir/windows/runner/CMakeLists.txt
@@ -0,0 +1,40 @@
+cmake_minimum_required(VERSION 3.14)
+project(runner LANGUAGES CXX)
+
+# Define the application target. To change its name, change BINARY_NAME in the
+# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
+# work.
+#
+# Any new source files that you add to the application should be added here.
+add_executable(${BINARY_NAME} WIN32
+ "flutter_window.cpp"
+ "main.cpp"
+ "utils.cpp"
+ "win32_window.cpp"
+ "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
+ "Runner.rc"
+ "runner.exe.manifest"
+)
+
+# Apply the standard set of build settings. This can be removed for applications
+# that need different build settings.
+apply_standard_settings(${BINARY_NAME})
+
+# Add preprocessor definitions for the build version.
+target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"")
+target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}")
+target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}")
+target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}")
+target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}")
+
+# Disable Windows macros that collide with C++ standard library functions.
+target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
+
+# Add dependency libraries and include directories. Add any application-specific
+# dependencies here.
+target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
+target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib")
+target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
+
+# Run the Flutter tool portions of the build. This must not be removed.
+add_dependencies(${BINARY_NAME} flutter_assemble)
diff --git a/adminkurir/windows/runner/Runner.rc b/adminkurir/windows/runner/Runner.rc
new file mode 100644
index 0000000..de91ed5
--- /dev/null
+++ b/adminkurir/windows/runner/Runner.rc
@@ -0,0 +1,121 @@
+// Microsoft Visual C++ generated resource script.
+//
+#pragma code_page(65001)
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "winres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (United States) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""winres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_APP_ICON ICON "resources\\app_icon.ico"
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD)
+#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD
+#else
+#define VERSION_AS_NUMBER 1,0,0,0
+#endif
+
+#if defined(FLUTTER_VERSION)
+#define VERSION_AS_STRING FLUTTER_VERSION
+#else
+#define VERSION_AS_STRING "1.0.0"
+#endif
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION VERSION_AS_NUMBER
+ PRODUCTVERSION VERSION_AS_NUMBER
+ FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
+#ifdef _DEBUG
+ FILEFLAGS VS_FF_DEBUG
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS VOS__WINDOWS32
+ FILETYPE VFT_APP
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904e4"
+ BEGIN
+ VALUE "CompanyName", "com.example" "\0"
+ VALUE "FileDescription", "adminkurir" "\0"
+ VALUE "FileVersion", VERSION_AS_STRING "\0"
+ VALUE "InternalName", "adminkurir" "\0"
+ VALUE "LegalCopyright", "Copyright (C) 2025 com.example. All rights reserved." "\0"
+ VALUE "OriginalFilename", "adminkurir.exe" "\0"
+ VALUE "ProductName", "adminkurir" "\0"
+ VALUE "ProductVersion", VERSION_AS_STRING "\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1252
+ END
+END
+
+#endif // English (United States) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
diff --git a/adminkurir/windows/runner/flutter_window.cpp b/adminkurir/windows/runner/flutter_window.cpp
new file mode 100644
index 0000000..955ee30
--- /dev/null
+++ b/adminkurir/windows/runner/flutter_window.cpp
@@ -0,0 +1,71 @@
+#include "flutter_window.h"
+
+#include
+
+#include "flutter/generated_plugin_registrant.h"
+
+FlutterWindow::FlutterWindow(const flutter::DartProject& project)
+ : project_(project) {}
+
+FlutterWindow::~FlutterWindow() {}
+
+bool FlutterWindow::OnCreate() {
+ if (!Win32Window::OnCreate()) {
+ return false;
+ }
+
+ RECT frame = GetClientArea();
+
+ // The size here must match the window dimensions to avoid unnecessary surface
+ // creation / destruction in the startup path.
+ flutter_controller_ = std::make_unique(
+ frame.right - frame.left, frame.bottom - frame.top, project_);
+ // Ensure that basic setup of the controller was successful.
+ if (!flutter_controller_->engine() || !flutter_controller_->view()) {
+ return false;
+ }
+ RegisterPlugins(flutter_controller_->engine());
+ SetChildContent(flutter_controller_->view()->GetNativeWindow());
+
+ flutter_controller_->engine()->SetNextFrameCallback([&]() {
+ this->Show();
+ });
+
+ // Flutter can complete the first frame before the "show window" callback is
+ // registered. The following call ensures a frame is pending to ensure the
+ // window is shown. It is a no-op if the first frame hasn't completed yet.
+ flutter_controller_->ForceRedraw();
+
+ return true;
+}
+
+void FlutterWindow::OnDestroy() {
+ if (flutter_controller_) {
+ flutter_controller_ = nullptr;
+ }
+
+ Win32Window::OnDestroy();
+}
+
+LRESULT
+FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
+ WPARAM const wparam,
+ LPARAM const lparam) noexcept {
+ // Give Flutter, including plugins, an opportunity to handle window messages.
+ if (flutter_controller_) {
+ std::optional result =
+ flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
+ lparam);
+ if (result) {
+ return *result;
+ }
+ }
+
+ switch (message) {
+ case WM_FONTCHANGE:
+ flutter_controller_->engine()->ReloadSystemFonts();
+ break;
+ }
+
+ return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
+}
diff --git a/adminkurir/windows/runner/flutter_window.h b/adminkurir/windows/runner/flutter_window.h
new file mode 100644
index 0000000..6da0652
--- /dev/null
+++ b/adminkurir/windows/runner/flutter_window.h
@@ -0,0 +1,33 @@
+#ifndef RUNNER_FLUTTER_WINDOW_H_
+#define RUNNER_FLUTTER_WINDOW_H_
+
+#include
+#include
+
+#include
+
+#include "win32_window.h"
+
+// A window that does nothing but host a Flutter view.
+class FlutterWindow : public Win32Window {
+ public:
+ // Creates a new FlutterWindow hosting a Flutter view running |project|.
+ explicit FlutterWindow(const flutter::DartProject& project);
+ virtual ~FlutterWindow();
+
+ protected:
+ // Win32Window:
+ bool OnCreate() override;
+ void OnDestroy() override;
+ LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
+ LPARAM const lparam) noexcept override;
+
+ private:
+ // The project to run.
+ flutter::DartProject project_;
+
+ // The Flutter instance hosted by this window.
+ std::unique_ptr flutter_controller_;
+};
+
+#endif // RUNNER_FLUTTER_WINDOW_H_
diff --git a/adminkurir/windows/runner/main.cpp b/adminkurir/windows/runner/main.cpp
new file mode 100644
index 0000000..f82571b
--- /dev/null
+++ b/adminkurir/windows/runner/main.cpp
@@ -0,0 +1,43 @@
+#include
+#include
+#include
+
+#include "flutter_window.h"
+#include "utils.h"
+
+int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
+ _In_ wchar_t *command_line, _In_ int show_command) {
+ // Attach to console when present (e.g., 'flutter run') or create a
+ // new console when running with a debugger.
+ if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
+ CreateAndAttachConsole();
+ }
+
+ // Initialize COM, so that it is available for use in the library and/or
+ // plugins.
+ ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
+
+ flutter::DartProject project(L"data");
+
+ std::vector command_line_arguments =
+ GetCommandLineArguments();
+
+ project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
+
+ FlutterWindow window(project);
+ Win32Window::Point origin(10, 10);
+ Win32Window::Size size(1280, 720);
+ if (!window.Create(L"adminkurir", origin, size)) {
+ return EXIT_FAILURE;
+ }
+ window.SetQuitOnClose(true);
+
+ ::MSG msg;
+ while (::GetMessage(&msg, nullptr, 0, 0)) {
+ ::TranslateMessage(&msg);
+ ::DispatchMessage(&msg);
+ }
+
+ ::CoUninitialize();
+ return EXIT_SUCCESS;
+}
diff --git a/adminkurir/windows/runner/resource.h b/adminkurir/windows/runner/resource.h
new file mode 100644
index 0000000..66a65d1
--- /dev/null
+++ b/adminkurir/windows/runner/resource.h
@@ -0,0 +1,16 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by Runner.rc
+//
+#define IDI_APP_ICON 101
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 102
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1001
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/adminkurir/windows/runner/resources/app_icon.ico b/adminkurir/windows/runner/resources/app_icon.ico
new file mode 100644
index 0000000..c04e20c
Binary files /dev/null and b/adminkurir/windows/runner/resources/app_icon.ico differ
diff --git a/adminkurir/windows/runner/runner.exe.manifest b/adminkurir/windows/runner/runner.exe.manifest
new file mode 100644
index 0000000..153653e
--- /dev/null
+++ b/adminkurir/windows/runner/runner.exe.manifest
@@ -0,0 +1,14 @@
+
+
+
+
+ PerMonitorV2
+
+
+
+
+
+
+
+
+
diff --git a/adminkurir/windows/runner/utils.cpp b/adminkurir/windows/runner/utils.cpp
new file mode 100644
index 0000000..3a0b465
--- /dev/null
+++ b/adminkurir/windows/runner/utils.cpp
@@ -0,0 +1,65 @@
+#include "utils.h"
+
+#include
+#include
+#include
+#include
+
+#include
+
+void CreateAndAttachConsole() {
+ if (::AllocConsole()) {
+ FILE *unused;
+ if (freopen_s(&unused, "CONOUT$", "w", stdout)) {
+ _dup2(_fileno(stdout), 1);
+ }
+ if (freopen_s(&unused, "CONOUT$", "w", stderr)) {
+ _dup2(_fileno(stdout), 2);
+ }
+ std::ios::sync_with_stdio();
+ FlutterDesktopResyncOutputStreams();
+ }
+}
+
+std::vector GetCommandLineArguments() {
+ // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.
+ int argc;
+ wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
+ if (argv == nullptr) {
+ return std::vector();
+ }
+
+ std::vector command_line_arguments;
+
+ // Skip the first argument as it's the binary name.
+ for (int i = 1; i < argc; i++) {
+ command_line_arguments.push_back(Utf8FromUtf16(argv[i]));
+ }
+
+ ::LocalFree(argv);
+
+ return command_line_arguments;
+}
+
+std::string Utf8FromUtf16(const wchar_t* utf16_string) {
+ if (utf16_string == nullptr) {
+ return std::string();
+ }
+ unsigned int target_length = ::WideCharToMultiByte(
+ CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
+ -1, nullptr, 0, nullptr, nullptr)
+ -1; // remove the trailing null character
+ int input_length = (int)wcslen(utf16_string);
+ std::string utf8_string;
+ if (target_length == 0 || target_length > utf8_string.max_size()) {
+ return utf8_string;
+ }
+ utf8_string.resize(target_length);
+ int converted_length = ::WideCharToMultiByte(
+ CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
+ input_length, utf8_string.data(), target_length, nullptr, nullptr);
+ if (converted_length == 0) {
+ return std::string();
+ }
+ return utf8_string;
+}
diff --git a/adminkurir/windows/runner/utils.h b/adminkurir/windows/runner/utils.h
new file mode 100644
index 0000000..3879d54
--- /dev/null
+++ b/adminkurir/windows/runner/utils.h
@@ -0,0 +1,19 @@
+#ifndef RUNNER_UTILS_H_
+#define RUNNER_UTILS_H_
+
+#include
+#include
+
+// Creates a console for the process, and redirects stdout and stderr to
+// it for both the runner and the Flutter library.
+void CreateAndAttachConsole();
+
+// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string
+// encoded in UTF-8. Returns an empty std::string on failure.
+std::string Utf8FromUtf16(const wchar_t* utf16_string);
+
+// Gets the command line arguments passed in as a std::vector,
+// encoded in UTF-8. Returns an empty std::vector on failure.
+std::vector GetCommandLineArguments();
+
+#endif // RUNNER_UTILS_H_
diff --git a/adminkurir/windows/runner/win32_window.cpp b/adminkurir/windows/runner/win32_window.cpp
new file mode 100644
index 0000000..60608d0
--- /dev/null
+++ b/adminkurir/windows/runner/win32_window.cpp
@@ -0,0 +1,288 @@
+#include "win32_window.h"
+
+#include
+#include
+
+#include "resource.h"
+
+namespace {
+
+/// Window attribute that enables dark mode window decorations.
+///
+/// Redefined in case the developer's machine has a Windows SDK older than
+/// version 10.0.22000.0.
+/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute
+#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE
+#define DWMWA_USE_IMMERSIVE_DARK_MODE 20
+#endif
+
+constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW";
+
+/// Registry key for app theme preference.
+///
+/// A value of 0 indicates apps should use dark mode. A non-zero or missing
+/// value indicates apps should use light mode.
+constexpr const wchar_t kGetPreferredBrightnessRegKey[] =
+ L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
+constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme";
+
+// The number of Win32Window objects that currently exist.
+static int g_active_window_count = 0;
+
+using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd);
+
+// Scale helper to convert logical scaler values to physical using passed in
+// scale factor
+int Scale(int source, double scale_factor) {
+ return static_cast(source * scale_factor);
+}
+
+// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module.
+// This API is only needed for PerMonitor V1 awareness mode.
+void EnableFullDpiSupportIfAvailable(HWND hwnd) {
+ HMODULE user32_module = LoadLibraryA("User32.dll");
+ if (!user32_module) {
+ return;
+ }
+ auto enable_non_client_dpi_scaling =
+ reinterpret_cast(
+ GetProcAddress(user32_module, "EnableNonClientDpiScaling"));
+ if (enable_non_client_dpi_scaling != nullptr) {
+ enable_non_client_dpi_scaling(hwnd);
+ }
+ FreeLibrary(user32_module);
+}
+
+} // namespace
+
+// Manages the Win32Window's window class registration.
+class WindowClassRegistrar {
+ public:
+ ~WindowClassRegistrar() = default;
+
+ // Returns the singleton registrar instance.
+ static WindowClassRegistrar* GetInstance() {
+ if (!instance_) {
+ instance_ = new WindowClassRegistrar();
+ }
+ return instance_;
+ }
+
+ // Returns the name of the window class, registering the class if it hasn't
+ // previously been registered.
+ const wchar_t* GetWindowClass();
+
+ // Unregisters the window class. Should only be called if there are no
+ // instances of the window.
+ void UnregisterWindowClass();
+
+ private:
+ WindowClassRegistrar() = default;
+
+ static WindowClassRegistrar* instance_;
+
+ bool class_registered_ = false;
+};
+
+WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr;
+
+const wchar_t* WindowClassRegistrar::GetWindowClass() {
+ if (!class_registered_) {
+ WNDCLASS window_class{};
+ window_class.hCursor = LoadCursor(nullptr, IDC_ARROW);
+ window_class.lpszClassName = kWindowClassName;
+ window_class.style = CS_HREDRAW | CS_VREDRAW;
+ window_class.cbClsExtra = 0;
+ window_class.cbWndExtra = 0;
+ window_class.hInstance = GetModuleHandle(nullptr);
+ window_class.hIcon =
+ LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON));
+ window_class.hbrBackground = 0;
+ window_class.lpszMenuName = nullptr;
+ window_class.lpfnWndProc = Win32Window::WndProc;
+ RegisterClass(&window_class);
+ class_registered_ = true;
+ }
+ return kWindowClassName;
+}
+
+void WindowClassRegistrar::UnregisterWindowClass() {
+ UnregisterClass(kWindowClassName, nullptr);
+ class_registered_ = false;
+}
+
+Win32Window::Win32Window() {
+ ++g_active_window_count;
+}
+
+Win32Window::~Win32Window() {
+ --g_active_window_count;
+ Destroy();
+}
+
+bool Win32Window::Create(const std::wstring& title,
+ const Point& origin,
+ const Size& size) {
+ Destroy();
+
+ const wchar_t* window_class =
+ WindowClassRegistrar::GetInstance()->GetWindowClass();
+
+ const POINT target_point = {static_cast(origin.x),
+ static_cast(origin.y)};
+ HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST);
+ UINT dpi = FlutterDesktopGetDpiForMonitor(monitor);
+ double scale_factor = dpi / 96.0;
+
+ HWND window = CreateWindow(
+ window_class, title.c_str(), WS_OVERLAPPEDWINDOW,
+ Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),
+ Scale(size.width, scale_factor), Scale(size.height, scale_factor),
+ nullptr, nullptr, GetModuleHandle(nullptr), this);
+
+ if (!window) {
+ return false;
+ }
+
+ UpdateTheme(window);
+
+ return OnCreate();
+}
+
+bool Win32Window::Show() {
+ return ShowWindow(window_handle_, SW_SHOWNORMAL);
+}
+
+// static
+LRESULT CALLBACK Win32Window::WndProc(HWND const window,
+ UINT const message,
+ WPARAM const wparam,
+ LPARAM const lparam) noexcept {
+ if (message == WM_NCCREATE) {
+ auto window_struct = reinterpret_cast(lparam);
+ SetWindowLongPtr(window, GWLP_USERDATA,
+ reinterpret_cast(window_struct->lpCreateParams));
+
+ auto that = static_cast(window_struct->lpCreateParams);
+ EnableFullDpiSupportIfAvailable(window);
+ that->window_handle_ = window;
+ } else if (Win32Window* that = GetThisFromHandle(window)) {
+ return that->MessageHandler(window, message, wparam, lparam);
+ }
+
+ return DefWindowProc(window, message, wparam, lparam);
+}
+
+LRESULT
+Win32Window::MessageHandler(HWND hwnd,
+ UINT const message,
+ WPARAM const wparam,
+ LPARAM const lparam) noexcept {
+ switch (message) {
+ case WM_DESTROY:
+ window_handle_ = nullptr;
+ Destroy();
+ if (quit_on_close_) {
+ PostQuitMessage(0);
+ }
+ return 0;
+
+ case WM_DPICHANGED: {
+ auto newRectSize = reinterpret_cast(lparam);
+ LONG newWidth = newRectSize->right - newRectSize->left;
+ LONG newHeight = newRectSize->bottom - newRectSize->top;
+
+ SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,
+ newHeight, SWP_NOZORDER | SWP_NOACTIVATE);
+
+ return 0;
+ }
+ case WM_SIZE: {
+ RECT rect = GetClientArea();
+ if (child_content_ != nullptr) {
+ // Size and position the child window.
+ MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,
+ rect.bottom - rect.top, TRUE);
+ }
+ return 0;
+ }
+
+ case WM_ACTIVATE:
+ if (child_content_ != nullptr) {
+ SetFocus(child_content_);
+ }
+ return 0;
+
+ case WM_DWMCOLORIZATIONCOLORCHANGED:
+ UpdateTheme(hwnd);
+ return 0;
+ }
+
+ return DefWindowProc(window_handle_, message, wparam, lparam);
+}
+
+void Win32Window::Destroy() {
+ OnDestroy();
+
+ if (window_handle_) {
+ DestroyWindow(window_handle_);
+ window_handle_ = nullptr;
+ }
+ if (g_active_window_count == 0) {
+ WindowClassRegistrar::GetInstance()->UnregisterWindowClass();
+ }
+}
+
+Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept {
+ return reinterpret_cast(
+ GetWindowLongPtr(window, GWLP_USERDATA));
+}
+
+void Win32Window::SetChildContent(HWND content) {
+ child_content_ = content;
+ SetParent(content, window_handle_);
+ RECT frame = GetClientArea();
+
+ MoveWindow(content, frame.left, frame.top, frame.right - frame.left,
+ frame.bottom - frame.top, true);
+
+ SetFocus(child_content_);
+}
+
+RECT Win32Window::GetClientArea() {
+ RECT frame;
+ GetClientRect(window_handle_, &frame);
+ return frame;
+}
+
+HWND Win32Window::GetHandle() {
+ return window_handle_;
+}
+
+void Win32Window::SetQuitOnClose(bool quit_on_close) {
+ quit_on_close_ = quit_on_close;
+}
+
+bool Win32Window::OnCreate() {
+ // No-op; provided for subclasses.
+ return true;
+}
+
+void Win32Window::OnDestroy() {
+ // No-op; provided for subclasses.
+}
+
+void Win32Window::UpdateTheme(HWND const window) {
+ DWORD light_mode;
+ DWORD light_mode_size = sizeof(light_mode);
+ LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey,
+ kGetPreferredBrightnessRegValue,
+ RRF_RT_REG_DWORD, nullptr, &light_mode,
+ &light_mode_size);
+
+ if (result == ERROR_SUCCESS) {
+ BOOL enable_dark_mode = light_mode == 0;
+ DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE,
+ &enable_dark_mode, sizeof(enable_dark_mode));
+ }
+}
diff --git a/adminkurir/windows/runner/win32_window.h b/adminkurir/windows/runner/win32_window.h
new file mode 100644
index 0000000..e901dde
--- /dev/null
+++ b/adminkurir/windows/runner/win32_window.h
@@ -0,0 +1,102 @@
+#ifndef RUNNER_WIN32_WINDOW_H_
+#define RUNNER_WIN32_WINDOW_H_
+
+#include
+
+#include
+#include
+#include
+
+// A class abstraction for a high DPI-aware Win32 Window. Intended to be
+// inherited from by classes that wish to specialize with custom
+// rendering and input handling
+class Win32Window {
+ public:
+ struct Point {
+ unsigned int x;
+ unsigned int y;
+ Point(unsigned int x, unsigned int y) : x(x), y(y) {}
+ };
+
+ struct Size {
+ unsigned int width;
+ unsigned int height;
+ Size(unsigned int width, unsigned int height)
+ : width(width), height(height) {}
+ };
+
+ Win32Window();
+ virtual ~Win32Window();
+
+ // Creates a win32 window with |title| that is positioned and sized using
+ // |origin| and |size|. New windows are created on the default monitor. Window
+ // sizes are specified to the OS in physical pixels, hence to ensure a
+ // consistent size this function will scale the inputted width and height as
+ // as appropriate for the default monitor. The window is invisible until
+ // |Show| is called. Returns true if the window was created successfully.
+ bool Create(const std::wstring& title, const Point& origin, const Size& size);
+
+ // Show the current window. Returns true if the window was successfully shown.
+ bool Show();
+
+ // Release OS resources associated with window.
+ void Destroy();
+
+ // Inserts |content| into the window tree.
+ void SetChildContent(HWND content);
+
+ // Returns the backing Window handle to enable clients to set icon and other
+ // window properties. Returns nullptr if the window has been destroyed.
+ HWND GetHandle();
+
+ // If true, closing this window will quit the application.
+ void SetQuitOnClose(bool quit_on_close);
+
+ // Return a RECT representing the bounds of the current client area.
+ RECT GetClientArea();
+
+ protected:
+ // Processes and route salient window messages for mouse handling,
+ // size change and DPI. Delegates handling of these to member overloads that
+ // inheriting classes can handle.
+ virtual LRESULT MessageHandler(HWND window,
+ UINT const message,
+ WPARAM const wparam,
+ LPARAM const lparam) noexcept;
+
+ // Called when CreateAndShow is called, allowing subclass window-related
+ // setup. Subclasses should return false if setup fails.
+ virtual bool OnCreate();
+
+ // Called when Destroy is called.
+ virtual void OnDestroy();
+
+ private:
+ friend class WindowClassRegistrar;
+
+ // OS callback called by message pump. Handles the WM_NCCREATE message which
+ // is passed when the non-client area is being created and enables automatic
+ // non-client DPI scaling so that the non-client area automatically
+ // responds to changes in DPI. All other messages are handled by
+ // MessageHandler.
+ static LRESULT CALLBACK WndProc(HWND const window,
+ UINT const message,
+ WPARAM const wparam,
+ LPARAM const lparam) noexcept;
+
+ // Retrieves a class instance pointer for |window|
+ static Win32Window* GetThisFromHandle(HWND const window) noexcept;
+
+ // Update the window frame's theme to match the system theme.
+ static void UpdateTheme(HWND const window);
+
+ bool quit_on_close_ = false;
+
+ // window handle for top level window.
+ HWND window_handle_ = nullptr;
+
+ // window handle for hosted content.
+ HWND child_content_ = nullptr;
+};
+
+#endif // RUNNER_WIN32_WINDOW_H_
diff --git a/aplikasi/.gitignore b/aplikasi/.gitignore
new file mode 100644
index 0000000..29a3a50
--- /dev/null
+++ b/aplikasi/.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/aplikasi/.metadata b/aplikasi/.metadata
new file mode 100644
index 0000000..c2aa44b
--- /dev/null
+++ b/aplikasi/.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: "603104015dd692ea3403755b55d07813d5cf8965"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: android
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: ios
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: linux
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: macos
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: web
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ - platform: windows
+ create_revision: 603104015dd692ea3403755b55d07813d5cf8965
+ base_revision: 603104015dd692ea3403755b55d07813d5cf8965
+
+ # 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/aplikasi/README.md b/aplikasi/README.md
new file mode 100644
index 0000000..8566a0e
--- /dev/null
+++ b/aplikasi/README.md
@@ -0,0 +1,92 @@
+# Kantin App
+
+A Flutter application for canteen management with user and admin roles.
+
+## Features
+
+- Clean Architecture (Presentation, Domain, Data layers)
+- User Authentication with roles (User/Admin)
+- User Dashboard:
+ - Browse food items
+ - Cart management
+ - Order tracking
+ - Chat support
+ - Profile management
+- Admin Dashboard:
+ - Menu management
+ - Order management
+ - User management
+ - Analytics
+ - Inventory management
+
+## Getting Started
+
+### Prerequisites
+
+- Flutter SDK (^3.5.4)
+- Dart SDK (^3.5.4)
+
+### Installation
+
+1. Clone the repository
+```bash
+git clone https://github.com/yourusername/kantin_app.git
+```
+
+2. Install dependencies
+```bash
+flutter pub get
+```
+
+3. Run the app
+```bash
+flutter run
+```
+
+### Demo Credentials
+
+- Admin:
+ - Email: admin@example.com
+ - Password: admin123
+
+- User:
+ - Email: user@example.com
+ - Password: user123
+
+## Project Structure
+
+```
+lib/
+ ├── data/
+ │ ├── models/
+ │ ├── repositories/
+ │ └── datasources/
+ ├── domain/
+ │ ├── entities/
+ │ ├── repositories/
+ │ └── usecases/
+ └── presentation/
+ ├── providers/
+ ├── screens/
+ │ ├── onboarding/
+ │ ├── auth/
+ │ ├── user/
+ │ ├── admin/
+ │ └── features/
+ └── widgets/
+```
+
+## Dependencies
+
+- provider: State management
+- shared_preferences: Local storage
+- flutter_svg: SVG support
+- go_router: Navigation
+
+## Contributing
+
+1. Fork the repository
+2. Create your feature branch
+3. Commit your changes
+4. Push to the branch
+5. Create a Pull Request
diff --git a/aplikasi/analysis_options.yaml b/aplikasi/analysis_options.yaml
new file mode 100644
index 0000000..0d29021
--- /dev/null
+++ b/aplikasi/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/aplikasi/android/.gitignore b/aplikasi/android/.gitignore
new file mode 100644
index 0000000..55afd91
--- /dev/null
+++ b/aplikasi/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/to/reference-keystore
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/aplikasi/android/app/build.gradle b/aplikasi/android/app/build.gradle
new file mode 100644
index 0000000..ed78fb8
--- /dev/null
+++ b/aplikasi/android/app/build.gradle
@@ -0,0 +1,72 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+android {
+ namespace "com.example.aplikasi"
+ compileSdkVersion flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_17
+ targetCompatibility JavaVersion.VERSION_17
+ }
+
+ kotlinOptions {
+ jvmTarget = '17'
+ }
+
+ 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.aplikasi"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://flutter.dev/to/review-gradle-config.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
+}
diff --git a/aplikasi/android/app/src/debug/AndroidManifest.xml b/aplikasi/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/aplikasi/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/aplikasi/android/app/src/main/AndroidManifest.xml b/aplikasi/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..23a6ebe
--- /dev/null
+++ b/aplikasi/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/aplikasi/android/app/src/main/kotlin/com/example/aplikasi/MainActivity.kt b/aplikasi/android/app/src/main/kotlin/com/example/aplikasi/MainActivity.kt
new file mode 100644
index 0000000..3ecccdb
--- /dev/null
+++ b/aplikasi/android/app/src/main/kotlin/com/example/aplikasi/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.example.aplikasi
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity()
diff --git a/aplikasi/android/app/src/main/res/drawable-v21/launch_background.xml b/aplikasi/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/aplikasi/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/aplikasi/android/app/src/main/res/drawable/launch_background.xml b/aplikasi/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/aplikasi/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/aplikasi/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/aplikasi/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..29a832f
Binary files /dev/null and b/aplikasi/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/aplikasi/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/aplikasi/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..2c17ebd
Binary files /dev/null and b/aplikasi/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/aplikasi/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/aplikasi/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bdcbe7d
Binary files /dev/null and b/aplikasi/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/aplikasi/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/aplikasi/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..c207152
Binary files /dev/null and b/aplikasi/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/aplikasi/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/aplikasi/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..dda6fa7
Binary files /dev/null and b/aplikasi/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/aplikasi/android/app/src/main/res/values-night/styles.xml b/aplikasi/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/aplikasi/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/aplikasi/android/app/src/main/res/values/styles.xml b/aplikasi/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/aplikasi/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/aplikasi/android/app/src/profile/AndroidManifest.xml b/aplikasi/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/aplikasi/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/aplikasi/android/build.gradle b/aplikasi/android/build.gradle
new file mode 100644
index 0000000..780c766
--- /dev/null
+++ b/aplikasi/android/build.gradle
@@ -0,0 +1,28 @@
+buildscript {
+ ext.kotlin_version = '1.9.20'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:8.1.3'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+
+tasks.register("clean", Delete) {
+ delete rootProject.buildDir
+}
diff --git a/aplikasi/android/gradle.properties b/aplikasi/android/gradle.properties
new file mode 100644
index 0000000..c1c7de2
--- /dev/null
+++ b/aplikasi/android/gradle.properties
@@ -0,0 +1,5 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
+org.gradle.java.home=C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.15.6-hotspot
+org.gradle.warning.mode=all
diff --git a/aplikasi/android/gradle/wrapper/gradle-wrapper.properties b/aplikasi/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..5e6b542
--- /dev/null
+++ b/aplikasi/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-8.4-all.zip
diff --git a/aplikasi/android/settings.gradle b/aplikasi/android/settings.gradle
new file mode 100644
index 0000000..b9e43bd
--- /dev/null
+++ b/aplikasi/android/settings.gradle
@@ -0,0 +1,25 @@
+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
+ }()
+
+ includeBuild("$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 "8.1.0" apply false
+ id "org.jetbrains.kotlin.android" version "1.8.22" apply false
+}
+
+include ":app"
diff --git a/aplikasi/assets/images/ambil.jpeg b/aplikasi/assets/images/ambil.jpeg
new file mode 100644
index 0000000..73ef483
Binary files /dev/null and b/aplikasi/assets/images/ambil.jpeg differ
diff --git a/aplikasi/assets/images/banner.jpg b/aplikasi/assets/images/banner.jpg
new file mode 100644
index 0000000..b07dbec
Binary files /dev/null and b/aplikasi/assets/images/banner.jpg differ
diff --git a/aplikasi/assets/images/barcode.png b/aplikasi/assets/images/barcode.png
new file mode 100644
index 0000000..7ff15bb
Binary files /dev/null and b/aplikasi/assets/images/barcode.png differ
diff --git a/aplikasi/assets/images/bca.png b/aplikasi/assets/images/bca.png
new file mode 100644
index 0000000..91cd09a
Binary files /dev/null and b/aplikasi/assets/images/bca.png differ
diff --git a/aplikasi/assets/images/bni.png b/aplikasi/assets/images/bni.png
new file mode 100644
index 0000000..30fcad4
Binary files /dev/null and b/aplikasi/assets/images/bni.png differ
diff --git a/aplikasi/assets/images/briva.png b/aplikasi/assets/images/briva.png
new file mode 100644
index 0000000..af4a31c
Binary files /dev/null and b/aplikasi/assets/images/briva.png differ
diff --git a/aplikasi/assets/images/bsi.png b/aplikasi/assets/images/bsi.png
new file mode 100644
index 0000000..b079f84
Binary files /dev/null and b/aplikasi/assets/images/bsi.png differ
diff --git a/aplikasi/assets/images/cash.png b/aplikasi/assets/images/cash.png
new file mode 100644
index 0000000..9831efa
Binary files /dev/null and b/aplikasi/assets/images/cash.png differ
diff --git a/aplikasi/assets/images/dana.png b/aplikasi/assets/images/dana.png
new file mode 100644
index 0000000..43eccd8
Binary files /dev/null and b/aplikasi/assets/images/dana.png differ
diff --git a/aplikasi/assets/images/gopay.png b/aplikasi/assets/images/gopay.png
new file mode 100644
index 0000000..f5e0737
Binary files /dev/null and b/aplikasi/assets/images/gopay.png differ
diff --git a/aplikasi/assets/images/kantin.png b/aplikasi/assets/images/kantin.png
new file mode 100644
index 0000000..c66d2a5
Binary files /dev/null and b/aplikasi/assets/images/kantin.png differ
diff --git a/aplikasi/assets/images/kurir1.png b/aplikasi/assets/images/kurir1.png
new file mode 100644
index 0000000..8a2deed
Binary files /dev/null and b/aplikasi/assets/images/kurir1.png differ
diff --git a/aplikasi/assets/images/kurir2.png b/aplikasi/assets/images/kurir2.png
new file mode 100644
index 0000000..e7e7cc4
Binary files /dev/null and b/aplikasi/assets/images/kurir2.png differ
diff --git a/aplikasi/assets/images/kurir3.png b/aplikasi/assets/images/kurir3.png
new file mode 100644
index 0000000..06c5170
Binary files /dev/null and b/aplikasi/assets/images/kurir3.png differ
diff --git a/aplikasi/assets/images/logo.jpg b/aplikasi/assets/images/logo.jpg
new file mode 100644
index 0000000..5f20159
Binary files /dev/null and b/aplikasi/assets/images/logo.jpg differ
diff --git a/aplikasi/assets/images/makanan.png b/aplikasi/assets/images/makanan.png
new file mode 100644
index 0000000..6bd5a88
Binary files /dev/null and b/aplikasi/assets/images/makanan.png differ
diff --git a/aplikasi/assets/images/mandiri.png b/aplikasi/assets/images/mandiri.png
new file mode 100644
index 0000000..c877c70
Binary files /dev/null and b/aplikasi/assets/images/mandiri.png differ
diff --git a/aplikasi/assets/images/map.png b/aplikasi/assets/images/map.png
new file mode 100644
index 0000000..f5abea9
Binary files /dev/null and b/aplikasi/assets/images/map.png differ
diff --git a/aplikasi/assets/images/minuman.png b/aplikasi/assets/images/minuman.png
new file mode 100644
index 0000000..164ec34
Binary files /dev/null and b/aplikasi/assets/images/minuman.png differ
diff --git a/aplikasi/assets/images/motor.jpg b/aplikasi/assets/images/motor.jpg
new file mode 100644
index 0000000..861d0d9
Binary files /dev/null and b/aplikasi/assets/images/motor.jpg differ
diff --git a/aplikasi/assets/images/nasi_ayam.jpg b/aplikasi/assets/images/nasi_ayam.jpg
new file mode 100644
index 0000000..c7b318d
Binary files /dev/null and b/aplikasi/assets/images/nasi_ayam.jpg differ
diff --git a/aplikasi/assets/images/orang.jpg b/aplikasi/assets/images/orang.jpg
new file mode 100644
index 0000000..af4a3da
Binary files /dev/null and b/aplikasi/assets/images/orang.jpg differ
diff --git a/aplikasi/assets/images/ovo.png b/aplikasi/assets/images/ovo.png
new file mode 100644
index 0000000..2070a58
Binary files /dev/null and b/aplikasi/assets/images/ovo.png differ
diff --git a/aplikasi/assets/images/poli.png b/aplikasi/assets/images/poli.png
new file mode 100644
index 0000000..5f20159
Binary files /dev/null and b/aplikasi/assets/images/poli.png differ
diff --git a/aplikasi/assets/images/profile.jpg b/aplikasi/assets/images/profile.jpg
new file mode 100644
index 0000000..1345565
Binary files /dev/null and b/aplikasi/assets/images/profile.jpg differ
diff --git a/aplikasi/assets/images/qris.png b/aplikasi/assets/images/qris.png
new file mode 100644
index 0000000..e831924
Binary files /dev/null and b/aplikasi/assets/images/qris.png differ
diff --git a/aplikasi/assets/images/shopeepay.png b/aplikasi/assets/images/shopeepay.png
new file mode 100644
index 0000000..990297d
Binary files /dev/null and b/aplikasi/assets/images/shopeepay.png differ
diff --git a/aplikasi/assets/images/snack.png b/aplikasi/assets/images/snack.png
new file mode 100644
index 0000000..d5ddeeb
Binary files /dev/null and b/aplikasi/assets/images/snack.png differ
diff --git a/aplikasi/assets/vidio/splash.gif b/aplikasi/assets/vidio/splash.gif
new file mode 100644
index 0000000..a55c496
Binary files /dev/null and b/aplikasi/assets/vidio/splash.gif differ
diff --git a/aplikasi/assets/vidio/splash.mp4 b/aplikasi/assets/vidio/splash.mp4
new file mode 100644
index 0000000..70e9aa1
Binary files /dev/null and b/aplikasi/assets/vidio/splash.mp4 differ
diff --git a/aplikasi/ios/.gitignore b/aplikasi/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/aplikasi/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/aplikasi/ios/Flutter/AppFrameworkInfo.plist b/aplikasi/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..7c56964
--- /dev/null
+++ b/aplikasi/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/aplikasi/ios/Flutter/Debug.xcconfig b/aplikasi/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/aplikasi/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/aplikasi/ios/Flutter/Release.xcconfig b/aplikasi/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/aplikasi/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/aplikasi/ios/Runner.xcodeproj/project.pbxproj b/aplikasi/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..aea0e6e
--- /dev/null
+++ b/aplikasi/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.aplikasi;
+ 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.aplikasi.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.aplikasi.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.aplikasi.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 = AppIcon;
+ 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 = AppIcon;
+ 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.aplikasi;
+ 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.aplikasi;
+ 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/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/aplikasi/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/aplikasi/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/aplikasi/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..8e3ca5d
--- /dev/null
+++ b/aplikasi/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/aplikasi/ios/Runner.xcworkspace/contents.xcworkspacedata b/aplikasi/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/aplikasi/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/aplikasi/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/aplikasi/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/aplikasi/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/aplikasi/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/aplikasi/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/aplikasi/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/aplikasi/ios/Runner/AppDelegate.swift b/aplikasi/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..6266644
--- /dev/null
+++ b/aplikasi/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import Flutter
+import UIKit
+
+@main
+@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/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/aplikasi/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/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..9dea7ee
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..047c596
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..f9e8550
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..73af185
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..f62b711
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..b30c92e
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..c0d714d
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..f9e8550
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..3d348c5
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..11b6b9d
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
new file mode 100644
index 0000000..4fad1ed
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
new file mode 100644
index 0000000..1753b00
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
new file mode 100644
index 0000000..eed389a
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
new file mode 100644
index 0000000..146e3ce
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..11b6b9d
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..8349834
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
new file mode 100644
index 0000000..29a832f
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
new file mode 100644
index 0000000..c207152
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..fb353cd
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..3eee262
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..6e39482
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/aplikasi/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/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/aplikasi/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/aplikasi/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/aplikasi/ios/Runner/Base.lproj/LaunchScreen.storyboard b/aplikasi/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/aplikasi/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/aplikasi/ios/Runner/Base.lproj/Main.storyboard b/aplikasi/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/aplikasi/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/aplikasi/ios/Runner/Info.plist b/aplikasi/ios/Runner/Info.plist
new file mode 100644
index 0000000..4639914
--- /dev/null
+++ b/aplikasi/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Aplikasi
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ aplikasi
+ 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/aplikasi/ios/Runner/Runner-Bridging-Header.h b/aplikasi/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/aplikasi/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/aplikasi/ios/RunnerTests/RunnerTests.swift b/aplikasi/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/aplikasi/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/aplikasi/lib/main.dart b/aplikasi/lib/main.dart
new file mode 100644
index 0000000..656a87e
--- /dev/null
+++ b/aplikasi/lib/main.dart
@@ -0,0 +1,102 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:provider/provider.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+// Presentation Layer
+import 'presentation/providers/auth_provider.dart';
+import 'presentation/screens/onboarding/onboarding_screen.dart';
+import 'presentation/screens/auth/login_screen.dart';
+import 'presentation/screens/auth/register_screen.dart';
+import 'presentation/screens/user/user_dashboard.dart';
+import 'presentation/screens/admin/admin_dashboard.dart';
+import 'presentation/screens/features/detail_page.dart';
+import 'presentation/screens/features/sort_page.dart';
+import 'presentation/screens/features/confirm_order_page.dart';
+import 'presentation/screens/features/payment_method_page.dart';
+import 'presentation/screens/features/processing_order_page.dart';
+import 'presentation/screens/features/delivery_order_page.dart';
+import 'presentation/screens/features/order_arrived_page.dart';
+import 'presentation/screens/splash_screen_gif.dart';
+
+void main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ final prefs = await SharedPreferences.getInstance();
+
+ runApp(MyApp(prefs: prefs));
+}
+
+class MyApp extends StatelessWidget {
+ final SharedPreferences prefs;
+
+ MyApp({super.key, required this.prefs});
+
+ late final _router = GoRouter(
+ initialLocation: '/',
+ routes: [
+ GoRoute(
+ path: '/',
+ builder: (context, state) => const SplashScreenGif(),
+ ),
+ GoRoute(
+ path: '/login',
+ builder: (context, state) => const LoginScreen(),
+ ),
+ GoRoute(
+ path: '/register',
+ builder: (context, state) => const RegisterScreen(),
+ ),
+ GoRoute(
+ path: '/user-dashboard',
+ builder: (context, state) => const UserDashboard(),
+ ),
+ GoRoute(
+ path: '/admin-dashboard',
+ builder: (context, state) => const AdminDashboard(),
+ ),
+ GoRoute(
+ path: '/sort',
+ builder: (context, state) => const SortPage(),
+ ),
+ GoRoute(
+ path: '/payment-method',
+ builder: (context, state) => const PaymentMethodPage(),
+ ),
+ GoRoute(
+ path: '/detail',
+ builder: (context, state) => const DetailPage(),
+ ),
+ GoRoute(
+ path: '/confirm-order',
+ builder: (context, state) => const ConfirmOrderPage(),
+ ),
+ GoRoute(
+ path: '/processing-order',
+ builder: (context, state) => const ProcessingOrderPage(),
+ ),
+ GoRoute(
+ path: '/delivery-order',
+ builder: (context, state) => const DeliveryOrderPage(),
+ ),
+ GoRoute(
+ path: '/order-arrived',
+ builder: (context, state) => const OrderArrivedPage(),
+ ),
+ ],
+ );
+
+ @override
+ Widget build(BuildContext context) {
+ return ChangeNotifierProvider(
+ create: (context) => AuthProvider(prefs),
+ child: MaterialApp.router(
+ title: 'Kantin App',
+ theme: ThemeData(
+ colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
+ useMaterial3: true,
+ ),
+ routerConfig: _router,
+ ),
+ );
+ }
+}
diff --git a/aplikasi/lib/presentation/providers/auth_provider.dart b/aplikasi/lib/presentation/providers/auth_provider.dart
new file mode 100644
index 0000000..70b4f7c
--- /dev/null
+++ b/aplikasi/lib/presentation/providers/auth_provider.dart
@@ -0,0 +1,21 @@
+import 'package:flutter/foundation.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+class AuthProvider extends ChangeNotifier {
+ final SharedPreferences _prefs;
+ int _selectedIndex = 0;
+
+ AuthProvider(this._prefs);
+
+ int get selectedIndex => _selectedIndex;
+
+ void setSelectedIndex(int index) {
+ _selectedIndex = index;
+ notifyListeners();
+ }
+
+ Future logout() async {
+ await _prefs.clear(); // Clear all stored preferences
+ notifyListeners();
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/admin/admin_dashboard.dart b/aplikasi/lib/presentation/screens/admin/admin_dashboard.dart
new file mode 100644
index 0000000..b119efd
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/admin/admin_dashboard.dart
@@ -0,0 +1,109 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:provider/provider.dart';
+import '../../providers/auth_provider.dart';
+
+class AdminDashboard extends StatelessWidget {
+ const AdminDashboard({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Admin Dashboard'),
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.logout),
+ onPressed: () {
+ context.read().logout();
+ context.go('/login');
+ },
+ ),
+ ],
+ ),
+ body: GridView.count(
+ padding: const EdgeInsets.all(16),
+ crossAxisCount: 2,
+ mainAxisSpacing: 16,
+ crossAxisSpacing: 16,
+ children: [
+ _buildAdminCard(
+ 'Manage Menu',
+ Icons.restaurant_menu,
+ Colors.blue,
+ () {},
+ ),
+ _buildAdminCard(
+ 'Orders',
+ Icons.receipt_long,
+ Colors.green,
+ () {},
+ ),
+ _buildAdminCard(
+ 'Users',
+ Icons.people,
+ Colors.orange,
+ () {},
+ ),
+ _buildAdminCard(
+ 'Reports',
+ Icons.bar_chart,
+ Colors.purple,
+ () {},
+ ),
+ _buildAdminCard(
+ 'Settings',
+ Icons.settings,
+ Colors.grey,
+ () {},
+ ),
+ _buildAdminCard(
+ 'Support',
+ Icons.help,
+ Colors.red,
+ () {},
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildAdminCard(
+ String title,
+ IconData icon,
+ Color color,
+ VoidCallback onTap,
+ ) {
+ return Card(
+ elevation: 4,
+ child: InkWell(
+ onTap: onTap,
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Container(
+ padding: const EdgeInsets.all(12),
+ decoration: BoxDecoration(
+ color: color.withOpacity(0.1),
+ shape: BoxShape.circle,
+ ),
+ child: Icon(
+ icon,
+ size: 32,
+ color: color,
+ ),
+ ),
+ const SizedBox(height: 12),
+ Text(
+ title,
+ style: const TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/auth/login_screen.dart b/aplikasi/lib/presentation/screens/auth/login_screen.dart
new file mode 100644
index 0000000..e73dd11
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/auth/login_screen.dart
@@ -0,0 +1,187 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+
+class LoginScreen extends StatefulWidget {
+ const LoginScreen({super.key});
+
+ @override
+ State createState() => _LoginScreenState();
+}
+
+class _LoginScreenState extends State {
+ final _formKey = GlobalKey();
+ final _emailController = TextEditingController();
+ final _passwordController = TextEditingController();
+ bool _isLoading = false;
+ bool _obscurePassword = true;
+
+ @override
+ void dispose() {
+ _emailController.dispose();
+ _passwordController.dispose();
+ super.dispose();
+ }
+
+ void _login() {
+ context.go('/user-dashboard');
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: SingleChildScrollView(
+ padding: const EdgeInsets.symmetric(horizontal: 24.0),
+ child: Form(
+ key: _formKey,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ // Logo
+ Padding(
+ padding: const EdgeInsets.only(top: 40, bottom: 20),
+ child: Row(
+ children: [
+ Image.asset(
+ 'assets/images/logo.jpg',
+ height: 40,
+ ),
+ ],
+ ),
+ ),
+ // Delivery Image
+ Image.asset(
+ 'assets/images/motor.jpg',
+ height: 200,
+ ),
+ const SizedBox(height: 32),
+ // Masuk Text
+ const Text(
+ 'Masuk',
+ style: TextStyle(
+ fontSize: 24,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 24),
+ // Email Field
+ TextFormField(
+ controller: _emailController,
+ decoration: InputDecoration(
+ labelText: 'Email Polije',
+ floatingLabelBehavior: FloatingLabelBehavior.never,
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ filled: true,
+ fillColor: Colors.grey.shade50,
+ contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
+ ),
+ keyboardType: TextInputType.emailAddress,
+ ),
+ const SizedBox(height: 16),
+ // Password Field
+ TextFormField(
+ controller: _passwordController,
+ decoration: InputDecoration(
+ labelText: 'Password',
+ floatingLabelBehavior: FloatingLabelBehavior.never,
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ filled: true,
+ fillColor: Colors.grey.shade50,
+ contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
+ suffixIcon: IconButton(
+ icon: Icon(
+ _obscurePassword ? Icons.visibility_off : Icons.visibility,
+ color: Colors.grey,
+ ),
+ onPressed: () {
+ setState(() {
+ _obscurePassword = !_obscurePassword;
+ });
+ },
+ ),
+ ),
+ obscureText: _obscurePassword,
+ ),
+ // Forgot Password
+ Align(
+ alignment: Alignment.centerRight,
+ child: TextButton(
+ onPressed: () {
+ // Handle forgot password
+ },
+ style: TextButton.styleFrom(
+ foregroundColor: Colors.blue,
+ padding: const EdgeInsets.symmetric(vertical: 8),
+ ),
+ child: const Text('Lupa Password?'),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Login Button
+ ElevatedButton(
+ onPressed: _login,
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xFF56B8F6),
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 16),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ elevation: 0,
+ ),
+ child: const Text(
+ 'Masuk',
+ style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
+ ),
+ ),
+ const SizedBox(height: 24),
+ // Register Link
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ const Text(
+ 'Tidak punya akun? ',
+ style: TextStyle(color: Colors.grey),
+ ),
+ TextButton(
+ onPressed: () => context.go('/register'),
+ style: TextButton.styleFrom(
+ foregroundColor: Colors.blue,
+ padding: EdgeInsets.zero,
+ minimumSize: const Size(0, 0),
+ ),
+ child: const Text('Daftar Sekarang'),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/auth/register_screen.dart b/aplikasi/lib/presentation/screens/auth/register_screen.dart
new file mode 100644
index 0000000..be50cd4
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/auth/register_screen.dart
@@ -0,0 +1,343 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+
+class RegisterScreen extends StatefulWidget {
+ const RegisterScreen({super.key});
+
+ @override
+ State createState() => _RegisterScreenState();
+}
+
+class _RegisterScreenState extends State {
+ final _formKey = GlobalKey();
+ final _nameController = TextEditingController();
+ final _emailController = TextEditingController();
+ final _phoneController = TextEditingController();
+ final _passwordController = TextEditingController();
+ final _confirmPasswordController = TextEditingController();
+ bool _obscurePassword = true;
+ bool _obscureConfirmPassword = true;
+ bool _agreeToTerms = false;
+
+ @override
+ void dispose() {
+ _nameController.dispose();
+ _emailController.dispose();
+ _phoneController.dispose();
+ _passwordController.dispose();
+ _confirmPasswordController.dispose();
+ super.dispose();
+ }
+
+ void _register() {
+ if (_formKey.currentState!.validate() && _agreeToTerms) {
+ // In a real app, implement registration logic here
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text('Registration successful! Please login.'),
+ ),
+ );
+ context.go('/login');
+ } else if (!_agreeToTerms) {
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text('Please agree to the terms and conditions'),
+ ),
+ );
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: PreferredSize(
+ preferredSize: const Size.fromHeight(40), // Mengurangi tinggi AppBar
+ child: Container(
+ color: Colors.white,
+ child: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.black),
+ onPressed: () => context.go('/login'),
+ ),
+ ),
+ ),
+ ),
+ body: Container(
+ color: Colors.white,
+ child: SafeArea(
+ child: SingleChildScrollView(
+ padding: const EdgeInsets.symmetric(horizontal: 24.0),
+ child: Form(
+ key: _formKey,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ // Logo
+ Padding(
+ padding: const EdgeInsets.only(top: 5, bottom: 5),
+ child: Row(
+ children: [
+ Image.asset(
+ 'assets/images/logo.jpg',
+ height: 40,
+ ),
+ ],
+ ),
+ ),
+ // Register Image
+ Image.asset(
+ 'assets/images/orang.jpg',
+ height: 130,
+ ),
+ const SizedBox(height: 10),
+ // Daftar Text
+ const Center(
+ child: Text(
+ 'Daftar',
+ style: TextStyle(
+ fontSize: 24,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ),
+ const SizedBox(height: 10),
+ // Nama Lengkap Field
+ TextFormField(
+ controller: _nameController,
+ decoration: InputDecoration(
+ labelText: 'Nama Lengkap',
+ contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ ),
+ validator: (value) {
+ if (value == null || value.isEmpty) {
+ return 'Please enter your name';
+ }
+ return null;
+ },
+ ),
+ const SizedBox(height: 10),
+ // Email Field
+ TextFormField(
+ controller: _emailController,
+ decoration: InputDecoration(
+ labelText: 'Email Polije',
+ contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ ),
+ keyboardType: TextInputType.emailAddress,
+ validator: (value) {
+ if (value == null || value.isEmpty) {
+ return 'Please enter your email';
+ }
+ if (!value.contains('@')) {
+ return 'Please enter a valid email';
+ }
+ return null;
+ },
+ ),
+ const SizedBox(height: 10),
+ // Phone Number Field
+ TextFormField(
+ controller: _phoneController,
+ decoration: InputDecoration(
+ labelText: 'No. Hp',
+ contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ ),
+ keyboardType: TextInputType.phone,
+ validator: (value) {
+ if (value == null || value.isEmpty) {
+ return 'Please enter your phone number';
+ }
+ return null;
+ },
+ ),
+ const SizedBox(height: 10),
+ // Password Field
+ TextFormField(
+ controller: _passwordController,
+ decoration: InputDecoration(
+ labelText: 'Password',
+ contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ suffixIcon: IconButton(
+ icon: Icon(
+ _obscurePassword ? Icons.visibility_off : Icons.visibility,
+ color: Colors.grey,
+ ),
+ onPressed: () {
+ setState(() {
+ _obscurePassword = !_obscurePassword;
+ });
+ },
+ ),
+ ),
+ obscureText: _obscurePassword,
+ validator: (value) {
+ if (value == null || value.isEmpty) {
+ return 'Please enter a password';
+ }
+ if (value.length < 6) {
+ return 'Password must be at least 6 characters';
+ }
+ return null;
+ },
+ ),
+ const SizedBox(height: 10),
+ // Confirm Password Field
+ TextFormField(
+ controller: _confirmPasswordController,
+ decoration: InputDecoration(
+ labelText: 'Konfirmasi Password',
+ contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(25),
+ borderSide: BorderSide(color: Colors.grey.shade300),
+ ),
+ suffixIcon: IconButton(
+ icon: Icon(
+ _obscureConfirmPassword ? Icons.visibility_off : Icons.visibility,
+ color: Colors.grey,
+ ),
+ onPressed: () {
+ setState(() {
+ _obscureConfirmPassword = !_obscureConfirmPassword;
+ });
+ },
+ ),
+ ),
+ obscureText: _obscureConfirmPassword,
+ validator: (value) {
+ if (value == null || value.isEmpty) {
+ return 'Please confirm your password';
+ }
+ if (value != _passwordController.text) {
+ return 'Passwords do not match';
+ }
+ return null;
+ },
+ ),
+ const SizedBox(height: 10),
+ // Terms and Conditions
+ Row(
+ children: [
+ Transform.scale(
+ scale: 0.8,
+ child: Checkbox(
+ value: _agreeToTerms,
+ onChanged: (value) {
+ setState(() {
+ _agreeToTerms = value ?? false;
+ });
+ },
+ ),
+ ),
+ Expanded(
+ child: RichText(
+ text: const TextSpan(
+ style: TextStyle(color: Colors.grey, fontSize: 11),
+ children: [
+ TextSpan(text: 'Dengan mendaftar, Anda menyetujui '),
+ TextSpan(
+ text: 'syarat & ketentuan',
+ style: TextStyle(
+ color: Colors.blue,
+ decoration: TextDecoration.underline,
+ ),
+ ),
+ TextSpan(text: ' dan '),
+ TextSpan(
+ text: 'kebijakan privasi kami',
+ style: TextStyle(
+ color: Colors.blue,
+ decoration: TextDecoration.underline,
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 10),
+ // Register Button
+ ElevatedButton(
+ onPressed: _register,
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xFF56B8F6),
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ elevation: 0,
+ ),
+ child: const Text(
+ 'Daftar Sekarang',
+ style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold,),
+ ),
+ ),
+
+ const SizedBox(height: 10),
+ // Login Link
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ const Text(
+ 'Sudah punya akun? ',
+ style: TextStyle(color: Colors.grey, fontSize: 14),
+ ),
+ TextButton(
+ onPressed: () => context.go('/login'),
+ style: TextButton.styleFrom(
+ foregroundColor: Colors.blue,
+ padding: EdgeInsets.zero,
+ minimumSize: const Size(0, 0),
+ ),
+ child: const Text(
+ 'Masuk',
+ style: TextStyle(fontSize: 14),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/activity_page.dart b/aplikasi/lib/presentation/screens/features/activity_page.dart
new file mode 100644
index 0000000..96ce8b1
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/activity_page.dart
@@ -0,0 +1,226 @@
+import 'package:flutter/material.dart';
+
+class ActivityPage extends StatefulWidget {
+ const ActivityPage({super.key});
+
+ @override
+ State createState() => _ActivityPageState();
+}
+
+class _ActivityPageState extends State with SingleTickerProviderStateMixin {
+ late TabController _tabController;
+
+ @override
+ void initState() {
+ super.initState();
+ _tabController = TabController(length: 4, vsync: this);
+ }
+
+ @override
+ void dispose() {
+ _tabController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Aktivitas'),
+ bottom: TabBar(
+ controller: _tabController,
+ isScrollable: true,
+ tabs: const [
+ Tab(text: 'Diproses'),
+ Tab(text: 'Dikirim'),
+ Tab(text: 'Belum Bayar'),
+ Tab(text: 'Riwayat'),
+ ],
+ labelColor: Colors.blue,
+ unselectedLabelColor: Colors.grey,
+ indicatorColor: Colors.blue,
+ indicatorSize: TabBarIndicatorSize.label,
+ ),
+ ),
+ body: TabBarView(
+ controller: _tabController,
+ children: [
+ _buildOrderList('Diproses'),
+ _buildOrderList('Dikirim'),
+ _buildOrderList('Belum Bayar'),
+ _buildOrderList('Riwayat'),
+ ],
+ ),
+ //
+ );
+ }
+
+ Widget _buildOrderList(String status) {
+ // Sample order data
+ final orders = [
+ Order(
+ id: '#TRDKN2350',
+ date: '2024-01-13 12:34:20',
+ totalItems: 4,
+ totalPrice: 21000,
+ status: 'Menunggu Konfirmasi',
+ ),
+ Order(
+ id: '#TRDKN2350',
+ date: '2024-01-13 12:34:20',
+ totalItems: 4,
+ totalPrice: 21000,
+ status: 'Menunggu Konfirmasi',
+ ),
+ Order(
+ id: '#TRDKN2351',
+ date: '2024-01-13 12:34:20',
+ totalItems: 5,
+ totalPrice: 50000,
+ status: 'Menunggu Konfirmasi',
+ ),
+ ];
+
+ return ListView.builder(
+ padding: const EdgeInsets.all(16),
+ itemCount: orders.length,
+ itemBuilder: (context, index) {
+ final order = orders[index];
+ return Card(
+ margin: const EdgeInsets.only(bottom: 16),
+ elevation: 0,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(12),
+ side: BorderSide(
+ color: Colors.grey.shade200,
+ ),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Container(
+ width: 40,
+ height: 40,
+ decoration: BoxDecoration(
+ color: Colors.blue.shade100,
+ shape: BoxShape.circle,
+ ),
+ child: Icon(
+ Icons.receipt_outlined,
+ color: Colors.blue.shade700,
+ size: 20,
+ ),
+ ),
+ const SizedBox(width: 12),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ order.id,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ order.date,
+ style: TextStyle(
+ color: Colors.grey[600],
+ fontSize: 12,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 16),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ 'Total Menu',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 12,
+ ),
+ ),
+ Text(
+ '${order.totalItems} Menu',
+ style: const TextStyle(
+ fontSize: 14,
+ ),
+ ),
+ ],
+ ),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ const Text(
+ 'Total',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 12,
+ ),
+ ),
+ Text(
+ 'Rp ${order.totalPrice}',
+ style: const TextStyle(
+ fontSize: 14,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 16),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text(
+ 'Status',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 12,
+ ),
+ ),
+ Text(
+ order.status,
+ style: const TextStyle(
+ color: Colors.red,
+ fontSize: 12,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ );
+ }
+}
+
+class Order {
+ final String id;
+ final String date;
+ final int totalItems;
+ final int totalPrice;
+ final String status;
+
+ Order({
+ required this.id,
+ required this.date,
+ required this.totalItems,
+ required this.totalPrice,
+ required this.status,
+ });
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/cart_page.dart b/aplikasi/lib/presentation/screens/features/cart_page.dart
new file mode 100644
index 0000000..fd0afe9
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/cart_page.dart
@@ -0,0 +1,333 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:kantin_app/presentation/screens/features/confirm_order_page.dart';
+
+class CartPage extends StatefulWidget {
+ const CartPage({super.key});
+
+ @override
+ State createState() => _CartPageState();
+}
+
+class _CartPageState extends State {
+ final List _items = [
+ CartItem(
+ name: 'Nasi Ayam Geprek',
+ price: 10000,
+ quantity: 1,
+ location: 'Kantin 1',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ ),
+ CartItem(
+ name: 'Nasi Ayam Geprek',
+ price: 10000,
+ quantity: 1,
+ location: 'Kantin 2',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ ),
+ ];
+
+ double get _totalPrice => _items.fold(
+ 0,
+ (sum, item) => sum + (item.price * item.quantity),
+ );
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ toolbarHeight: 88,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Color(0xFF2196F3)),
+ onPressed: () => Navigator.pop(context),
+ ),
+ title: const Text(
+ 'Keranjang',
+ style: TextStyle(
+ color: Colors.black,
+ fontWeight: FontWeight.bold,
+ fontSize: 20,
+ ),
+ ),
+ centerTitle: false,
+ ),
+ body: Column(
+ children: [
+ const SizedBox(height: 4),
+ Expanded(
+ child: ListView.builder(
+ itemCount: _items.length,
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ itemBuilder: (context, index) {
+ final item = _items[index];
+ return Container(
+ margin: const EdgeInsets.only(bottom: 4),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(10),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ item.imageUrl,
+ width: 64,
+ height: 64,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 10),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ item.location,
+ style: TextStyle(
+ color: Colors.grey[500],
+ fontSize: 11,
+ ),
+ ),
+ const SizedBox(height: 2),
+ Text(
+ item.name,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 15,
+ ),
+ ),
+ const SizedBox(height: 2),
+ Text(
+ 'Rp ${item.price}',
+ style: const TextStyle(
+ fontWeight: FontWeight.w500,
+ fontSize: 13,
+ ),
+ ),
+ const SizedBox(height: 4),
+ OutlinedButton.icon(
+ onPressed: () {},
+ icon: const Icon(Icons.receipt_outlined, size: 14, color: Colors.grey),
+ label: const Text(
+ 'Catatan',
+ style: TextStyle(fontSize: 11, color: Colors.black),
+ ),
+ style: OutlinedButton.styleFrom(
+ side: BorderSide(color: Colors.grey[300]!),
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0),
+ minimumSize: const Size(0, 24),
+ tapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ visualDensity: VisualDensity.compact,
+ ),
+ ),
+ ],
+ ),
+ ),
+ Column(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ GestureDetector(
+ onTap: () {
+ setState(() {
+ _items.removeAt(index);
+ });
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ shape: BoxShape.circle,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.15),
+ blurRadius: 4,
+ ),
+ ],
+ ),
+ padding: const EdgeInsets.all(4),
+ child: const Icon(Icons.delete_outline, color: Colors.grey, size: 18),
+ ),
+ ),
+ const SizedBox(height: 18),
+ Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ _buildCircleIcon(
+ icon: Icons.remove,
+ onTap: item.quantity > 1
+ ? () {
+ setState(() {
+ item.quantity--;
+ });
+ }
+ : null,
+ ),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 6),
+ child: Text(
+ '${item.quantity}',
+ style: const TextStyle(
+ fontSize: 15,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ),
+ _buildCircleIcon(
+ icon: Icons.add,
+ onTap: () {
+ setState(() {
+ item.quantity++;
+ });
+ },
+ ),
+ ],
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ ),
+ ),
+ Container(
+ padding: const EdgeInsets.fromLTRB(16, 12, 16, 24),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 1,
+ blurRadius: 10,
+ ),
+ ],
+ ),
+ child: Column(
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text('Biaya Pengiriman', style: TextStyle(fontSize: 12, color: Colors.grey)),
+ Text(
+ '+ Rp 2.000',
+ style: TextStyle(
+ color: Colors.blue[700],
+ fontWeight: FontWeight.bold,
+ fontSize: 13,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text(
+ 'Total',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 14,
+ ),
+ ),
+ Text(
+ 'Rp ${_totalPrice + 2000}',
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 12),
+ SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () {
+ context.push('/confirm-order');
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xFF2196F3),
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(24),
+ ),
+ elevation: 0,
+ ),
+ child: const Text('Pesan Sekarang', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildCircleIcon({required IconData icon, VoidCallback? onTap}) {
+ return GestureDetector(
+ onTap: onTap,
+ child: Container(
+ width: 28,
+ height: 28,
+ decoration: BoxDecoration(
+ color: onTap != null ? const Color(0xFF2196F3) : Colors.grey[200],
+ shape: BoxShape.circle,
+ ),
+ child: Icon(
+ icon,
+ color: onTap != null ? Colors.white : Colors.grey,
+ size: 18,
+ ),
+ ),
+ );
+ }
+
+ Route _createScaleRoute(Widget page) {
+ return PageRouteBuilder(
+ pageBuilder: (context, animation, secondaryAnimation) => page,
+ transitionsBuilder: (context, animation, secondaryAnimation, child) {
+ final scale = Tween(begin: 0.8, end: 1.0).animate(
+ CurvedAnimation(parent: animation, curve: Curves.easeOutBack),
+ );
+ return ScaleTransition(
+ scale: scale,
+ child: child,
+ );
+ },
+ transitionDuration: const Duration(milliseconds: 350),
+ reverseTransitionDuration: const Duration(milliseconds: 250),
+ );
+ }
+}
+
+class CartItem {
+ final String name;
+ final int price;
+ int quantity;
+ final String location;
+ final String imageUrl;
+
+ CartItem({
+ required this.name,
+ required this.price,
+ required this.quantity,
+ required this.location,
+ required this.imageUrl,
+ });
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/chat_detail_page.dart b/aplikasi/lib/presentation/screens/features/chat_detail_page.dart
new file mode 100644
index 0000000..dba74e9
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/chat_detail_page.dart
@@ -0,0 +1,235 @@
+import 'package:flutter/material.dart';
+
+class ChatDetailPage extends StatefulWidget {
+ final String name;
+ final String phone;
+
+ const ChatDetailPage({
+ super.key,
+ required this.name,
+ required this.phone,
+ });
+
+ @override
+ State createState() => _ChatDetailPageState();
+}
+
+class _ChatDetailPageState extends State {
+ final TextEditingController _messageController = TextEditingController();
+ final List _messages = [
+ ChatMessage(
+ message: 'Titik sesuai lokasi ya!',
+ time: '09:25',
+ isMe: false,
+ ),
+ ];
+
+ @override
+ void dispose() {
+ _messageController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back),
+ onPressed: () => Navigator.pop(context),
+ ),
+ titleSpacing: 0,
+ title: Row(
+ children: [
+ Container(
+ width: 40,
+ height: 40,
+ decoration: BoxDecoration(
+ color: Colors.blue.shade100,
+ shape: BoxShape.circle,
+ ),
+ child: Icon(
+ Icons.delivery_dining,
+ color: Colors.blue.shade700,
+ size: 24,
+ ),
+ ),
+ const SizedBox(width: 12),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ widget.name,
+ style: const TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ Text(
+ widget.phone,
+ style: TextStyle(
+ fontSize: 12,
+ color: Colors.grey[600],
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.phone),
+ onPressed: () {
+ // Handle phone call
+ },
+ ),
+ IconButton(
+ icon: const Icon(Icons.more_vert),
+ onPressed: () {
+ // Handle more options
+ },
+ ),
+ ],
+ ),
+ body: Container(
+ decoration: BoxDecoration(
+ image: DecorationImage(
+ image: const AssetImage('assets/images/chat_bg.png'),
+ fit: BoxFit.cover,
+ colorFilter: ColorFilter.mode(
+ Colors.grey.withOpacity(0.1),
+ BlendMode.dstATop,
+ ),
+ ),
+ ),
+ child: Column(
+ children: [
+ Expanded(
+ child: ListView.builder(
+ padding: const EdgeInsets.all(16),
+ itemCount: _messages.length,
+ itemBuilder: (context, index) {
+ final message = _messages[index];
+ return Align(
+ alignment: message.isMe
+ ? Alignment.centerRight
+ : Alignment.centerLeft,
+ child: Container(
+ margin: const EdgeInsets.only(bottom: 8),
+ padding: const EdgeInsets.symmetric(
+ horizontal: 16,
+ vertical: 8,
+ ),
+ decoration: BoxDecoration(
+ color: message.isMe ? Colors.blue : Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.05),
+ blurRadius: 5,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text(
+ message.message,
+ style: TextStyle(
+ color: message.isMe ? Colors.white : Colors.black,
+ fontSize: 14,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ message.time,
+ style: TextStyle(
+ color: message.isMe
+ ? Colors.white.withOpacity(0.7)
+ : Colors.grey[600],
+ fontSize: 10,
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ ),
+ ),
+ Container(
+ padding: const EdgeInsets.all(16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.05),
+ blurRadius: 5,
+ offset: const Offset(0, -2),
+ ),
+ ],
+ ),
+ child: Row(
+ children: [
+ IconButton(
+ icon: const Icon(Icons.emoji_emotions_outlined),
+ onPressed: () {
+ // Handle emoji picker
+ },
+ color: Colors.grey,
+ ),
+ Expanded(
+ child: TextField(
+ controller: _messageController,
+ decoration: const InputDecoration(
+ hintText: 'Ketik pesan di sini ...',
+ hintStyle: TextStyle(color: Colors.grey),
+ border: InputBorder.none,
+ ),
+ ),
+ ),
+ IconButton(
+ icon: const Icon(Icons.attach_file),
+ onPressed: () {
+ // Handle file attachment
+ },
+ color: Colors.grey,
+ ),
+ IconButton(
+ icon: const Icon(Icons.send),
+ onPressed: () {
+ if (_messageController.text.isNotEmpty) {
+ setState(() {
+ _messages.add(ChatMessage(
+ message: _messageController.text,
+ time: '${DateTime.now().hour}:${DateTime.now().minute}',
+ isMe: true,
+ ));
+ _messageController.clear();
+ });
+ }
+ },
+ color: Colors.blue,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
+
+class ChatMessage {
+ final String message;
+ final String time;
+ final bool isMe;
+
+ ChatMessage({
+ required this.message,
+ required this.time,
+ required this.isMe,
+ });
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/chat_page.dart b/aplikasi/lib/presentation/screens/features/chat_page.dart
new file mode 100644
index 0000000..e953339
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/chat_page.dart
@@ -0,0 +1,65 @@
+import 'package:flutter/material.dart';
+import 'chat_detail_page.dart';
+
+class ChatPage extends StatelessWidget {
+ const ChatPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text(
+ 'Chat',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ),
+ body: ListView.builder(
+ itemCount: 5, // Example count
+ itemBuilder: (context, index) {
+ return ListTile(
+ onTap: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => const ChatDetailPage(
+ name: 'Kurir 1',
+ phone: '08199997777',
+ ),
+ ),
+ );
+ },
+ leading: Container(
+ width: 50,
+ height: 50,
+ decoration: BoxDecoration(
+ color: Colors.blue.shade100,
+ shape: BoxShape.circle,
+ ),
+ child: Icon(
+ Icons.delivery_dining,
+ color: Colors.blue.shade700,
+ size: 30,
+ ),
+ ),
+ title: const Text(
+ 'Kurir 1',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ subtitle: const Text('08199997777'),
+ trailing: const Text(
+ '09:25',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 12,
+ ),
+ ),
+ );
+ },
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/confirm_order_page.dart b/aplikasi/lib/presentation/screens/features/confirm_order_page.dart
new file mode 100644
index 0000000..84c6a85
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/confirm_order_page.dart
@@ -0,0 +1,827 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'delivery_address_page.dart';
+import 'payment_method_page.dart';
+import 'processing_order_page.dart';
+
+class ConfirmOrderPage extends StatefulWidget {
+ const ConfirmOrderPage({super.key});
+
+ @override
+ State createState() => _ConfirmOrderPageState();
+}
+
+class _ConfirmOrderPageState extends State {
+ Map itemQuantities = {
+ 'Kantin 1': 1,
+ 'Kantin 2': 1,
+ };
+
+ bool isDiantar = true;
+ bool isUtensilsNeeded = false;
+
+ void updateQuantity(String location, bool increment) {
+ setState(() {
+ if (increment) {
+ itemQuantities[location] = (itemQuantities[location] ?? 0) + 1;
+ } else {
+ if ((itemQuantities[location] ?? 0) > 1) {
+ itemQuantities[location] = (itemQuantities[location] ?? 0) - 1;
+ }
+ }
+ });
+ }
+
+ void _showOrderTypeDialog() {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return Dialog(
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(12),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ const Text(
+ 'Pilih Jenis Pemesanan',
+ style: TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ const SizedBox(height: 16),
+ InkWell(
+ onTap: () {
+ setState(() {
+ isDiantar = true;
+ });
+ Navigator.pop(context);
+ },
+ child: Container(
+ width: double.infinity,
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ decoration: BoxDecoration(
+ color: isDiantar ? Colors.blue : Colors.white,
+ borderRadius: BorderRadius.circular(8),
+ border: Border.all(
+ color: isDiantar ? Colors.blue : Colors.grey[300]!,
+ ),
+ ),
+ child: Center(
+ child: Text(
+ 'Diantar',
+ style: TextStyle(
+ color: isDiantar ? Colors.white : Colors.black,
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 12),
+ InkWell(
+ onTap: () {
+ setState(() {
+ isDiantar = false;
+ });
+ Navigator.pop(context);
+ },
+ child: Container(
+ width: double.infinity,
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ decoration: BoxDecoration(
+ color: !isDiantar ? Colors.blue : Colors.white,
+ borderRadius: BorderRadius.circular(8),
+ border: Border.all(
+ color: !isDiantar ? Colors.blue : Colors.grey[300]!,
+ ),
+ ),
+ child: Center(
+ child: Text(
+ 'Ambil Sendiri',
+ style: TextStyle(
+ color: !isDiantar ? Colors.white : Colors.black,
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ );
+ }
+
+ Route _createScaleRoute(Widget page) {
+ return PageRouteBuilder(
+ pageBuilder: (context, animation, secondaryAnimation) => page,
+ transitionsBuilder: (context, animation, secondaryAnimation, child) {
+ final scale = Tween(begin: 0.8, end: 1.0).animate(
+ CurvedAnimation(parent: animation, curve: Curves.easeOutBack),
+ );
+ return ScaleTransition(
+ scale: scale,
+ child: child,
+ );
+ },
+ transitionDuration: const Duration(milliseconds: 350),
+ reverseTransitionDuration: const Duration(milliseconds: 250),
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.grey[100],
+ appBar: AppBar(
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.blue),
+ onPressed: () => Navigator.pop(context),
+ ),
+ title: const Text(
+ 'Konfirmasi Pemesanan',
+ style: TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.w500,
+ color: Colors.black,
+ ),
+ ),
+ backgroundColor: Colors.white,
+ elevation: 1,
+ ),
+ body: ListView(
+ children: [
+ const SizedBox(height: 16),
+ // Pesan Diantar Card
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 0,
+ blurRadius: 4,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Row(
+ children: [
+ Image.asset(
+ isDiantar ? 'assets/images/motor.jpg' : 'assets/images/ambil.jpeg',
+ width: 40,
+ height: 40,
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ isDiantar ? 'Mau diambil sendiri? Klik "Ganti"' : 'Mau diantar? Klik "Ganti"',
+ style: TextStyle(
+ fontSize: 13,
+ color: Colors.grey[600],
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ isDiantar ? 'Pesan Diantar' : 'Ambil Sendiri',
+ style: const TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ ],
+ ),
+ ),
+ TextButton(
+ onPressed: _showOrderTypeDialog,
+ style: TextButton.styleFrom(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 4),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(16),
+ side: const BorderSide(color: Colors.blue),
+ ),
+ ),
+ child: const Text(
+ 'Ganti',
+ style: TextStyle(
+ color: Colors.blue,
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+
+ const SizedBox(height: 16),
+ // Alamat Card
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 0,
+ blurRadius: 4,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text(
+ 'Alamat Pengantaran',
+ style: TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ TextButton(
+ onPressed: () {
+ Navigator.push(
+ context,
+ _createScaleRoute(const DeliveryAddressPage()),
+ );
+ },
+ style: TextButton.styleFrom(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 4),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(16),
+ side: const BorderSide(color: Colors.blue),
+ ),
+ ),
+ child: const Text(
+ 'Ganti Alamat',
+ style: TextStyle(
+ color: Colors.blue,
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 12),
+ const Text(
+ 'Gedung Jurusan Teknologi Informasi',
+ style: TextStyle(
+ fontSize: 15,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Container(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
+ decoration: BoxDecoration(
+ color: Colors.grey[100],
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Row(
+ children: [
+ Icon(Icons.location_on_outlined, size: 20, color: Colors.grey[600]),
+ const SizedBox(width: 8),
+ Text(
+ 'Lantai 1 Ruang Baca JTI',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey[600],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+
+ const SizedBox(height: 16),
+ // Combined Order Items Card
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 0,
+ blurRadius: 4,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ child: Column(
+ children: [
+ _buildOrderItemInCard(
+ 'Nasi Ayam Geprek',
+ 'Kantin 1',
+ 'Rp 10.000',
+ 'assets/images/nasi_ayam.jpg',
+ ),
+ const Divider(height: 1, color: Color(0xFFEEEEEE)),
+ _buildOrderItemInCard(
+ 'Nasi Ayam Geprek',
+ 'Kantin 2',
+ 'Rp 10.000',
+ 'assets/images/nasi_ayam.jpg',
+ ),
+ const Divider(height: 1, color: Color(0xFFEEEEEE)),
+ Padding(
+ padding: const EdgeInsets.all(16),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ 'Ada yang mau dibeli lagi?',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ 'Mau tambah menu, klik aja "Tambah"',
+ style: TextStyle(
+ fontSize: 12,
+ color: Colors.grey[600],
+ ),
+ ),
+ ],
+ ),
+ TextButton(
+ onPressed: () => context.go('/user-dashboard'),
+ style: TextButton.styleFrom(
+ backgroundColor: Colors.blue[50],
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(16),
+ ),
+ ),
+ child: const Text(
+ 'Tambah',
+ style: TextStyle(
+ color: Colors.blue,
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+
+ const SizedBox(height: 16),
+ _buildPriceSection(),
+ const SizedBox(height: 16),
+ _buildDiscountSection(),
+ const SizedBox(height: 16),
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 0,
+ blurRadius: 4,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text(
+ 'Tambah Alat Makan',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ SizedBox(
+ height: 24,
+ width: 24,
+ child: Checkbox(
+ value: isUtensilsNeeded,
+ onChanged: (value) {
+ setState(() {
+ isUtensilsNeeded = value ?? false;
+ });
+ },
+ shape: const CircleBorder(),
+ checkColor: Colors.white,
+ fillColor: WidgetStateProperty.resolveWith(
+ (Set states) {
+ if (states.contains(WidgetState.selected)) {
+ return Colors.blue;
+ }
+ return Colors.transparent;
+ },
+ ),
+ side: BorderSide(color: Colors.grey[400]!),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ bottomNavigationBar: Container(
+ padding: const EdgeInsets.all(16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 0,
+ blurRadius: 4,
+ offset: const Offset(0, -1),
+ ),
+ ],
+ ),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Row(
+ children: [
+ const Icon(Icons.account_balance_wallet_outlined, size: 20),
+ const SizedBox(width: 8),
+ const Text(
+ 'Tunai',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const Spacer(),
+ GestureDetector(
+ onTap: () {
+ Navigator.push(
+ context,
+ _createScaleRoute(const PaymentMethodPage()),
+ );
+ },
+ child: const Icon(Icons.more_horiz, color: Colors.grey, size: 20),
+ ),
+ ],
+ ),
+ const SizedBox(height: 8),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text(
+ 'Total Pembayaran',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const Text(
+ 'Rp 22.000',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 16),
+ ElevatedButton(
+ onPressed: () {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ Navigator.of(context).push(_createScaleRoute(const ProcessingOrderPage()));
+ });
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ minimumSize: const Size.fromHeight(48),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(8),
+ ),
+ elevation: 0,
+ ),
+ child: const Text(
+ 'Pesan Sekarang',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildOrderItemInCard(String name, String location, String price, String imageUrl) {
+ return Padding(
+ padding: const EdgeInsets.all(12),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Text(
+ location,
+ style: TextStyle(
+ fontSize: 13,
+ color: Colors.grey[600],
+ ),
+ ),
+ const Spacer(),
+ Icon(Icons.delete_outline, size: 20, color: Colors.grey[400]),
+ ],
+ ),
+ const SizedBox(height: 8),
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ imageUrl,
+ width: 60,
+ height: 60,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ name,
+ style: const TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ price,
+ style: const TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Row(
+ children: [
+ Icon(Icons.edit_note_outlined, size: 16, color: Colors.grey[600]),
+ const SizedBox(width: 4),
+ Text(
+ 'Catatan',
+ style: TextStyle(
+ color: Colors.grey[600],
+ fontSize: 13,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ Container(
+ height: 28,
+ decoration: BoxDecoration(
+ border: Border.all(color: Colors.blue),
+ borderRadius: BorderRadius.circular(20),
+ ),
+ child: Row(
+ children: [
+ SizedBox(
+ width: 28,
+ height: 28,
+ child: Material(
+ color: Colors.blue,
+ shape: const CircleBorder(),
+ child: InkWell(
+ onTap: () => updateQuantity(location, false),
+ customBorder: const CircleBorder(),
+ child: const Icon(
+ Icons.remove,
+ color: Colors.white,
+ size: 16,
+ ),
+ ),
+ ),
+ ),
+ Container(
+ width: 32,
+ alignment: Alignment.center,
+ child: Text(
+ '${itemQuantities[location] ?? 1}',
+ style: const TextStyle(fontSize: 14),
+ ),
+ ),
+ SizedBox(
+ width: 28,
+ height: 28,
+ child: Material(
+ color: Colors.blue,
+ shape: const CircleBorder(),
+ child: InkWell(
+ onTap: () => updateQuantity(location, true),
+ customBorder: const CircleBorder(),
+ child: const Icon(
+ Icons.add,
+ color: Colors.white,
+ size: 16,
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildPriceSection() {
+ return Container(
+ margin: const EdgeInsets.symmetric(horizontal: 16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 0,
+ blurRadius: 4,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ 'Harga',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey[600],
+ ),
+ ),
+ Text(
+ 'Rp 20.000',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey[600],
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 8),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ 'Biaya Pengiriman',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey[600],
+ ),
+ ),
+ Text(
+ 'Rp 2.000',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey[600],
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 8),
+ const Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ 'Total Pembayaran',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ Text(
+ 'Rp 22.000',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildDiscountSection() {
+ return Container(
+ margin: const EdgeInsets.symmetric(horizontal: 16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.1),
+ spreadRadius: 0,
+ blurRadius: 4,
+ offset: const Offset(0, 1),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ 'Mau tambah diskon?',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ 'Klik aja "Tambah Diskon"',
+ style: TextStyle(
+ fontSize: 12,
+ color: Colors.grey[600],
+ ),
+ ),
+ ],
+ ),
+ Container(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(16),
+ ),
+ child: const Text(
+ 'Tambah Diskon',
+ style: TextStyle(
+ color: Colors.blue,
+ fontSize: 12,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/custom_order_page.dart b/aplikasi/lib/presentation/screens/features/custom_order_page.dart
new file mode 100644
index 0000000..b2e2bf4
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/custom_order_page.dart
@@ -0,0 +1,202 @@
+import 'package:flutter/material.dart';
+import 'cart_page.dart';
+
+class CustomOrderPage extends StatefulWidget {
+ final String name;
+ final int price;
+
+ const CustomOrderPage({
+ super.key,
+ required this.name,
+ required this.price,
+ });
+
+ @override
+ State createState() => _CustomOrderPageState();
+}
+
+class _CustomOrderPageState extends State {
+ int _selectedLevel = 0;
+ int _quantity = 1;
+ final TextEditingController _noteController = TextEditingController();
+
+ @override
+ void dispose() {
+ _noteController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ resizeToAvoidBottomInset: false,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Color(0xFF21A5E7)),
+ onPressed: () => Navigator.pop(context),
+ ),
+ title: const Text(
+ 'Kustom Pemesanan',
+ style: TextStyle(
+ color: Colors.black,
+ fontWeight: FontWeight.w600,
+ fontSize: 18,
+ ),
+ ),
+ centerTitle: false,
+ ),
+ body: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ widget.name,
+ style: const TextStyle(
+ fontWeight: FontWeight.w500,
+ fontSize: 16,
+ ),
+ ),
+ Text(
+ 'Rp ${widget.price.toString().replaceAllMapped(RegExp(r"(\d{1,3})(?=(\d{3})+(?!\d))"), (m) => "${m[1]}.")}',
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ ],
+ ),
+ ),
+ const Divider(height: 1),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ 'Level',
+ style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
+ ),
+ const SizedBox(height: 2),
+ const Text(
+ 'Harus dipilih • Pilih 1',
+ style: TextStyle(fontSize: 11, color: Colors.grey),
+ ),
+ const SizedBox(height: 8),
+ ...List.generate(3, (i) => RadioListTile(
+ value: i,
+ groupValue: _selectedLevel,
+ onChanged: (val) => setState(() => _selectedLevel = val!),
+ title: Text('Level $i', style: const TextStyle(fontSize: 15)),
+ contentPadding: EdgeInsets.zero,
+ dense: true,
+ )),
+ ],
+ ),
+ ),
+ const Divider(height: 1),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text('Catatan', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14)),
+ const SizedBox(height: 2),
+ const Text('Opsional', style: TextStyle(fontSize: 11, color: Colors.grey)),
+ const SizedBox(height: 8),
+ TextField(
+ controller: _noteController,
+ maxLength: 320,
+ maxLines: 1,
+ decoration: InputDecoration(
+ hintText: 'Cth : Nasinya setengah saja ya!',
+ prefixIcon: const Icon(Icons.receipt_long, size: 18, color: Colors.grey),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(24),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ contentPadding: const EdgeInsets.symmetric(vertical: 0, horizontal: 12),
+ counterText: '',
+ ),
+ style: const TextStyle(fontSize: 14),
+ ),
+ Align(
+ alignment: Alignment.centerLeft,
+ child: Text(
+ '${_noteController.text.length}/320',
+ style: const TextStyle(fontSize: 11, color: Colors.grey),
+ ),
+ ),
+ ],
+ ),
+ ),
+ const Divider(height: 1),
+ const Spacer(),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 0),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text('Jumlah Pesanan', style: TextStyle(fontSize: 14, color: Colors.grey)),
+ Row(
+ children: [
+ IconButton(
+ icon: const Icon(Icons.remove_circle, color: Color(0xFF21A5E7)),
+ onPressed: _quantity > 1 ? () => setState(() => _quantity--) : null,
+ ),
+ Text('$_quantity', style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16)),
+ IconButton(
+ icon: const Icon(Icons.add_circle, color: Color(0xFF21A5E7)),
+ onPressed: () => setState(() => _quantity++),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.fromLTRB(20, 0, 20, 20),
+ child: SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).pushReplacement(
+ PageRouteBuilder(
+ pageBuilder: (context, animation, secondaryAnimation) => CartPage(),
+ transitionsBuilder: (context, animation, secondaryAnimation, child) {
+ final scale = Tween(begin: 0.8, end: 1.0).animate(
+ CurvedAnimation(parent: animation, curve: Curves.easeOutBack),
+ );
+ return ScaleTransition(
+ scale: scale,
+ child: child,
+ );
+ },
+ transitionDuration: const Duration(milliseconds: 350),
+ reverseTransitionDuration: const Duration(milliseconds: 250),
+ ),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xFF21A5E7),
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(24),
+ ),
+ elevation: 0,
+ ),
+ child: Text('Tambah ke Keranjang - Rp ${widget.price * _quantity}'.replaceAllMapped(RegExp(r"(\d{1,3})(?=(\d{3})+(?!\d))"), (m) => "${m[1]}.")),
+ ),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/delivery_address_page.dart b/aplikasi/lib/presentation/screens/features/delivery_address_page.dart
new file mode 100644
index 0000000..d795748
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/delivery_address_page.dart
@@ -0,0 +1,161 @@
+import 'package:flutter/material.dart';
+
+class DeliveryAddressPage extends StatelessWidget {
+ const DeliveryAddressPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.black),
+ onPressed: () => Navigator.pop(context),
+ ),
+ title: const Text(
+ 'Alamat Pengiriman',
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 16,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ body: Column(
+ children: [
+ // Map Container
+ Container(
+ height: 300,
+ width: double.infinity,
+ color: Colors.grey[200],
+ child: Stack(
+ children: [
+ // Here you would integrate actual map
+ Image.asset(
+ 'assets/images/map.png',
+ width: double.infinity,
+ height: double.infinity,
+ fit: BoxFit.cover,
+ ),
+ // Location button overlay
+ Positioned(
+ top: 16,
+ left: 16,
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(8),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.1),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: IconButton(
+ icon: const Icon(Icons.my_location, color: Colors.blue),
+ onPressed: () {
+ // Handle location button press
+ },
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ // Address Details
+ Expanded(
+ child: Container(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Container(
+ decoration: BoxDecoration(
+ border: Border.all(color: Colors.grey[300]!),
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: ListTile(
+ leading: Icon(Icons.location_on_outlined, color: Colors.grey[600]),
+ title: const Text(
+ 'Gedung Jurusan Teknologi Informasi',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.black87,
+ ),
+ ),
+ trailing: const Icon(Icons.keyboard_arrow_down, color: Colors.grey),
+ contentPadding: const EdgeInsets.symmetric(horizontal: 12),
+ ),
+ ),
+ const SizedBox(height: 16),
+ Text(
+ 'Detail Lokasi',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey[600],
+ ),
+ ),
+ const SizedBox(height: 8),
+ TextField(
+ decoration: InputDecoration(
+ hintText: 'Lantai 1 Ruang Baca JTI',
+ hintStyle: TextStyle(color: Colors.grey[600]),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(8),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ enabledBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(8),
+ borderSide: BorderSide(color: Colors.grey[300]!),
+ ),
+ focusedBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(8),
+ borderSide: const BorderSide(color: Colors.blue),
+ ),
+ contentPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
+ ),
+ style: const TextStyle(
+ fontSize: 14,
+ color: Colors.black87,
+ ),
+ ),
+ const Spacer(),
+ SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ Navigator.pop(context);
+ });
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xFF2196F3),
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(8),
+ ),
+ elevation: 0,
+ ),
+ child: const Text(
+ 'Konfirmasi',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/delivery_order_page.dart b/aplikasi/lib/presentation/screens/features/delivery_order_page.dart
new file mode 100644
index 0000000..972b4fb
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/delivery_order_page.dart
@@ -0,0 +1,421 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:kantin_app/presentation/screens/features/order_arrived_page.dart';
+
+class DeliveryOrderPage extends StatefulWidget {
+ const DeliveryOrderPage({super.key});
+
+ @override
+ State createState() => _DeliveryOrderPageState();
+}
+
+class _DeliveryOrderPageState extends State {
+ @override
+ void initState() {
+ super.initState();
+ Future.delayed(const Duration(seconds: 5), () {
+ if (mounted) {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ Navigator.of(context).pushReplacement(_createScaleRoute(const OrderArrivedPage()));
+ });
+ }
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ backgroundColor: Colors.transparent,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.black),
+ onPressed: () => context.go('/user-dashboard'),
+ ),
+ ),
+ extendBodyBehindAppBar: true,
+ backgroundColor: Colors.white,
+ body: SingleChildScrollView(
+ child: Column(
+ children: [
+ // Bagian atas: background biru rounded + ilustrasi + judul
+ Stack(
+ children: [
+ ClipPath(
+ clipper: _TopRoundedClipper(),
+ child: Container(
+ height: 230,
+ color: const Color(0xFF21A5E7),
+ ),
+ ),
+ Column(
+ children: [
+ const SizedBox(height: 36),
+ Center(
+ child: Image.asset(
+ 'assets/images/kurir2.png',
+ height: 170,
+ ),
+ ),
+ const SizedBox(height: 32),
+ const Text(
+ 'Pesanan lagi diantarkan',
+ style: TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ color: Colors.black87,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 4),
+ const Text(
+ 'Mohon untuk tetap di lokasi Anda',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 24),
+ // Card kurir
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ const Expanded(
+ child: Text(
+ 'Kurir 1',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ ),
+ Row(
+ children: [
+ _circleIcon(Icons.chat, color: const Color(0xFF21A5E7)),
+ const SizedBox(width: 8),
+ _circleIcon(Icons.phone, color: const Color(0xFF21A5E7)),
+ const SizedBox(width: 8),
+ _circleIcon(Icons.location_on, color: const Color(0xFF21A5E7)),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 2),
+ const Text(
+ 'Chat kurir untuk memastikan lokasi mu',
+ style: TextStyle(fontSize: 12, color: Colors.grey),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Card status pesanan
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ children: [
+ _buildOrderCard(
+ kantin: 'Kantin 1',
+ menu: 'Nasi Ayam Geprek',
+ price: 'Rp 10.000',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ status: 'Selesai',
+ statusColor: Colors.grey,
+ ),
+ const Divider(height: 1, color: Color(0xFFEEEEEE)),
+ _buildOrderCard(
+ kantin: 'Kantin 2',
+ menu: 'Nasi Ayam Geprek',
+ price: 'Rp 10.000',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ status: 'Selesai',
+ statusColor: Colors.grey,
+ ),
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Card info pembayaran
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Nomor Pesanan', style: TextStyle(color: Colors.grey[600], fontSize: 12)),
+ const SizedBox(height: 2),
+ Text('Waktu Pemesanan', style: TextStyle(color: Colors.grey[600], fontSize: 12)),
+ ],
+ ),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text('#TRDKN16254625431', style: TextStyle(fontSize: 12, color: Colors.grey[700])),
+ const SizedBox(height: 2),
+ Text('2025-01-13 13:01:27', style: TextStyle(fontSize: 12, color: Colors.grey[700])),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 12),
+ _buildPaymentRow('Harga', 'Rp 20.000', valueColor: const Color(0xFF21A5E7)),
+ _buildPaymentRow('Biaya Pengiriman', 'Rp 2000', valueColor: const Color(0xFF21A5E7)),
+ _buildPaymentRow('Diskon', 'Rp 0', valueColor: const Color(0xFF21A5E7)),
+ const Divider(height: 24, color: Color(0xFFEEEEEE)),
+ const Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ 'Total Pembayaran',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ Text(
+ 'Rp 22.000',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 24),
+ ],
+ ),
+ ),
+ );
+ }
+
+ static Widget _circleIcon(IconData icon, {Color? color}) {
+ return Container(
+ width: 36,
+ height: 36,
+ decoration: BoxDecoration(
+ color: Colors.white,
+ shape: BoxShape.circle,
+ border: Border.all(color: color ?? Colors.blue, width: 1.5),
+ ),
+ child: Icon(icon, color: color ?? Colors.blue, size: 20),
+ );
+ }
+
+ Widget _buildOrderCard({
+ required String kantin,
+ required String menu,
+ required String price,
+ required String imageUrl,
+ required String status,
+ required Color statusColor,
+ }) {
+ return Container(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ imageUrl,
+ width: 64,
+ height: 64,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 16),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ kantin,
+ style: const TextStyle(
+ fontSize: 14,
+ color: Colors.grey,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ Text(
+ status,
+ style: TextStyle(
+ color: statusColor,
+ fontWeight: FontWeight.w500,
+ fontSize: 14,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Text(
+ menu,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Row(
+ children: [
+ Text(
+ price,
+ style: const TextStyle(fontSize: 15, color: Colors.black87),
+ ),
+ const SizedBox(width: 16),
+ const Text('x1', style: TextStyle(fontSize: 15, color: Colors.black87)),
+ const Spacer(),
+ OutlinedButton.icon(
+ onPressed: () {},
+ icon: const Icon(Icons.chat, size: 18, color: Color(0xFF21A5E7)),
+ label: const Text('Chat', style: TextStyle(color: Color(0xFF21A5E7), fontWeight: FontWeight.w500)),
+ style: OutlinedButton.styleFrom(
+ side: const BorderSide(color: Color(0xFF21A5E7)),
+ foregroundColor: const Color(0xFF21A5E7),
+ textStyle: const TextStyle(fontSize: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(24),
+ ),
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
+ minimumSize: const Size(0, 36),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildPaymentRow(String label, String value, {Color? valueColor}) {
+ return Padding(
+ padding: const EdgeInsets.symmetric(vertical: 2),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ label,
+ style: const TextStyle(
+ color: Colors.grey,
+ fontSize: 13,
+ ),
+ ),
+ Text(
+ value,
+ style: TextStyle(
+ fontSize: 13,
+ color: valueColor ?? Colors.black,
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Route _createScaleRoute(Widget page) {
+ return PageRouteBuilder(
+ pageBuilder: (context, animation, secondaryAnimation) => page,
+ transitionsBuilder: (context, animation, secondaryAnimation, child) {
+ final scale = Tween(begin: 0.8, end: 1.0).animate(
+ CurvedAnimation(parent: animation, curve: Curves.easeOutBack),
+ );
+ return ScaleTransition(
+ scale: scale,
+ child: child,
+ );
+ },
+ transitionDuration: const Duration(milliseconds: 350),
+ reverseTransitionDuration: const Duration(milliseconds: 250),
+ );
+ }
+}
+
+class _TopRoundedClipper extends CustomClipper {
+ @override
+ Path getClip(Size size) {
+ final path = Path();
+ path.lineTo(0, size.height - 60);
+ path.quadraticBezierTo(
+ size.width / 2, size.height,
+ size.width, size.height - 60,
+ );
+ path.lineTo(size.width, 0);
+ path.close();
+ return path;
+ }
+
+ @override
+ bool shouldReclip(CustomClipper oldClipper) => false;
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/detail_page.dart b/aplikasi/lib/presentation/screens/features/detail_page.dart
new file mode 100644
index 0000000..5020143
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/detail_page.dart
@@ -0,0 +1,127 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'cart_page.dart';
+
+class DetailPage extends StatelessWidget {
+ const DetailPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Food Detail'),
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.shopping_cart),
+ onPressed: () {
+ showModalBottomSheet(
+ context: context,
+ builder: (context) => const CartPage(),
+ isScrollControlled: true,
+ );
+ },
+ ),
+ ],
+ ),
+ body: SingleChildScrollView(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Container(
+ height: 200,
+ width: double.infinity,
+ color: Colors.grey[200],
+ child: Center(
+ child: Icon(
+ Icons.fastfood,
+ size: 80,
+ color: Colors.grey[400],
+ ),
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ 'Food Item Name',
+ style: TextStyle(
+ fontSize: 24,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 8),
+ const Text(
+ 'Rp 25.000',
+ style: TextStyle(
+ fontSize: 20,
+ color: Colors.green,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 16),
+ const Text(
+ 'Description',
+ style: TextStyle(
+ fontSize: 18,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 8),
+ const Text(
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
+ style: TextStyle(
+ fontSize: 16,
+ color: Colors.grey,
+ ),
+ ),
+ const SizedBox(height: 24),
+ Row(
+ children: [
+ const Text(
+ 'Quantity:',
+ style: TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(width: 16),
+ IconButton(
+ onPressed: () {},
+ icon: const Icon(Icons.remove),
+ ),
+ const Text(
+ '1',
+ style: TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ IconButton(
+ onPressed: () {},
+ icon: const Icon(Icons.add),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ bottomNavigationBar: Padding(
+ padding: const EdgeInsets.all(16),
+ child: ElevatedButton(
+ onPressed: () {
+ context.push('/confirm-order');
+ },
+ style: ElevatedButton.styleFrom(
+ minimumSize: const Size.fromHeight(50),
+ ),
+ child: const Text('Add to Cart'),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/food_detail_page.dart b/aplikasi/lib/presentation/screens/features/food_detail_page.dart
new file mode 100644
index 0000000..17aad36
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/food_detail_page.dart
@@ -0,0 +1,215 @@
+import 'package:flutter/material.dart';
+import 'custom_order_page.dart';
+
+class FoodDetailPage extends StatefulWidget {
+ final String name;
+ final String description;
+ final String price;
+ final String imageUrl;
+ final String location;
+
+ const FoodDetailPage({
+ super.key,
+ required this.name,
+ required this.description,
+ required this.price,
+ required this.imageUrl,
+ required this.location,
+ });
+
+ @override
+ State createState() => _FoodDetailPageState();
+}
+
+class _FoodDetailPageState extends State {
+ bool isFavorite = false;
+
+ @override
+ Widget build(BuildContext context) {
+ return Container(
+ decoration: const BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
+ ),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ // Image kotak, rounded atas, max width 250, di tengah
+ Center(
+ child: ClipRRect(
+ borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
+ child: SizedBox(
+ width: 350,
+ child: AspectRatio(
+ aspectRatio: 1,
+ child: Image.asset(
+ widget.imageUrl,
+ fit: BoxFit.cover,
+ ),
+ ),
+ ),
+ ),
+ ),
+
+ // Content
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const SizedBox(height: 16),
+ // Title
+ Text(
+ widget.name,
+ style: const TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 4),
+
+ // Description
+ Text(
+ widget.description,
+ style: TextStyle(
+ fontSize: 13,
+ color: Colors.grey[600],
+ ),
+ ),
+ const SizedBox(height: 8),
+
+ // Price and Location (kantin)
+ Row(
+ children: [
+ Text(
+ widget.price,
+ style: const TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ ),
+ const Spacer(),
+ Text(
+ widget.location,
+ style: TextStyle(
+ fontSize: 13,
+ color: Colors.grey[600],
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 16),
+
+ // Action Buttons: Favorit di kiri, Lapor & Bagikan di kanan
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ _buildOutlinedActionButton(
+ icon: isFavorite ? Icons.favorite : Icons.favorite_border,
+ label: 'Favorit',
+ onTap: () {
+ setState(() {
+ isFavorite = !isFavorite;
+ });
+ },
+ color: isFavorite ? Colors.red : Colors.grey[600],
+ ),
+ Row(
+ children: [
+ _buildOutlinedActionButton(
+ icon: Icons.report_outlined,
+ label: 'Lapor',
+ onTap: () {},
+ color: Colors.grey[600],
+ ),
+ const SizedBox(width: 4),
+ _buildOutlinedActionButton(
+ icon: Icons.share_outlined,
+ label: 'Bagikan',
+ onTap: () {},
+ color: Colors.grey[600],
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 20),
+
+ // Add to Cart Button
+ SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () async {
+ // Navigasi ke CustomOrderPage dengan animasi scale
+ await Navigator.of(context).push(
+ PageRouteBuilder(
+ pageBuilder: (context, animation, secondaryAnimation) => CustomOrderPage(
+ name: widget.name,
+ price: int.tryParse(widget.price.replaceAll(RegExp(r'[^0-9]'), '')) ?? 0,
+ ),
+ transitionsBuilder: (context, animation, secondaryAnimation, child) {
+ final scale = Tween(begin: 0.8, end: 1.0).animate(
+ CurvedAnimation(parent: animation, curve: Curves.easeOutBack),
+ );
+ return ScaleTransition(
+ scale: scale,
+ child: child,
+ );
+ },
+ transitionDuration: const Duration(milliseconds: 350),
+ reverseTransitionDuration: const Duration(milliseconds: 250),
+ ),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xFF21A5E7),
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(24),
+ ),
+ elevation: 0,
+ ),
+ child: const Text(
+ 'Tambah Pembelian',
+ style: TextStyle(
+ fontSize: 16,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildOutlinedActionButton({
+ required IconData icon,
+ required String label,
+ required VoidCallback onTap,
+ required Color? color,
+ }) {
+ return OutlinedButton.icon(
+ onPressed: onTap,
+ icon: Icon(icon, color: color, size: 18),
+ label: Text(
+ label,
+ style: TextStyle(fontSize: 12, color: color, fontWeight: FontWeight.w500),
+ ),
+ style: OutlinedButton.styleFrom(
+ side: BorderSide(color: Colors.grey[400]!),
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0),
+ minimumSize: const Size(0, 32),
+ tapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ visualDensity: VisualDensity.compact,
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/home_page.dart b/aplikasi/lib/presentation/screens/features/home_page.dart
new file mode 100644
index 0000000..49cafcd
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/home_page.dart
@@ -0,0 +1,214 @@
+import 'package:flutter/material.dart';
+import 'food_detail_page.dart';
+
+class HomePage extends StatelessWidget {
+ const HomePage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ body: CustomScrollView(
+ slivers: [
+ SliverAppBar(
+ floating: true,
+ title: Row(
+ children: [
+ Image.asset(
+ 'assets/images/logo.png',
+ height: 40,
+ ),
+ const SizedBox(width: 8),
+ const Text('DiKantin'),
+ ],
+ ),
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.shopping_cart),
+ onPressed: () {
+ // Navigate to cart
+ },
+ ),
+ ],
+ ),
+ SliverToBoxAdapter(
+ child: Padding(
+ padding: const EdgeInsets.all(16.0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Balance Card
+ Container(
+ padding: const EdgeInsets.all(16),
+ decoration: BoxDecoration(
+ color: Colors.blue,
+ borderRadius: BorderRadius.circular(12),
+ ),
+ child: const Row(
+ children: [
+ Icon(
+ Icons.account_balance_wallet,
+ color: Colors.white,
+ ),
+ SizedBox(width: 12),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ 'Polije Pay',
+ style: TextStyle(
+ color: Colors.white,
+ fontSize: 14,
+ ),
+ ),
+ Text(
+ 'Rp 25.000',
+ style: TextStyle(
+ color: Colors.white,
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 24),
+ // Search Bar
+ TextField(
+ decoration: InputDecoration(
+ hintText: 'Mau makan apa hari ini?',
+ prefixIcon: const Icon(Icons.search),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(12),
+ borderSide: BorderSide.none,
+ ),
+ filled: true,
+ fillColor: Colors.grey[200],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ SliverPadding(
+ padding: const EdgeInsets.all(16.0),
+ sliver: SliverGrid(
+ gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
+ crossAxisCount: 2,
+ mainAxisSpacing: 16,
+ crossAxisSpacing: 16,
+ childAspectRatio: 0.8,
+ ),
+ delegate: SliverChildBuilderDelegate(
+ (context, index) {
+ return GestureDetector(
+ onTap: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => const FoodDetailPage(
+ name: 'Nasi Ayam Geprek',
+ description: 'Nasi + ayam geprek + timun + tahu + tempe + sambal bawang',
+ price: 'Rp 10.000',
+ imageUrl: 'assets/images/nasi_ayam_geprek.jpg',
+ location: 'Kantin 1',
+ ),
+ ),
+ );
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.05),
+ blurRadius: 5,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: const BorderRadius.vertical(
+ top: Radius.circular(12),
+ ),
+ child: Image.asset(
+ 'assets/images/nasi_ayam_geprek.jpg',
+ height: 120,
+ width: double.infinity,
+ fit: BoxFit.cover,
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(12),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ 'Nasi Ayam Geprek',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ 'Rp 10.000',
+ style: TextStyle(
+ color: Colors.blue[700],
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 4),
+ Text(
+ 'Kantin 1',
+ style: TextStyle(
+ color: Colors.grey[600],
+ fontSize: 12,
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ childCount: 10, // Example count
+ ),
+ ),
+ ),
+ ],
+ ),
+ bottomNavigationBar: BottomNavigationBar(
+ type: BottomNavigationBarType.fixed,
+ currentIndex: 0,
+ items: const [
+ BottomNavigationBarItem(
+ icon: Icon(Icons.home),
+ label: 'Beranda',
+ ),
+ BottomNavigationBarItem(
+ icon: Icon(Icons.assignment),
+ label: 'Aktivitas',
+ ),
+ BottomNavigationBarItem(
+ icon: Icon(Icons.chat),
+ label: 'Chat',
+ ),
+ BottomNavigationBarItem(
+ icon: Icon(Icons.person),
+ label: 'Profil',
+ ),
+ ],
+ selectedItemColor: Colors.blue,
+ unselectedItemColor: Colors.grey,
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/kantin_page.dart b/aplikasi/lib/presentation/screens/features/kantin_page.dart
new file mode 100644
index 0000000..9965891
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/kantin_page.dart
@@ -0,0 +1,173 @@
+import 'package:flutter/material.dart';
+
+class KantinPage extends StatelessWidget {
+ const KantinPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Column(
+ children: [
+ // Banner
+ Stack(
+ children: [
+ Container(
+ width: double.infinity,
+ height: 160,
+ decoration: const BoxDecoration(
+ color: Color(0xFFB3E5FC),
+ image: DecorationImage(
+ image: AssetImage('assets/images/kantin.png'),
+ fit: BoxFit.cover,
+ ),
+ ),
+ ),
+ const Positioned(
+ left: 20,
+ top: 32,
+ child: SizedBox(
+ width: 200,
+ child: Text(
+ '',
+ style: TextStyle(
+ fontSize: 22,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ height: 1.2,
+ ),
+ ),
+ ),
+ ),
+ // Tombol X di pojok kiri atas
+ Positioned(
+ top: 12,
+ left: 12,
+ child: GestureDetector(
+ onTap: () {
+ Navigator.pop(context);
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ shape: BoxShape.circle,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.08),
+ blurRadius: 4,
+ ),
+ ],
+ ),
+ padding: const EdgeInsets.all(6),
+ child: const Icon(Icons.close, size: 20, color: Colors.grey),
+ ),
+ ),
+ ),
+ ],
+ ),
+ // Search Bar
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ child: Row(
+ children: [
+ Expanded(
+ child: TextField(
+ decoration: InputDecoration(
+ hintText: 'Mau makan apa hari ini?',
+ prefixIcon: const Icon(Icons.search, color: Colors.blue),
+ contentPadding: const EdgeInsets.symmetric(vertical: 0, horizontal: 12),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(24),
+ borderSide: BorderSide.none,
+ ),
+ filled: true,
+ fillColor: Colors.grey[100],
+ ),
+ ),
+ ),
+ const SizedBox(width: 8),
+ Container(
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(16),
+ ),
+ padding: const EdgeInsets.all(8),
+ child: const Icon(Icons.shopping_cart_outlined, color: Colors.blue),
+ ),
+ ],
+ ),
+ ),
+ // List Kantin
+ Expanded(
+ child: ListView.builder(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ itemCount: 5,
+ itemBuilder: (context, index) {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 12),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: ListTile(
+ contentPadding: const EdgeInsets.all(12),
+ leading: ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ index == 0
+ ? 'assets/images/banner.jpg'
+ : 'assets/images/nasi_ayam.jpg',
+ width: 48,
+ height: 48,
+ fit: BoxFit.cover,
+ ),
+ ),
+ title: Text(
+ index == 0 ? 'Aneka Jus' : 'Warung Bu Djoko',
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 15,
+ ),
+ ),
+ subtitle: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ index == 0 ? 'Minuman' : 'Aneka Nasi, Ayam, Lauk-pauk',
+ style: const TextStyle(fontSize: 12, color: Colors.grey),
+ ),
+ Text(
+ index == 0 ? 'Kantin DWP' : 'Kantin $index',
+ style: const TextStyle(fontSize: 12, color: Colors.grey),
+ ),
+ ],
+ ),
+ trailing: const Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Icon(Icons.star, color: Colors.amber, size: 18),
+ SizedBox(width: 2),
+ Text('4.9', style: TextStyle(fontSize: 13, fontWeight: FontWeight.bold)),
+ SizedBox(width: 2),
+ Text('(500+)', style: TextStyle(fontSize: 11, color: Colors.grey)),
+ ],
+ ),
+ ),
+ );
+ },
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/makanan_page.dart b/aplikasi/lib/presentation/screens/features/makanan_page.dart
new file mode 100644
index 0000000..08edf2f
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/makanan_page.dart
@@ -0,0 +1,190 @@
+import 'package:flutter/material.dart';
+
+class MakananPage extends StatelessWidget {
+ const MakananPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Column(
+ children: [
+ // Banner
+ Stack(
+ children: [
+ Container(
+ width: double.infinity,
+ height: 140,
+ decoration: const BoxDecoration(
+ color: Color(0xFFB3E5FC),
+ image: DecorationImage(
+ image: AssetImage('assets/images/makanan.png'),
+ fit: BoxFit.cover,
+ ),
+ ),
+ ),
+ const Positioned(
+ left: 20,
+ top: 24,
+ child: SizedBox(
+ width: 200,
+ child: Text(
+ '',
+ style: TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ height: 1.2,
+ ),
+ ),
+ ),
+ ),
+ // Tombol X di pojok kiri atas
+ Positioned(
+ top: 10,
+ left: 10,
+ child: GestureDetector(
+ onTap: () {
+ Navigator.pop(context);
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ shape: BoxShape.circle,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.08),
+ blurRadius: 4,
+ ),
+ ],
+ ),
+ padding: const EdgeInsets.all(6),
+ child: const Icon(Icons.close, size: 20, color: Colors.grey),
+ ),
+ ),
+ ),
+ ],
+ ),
+ // Search Bar
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ child: Row(
+ children: [
+ Expanded(
+ child: TextField(
+ decoration: InputDecoration(
+ hintText: 'Mau makan apa hari ini?',
+ prefixIcon: const Icon(Icons.search, color: Colors.blue),
+ contentPadding: const EdgeInsets.symmetric(vertical: 0, horizontal: 12),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(24),
+ borderSide: BorderSide.none,
+ ),
+ filled: true,
+ fillColor: Colors.grey[100],
+ ),
+ ),
+ ),
+ const SizedBox(width: 8),
+ Container(
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(16),
+ ),
+ padding: const EdgeInsets.all(8),
+ child: const Icon(Icons.shopping_cart_outlined, color: Colors.blue),
+ ),
+ ],
+ ),
+ ),
+ // List Makanan
+ Expanded(
+ child: ListView(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ children: [
+ _buildFoodCard(
+ image: 'assets/images/nasi_ayam.jpg',
+ name: 'Nasi Goreng',
+ kantin: 'Kantin 4',
+ price: 'Rp 10.000',
+ rating: '4.9',
+ reviews: '71',
+ ),
+ _buildFoodCard(
+ image: 'assets/images/nasi_ayam.jpg',
+ name: 'Mie Kuah',
+ kantin: 'Kantin 3',
+ price: 'Rp 5.000',
+ rating: '4.8',
+ reviews: '10',
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildFoodCard({
+ required String image,
+ required String name,
+ required String kantin,
+ required String price,
+ required String rating,
+ required String reviews,
+ }) {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 12),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: ListTile(
+ contentPadding: const EdgeInsets.all(12),
+ leading: ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ image,
+ width: 48,
+ height: 48,
+ fit: BoxFit.cover,
+ ),
+ ),
+ title: Text(
+ name,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 15,
+ ),
+ ),
+ subtitle: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(kantin, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ Text(price, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ ],
+ ),
+ trailing: Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ const Icon(Icons.star, color: Colors.amber, size: 18),
+ const SizedBox(width: 2),
+ Text(rating, style: const TextStyle(fontSize: 13, fontWeight: FontWeight.bold)),
+ const SizedBox(width: 2),
+ Text('($reviews)', style: const TextStyle(fontSize: 11, color: Colors.grey)),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/minuman_page.dart b/aplikasi/lib/presentation/screens/features/minuman_page.dart
new file mode 100644
index 0000000..44ad2dd
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/minuman_page.dart
@@ -0,0 +1,190 @@
+import 'package:flutter/material.dart';
+
+class MinumanPage extends StatelessWidget {
+ const MinumanPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Column(
+ children: [
+ // Banner
+ Stack(
+ children: [
+ Container(
+ width: double.infinity,
+ height: 140,
+ decoration: const BoxDecoration(
+ color: Color(0xFFB3E5FC),
+ image: DecorationImage(
+ image: AssetImage('assets/images/minuman.png'),
+ fit: BoxFit.cover,
+ ),
+ ),
+ ),
+ const Positioned(
+ left: 20,
+ top: 24,
+ child: SizedBox(
+ width: 220,
+ child: Text(
+ '',
+ style: TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ height: 1.2,
+ ),
+ ),
+ ),
+ ),
+ // Tombol X di pojok kiri atas
+ Positioned(
+ top: 10,
+ left: 10,
+ child: GestureDetector(
+ onTap: () {
+ Navigator.pop(context);
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ shape: BoxShape.circle,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.08),
+ blurRadius: 4,
+ ),
+ ],
+ ),
+ padding: const EdgeInsets.all(6),
+ child: const Icon(Icons.close, size: 20, color: Colors.grey),
+ ),
+ ),
+ ),
+ ],
+ ),
+ // Search Bar
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ child: Row(
+ children: [
+ Expanded(
+ child: TextField(
+ decoration: InputDecoration(
+ hintText: 'Mau makan apa hari ini?',
+ prefixIcon: const Icon(Icons.search, color: Colors.blue),
+ contentPadding: const EdgeInsets.symmetric(vertical: 0, horizontal: 12),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(24),
+ borderSide: BorderSide.none,
+ ),
+ filled: true,
+ fillColor: Colors.grey[100],
+ ),
+ ),
+ ),
+ const SizedBox(width: 8),
+ Container(
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(16),
+ ),
+ padding: const EdgeInsets.all(8),
+ child: const Icon(Icons.shopping_cart_outlined, color: Colors.blue),
+ ),
+ ],
+ ),
+ ),
+ // List Minuman
+ Expanded(
+ child: ListView(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ children: [
+ _buildDrinkCard(
+ image: 'assets/images/banner.jpg',
+ name: 'Kopi Panas',
+ kantin: 'Kantin 1',
+ price: 'Rp 3.500',
+ rating: '4.9',
+ reviews: '71',
+ ),
+ _buildDrinkCard(
+ image: 'assets/images/banner.jpg',
+ name: 'Jus Jeruk',
+ kantin: 'Kantin DWP',
+ price: 'Rp 5.500',
+ rating: '4.8',
+ reviews: '10',
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildDrinkCard({
+ required String image,
+ required String name,
+ required String kantin,
+ required String price,
+ required String rating,
+ required String reviews,
+ }) {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 12),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: ListTile(
+ contentPadding: const EdgeInsets.all(12),
+ leading: ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ image,
+ width: 48,
+ height: 48,
+ fit: BoxFit.cover,
+ ),
+ ),
+ title: Text(
+ name,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 15,
+ ),
+ ),
+ subtitle: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(kantin, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ Text(price, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ ],
+ ),
+ trailing: Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ const Icon(Icons.star, color: Colors.amber, size: 18),
+ const SizedBox(width: 2),
+ Text(rating, style: const TextStyle(fontSize: 13, fontWeight: FontWeight.bold)),
+ const SizedBox(width: 2),
+ Text('($reviews)', style: const TextStyle(fontSize: 11, color: Colors.grey)),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/order_arrived_page.dart b/aplikasi/lib/presentation/screens/features/order_arrived_page.dart
new file mode 100644
index 0000000..a110d85
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/order_arrived_page.dart
@@ -0,0 +1,322 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:kantin_app/presentation/screens/user/user_dashboard.dart';
+
+class OrderArrivedPage extends StatelessWidget {
+ const OrderArrivedPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ backgroundColor: Colors.transparent,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.black),
+ onPressed: () {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ context.go('/user-dashboard');
+ });
+ },
+ ),
+ ),
+ extendBodyBehindAppBar: true,
+ backgroundColor: Colors.white,
+ body: SingleChildScrollView(
+ child: Column(
+ children: [
+ // Bagian atas: background biru rounded + ilustrasi + judul
+ Stack(
+ children: [
+ ClipPath(
+ clipper: _TopRoundedClipper(),
+ child: Container(
+ height: 230,
+ color: const Color(0xFF21A5E7),
+ ),
+ ),
+ Column(
+ children: [
+ const SizedBox(height: 36),
+ Center(
+ child: Image.asset(
+ 'assets/images/kurir3.png',
+ height: 140,
+ ),
+ ),
+ const SizedBox(height: 24),
+ const Text(
+ 'Pesanan tiba di Lokasi Anda',
+ style: TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ color: Colors.black87,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 4),
+ const Text(
+ 'Scan barcode ini ke kurir untuk menerima pesanan',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 16),
+ // QR code
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 8),
+ child: Center(
+ child: Image.asset(
+ 'assets/images/barcode.png',
+ width: 160,
+ height: 160,
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Card kurir
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ const Expanded(
+ child: Text(
+ 'Kurir 1',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ ),
+ Row(
+ children: [
+ _circleFilledIcon(Icons.phone),
+ const SizedBox(width: 8),
+ _circleFilledIcon(Icons.chat),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 2),
+ const Text(
+ 'Chat kurir untuk memastikan lokasimu',
+ style: TextStyle(fontSize: 12, color: Colors.grey),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Card status pesanan
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ children: [
+ _buildOrderCard(
+ kantin: 'Kantin 1',
+ menu: 'Nasi Ayam Geprek',
+ price: 'Rp 10.000',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ status: 'Selesai',
+ statusColor: Colors.grey,
+ chatEnabled: false,
+ ),
+ const Divider(height: 1, color: Color(0xFFEEEEEE)),
+ _buildOrderCard(
+ kantin: 'Kantin 2',
+ menu: 'Nasi Ayam Geprek',
+ price: 'Rp 10.000',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ status: 'Selesai',
+ statusColor: Colors.grey,
+ chatEnabled: false,
+ ),
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(height: 24),
+ ],
+ ),
+ ),
+ );
+ }
+
+ static Widget _circleFilledIcon(IconData icon) {
+ return Container(
+ width: 36,
+ height: 36,
+ decoration: const BoxDecoration(
+ color: Color(0xFF21A5E7),
+ shape: BoxShape.circle,
+ ),
+ child: Icon(icon, color: Colors.white, size: 20),
+ );
+ }
+
+ Widget _buildOrderCard({
+ required String kantin,
+ required String menu,
+ required String price,
+ required String imageUrl,
+ required String status,
+ required Color statusColor,
+ required bool chatEnabled,
+ }) {
+ return Container(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ imageUrl,
+ width: 64,
+ height: 64,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 16),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ kantin,
+ style: const TextStyle(
+ fontSize: 14,
+ color: Colors.grey,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ Text(
+ status,
+ style: TextStyle(
+ color: statusColor,
+ fontWeight: FontWeight.w500,
+ fontSize: 14,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Text(
+ menu,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Row(
+ children: [
+ Text(
+ price,
+ style: const TextStyle(fontSize: 15, color: Colors.black87),
+ ),
+ const SizedBox(width: 16),
+ const Text('x1', style: TextStyle(fontSize: 15, color: Colors.black87)),
+ const Spacer(),
+ OutlinedButton.icon(
+ onPressed: chatEnabled ? () {} : null,
+ icon: Icon(Icons.chat, size: 18, color: chatEnabled ? const Color(0xFF21A5E7) : Colors.grey),
+ label: Text('Chat', style: TextStyle(color: chatEnabled ? const Color(0xFF21A5E7) : Colors.grey, fontWeight: FontWeight.w500)),
+ style: OutlinedButton.styleFrom(
+ side: BorderSide(color: chatEnabled ? const Color(0xFF21A5E7) : Colors.grey),
+ foregroundColor: chatEnabled ? const Color(0xFF21A5E7) : Colors.grey,
+ textStyle: const TextStyle(fontSize: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(24),
+ ),
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
+ minimumSize: const Size(0, 36),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Route _createScaleRoute(Widget page) {
+ return PageRouteBuilder(
+ pageBuilder: (context, animation, secondaryAnimation) => page,
+ transitionsBuilder: (context, animation, secondaryAnimation, child) {
+ final scale = Tween(begin: 0.8, end: 1.0).animate(
+ CurvedAnimation(parent: animation, curve: Curves.easeOutBack),
+ );
+ return ScaleTransition(
+ scale: scale,
+ child: child,
+ );
+ },
+ transitionDuration: const Duration(milliseconds: 350),
+ reverseTransitionDuration: const Duration(milliseconds: 250),
+ );
+ }
+}
+
+class _TopRoundedClipper extends CustomClipper {
+ @override
+ Path getClip(Size size) {
+ final path = Path();
+ path.lineTo(0, size.height - 60);
+ path.quadraticBezierTo(
+ size.width / 2, size.height,
+ size.width, size.height - 60,
+ );
+ path.lineTo(size.width, 0);
+ path.close();
+ return path;
+ }
+
+ @override
+ bool shouldReclip(CustomClipper oldClipper) => false;
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/payment_method_page.dart b/aplikasi/lib/presentation/screens/features/payment_method_page.dart
new file mode 100644
index 0000000..53a9811
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/payment_method_page.dart
@@ -0,0 +1,158 @@
+import 'package:flutter/material.dart';
+
+class PaymentMethodPage extends StatelessWidget {
+ const PaymentMethodPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ appBar: AppBar(
+ backgroundColor: Colors.white,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.black),
+ onPressed: () => Navigator.pop(context),
+ ),
+ title: const Text(
+ 'Pilih Metode Pembayaran',
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 16,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ),
+ body: ListView(
+ children: [
+ const Padding(
+ padding: EdgeInsets.all(16),
+ child: Text(
+ 'Virtual Account',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ color: Colors.grey,
+ ),
+ ),
+ ),
+ _buildPaymentItem(
+ 'assets/images/briva.png',
+ 'BRI Virtual Account',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/mandiri.png',
+ 'Mandiri Virtual Account',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/bni.png',
+ 'BNI Virtual Account',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/bca.png',
+ 'BCA Virtual Account',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/bsi.png',
+ 'BSI Virtual Account',
+ onTap: () => Navigator.pop(context),
+ ),
+ const Padding(
+ padding: EdgeInsets.all(16),
+ child: Text(
+ 'E-Wallet',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ color: Colors.grey,
+ ),
+ ),
+ ),
+ _buildPaymentItem(
+ 'assets/images/poli.png',
+ 'Polije Pay',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/dana.png',
+ 'Dana',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/ovo.png',
+ 'OVO',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/gopay.png',
+ 'Gopay',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/shopeepay.png',
+ 'Shopeepay',
+ onTap: () => Navigator.pop(context),
+ ),
+ _buildPaymentItem(
+ 'assets/images/qris.png',
+ 'QRIS',
+ onTap: () => Navigator.pop(context),
+ ),
+ const Padding(
+ padding: EdgeInsets.all(16),
+ child: Text(
+ 'Metode Pembayaran Lainnya',
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w500,
+ color: Colors.grey,
+ ),
+ ),
+ ),
+ _buildPaymentItem(
+ 'assets/images/cash.png',
+ 'Tunai',
+ onTap: () => Navigator.pop(context),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildPaymentItem(String imagePath, String title, {required VoidCallback onTap}) {
+ return InkWell(
+ onTap: onTap,
+ child: Container(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ child: Row(
+ children: [
+ Image.asset(
+ imagePath,
+ width: 32,
+ height: 32,
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Text(
+ title,
+ style: const TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w400,
+ ),
+ ),
+ ),
+ const Icon(
+ Icons.chevron_right,
+ color: Colors.grey,
+ size: 24,
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/processing_order_page.dart b/aplikasi/lib/presentation/screens/features/processing_order_page.dart
new file mode 100644
index 0000000..619d3c1
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/processing_order_page.dart
@@ -0,0 +1,398 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:kantin_app/presentation/screens/features/delivery_order_page.dart';
+
+class ProcessingOrderPage extends StatefulWidget {
+ const ProcessingOrderPage({super.key});
+
+ @override
+ State createState() => _ProcessingOrderPageState();
+}
+
+class _ProcessingOrderPageState extends State {
+ @override
+ void initState() {
+ super.initState();
+ Future.delayed(const Duration(seconds: 5), () {
+ if (mounted) {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ Navigator.of(context).pushReplacement(_createScaleRoute(const DeliveryOrderPage()));
+ });
+ }
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ backgroundColor: Colors.transparent,
+ elevation: 0,
+ leading: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.black),
+ onPressed: () => context.go('/user-dashboard'),
+ ),
+ ),
+ extendBodyBehindAppBar: true,
+ backgroundColor: Colors.white,
+ body: SingleChildScrollView(
+ child: Column(
+ children: [
+ // Bagian atas: background biru rounded + ilustrasi + judul
+ Stack(
+ children: [
+ ClipPath(
+ clipper: _TopRoundedClipper(),
+ child: Container(
+ height: 230,
+ color: const Color(0xFF21A5E7),
+ ),
+ ),
+ Column(
+ children: [
+ const SizedBox(height: 36),
+ Center(
+ child: Image.asset(
+ 'assets/images/kurir1.png',
+ height: 170,
+ ),
+ ),
+ const SizedBox(height: 32),
+ const Text(
+ 'Makanan Anda lagi dimasak',
+ style: TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ color: Colors.black87,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 4),
+ const Text(
+ 'Mohon bersabar dan santai sejenak',
+ style: TextStyle(
+ fontSize: 14,
+ color: Colors.grey,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 24),
+ // Card status pesanan
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Column(
+ children: [
+ _buildOrderCard(
+ kantin: 'Kantin 1',
+ menu: 'Nasi Ayam Geprek',
+ price: 'Rp 10.000',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ status: 'Sedang dimasak',
+ statusColor: const Color(0xFF21A5E7),
+ ),
+ const Divider(height: 1, color: Color(0xFFEEEEEE)),
+ _buildOrderCard(
+ kantin: 'Kantin 2',
+ menu: 'Nasi Ayam Geprek',
+ price: 'Rp 10.000',
+ imageUrl: 'assets/images/nasi_ayam.jpg',
+ status: 'Selesai',
+ statusColor: Colors.grey,
+ ),
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Card info pembayaran
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('Nomor Pesanan', style: TextStyle(color: Colors.grey[600], fontSize: 12)),
+ const SizedBox(height: 2),
+ Text('Waktu Pemesanan', style: TextStyle(color: Colors.grey[600], fontSize: 12)),
+ ],
+ ),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ Text('#TRDKN16254625431', style: TextStyle(fontSize: 12, color: Colors.grey[700])),
+ const SizedBox(height: 2),
+ Text('2025-01-13 13:01:27', style: TextStyle(fontSize: 12, color: Colors.grey[700])),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 12),
+ _buildPaymentRow('Harga', 'Rp 20.000', valueColor: const Color(0xFF21A5E7)),
+ _buildPaymentRow('Biaya Pengiriman', 'Rp 2000', valueColor: const Color(0xFF21A5E7)),
+ _buildPaymentRow('Diskon', 'Rp 0', valueColor: const Color(0xFF21A5E7)),
+ const Divider(height: 24, color: Color(0xFFEEEEEE)),
+ const Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ 'Total Pembayaran',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ Text(
+ 'Rp 22.000',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Card lokasi
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ border: Border.all(color: Colors.grey.shade200),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: ListTile(
+ leading: const Icon(Icons.location_on, color: Colors.red),
+ title: const Text('Gedung Jurusan Teknologi Informasi', style: TextStyle(fontWeight: FontWeight.bold)),
+ subtitle: const Text('Lantai 2'),
+ ),
+ ),
+ ),
+ const SizedBox(height: 16),
+ // Tombol Batalkan
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: SizedBox(
+ width: double.infinity,
+ child: OutlinedButton(
+ onPressed: () {},
+ style: OutlinedButton.styleFrom(
+ foregroundColor: Colors.red,
+ side: const BorderSide(color: Colors.red),
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(8),
+ ),
+ ),
+ child: const Text('Batalkan'),
+ ),
+ ),
+ ),
+ const SizedBox(height: 24),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildOrderCard({
+ required String kantin,
+ required String menu,
+ required String price,
+ required String imageUrl,
+ required String status,
+ required Color statusColor,
+ }) {
+ return Container(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ imageUrl,
+ width: 64,
+ height: 64,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 16),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ kantin,
+ style: const TextStyle(
+ fontSize: 14,
+ color: Colors.grey,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ Text(
+ status,
+ style: TextStyle(
+ color: statusColor,
+ fontWeight: FontWeight.w500,
+ fontSize: 14,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ Text(
+ menu,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 16,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Row(
+ children: [
+ Text(
+ price,
+ style: const TextStyle(fontSize: 15, color: Colors.black87),
+ ),
+ const SizedBox(width: 16),
+ const Text('x1', style: TextStyle(fontSize: 15, color: Colors.black87)),
+ const Spacer(),
+ OutlinedButton.icon(
+ onPressed: () {},
+ icon: const Icon(Icons.chat, size: 18, color: Color(0xFF21A5E7)),
+ label: const Text('Chat', style: TextStyle(color: Color(0xFF21A5E7), fontWeight: FontWeight.w500)),
+ style: OutlinedButton.styleFrom(
+ side: const BorderSide(color: Color(0xFF21A5E7)),
+ foregroundColor: const Color(0xFF21A5E7),
+ textStyle: const TextStyle(fontSize: 14),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(24),
+ ),
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
+ minimumSize: const Size(0, 36),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildPaymentRow(String label, String value, {Color? valueColor}) {
+ return Padding(
+ padding: const EdgeInsets.symmetric(vertical: 2),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ label,
+ style: const TextStyle(
+ color: Colors.grey,
+ fontSize: 13,
+ ),
+ ),
+ Text(
+ value,
+ style: TextStyle(
+ fontSize: 13,
+ color: valueColor ?? Colors.black,
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Route _createScaleRoute(Widget page) {
+ return PageRouteBuilder(
+ pageBuilder: (context, animation, secondaryAnimation) => page,
+ transitionsBuilder: (context, animation, secondaryAnimation, child) {
+ final scale = Tween(begin: 0.8, end: 1.0).animate(
+ CurvedAnimation(parent: animation, curve: Curves.easeOutBack),
+ );
+ return ScaleTransition(
+ scale: scale,
+ child: child,
+ );
+ },
+ transitionDuration: const Duration(milliseconds: 350),
+ reverseTransitionDuration: const Duration(milliseconds: 250),
+ );
+ }
+}
+
+class _TopRoundedClipper extends CustomClipper {
+ @override
+ Path getClip(Size size) {
+ final path = Path();
+ path.lineTo(0, size.height - 60);
+ path.quadraticBezierTo(
+ size.width / 2, size.height,
+ size.width, size.height - 60,
+ );
+ path.lineTo(size.width, 0);
+ path.close();
+ return path;
+ }
+
+ @override
+ bool shouldReclip(CustomClipper oldClipper) => false;
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/profile_page.dart b/aplikasi/lib/presentation/screens/features/profile_page.dart
new file mode 100644
index 0000000..fe51f90
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/profile_page.dart
@@ -0,0 +1,205 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+
+class ProfilePage extends StatefulWidget {
+ const ProfilePage({super.key});
+
+ @override
+ State createState() => _ProfilePageState();
+}
+
+class _ProfilePageState extends State {
+ final TextEditingController _nameController = TextEditingController(text: 'Dewi Sartika');
+ final TextEditingController _emailController = TextEditingController(text: 'nim@student.polije.ac.id');
+ final TextEditingController _phoneController = TextEditingController(text: '088885555222');
+ final TextEditingController _addressController = TextEditingController(text: 'Gedung Teknologi Informasi');
+
+ @override
+ void dispose() {
+ _nameController.dispose();
+ _emailController.dispose();
+ _phoneController.dispose();
+ _addressController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Edit Profil'),
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.logout),
+ onPressed: () {
+ context.go('/login');
+ },
+ ),
+ ],
+ ),
+ body: SingleChildScrollView(
+ padding: const EdgeInsets.all(16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ // Profile Image
+ Center(
+ child: Stack(
+ children: [
+ Container(
+ width: 120,
+ height: 120,
+ decoration: BoxDecoration(
+ shape: BoxShape.circle,
+ border: Border.all(
+ color: Colors.white,
+ width: 3,
+ ),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.2),
+ spreadRadius: 1,
+ blurRadius: 5,
+ ),
+ ],
+ image: const DecorationImage(
+ image: AssetImage('assets/images/profile.jpg'),
+ fit: BoxFit.cover,
+ ),
+ ),
+ ),
+ Positioned(
+ bottom: 0,
+ right: 0,
+ child: Container(
+ padding: const EdgeInsets.all(4),
+ decoration: const BoxDecoration(
+ color: Colors.blue,
+ shape: BoxShape.circle,
+ ),
+ child: const Icon(
+ Icons.camera_alt,
+ color: Colors.white,
+ size: 20,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 32),
+
+ // Form Fields
+ const Text(
+ 'Nama',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 14,
+ ),
+ ),
+ TextField(
+ controller: _nameController,
+ decoration: const InputDecoration(
+ contentPadding: EdgeInsets.symmetric(vertical: 12, horizontal: 0),
+ isDense: true,
+ ),
+ ),
+ const SizedBox(height: 24),
+
+ const Text(
+ 'Email',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 14,
+ ),
+ ),
+ TextField(
+ controller: _emailController,
+ decoration: const InputDecoration(
+ contentPadding: EdgeInsets.symmetric(vertical: 12, horizontal: 0),
+ isDense: true,
+ ),
+ keyboardType: TextInputType.emailAddress,
+ ),
+ const SizedBox(height: 24),
+
+ const Text(
+ 'Nomor Telepon',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 14,
+ ),
+ ),
+ TextField(
+ controller: _phoneController,
+ decoration: const InputDecoration(
+ contentPadding: EdgeInsets.symmetric(vertical: 12, horizontal: 0),
+ isDense: true,
+ ),
+ keyboardType: TextInputType.phone,
+ ),
+ const SizedBox(height: 24),
+
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text(
+ 'Alamat',
+ style: TextStyle(
+ color: Colors.grey,
+ fontSize: 14,
+ ),
+ ),
+ IconButton(
+ icon: const Icon(
+ Icons.edit,
+ size: 20,
+ color: Colors.blue,
+ ),
+ onPressed: () {
+ // Handle address edit
+ },
+ padding: EdgeInsets.zero,
+ constraints: const BoxConstraints(),
+ ),
+ ],
+ ),
+ TextField(
+ controller: _addressController,
+ decoration: const InputDecoration(
+ contentPadding: EdgeInsets.symmetric(vertical: 12, horizontal: 0),
+ isDense: true,
+ ),
+ ),
+ const SizedBox(height: 32),
+
+ // Save Button
+ SizedBox(
+ width: double.infinity,
+ child: ElevatedButton(
+ onPressed: () {
+ // Handle save changes
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text('Profil berhasil diperbarui'),
+ backgroundColor: Colors.green,
+ ),
+ );
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ foregroundColor: Colors.white,
+ padding: const EdgeInsets.symmetric(vertical: 16),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(8),
+ ),
+ ),
+ child: const Text('Simpan Perubahan'),
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/snack_page.dart b/aplikasi/lib/presentation/screens/features/snack_page.dart
new file mode 100644
index 0000000..a71f9cb
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/snack_page.dart
@@ -0,0 +1,190 @@
+import 'package:flutter/material.dart';
+
+class SnackPage extends StatelessWidget {
+ const SnackPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: SafeArea(
+ child: Column(
+ children: [
+ // Banner
+ Stack(
+ children: [
+ Container(
+ width: double.infinity,
+ height: 140,
+ decoration: const BoxDecoration(
+ color: Color(0xFFB3E5FC),
+ image: DecorationImage(
+ image: AssetImage('assets/images/snack.png'),
+ fit: BoxFit.cover,
+ ),
+ ),
+ ),
+ const Positioned(
+ left: 20,
+ top: 24,
+ child: SizedBox(
+ width: 220,
+ child: Text(
+ '',
+ style: TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ height: 1.2,
+ ),
+ ),
+ ),
+ ),
+ // Tombol X di pojok kiri atas
+ Positioned(
+ top: 10,
+ left: 10,
+ child: GestureDetector(
+ onTap: () {
+ Navigator.pop(context);
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ shape: BoxShape.circle,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.08),
+ blurRadius: 4,
+ ),
+ ],
+ ),
+ padding: const EdgeInsets.all(6),
+ child: const Icon(Icons.close, size: 20, color: Colors.grey),
+ ),
+ ),
+ ),
+ ],
+ ),
+ // Search Bar
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ child: Row(
+ children: [
+ Expanded(
+ child: TextField(
+ decoration: InputDecoration(
+ hintText: 'Mau makan apa hari ini?',
+ prefixIcon: const Icon(Icons.search, color: Colors.blue),
+ contentPadding: const EdgeInsets.symmetric(vertical: 0, horizontal: 12),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(24),
+ borderSide: BorderSide.none,
+ ),
+ filled: true,
+ fillColor: Colors.grey[100],
+ ),
+ ),
+ ),
+ const SizedBox(width: 8),
+ Container(
+ decoration: BoxDecoration(
+ color: Colors.blue[50],
+ borderRadius: BorderRadius.circular(16),
+ ),
+ padding: const EdgeInsets.all(8),
+ child: const Icon(Icons.shopping_cart_outlined, color: Colors.blue),
+ ),
+ ],
+ ),
+ ),
+ // List Snack
+ Expanded(
+ child: ListView(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ children: [
+ _buildSnackCard(
+ image: 'assets/images/banner.jpg',
+ name: 'Corndog',
+ kantin: 'Kantin 10',
+ price: 'Rp 5.000',
+ rating: '4.9',
+ reviews: '71',
+ ),
+ _buildSnackCard(
+ image: 'assets/images/banner.jpg',
+ name: 'Tela-Tela',
+ kantin: 'Kantin 11',
+ price: 'Rp 5.000',
+ rating: '4.8',
+ reviews: '10',
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildSnackCard({
+ required String image,
+ required String name,
+ required String kantin,
+ required String price,
+ required String rating,
+ required String reviews,
+ }) {
+ return Container(
+ margin: const EdgeInsets.only(bottom: 12),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(16),
+ boxShadow: [
+ BoxShadow(
+ color: Colors.grey.withOpacity(0.08),
+ blurRadius: 8,
+ offset: const Offset(0, 2),
+ ),
+ ],
+ ),
+ child: ListTile(
+ contentPadding: const EdgeInsets.all(12),
+ leading: ClipRRect(
+ borderRadius: BorderRadius.circular(8),
+ child: Image.asset(
+ image,
+ width: 48,
+ height: 48,
+ fit: BoxFit.cover,
+ ),
+ ),
+ title: Text(
+ name,
+ style: const TextStyle(
+ fontWeight: FontWeight.bold,
+ fontSize: 15,
+ ),
+ ),
+ subtitle: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(kantin, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ Text(price, style: const TextStyle(fontSize: 12, color: Colors.grey)),
+ ],
+ ),
+ trailing: Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ const Icon(Icons.star, color: Colors.amber, size: 18),
+ const SizedBox(width: 2),
+ Text(rating, style: const TextStyle(fontSize: 13, fontWeight: FontWeight.bold)),
+ const SizedBox(width: 2),
+ Text('($reviews)', style: const TextStyle(fontSize: 11, color: Colors.grey)),
+ ],
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/features/sort_page.dart b/aplikasi/lib/presentation/screens/features/sort_page.dart
new file mode 100644
index 0000000..0bebe6e
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/features/sort_page.dart
@@ -0,0 +1,226 @@
+import 'package:flutter/material.dart';
+
+class SortPage extends StatefulWidget {
+ const SortPage({super.key});
+
+ @override
+ State createState() => _SortPageState();
+}
+
+class _SortPageState extends State {
+ String _selectedSort = 'popularity';
+ final List _selectedCategories = [];
+ RangeValues _priceRange = const RangeValues(0, 100);
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Sort & Filter'),
+ actions: [
+ TextButton(
+ onPressed: () {
+ setState(() {
+ _selectedSort = 'popularity';
+ _selectedCategories.clear();
+ _priceRange = const RangeValues(0, 100);
+ });
+ },
+ child: const Text('Reset'),
+ ),
+ ],
+ ),
+ body: ListView(
+ padding: const EdgeInsets.all(16),
+ children: [
+ const Text(
+ 'Sort By',
+ style: TextStyle(
+ fontSize: 18,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Wrap(
+ spacing: 8,
+ children: [
+ _SortChip(
+ label: 'Popularity',
+ selected: _selectedSort == 'popularity',
+ onSelected: (selected) {
+ setState(() => _selectedSort = 'popularity');
+ },
+ ),
+ _SortChip(
+ label: 'Price: Low to High',
+ selected: _selectedSort == 'price_asc',
+ onSelected: (selected) {
+ setState(() => _selectedSort = 'price_asc');
+ },
+ ),
+ _SortChip(
+ label: 'Price: High to Low',
+ selected: _selectedSort == 'price_desc',
+ onSelected: (selected) {
+ setState(() => _selectedSort = 'price_desc');
+ },
+ ),
+ _SortChip(
+ label: 'Rating',
+ selected: _selectedSort == 'rating',
+ onSelected: (selected) {
+ setState(() => _selectedSort = 'rating');
+ },
+ ),
+ ],
+ ),
+ const SizedBox(height: 24),
+ const Text(
+ 'Categories',
+ style: TextStyle(
+ fontSize: 18,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Wrap(
+ spacing: 8,
+ children: [
+ _FilterChip(
+ label: 'Main Course',
+ selected: _selectedCategories.contains('main_course'),
+ onSelected: (selected) {
+ setState(() {
+ if (selected) {
+ _selectedCategories.add('main_course');
+ } else {
+ _selectedCategories.remove('main_course');
+ }
+ });
+ },
+ ),
+ _FilterChip(
+ label: 'Appetizer',
+ selected: _selectedCategories.contains('appetizer'),
+ onSelected: (selected) {
+ setState(() {
+ if (selected) {
+ _selectedCategories.add('appetizer');
+ } else {
+ _selectedCategories.remove('appetizer');
+ }
+ });
+ },
+ ),
+ _FilterChip(
+ label: 'Dessert',
+ selected: _selectedCategories.contains('dessert'),
+ onSelected: (selected) {
+ setState(() {
+ if (selected) {
+ _selectedCategories.add('dessert');
+ } else {
+ _selectedCategories.remove('dessert');
+ }
+ });
+ },
+ ),
+ _FilterChip(
+ label: 'Beverage',
+ selected: _selectedCategories.contains('beverage'),
+ onSelected: (selected) {
+ setState(() {
+ if (selected) {
+ _selectedCategories.add('beverage');
+ } else {
+ _selectedCategories.remove('beverage');
+ }
+ });
+ },
+ ),
+ ],
+ ),
+ const SizedBox(height: 24),
+ const Text(
+ 'Price Range',
+ style: TextStyle(
+ fontSize: 18,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 8),
+ RangeSlider(
+ values: _priceRange,
+ min: 0,
+ max: 100,
+ divisions: 20,
+ labels: RangeLabels(
+ 'Rp ${(_priceRange.start * 1000).round()}',
+ 'Rp ${(_priceRange.end * 1000).round()}',
+ ),
+ onChanged: (RangeValues values) {
+ setState(() {
+ _priceRange = values;
+ });
+ },
+ ),
+ ],
+ ),
+ bottomNavigationBar: Padding(
+ padding: const EdgeInsets.all(16),
+ child: ElevatedButton(
+ onPressed: () {
+ // Apply filters and return to previous screen
+ Navigator.pop(context);
+ },
+ style: ElevatedButton.styleFrom(
+ minimumSize: const Size.fromHeight(50),
+ ),
+ child: const Text('Apply Filters'),
+ ),
+ ),
+ );
+ }
+}
+
+class _SortChip extends StatelessWidget {
+ final String label;
+ final bool selected;
+ final ValueChanged onSelected;
+
+ const _SortChip({
+ required this.label,
+ required this.selected,
+ required this.onSelected,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return ChoiceChip(
+ label: Text(label),
+ selected: selected,
+ onSelected: onSelected,
+ );
+ }
+}
+
+class _FilterChip extends StatelessWidget {
+ final String label;
+ final bool selected;
+ final ValueChanged onSelected;
+
+ const _FilterChip({
+ required this.label,
+ required this.selected,
+ required this.onSelected,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return FilterChip(
+ label: Text(label),
+ selected: selected,
+ onSelected: onSelected,
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/onboarding/onboarding_screen.dart b/aplikasi/lib/presentation/screens/onboarding/onboarding_screen.dart
new file mode 100644
index 0000000..e5d9dfe
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/onboarding/onboarding_screen.dart
@@ -0,0 +1,47 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+
+class OnboardingScreen extends StatelessWidget {
+ const OnboardingScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ body: SafeArea(
+ child: Padding(
+ padding: const EdgeInsets.all(24.0),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ const Spacer(),
+ const Text(
+ 'Welcome to Kantin App',
+ style: TextStyle(
+ fontSize: 24,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ const SizedBox(height: 16),
+ const Text(
+ 'Your one-stop solution for canteen management',
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ fontSize: 16,
+ color: Colors.grey,
+ ),
+ ),
+ const Spacer(),
+ ElevatedButton(
+ onPressed: () => context.go('/login'),
+ style: ElevatedButton.styleFrom(
+ minimumSize: const Size.fromHeight(50),
+ ),
+ child: const Text('Get Started'),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/splash_screen_gif.dart b/aplikasi/lib/presentation/screens/splash_screen_gif.dart
new file mode 100644
index 0000000..4915d15
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/splash_screen_gif.dart
@@ -0,0 +1,34 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+
+class SplashScreenGif extends StatefulWidget {
+ const SplashScreenGif({super.key});
+
+ @override
+ State createState() => _SplashScreenGifState();
+}
+
+class _SplashScreenGifState extends State {
+ @override
+ void initState() {
+ super.initState();
+ Future.delayed(const Duration(seconds: 4), () {
+ if (mounted) context.go('/login');
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.white,
+ body: Center(
+ child: Image.asset(
+ 'assets/vidio/splash.gif',
+ fit: BoxFit.contain,
+ width: double.infinity,
+ height: double.infinity,
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/aplikasi/lib/presentation/screens/user/user_dashboard.dart b/aplikasi/lib/presentation/screens/user/user_dashboard.dart
new file mode 100644
index 0000000..6325701
--- /dev/null
+++ b/aplikasi/lib/presentation/screens/user/user_dashboard.dart
@@ -0,0 +1,621 @@
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:provider/provider.dart';
+import '../../providers/auth_provider.dart';
+import '../features/cart_page.dart';
+import '../features/activity_page.dart';
+import '../features/chat_page.dart';
+import '../features/profile_page.dart';
+import '../features/food_detail_page.dart';
+import '../features/kantin_page.dart';
+import '../features/makanan_page.dart';
+import '../features/minuman_page.dart';
+import '../features/snack_page.dart';
+
+class UserDashboard extends StatefulWidget {
+ const UserDashboard({super.key});
+
+ @override
+ State createState() => _UserDashboardState();
+}
+
+class _UserDashboardState extends State {
+ final TextEditingController _searchController = TextEditingController();
+
+ final List _pages = [
+ _HomePage(),
+ const ActivityPage(),
+ const ChatPage(),
+ const ProfilePage(),
+ ];
+
+ @override
+ void dispose() {
+ _searchController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final selectedIndex = context.watch