OscarGil03 1 год назад
Родитель
Сommit
d57b1093d4
100 измененных файлов с 3464 добавлено и 0 удалено
  1. 43 0
      .gitignore
  2. 45 0
      .metadata
  3. 28 0
      analysis_options.yaml
  4. 13 0
      android/.gitignore
  5. 68 0
      android/app/build.gradle
  6. 7 0
      android/app/src/debug/AndroidManifest.xml
  7. 38 0
      android/app/src/main/AndroidManifest.xml
  8. 6 0
      android/app/src/main/kotlin/com/example/yoshi_papas_app/MainActivity.kt
  9. 12 0
      android/app/src/main/res/drawable-v21/launch_background.xml
  10. 12 0
      android/app/src/main/res/drawable/launch_background.xml
  11. BIN
      android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  12. BIN
      android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  13. BIN
      android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  14. BIN
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  15. BIN
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  16. 18 0
      android/app/src/main/res/values-night/styles.xml
  17. 18 0
      android/app/src/main/res/values/styles.xml
  18. 7 0
      android/app/src/profile/AndroidManifest.xml
  19. 30 0
      android/build.gradle
  20. 3 0
      android/gradle.properties
  21. 5 0
      android/gradle/wrapper/gradle-wrapper.properties
  22. 29 0
      android/settings.gradle
  23. BIN
      assets/JoshiLogo.png
  24. BIN
      assets/JoshiLogoHorizontal.png
  25. BIN
      assets/audio-file.png
  26. BIN
      assets/csv.png
  27. BIN
      assets/excel.png
  28. BIN
      assets/excel_icon.png
  29. BIN
      assets/location.png
  30. BIN
      assets/pdf-file.png
  31. BIN
      assets/settings.png
  32. BIN
      assets/settings_orange.png
  33. BIN
      assets/word.png
  34. BIN
      fonts/CalculatorFont.ttf
  35. BIN
      fonts/digital-7-mono.ttf
  36. 34 0
      ios/.gitignore
  37. 26 0
      ios/Flutter/AppFrameworkInfo.plist
  38. 1 0
      ios/Flutter/Debug.xcconfig
  39. 1 0
      ios/Flutter/Release.xcconfig
  40. 614 0
      ios/Runner.xcodeproj/project.pbxproj
  41. 7 0
      ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  42. 8 0
      ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  43. 8 0
      ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  44. 98 0
      ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  45. 7 0
      ios/Runner.xcworkspace/contents.xcworkspacedata
  46. 8 0
      ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  47. 8 0
      ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  48. 13 0
      ios/Runner/AppDelegate.swift
  49. 122 0
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
  50. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
  51. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
  52. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
  53. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
  54. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
  55. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
  56. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
  57. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
  58. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
  59. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
  60. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
  61. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
  62. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
  63. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
  64. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
  65. 23 0
      ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
  66. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
  67. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
  68. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
  69. 5 0
      ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
  70. 37 0
      ios/Runner/Base.lproj/LaunchScreen.storyboard
  71. 26 0
      ios/Runner/Base.lproj/Main.storyboard
  72. 49 0
      ios/Runner/Info.plist
  73. 1 0
      ios/Runner/Runner-Bridging-Header.h
  74. 12 0
      ios/RunnerTests/RunnerTests.swift
  75. 59 0
      lib/data/api_response.dart
  76. 62 0
      lib/data/session/session_storage.dart
  77. 51 0
      lib/main.dart
  78. 77 0
      lib/models/basico_model.dart
  79. 16 0
      lib/models/login_model.dart
  80. 41 0
      lib/models/media_model.dart
  81. 5 0
      lib/models/models.dart
  82. 69 0
      lib/models/pedido_model.dart
  83. 24 0
      lib/models/profile_model.dart
  84. 47 0
      lib/models/usuario_model.dart
  85. 58 0
      lib/services/base_service.dart
  86. 59 0
      lib/services/general_service.dart
  87. 17 0
      lib/services/login_service.dart
  88. 64 0
      lib/services/profile_service.dart
  89. 4 0
      lib/services/services.dart
  90. 47 0
      lib/themes/themes.dart
  91. 90 0
      lib/viewmodels/login_view_model.dart
  92. 0 0
      lib/viewmodels/pedido_view_model.dart
  93. 60 0
      lib/viewmodels/profile_view_model.dart
  94. 158 0
      lib/viewmodels/usuarios_view_model.dart
  95. 3 0
      lib/viewmodels/viewmodels.dart
  96. 43 0
      lib/views/home/home_screen.dart
  97. 170 0
      lib/views/login/login_screen.dart
  98. 47 0
      lib/views/main/main_screen.dart
  99. 703 0
      lib/views/pedido/pedido_form.dart
  100. 0 0
      lib/views/pedido/pedido_screen.dart

+ 43 - 0
.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

+ 45 - 0
.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: "78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9"
+  channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+  platforms:
+    - platform: root
+      create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+      base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+    - platform: android
+      create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+      base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+    - platform: ios
+      create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+      base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+    - platform: linux
+      create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+      base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+    - platform: macos
+      create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+      base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+    - platform: web
+      create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+      base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+    - platform: windows
+      create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+      base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
+
+  # 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'

+ 28 - 0
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

+ 13 - 0
android/.gitignore

@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks

+ 68 - 0
android/app/build.gradle

@@ -0,0 +1,68 @@
+plugins {
+    id "com.android.application"
+    id "kotlin-android"
+    id "dev.flutter.flutter-gradle-plugin"
+}
+
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+    localPropertiesFile.withReader('UTF-8') { reader ->
+        localProperties.load(reader)
+    }
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+    flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+    flutterVersionName = '1.0'
+}
+
+android {
+    namespace "com.example.yoshi_papas_app"
+    compileSdkVersion 34
+    ndkVersion flutter.ndkVersion
+
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_1_8
+        targetCompatibility JavaVersion.VERSION_1_8
+    }
+
+    kotlinOptions {
+        jvmTarget = '1.8'
+    }
+
+    sourceSets {
+        main.java.srcDirs += 'src/main/kotlin'
+    }
+
+    defaultConfig {
+        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+        applicationId "com.example.yoshi_papas_app"
+        // You can update the following values to match your application needs.
+        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
+        minSdkVersion 24
+        targetSdkVersion 33
+        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 {}

+ 7 - 0
android/app/src/debug/AndroidManifest.xml

@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+    <!-- The INTERNET permission is required for development. Specifically,
+         the Flutter tool needs it to communicate with the running application
+         to allow setting breakpoints, to provide hot reload, etc.
+    -->
+    <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>

+ 38 - 0
android/app/src/main/AndroidManifest.xml

@@ -0,0 +1,38 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+    <uses-permission android:name="android.permission.INTERNET"/>
+    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
+    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
+    <application
+        android:label="yoshi_papas_app"
+        android:name="${applicationName}"
+        android:icon="@mipmap/ic_launcher">
+        <activity
+            android:name=".MainActivity"
+            android:exported="true"
+            android:launchMode="singleTop"
+            android:theme="@style/LaunchTheme"
+            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
+            android:hardwareAccelerated="true"
+            android:windowSoftInputMode="adjustResize">
+            <!-- Specifies an Android theme to apply to this Activity as soon as
+                 the Android process has started. This theme is visible to the user
+                 while the Flutter UI initializes. After that, this theme continues
+                 to determine the Window background behind the Flutter UI. -->
+            <meta-data
+              android:name="io.flutter.embedding.android.NormalTheme"
+              android:resource="@style/NormalTheme"
+              />
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN"/>
+                <category android:name="android.intent.category.LAUNCHER"/>
+            </intent-filter>
+        </activity>
+        <!-- Don't delete the meta-data below.
+             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
+        <meta-data
+            android:name="flutterEmbedding"
+            android:value="2" />
+    </application>
+</manifest>

+ 6 - 0
android/app/src/main/kotlin/com/example/yoshi_papas_app/MainActivity.kt

@@ -0,0 +1,6 @@
+package com.example.yoshi_papas_app
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}

+ 12 - 0
android/app/src/main/res/drawable-v21/launch_background.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:drawable="?android:colorBackground" />
+
+    <!-- You can insert your own image assets here -->
+    <!-- <item>
+        <bitmap
+            android:gravity="center"
+            android:src="@mipmap/launch_image" />
+    </item> -->
+</layer-list>

+ 12 - 0
android/app/src/main/res/drawable/launch_background.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:drawable="@android:color/white" />
+
+    <!-- You can insert your own image assets here -->
+    <!-- <item>
+        <bitmap
+            android:gravity="center"
+            android:src="@mipmap/launch_image" />
+    </item> -->
+</layer-list>

BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


+ 18 - 0
android/app/src/main/res/values-night/styles.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
+    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
+        <!-- Show a splash screen on the activity. Automatically removed when
+             the Flutter engine draws its first frame -->
+        <item name="android:windowBackground">@drawable/launch_background</item>
+    </style>
+    <!-- Theme applied to the Android Window as soon as the process has started.
+         This theme determines the color of the Android Window while your
+         Flutter UI initializes, as well as behind your Flutter UI while its
+         running.
+
+         This Theme is only used starting with V2 of Flutter's Android embedding. -->
+    <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
+        <item name="android:windowBackground">?android:colorBackground</item>
+    </style>
+</resources>

+ 18 - 0
android/app/src/main/res/values/styles.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
+    <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
+        <!-- Show a splash screen on the activity. Automatically removed when
+             the Flutter engine draws its first frame -->
+        <item name="android:windowBackground">@drawable/launch_background</item>
+    </style>
+    <!-- Theme applied to the Android Window as soon as the process has started.
+         This theme determines the color of the Android Window while your
+         Flutter UI initializes, as well as behind your Flutter UI while its
+         running.
+
+         This Theme is only used starting with V2 of Flutter's Android embedding. -->
+    <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
+        <item name="android:windowBackground">?android:colorBackground</item>
+    </style>
+</resources>

+ 7 - 0
android/app/src/profile/AndroidManifest.xml

@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+    <!-- The INTERNET permission is required for development. Specifically,
+         the Flutter tool needs it to communicate with the running application
+         to allow setting breakpoints, to provide hot reload, etc.
+    -->
+    <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>

+ 30 - 0
android/build.gradle

@@ -0,0 +1,30 @@
+buildscript {
+    ext.kotlin_version = '1.7.10'
+    repositories {
+        google()
+        mavenCentral()
+    }
+
+    dependencies {
+        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+    }
+}
+
+allprojects {
+    repositories {
+        google()
+        mavenCentral()
+    }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+    project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+    project.evaluationDependsOn(':app')
+}
+
+tasks.register("clean", Delete) {
+    delete rootProject.buildDir
+}

+ 3 - 0
android/gradle.properties

@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx4G
+android.useAndroidX=true
+android.enableJetifier=true

+ 5 - 0
android/gradle/wrapper/gradle-wrapper.properties

@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip

+ 29 - 0
android/settings.gradle

@@ -0,0 +1,29 @@
+pluginManagement {
+    def flutterSdkPath = {
+        def properties = new Properties()
+        file("local.properties").withInputStream { properties.load(it) }
+        def flutterSdkPath = properties.getProperty("flutter.sdk")
+        assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+        return flutterSdkPath
+    }
+    settings.ext.flutterSdkPath = flutterSdkPath()
+
+    includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
+
+    repositories {
+        google()
+        mavenCentral()
+        gradlePluginPortal()
+    }
+
+    plugins {
+        id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
+    }
+}
+
+plugins {
+    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
+    id "com.android.application" version "7.3.0" apply false
+}
+
+include ":app"

BIN
assets/JoshiLogo.png


BIN
assets/JoshiLogoHorizontal.png


BIN
assets/audio-file.png


BIN
assets/csv.png


BIN
assets/excel.png


BIN
assets/excel_icon.png


BIN
assets/location.png


BIN
assets/pdf-file.png


BIN
assets/settings.png


BIN
assets/settings_orange.png


BIN
assets/word.png


BIN
fonts/CalculatorFont.ttf


BIN
fonts/digital-7-mono.ttf


+ 34 - 0
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

+ 26 - 0
ios/Flutter/AppFrameworkInfo.plist

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+  <key>CFBundleDevelopmentRegion</key>
+  <string>en</string>
+  <key>CFBundleExecutable</key>
+  <string>App</string>
+  <key>CFBundleIdentifier</key>
+  <string>io.flutter.flutter.app</string>
+  <key>CFBundleInfoDictionaryVersion</key>
+  <string>6.0</string>
+  <key>CFBundleName</key>
+  <string>App</string>
+  <key>CFBundlePackageType</key>
+  <string>FMWK</string>
+  <key>CFBundleShortVersionString</key>
+  <string>1.0</string>
+  <key>CFBundleSignature</key>
+  <string>????</string>
+  <key>CFBundleVersion</key>
+  <string>1.0</string>
+  <key>MinimumOSVersion</key>
+  <string>11.0</string>
+</dict>
+</plist>

+ 1 - 0
ios/Flutter/Debug.xcconfig

@@ -0,0 +1 @@
+#include "Generated.xcconfig"

+ 1 - 0
ios/Flutter/Release.xcconfig

@@ -0,0 +1 @@
+#include "Generated.xcconfig"

+ 614 - 0
ios/Runner.xcodeproj/project.pbxproj

@@ -0,0 +1,614 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 54;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+		74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+		97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+		97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+		331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+/* 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 = "<group>"; };
+		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
+		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
+		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
+		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
+		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
+		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
+		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 = "<group>"; };
+		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
+		331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		97C146EB1CF9000F007C117D /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		9740EEB11CF90186004384FC /* Flutter */ = {
+			isa = PBXGroup;
+			children = (
+				3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+				9740EEB21CF90195004384FC /* Debug.xcconfig */,
+				7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+				9740EEB31CF90195004384FC /* Generated.xcconfig */,
+			);
+			name = Flutter;
+			sourceTree = "<group>";
+		};
+		331C8082294A63A400263BE5 /* RunnerTests */ = {
+			isa = PBXGroup;
+			children = (
+				331C807B294A618700263BE5 /* RunnerTests.swift */,
+			);
+			path = RunnerTests;
+			sourceTree = "<group>";
+		};
+		97C146E51CF9000F007C117D = {
+			isa = PBXGroup;
+			children = (
+				9740EEB11CF90186004384FC /* Flutter */,
+				97C146F01CF9000F007C117D /* Runner */,
+				97C146EF1CF9000F007C117D /* Products */,
+				331C8082294A63A400263BE5 /* RunnerTests */,
+			);
+			sourceTree = "<group>";
+		};
+		97C146EF1CF9000F007C117D /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				97C146EE1CF9000F007C117D /* Runner.app */,
+				331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		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 = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		331C8080294A63A400263BE5 /* RunnerTests */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+			buildPhases = (
+				331C807D294A63A400263BE5 /* Sources */,
+				331C807E294A63A400263BE5 /* Frameworks */,
+				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 = 1430;
+				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 = "<group>";
+		};
+		97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				97C147001CF9000F007C117D /* Base */,
+			);
+			name = LaunchScreen.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		249021D3217E4FDB00AE95B9 /* Profile */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				SUPPORTED_PLATFORMS = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Profile;
+		};
+		249021D4217E4FDB00AE95B9 /* Profile */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.yoshiPapasApp;
+				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;
+			baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
+			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.yoshiPapasApp.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;
+			baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
+			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.yoshiPapasApp.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;
+			baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
+			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.yoshiPapasApp.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;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				MTL_ENABLE_DEBUG_INFO = YES;
+				ONLY_ACTIVE_ARCH = YES;
+				SDKROOT = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Debug;
+		};
+		97C147041CF9000F007C117D /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				SUPPORTED_PLATFORMS = iphoneos;
+				SWIFT_COMPILATION_MODE = wholemodule;
+				SWIFT_OPTIMIZATION_LEVEL = "-O";
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		97C147061CF9000F007C117D /* Debug */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.yoshiPapasApp;
+				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.yoshiPapasApp;
+				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 */;
+}

+ 7 - 0
ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:">
+   </FileRef>
+</Workspace>

+ 8 - 0
ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 8 - 0
ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>PreviewsEnabled</key>
+	<false/>
+</dict>
+</plist>

+ 98 - 0
ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+   LastUpgradeVersion = "1430"
+   version = "1.3">
+   <BuildAction
+      parallelizeBuildables = "YES"
+      buildImplicitDependencies = "YES">
+      <BuildActionEntries>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "YES"
+            buildForProfiling = "YES"
+            buildForArchiving = "YES"
+            buildForAnalyzing = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+               BuildableName = "Runner.app"
+               BlueprintName = "Runner"
+               ReferencedContainer = "container:Runner.xcodeproj">
+            </BuildableReference>
+         </BuildActionEntry>
+      </BuildActionEntries>
+   </BuildAction>
+   <TestAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      shouldUseLaunchSchemeArgsEnv = "YES">
+      <MacroExpansion>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </MacroExpansion>
+      <Testables>
+         <TestableReference
+            skipped = "NO"
+            parallelizable = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "331C8080294A63A400263BE5"
+               BuildableName = "RunnerTests.xctest"
+               BlueprintName = "RunnerTests"
+               ReferencedContainer = "container:Runner.xcodeproj">
+            </BuildableReference>
+         </TestableReference>
+      </Testables>
+   </TestAction>
+   <LaunchAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      launchStyle = "0"
+      useCustomWorkingDirectory = "NO"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      debugServiceExtension = "internal"
+      allowLocationSimulation = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </LaunchAction>
+   <ProfileAction
+      buildConfiguration = "Profile"
+      shouldUseLaunchSchemeArgsEnv = "YES"
+      savedToolIdentifier = ""
+      useCustomWorkingDirectory = "NO"
+      debugDocumentVersioning = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </ProfileAction>
+   <AnalyzeAction
+      buildConfiguration = "Debug">
+   </AnalyzeAction>
+   <ArchiveAction
+      buildConfiguration = "Release"
+      revealArchiveInOrganizer = "YES">
+   </ArchiveAction>
+</Scheme>

+ 7 - 0
ios/Runner.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "group:Runner.xcodeproj">
+   </FileRef>
+</Workspace>

+ 8 - 0
ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 8 - 0
ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>PreviewsEnabled</key>
+	<false/>
+</dict>
+</plist>

+ 13 - 0
ios/Runner/AppDelegate.swift

@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+  override func application(
+    _ application: UIApplication,
+    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+  ) -> Bool {
+    GeneratedPluginRegistrant.register(with: self)
+    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+  }
+}

+ 122 - 0
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"
+  }
+}

BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png


+ 23 - 0
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"
+  }
+}

BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png


BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png


BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png


+ 5 - 0
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.

+ 37 - 0
ios/Runner/Base.lproj/LaunchScreen.storyboard

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="EHf-IW-A2E">
+            <objects>
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
+                        <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <subviews>
+                            <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
+                            </imageView>
+                        </subviews>
+                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                        <constraints>
+                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
+                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
+                        </constraints>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="53" y="375"/>
+        </scene>
+    </scenes>
+    <resources>
+        <image name="LaunchImage" width="168" height="185"/>
+    </resources>
+</document>

+ 26 - 0
ios/Runner/Base.lproj/Main.storyboard

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+    </dependencies>
+    <scenes>
+        <!--Flutter View Controller-->
+        <scene sceneID="tne-QT-ifu">
+            <objects>
+                <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+            </objects>
+        </scene>
+    </scenes>
+</document>

+ 49 - 0
ios/Runner/Info.plist

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>$(DEVELOPMENT_LANGUAGE)</string>
+	<key>CFBundleDisplayName</key>
+	<string>Yoshi Papas App</string>
+	<key>CFBundleExecutable</key>
+	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIdentifier</key>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>yoshi_papas_app</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>$(FLUTTER_BUILD_NAME)</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleVersion</key>
+	<string>$(FLUTTER_BUILD_NUMBER)</string>
+	<key>LSRequiresIPhoneOS</key>
+	<true/>
+	<key>UILaunchStoryboardName</key>
+	<string>LaunchScreen</string>
+	<key>UIMainStoryboardFile</key>
+	<string>Main</string>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>UISupportedInterfaceOrientations~ipad</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>CADisableMinimumFrameDurationOnPhone</key>
+	<true/>
+	<key>UIApplicationSupportsIndirectInputEvents</key>
+	<true/>
+</dict>
+</plist>

+ 1 - 0
ios/Runner/Runner-Bridging-Header.h

@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"

+ 12 - 0
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.
+  }
+
+}

+ 59 - 0
lib/data/api_response.dart

@@ -0,0 +1,59 @@
+import 'dart:convert';
+
+import 'package:http/http.dart';
+
+class ApiResponse {
+  int? statusCode;
+  Paginacion? paginacion;
+  List<Map<String, dynamic>>? resultados;
+  Map<String, dynamic>? detalle;
+  Map<String, dynamic>? errores;
+  String mensaje = '';
+
+  bool get isOk => statusCode! >= 200 && statusCode! < 300;
+  bool get isError => statusCode! >= 400 && statusCode! < 500;
+  bool get isServerError => statusCode! >= 500;
+
+  ApiResponse(Response response) {
+    statusCode = response.statusCode;
+    var body = json.decode(response.body);
+    if (body.containsKey('paginacion')) {
+      var pag = body['paginacion'];
+      paginacion = Paginacion(
+        total: pag['total'],
+        pagina: pag['pagina'],
+        limite: pag['limite'],
+      );
+    }
+    if (body.containsKey('mensaje')) {
+      mensaje = body['mensaje'];
+    }
+    if (body.containsKey('resultado') && body["resultado"] != null) {
+      resultados = (body['resultado'] as List<dynamic>)
+        .cast<Map<String, dynamic>>()
+        .toList();
+    }
+    if (body.containsKey('detalle')) {
+      detalle = body['detalle'];
+    }
+    if (body.containsKey('errores')) {
+      errores = body['errores'];
+    }
+  }
+}
+
+class Paginacion {
+  final int total;
+  final int pagina;
+  final int limite;
+
+  Paginacion({required this.total, required this.pagina, required this.limite});
+
+  factory Paginacion.fromJson(Map<String, dynamic> json) {
+    return Paginacion(
+      total: json['total'],
+      pagina: json['pagina'],
+      limite: json['limite'],
+    );
+  }
+}

+ 62 - 0
lib/data/session/session_storage.dart

@@ -0,0 +1,62 @@
+import 'package:shared_preferences/shared_preferences.dart';
+
+class SessionStorage {
+  Future<SharedPreferences> _getPreferences() async {
+    return await SharedPreferences.getInstance();
+  }
+
+  Future<void> saveToken(String token) async {
+    final preferences = await _getPreferences();
+    await preferences.setString('token', token);
+  }
+
+  Future<void> saveId(int id) async {
+    final preferences = await _getPreferences();
+    await preferences.setInt('id', id);
+  }
+  
+  Future<void> saveCorreo(String value) async {
+    final preferences = await _getPreferences();
+    await preferences.setString('correo', value);
+  }
+
+  Future<void> saveNombre(String? value) async {
+    final preferences = await _getPreferences();
+    await preferences.setString('nombre', value.toString());
+  }
+
+  Future<String?> getNombre() async {
+    final preferences = await _getPreferences();
+    return preferences.getString('nombre');
+  }
+
+  Future<String?> getCorreo() async {
+    final preferences = await _getPreferences();
+    return preferences.getString('correo');
+  }
+
+  Future<String?> getEmpresa() async {
+    final preferences = await _getPreferences();
+    return preferences.getString('empresa');
+  }
+
+  Future<void> saveEmpresa(String? value) async {
+    final preferences = await _getPreferences();
+    await preferences.setString('empresa', value.toString());
+  }
+
+  Future<String?> getToken() async {
+    final preferences = await _getPreferences();
+    return preferences.getString('token');
+  }
+
+  Future<int?> getId() async {
+    final preferences = await _getPreferences();
+    return preferences.getInt('id');
+  }
+
+  Future<void> clearToken() async {
+    final preferences = await _getPreferences();
+    await preferences.remove('token');
+  }
+}

+ 51 - 0
lib/main.dart

@@ -0,0 +1,51 @@
+//import 'package:fluent_ui/fluent_ui.dart';
+import 'package:flutter/material.dart';
+//import 'package:hermogas_ecosistema_web/viewmodels/codigo_postal_view_model.dart';
+import 'package:yoshi_papas_app/views/perfil/perfil_screen.dart';
+import 'package:provider/provider.dart';
+import '../themes/themes.dart';
+import 'package:flutter/services.dart';
+
+import 'viewmodels/viewmodels.dart';
+import 'views/main/main_screen.dart';
+import 'views/home/home_screen.dart';
+import 'views/login/login_screen.dart';
+import 'package:timezone/data/latest.dart' as tzdata;
+
+void main() {
+  WidgetsFlutterBinding.ensureInitialized();
+  tzdata.initializeTimeZones();
+  SystemChrome.setPreferredOrientations([
+    DeviceOrientation.landscapeRight,
+    DeviceOrientation.landscapeLeft,
+  ]).then((_) {
+    runApp(MultiProvider(providers: [
+      ChangeNotifierProvider(create: (_) => LoginViewModel()),
+      ChangeNotifierProvider(create: (_) => UsuariosViewModel()),
+      ChangeNotifierProvider(create: (_) => ProfileViewModel()),
+      // Agrega aquí cualquier otro provider que necesites
+    ], child: const MyApp()));
+  });
+}
+
+class MyApp extends StatelessWidget {
+  const MyApp({super.key});
+  //ChangeNotifierProvider(create: (_) => AppTheme()),
+
+  @override
+  Widget build(BuildContext context) {
+    return MaterialApp(
+      locale: const Locale("en", "ES"),
+      debugShowCheckedModeBanner: false,
+      title: 'Yoshi Papas',
+      theme: AppTheme.lightTheme,
+      initialRoute: 'main',
+      routes: {
+        'main': (context) => const MainScreen(),
+        'login': (context) => const LoginScreen(),
+        'home': (context) => const HomeScreen(),
+        'perfil': (context) => const PerfilScreen(),
+      },
+    );
+  }
+}

+ 77 - 0
lib/models/basico_model.dart

@@ -0,0 +1,77 @@
+/// Modelo de datos para retener la informacion basica necesaria de todos los modelos
+class Basico {
+  static const String identificadorLocal = "idLocal";
+  static const String identificadorWeb = "id";
+
+  int id;
+  int idLocal;
+  DateTime? creado;
+  DateTime? modificado;
+  DateTime? eliminado;
+
+  Basico({
+    this.id = 0,
+    this.idLocal = -1,
+    this.creado,
+    this.modificado,
+    this.eliminado,
+  });
+
+  static parseDate(origen) {
+    if (origen == "null") return null;
+    if (origen == null) return null;
+    if (origen == '') return null;
+    if (origen == "null") return null;
+    return DateTime.parse(origen);
+  }
+
+  static double parseDouble(origen) {
+    if (origen == null) return 0.0;
+    if (origen == "null") return 0.0;
+    if (origen == "") return 0.0;
+    if (origen.runtimeType.toString() == 'double') return origen;
+    return double.parse(origen.toString());
+  }
+
+  static int parseInt(origen) {
+    if (origen == null) return 0;
+    if (origen == "") return 0;
+    if (origen == "null") return 0;
+    if (origen.runtimeType.toString() == 'int') return origen;
+    return int.parse(origen.toString());
+  }
+
+  static String parseString(origen) {
+    if (origen == "null") return "";
+    if (origen == null) return "";
+    if (origen == "") return "";
+    if (origen == "null") return "";
+    if (origen.runtimeType.toString() == 'string') return origen;
+    return origen.toString();
+  }
+
+  static bool parseBolean(origen) {
+    if (origen == null) return false;
+    if (origen == "") return false;
+    if (origen == "null") return false;
+    if (origen == "false") return false;
+    if (origen.runtimeType.toString() == 'bool') return origen;
+    return bool.parse(origen.toString());
+  }
+
+  Map<String, dynamic> toJson() {
+    return {
+      'id': id,
+      'idLocal': idLocal,
+      'eliminado': eliminado,
+    };
+  }
+
+  parseJson(Map<String, dynamic> json) {
+    id = json['id'] != null ? int.parse(json['id'].toString()) : 0;
+    idLocal = json['idLocal'] ?? -1;
+    eliminado = parseDate(json['eliminado']);
+    creado = parseDate(json['creado']);
+    modificado = parseDate(json['modificado']);
+  }
+}

+ 16 - 0
lib/models/login_model.dart

@@ -0,0 +1,16 @@
+class Login {
+  String username;
+  String password;
+
+  Login({
+    required this.username,
+    required this.password,
+  });
+
+  Map<String, dynamic> toJson() {
+    return {
+      'correo': username,
+      'clave': password,
+    };
+  }
+}

+ 41 - 0
lib/models/media_model.dart

@@ -0,0 +1,41 @@
+import 'basico_model.dart';
+
+class Media extends Basico {
+  String? get tabla => "Media";
+  String? idUsuario;
+  String? uuid;
+  String? nombre;
+  String? extension;
+  String? ruta;
+  String? tipo;
+
+  Media({String? ruta, required String tipo}) {
+    idUsuario = "";
+    uuid = "";
+    nombre = "";
+    extension = "";
+    ruta = "";
+    tipo = "";
+  }
+
+  Media.fromJson(Map<String, dynamic> json) {
+    super.parseJson(json);
+    idUsuario = Basico.parseString(json["idUsuario"]);
+    uuid = Basico.parseString(json["uuid"]);
+    nombre = Basico.parseString(json["nombre"]);
+    extension = Basico.parseString(json["extension"]);
+    ruta = Basico.parseString(json["ruta"]);
+    tipo = Basico.parseString(json["tipo"]);
+  }
+
+  @override
+  Map<String, dynamic> toJson() => {
+    'nombre': nombre,
+    'idUsuario': idUsuario,
+    'tipo': tipo,
+    'extension': extension,
+    'uuid': uuid,
+    'ruta': ruta,
+  }..addAll(super.toJson());
+  
+}

+ 5 - 0
lib/models/models.dart

@@ -0,0 +1,5 @@
+export '../models/basico_model.dart';
+export '../models/login_model.dart';
+export '../models/usuario_model.dart';
+export '../models/media_model.dart';
+export '../models/profile_model.dart';

+ 69 - 0
lib/models/pedido_model.dart

@@ -0,0 +1,69 @@
+import 'dart:ffi';
+
+import 'basico_model.dart';
+
+class Usuario extends Basico {
+  int? folio;
+  int? estatus;
+  String? comentarios;
+  String? peticion;
+  String? nombreCliente;
+  int? idCliente;
+  int? idMesa;
+  int? terminado;
+  int? cerrar;
+  int? idUsuario;
+  int? idModificador;
+  int? idCancelado;
+
+  Usuario({
+    super.id,
+    this.folio,
+    this.estatus,
+    this.comentarios,
+    this.peticion,
+    this.nombreCliente,
+    this.idCliente,
+    this.idMesa,
+    this.terminado,
+    this.cerrar,
+    this.idUsuario,
+    this.idModificador,
+    this.idCancelado,
+  });
+
+  @override
+  Map<String, dynamic> toJson() {
+    return {
+      'id': id,
+      'folio': folio,
+      'estatus': estatus,
+      'comentarios': comentarios,
+      'peticion': peticion,
+      'nombreCliente': nombreCliente,
+      'idCliente': idCliente,
+      'idMesa': idMesa,
+      'terminado': terminado,
+      'cerrar': cerrar,
+      'idUsuario': idUsuario,
+      'idModificador': idModificador,
+      'idCancelado': idCancelado,
+    }..addAll(super.toJson());
+  }
+
+  Usuario.fromJson(Map<String, dynamic> json) {
+    super.parseJson(json);
+    folio = Basico.parseInt(json['folio']);
+    estatus = Basico.parseInt(json['estatus']);
+    comentarios = Basico.parseString(json['comentarios']);
+    peticion = Basico.parseString(json['peticion']);
+    nombreCliente = Basico.parseString(json['nombreCliente']);
+    idCliente = Basico.parseInt(json['idCliente']);
+    idMesa = Basico.parseInt(json['idMesa']);
+    terminado = Basico.parseInt(json['terminado']);
+    cerrar = Basico.parseInt(json['cerrar']);
+    idUsuario = Basico.parseInt(json['idUsuario']);
+    idModificador = Basico.parseInt(json['idModificador']);
+    idCancelado = Basico.parseInt(json['idCancelado']);
+  }
+}

+ 24 - 0
lib/models/profile_model.dart

@@ -0,0 +1,24 @@
+import 'models.dart';
+
+class Profile {
+  int? id;
+  String? correo;
+  String? clave;
+  String? nombre;
+  String? estatus;
+  String? rol;
+
+  Profile(
+      {this.id, this.correo, this.clave, this.nombre, this.estatus, this.rol});
+
+  factory Profile.fromJson(Map<String, dynamic> json) {
+    return Profile(
+      id: Basico.parseInt(json['id']),
+      correo: Basico.parseString(json['correo']),
+      clave: Basico.parseString(json['clave']),
+      nombre: Basico.parseString(json['nombre']),
+      estatus: Basico.parseString(json['estatus']),
+      rol: Basico.parseString(json['rol']),
+    );
+  }
+}

+ 47 - 0
lib/models/usuario_model.dart

@@ -0,0 +1,47 @@
+import 'basico_model.dart';
+
+class Usuario extends Basico {
+  String? correo;
+  String? clave;
+  String? nombre;
+  String? estatus;
+  String? telefono;
+  String? empresa;
+  String? rol;
+
+  Usuario({
+    super.id,
+    this.correo,
+    this.clave,
+    this.nombre,
+    this.estatus,
+    this.telefono,
+    this.empresa,
+    this.rol,
+  });
+
+  @override
+  Map<String, dynamic> toJson() {
+    return {
+      'id': id,
+      'correo': correo,
+      'clave': clave,
+      'nombre': nombre,
+      'estatus': estatus,
+      'telefono': telefono,
+      'empresa': empresa,
+      'rol': rol,
+    }..addAll(super.toJson());
+  }
+
+  Usuario.fromJson(Map<String, dynamic> json) {
+    super.parseJson(json);
+    correo = Basico.parseString(json['correo']);
+    clave = Basico.parseString(json['clave']);
+    nombre = Basico.parseString(json['nombre']);
+    estatus = Basico.parseString(json['estatus']);
+    telefono = Basico.parseString(json['telefono']);
+    empresa = Basico.parseString(json['empresa']);
+    rol = Basico.parseString(json['rol']);
+  }
+}

+ 58 - 0
lib/services/base_service.dart

@@ -0,0 +1,58 @@
+import 'dart:convert';
+
+import '../data/session/session_storage.dart';
+import 'package:http/http.dart' as http;
+
+class BaseService {
+  int currentPage = 0;
+  int limit = 20;
+  int total = 0;
+  //String baseUrl = 'hermogas.est.api.rdsistemas.app';
+  //produccion: hermogas.est.api.rdsistemas.app
+  //prueba: hermogas.est.test.rdsistemas.app
+
+  String base_url = 'https://pos.papas.edesarrollos.info';
+  String baseUrl = 'pos.papas.edesarrollos.info';
+  Future<Map<String, String>> getDefaultHeaders({withAuth = true}) async {
+    Map<String, String> defaultHeaders = {'Content-Type': 'application/json'};
+
+    if (withAuth) {
+      String? token = await SessionStorage().getToken();
+      defaultHeaders['Authorization'] = 'Bearer ${token ?? ''}';
+    }
+
+    return defaultHeaders;
+  }
+
+  Future<http.Response> get(String endpoint,
+      {bool withAuth = true,
+      Map<String, String>? queryParameters,
+      Map<String, String>? headers}) async {
+    final uri = Uri.https(baseUrl, endpoint, queryParameters);
+    var defaultHeaders = await getDefaultHeaders(withAuth: withAuth);
+    var head = {...?headers, ...defaultHeaders};
+    return await http.get(uri, headers: head);
+  }
+
+  Future<http.Response> post(String endpoint,
+      {bool withAuth = true,
+      Map<String, String>? queryParameters,
+      Map<String, dynamic>? body,
+      Map<String, String>? headers}) async {
+    final uri = Uri.https(baseUrl, endpoint, queryParameters);
+    var defaultHeaders = await getDefaultHeaders(withAuth: withAuth);
+    var head = {...?headers, ...defaultHeaders};
+    return await http.post(uri, body: json.encode(body), headers: head);
+  }
+
+  Future<http.Response> delete(String endpoint,
+      {bool withAuth = true,
+      Map<String, String>? queryParameters,
+      Map<String, dynamic>? body,
+      Map<String, String>? headers}) async {
+    final uri = Uri.https(baseUrl, endpoint, queryParameters);
+    var defaultHeaders = await getDefaultHeaders(withAuth: withAuth);
+    var head = {...?headers, ...defaultHeaders};
+    return await http.delete(uri, body: json.encode(body), headers: head);
+  }
+}

+ 59 - 0
lib/services/general_service.dart

@@ -0,0 +1,59 @@
+import 'dart:math';
+
+import 'package:camera/camera.dart';
+import '../data/session/session_storage.dart';
+import '../services/services.dart';
+import 'package:http/http.dart' as http;
+
+class GeneralService extends BaseService {
+  String endPoint = '/servicios/visita';
+  String postdistancia = '/servicios/visita/calcular-distancia';
+  Map<String, String> defaultQueryParameters = {"ordenar":"id-desc"};
+
+  Future<http.StreamedResponse> enviarMedia({required int id, required XFile media, String? modulo, String? tipo, String? etiquetaID}) async {
+    //ejemplo: tipo = imagen, modulo = Visita
+    final token = await SessionStorage().getToken();
+    String completo = "$base_url/admin/subir-archivo/guardar";
+    String nombre = "generico";
+    http.MultipartRequest request = http.MultipartRequest('POST', Uri.parse(completo));
+    request.headers.addAll({
+      'Content-type': 'multipart/form-data',
+      'Accept': 'application/json',
+      'Authorization': "Bearer $token"
+    });
+    if(tipo == "archivo"){
+      final random = Random();
+      final randomInt = random.nextInt(99999);
+      int lastIndex = media.name.lastIndexOf('.');
+      nombre = "$randomInt";
+      if (lastIndex != -1 && lastIndex < media.name.length - 1) {
+        String ext = media.name.substring(lastIndex + 1);
+        nombre = "$nombre.${ext.toLowerCase()}";
+      }
+      nombre = media.name.toString();
+    }
+    if(tipo == "imagen"){
+      final random = Random();
+      final randomInt = random.nextInt(99999);
+      nombre = "$randomInt.jpg";
+    }
+    if(tipo == "audio"){
+      final random = Random();
+      final randomInt = random.nextInt(99999);
+      nombre = "$randomInt.wav";
+    }
+    request.fields[etiquetaID.toString()] = "$id";
+    request.fields[modulo.toString()] = '1';
+    request.fields['tipo'] = tipo.toString();
+    request.files.add(
+      http.MultipartFile(
+        'archivo',
+        media.openRead(),
+        await media.length(),
+        filename: nombre,
+      ),
+    );
+
+    return await request.send();
+  }
+}

+ 17 - 0
lib/services/login_service.dart

@@ -0,0 +1,17 @@
+import '../data/api_response.dart';
+
+import 'base_service.dart';
+import '../models/login_model.dart';
+
+class LoginService extends BaseService {
+  final endPoint = "/admin/iniciar-sesion";
+
+  Future<ApiResponse> logIn(String username, String password) async {
+    final login = Login(username: username, password: password);
+    var response = await post(endPoint,
+        withAuth: false,
+        body: login.toJson(),
+        headers: {'Content-Type': 'application/json'});
+    return ApiResponse(response);
+  }
+}

+ 64 - 0
lib/services/profile_service.dart

@@ -0,0 +1,64 @@
+import 'dart:convert';
+import 'package:http/http.dart' as http;
+import 'package:yoshi_papas_app/data/session/session_storage.dart';
+import '../models/models.dart';
+import '../services/base_service.dart';
+
+class ProfileService extends BaseService {
+  String endPoint = 'v1/usuario';
+
+  // Método existente para consultar perfil
+  Future<Profile> fetchList() async {
+    final int? id = await SessionStorage().getId();
+    if (id == null) {
+      throw Exception(
+          "Información de perfil no disponible, por favor inicia sesión.");
+    }
+
+    Map<String, String> queryParameters = {
+      'id': id.toString(),
+    };
+
+    final response = await get(endPoint, queryParameters: queryParameters);
+    final profileJson = jsonDecode(response.body);
+    final profile = Profile.fromJson(profileJson['resultado'][0]);
+    return profile;
+  }
+
+  // Método actualizado para cambiar la contraseña
+  Future<bool> cambiarContrasena(String claveActual, String nuevaClave) async {
+    // Obtener el token de autenticación
+    final String? token = await SessionStorage().getToken();
+    // Obtener el ID del usuario
+    final int? id = await SessionStorage().getId();
+
+    if (token == null || id == null) {
+      print("Token o ID del usuario no disponible.");
+      return false;
+    }
+
+    final url = Uri.parse('$base_url/$endPoint/cambiar-clave');
+    final response = await http.post(
+      url,
+      headers: {
+        "Content-Type": "application/json",
+        "Authorization":
+            "Bearer $token", // Incluye el token en la cabecera de autorización
+      },
+      body: jsonEncode({
+        "id": id, // Incluye el ID del usuario en el cuerpo de la solicitud
+        "claveActual": claveActual,
+        "clave": nuevaClave,
+      }),
+    );
+
+    if (response.statusCode == 200) {
+      // Operación exitosa
+      return true;
+    } else {
+      // Operación fallida
+      print('Error al cambiar la contraseña: ${response.body}');
+      return false;
+    }
+  }
+}

+ 4 - 0
lib/services/services.dart

@@ -0,0 +1,4 @@
+export '../services/base_service.dart';
+export '../services/login_service.dart';
+export '../services/profile_service.dart';
+export '../services/general_service.dart';

+ 47 - 0
lib/themes/themes.dart

@@ -0,0 +1,47 @@
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+
+class AppTheme {
+  static Color primary = Color.fromRGBO(242, 75, 89, 1.000);
+  static Color secondary = Colors.black;
+  static Color tertiary = const Color(0xFF060000);
+  static ThemeData lightTheme = ThemeData.light().copyWith(
+    useMaterial3: true,
+    //Scaffold
+    scaffoldBackgroundColor: Colors.grey[300],
+    //Tema de AppBar
+    appBarTheme: AppBarTheme(
+      color: primary,
+      foregroundColor: secondary,
+      systemOverlayStyle: SystemUiOverlayStyle(
+        statusBarColor: primary,
+        statusBarIconBrightness: Brightness.dark,
+      ),
+      iconTheme: IconThemeData(
+        color: secondary,
+      ),
+    ),
+    //Tema de floatingActionButton
+    floatingActionButtonTheme: FloatingActionButtonThemeData(
+      backgroundColor: primary,
+      foregroundColor: secondary,
+    ),
+    //Tema de progressIndicator
+    progressIndicatorTheme: ProgressIndicatorThemeData(color: tertiary),
+    //Tema de DatePicker
+    datePickerTheme: DatePickerThemeData(
+      inputDecorationTheme: InputDecorationTheme(
+          //labelStyle: GoogleFonts.greatVibes(), // Input label
+          ),
+      backgroundColor: const Color(0xFFDBDBDB), //secondary,
+      headerBackgroundColor: primary,
+      todayBackgroundColor:
+          const MaterialStatePropertyAll(Color(0xFFDBDBDB)), //primary
+      todayForegroundColor:
+          const MaterialStatePropertyAll(Color.fromARGB(255, 0, 0, 0)),
+      rangePickerBackgroundColor: secondary,
+      // dayOverlayColor: MaterialStatePropertyAll(primary),
+      //headerHelpStyle: const TextStyle(fontSize: 18),
+    ),
+  );
+}

+ 90 - 0
lib/viewmodels/login_view_model.dart

@@ -0,0 +1,90 @@
+import 'package:flutter/material.dart';
+import '../data/api_response.dart';
+import '../data/session/session_storage.dart';
+import '../services/login_service.dart';
+
+enum Status { uninitialized, authenticated, authenticating, unauthenticated }
+
+class LoginViewModel extends ChangeNotifier {
+  Status _status = Status.uninitialized;
+  Status get status => _status;
+  bool hasErrors = false;
+  Map<String, dynamic>? _errores = {};
+  bool _obscureText = true;
+  int? _idUsuario;
+  Map<String, dynamic>? get errores => _errores;
+  bool get obscureText => _obscureText;
+  int? get idUsuario => _idUsuario;
+  //List<String> _permisos = [];
+  //List<String> get permisos => _permisos;
+
+  String _nombre = "";
+  String get nombre => _nombre;
+
+  String _correo = "";
+  String get correo => _correo;
+
+  String _error = "";
+  String get error => _error;
+
+  Future login(String username, String password) async {
+    try {
+      ApiResponse apiResponse = await LoginService().logIn(username, password);
+      _errores = {};
+      if (apiResponse.isOk) {
+        _idUsuario = apiResponse.detalle?['id'];
+        String token = apiResponse.detalle?['token'];
+        if (token.isNotEmpty) {
+          SessionStorage().saveToken(apiResponse.detalle?['token']);
+          SessionStorage().saveId(apiResponse.detalle?['id']);
+          SessionStorage().saveCorreo(apiResponse.detalle!['correo']);
+          SessionStorage().saveNombre(apiResponse.detalle!['nombre']);
+          _status = Status.authenticated;
+          notifyListeners();
+        }
+      }
+      if (apiResponse.isError) {
+        hasErrors = true;
+        _errores = apiResponse.errores;
+        _status = Status.unauthenticated;
+        notifyListeners();
+      }
+    } catch (e) {
+      _status = Status.unauthenticated;
+      notifyListeners();
+    }
+  }
+
+  void checkSession() async {
+    var token = await SessionStorage().getToken();
+    var id = await SessionStorage().getId();
+    if (token != null && token.isNotEmpty) {
+      _status = Status.authenticated;
+      _idUsuario = id;
+    } else {
+      _status = Status.unauthenticated;
+    }
+    notifyListeners();
+  }
+
+  logOut() async {
+    await SessionStorage().clearToken();
+    _status = Status.unauthenticated;
+    notifyListeners();
+  }
+
+  void showPassword() {
+    _obscureText = !_obscureText;
+    notifyListeners();
+  }
+
+  setValores() async {
+    _nombre = (await SessionStorage().getNombre()).toString();
+    _correo = (await SessionStorage().getCorreo()).toString();
+    notifyListeners();
+  }
+
+  bool validarEmail(String email) =>
+      RegExp(r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$')
+          .hasMatch(email.trim());
+}

+ 0 - 0
lib/viewmodels/pedido_view_model.dart


+ 60 - 0
lib/viewmodels/profile_view_model.dart

@@ -0,0 +1,60 @@
+import 'package:flutter/material.dart';
+import '../models/profile_model.dart';
+import '../services/profile_service.dart';
+
+class ProfileViewModel extends ChangeNotifier {
+  Profile _profile = Profile();
+  bool _isLoading = true;
+
+  // Añadir estado de visibilidad para cada campo de contraseña
+  bool _obscureTextPassActual = true;
+  bool _obscureTextPassNuevo = true;
+  bool _obscureTextPassNuevoConfirmar = true;
+
+  Profile get profile => _profile;
+  bool get isLoading => _isLoading;
+  bool get obscureTextPassActual => _obscureTextPassActual;
+  bool get obscureTextPassNuevo => _obscureTextPassNuevo;
+  bool get obscureTextPassNuevoConfirmar => _obscureTextPassNuevoConfirmar;
+
+  // Consulta el perfil
+  Future<void> fetchProfile() async {
+    _profile = await ProfileService().fetchList();
+    notifyListeners();
+  }
+
+  void setLoading(bool loading) {
+    _isLoading = loading;
+    notifyListeners();
+  }
+
+  // Métodos para cambiar la visibilidad de las contraseñas
+  void toggleObscureTextPassActual() {
+    _obscureTextPassActual = !_obscureTextPassActual;
+    notifyListeners();
+  }
+
+  void toggleObscureTextPassNuevo() {
+    _obscureTextPassNuevo = !_obscureTextPassNuevo;
+    notifyListeners();
+  }
+
+  void toggleObscureTextPassNuevoConfirmar() {
+    _obscureTextPassNuevoConfirmar = !_obscureTextPassNuevoConfirmar;
+    notifyListeners();
+  }
+
+  // Método para cambiar la contraseña
+  Future<bool> cambiarContrasena(String claveActual, String nuevaClave) async {
+    try {
+      // Asume que ProfileService ya tiene un método cambiarContrasena implementado
+      bool resultado =
+          await ProfileService().cambiarContrasena(claveActual, nuevaClave);
+      return resultado;
+    } catch (e) {
+      // Manejo básico de errores, considera mejorar este aspecto
+      print("Error al cambiar la contraseña: $e");
+      return false;
+    }
+  }
+}

+ 158 - 0
lib/viewmodels/usuarios_view_model.dart

@@ -0,0 +1,158 @@
+import 'dart:convert';
+
+import 'package:flutter/material.dart';
+
+import '../models/models.dart';
+import '../services/base_service.dart';
+
+class UsuariosViewModel extends ChangeNotifier {
+  String _busqueda = "";
+  String get busqueda => _busqueda;
+  List<Usuario> _registros = [];
+  List<Usuario> get registros => _registros;
+  Usuario? _selectedModelo;
+  Usuario? get selectedModelo => _selectedModelo;
+  bool _isLoading = false;
+  bool get isLoading => _isLoading;
+
+  Map<String, bool> _selectedPermisos = {};
+  Map<String, bool> get selectedPermisos => _selectedPermisos;
+
+  Future<void> fetchRegistros() async {
+    Map<String, String> parametros = {
+      "ordenar": "id-desc",
+      "expand": "empresas"
+    };
+    if (_busqueda.isNotEmpty) {
+      parametros = {
+        "ordenar": "id-desc",
+        "limite": "-1",
+        "q": _busqueda,
+        "expand": "empresas"
+      };
+    }
+    var r =
+        await BaseService().get("admin/usuario", queryParameters: parametros);
+    Map<String, dynamic> resJson = jsonDecode(r.body);
+    try {
+      List<Usuario> aux = [];
+      if (r.statusCode == 200) {
+        for (var x in resJson['resultado']) {
+          Usuario modelo = Usuario.fromJson(x);
+          aux.add(modelo);
+        }
+      }
+      _registros = aux;
+      notifyListeners();
+    } catch (e) {
+      print(e);
+    }
+  }
+
+  Future<void> cargarPermisosUsuario(int usuarioId) async {
+    setIsLoading(true);
+    try {
+      var response = await BaseService().get("admin/usuario",
+          queryParameters: {'expand': 'permisos', 'id': '$usuarioId'});
+      Map<String, dynamic> resJson = jsonDecode(response.body);
+
+      List<dynamic> permisosUsuario = resJson['resultado'][0]['permisos'];
+      Map<String, bool> permisosActualizados = {};
+
+      for (var permiso in permisosUsuario) {
+        String permisoId = permiso.toString();
+        permisosActualizados[permisoId] = true;
+      }
+
+      _selectedPermisos = permisosActualizados;
+      // print(_selectedPermisos);
+      notifyListeners(); // Avisar a los widgets que escuchan sobre el cambio
+    } catch (e) {
+      print("Error al cargar los permisos del usuario: $e");
+    } finally {
+      setIsLoading(false);
+    }
+  }
+
+  void setSelectedPermisos(Map<String, bool> permisos) {
+    _selectedPermisos = permisos;
+    notifyListeners();
+  }
+
+  Future<void> guardarModelo({
+    required Usuario modelo,
+    required String nombre,
+    required String correo,
+    required String telefono,
+  }) async {
+    //?TEMPORAL
+    modelo.nombre = nombre;
+    modelo.correo = correo;
+    modelo.telefono = telefono;
+    modelo.creado = DateTime.now();
+    notifyListeners();
+  }
+
+  Future<void> guardarUsuario({
+    required Usuario modelo,
+    required String nombre,
+    required String correo,
+    required List<String> permisosSeleccionados,
+  }) async {
+    setIsLoading(true);
+    try {
+      var requestBody = {
+        'nombre': nombre,
+        'correo': correo,
+        'permisos': permisosSeleccionados,
+      };
+
+      if (modelo.id != null) {
+        requestBody['id'] = modelo.id;
+      }
+
+      var r =
+          await BaseService().post("admin/usuario/guardar", body: requestBody);
+      if (r.statusCode == 200) {
+        print('Usuario guardado exitosamente');
+      } else {
+        throw Exception('Error al guardar el usuario: ${r.statusCode}');
+      }
+    } catch (e) {
+      print('Error al guardar el usuario: $e');
+    } finally {
+      setIsLoading(false);
+    }
+  }
+
+  bool validarUsuario({
+    required String nombre,
+    required String correo,
+  }) {
+    if (nombre.isEmpty || correo.isEmpty) {
+      return false;
+    }
+    return true;
+  }
+
+  setIsLoading(bool loading) {
+    _isLoading = loading;
+    notifyListeners();
+  }
+
+  selectUsuario(Usuario? usuario) {
+    _selectedModelo = usuario;
+    notifyListeners();
+  }
+
+  setBusqueda(String value) {
+    _busqueda = value;
+    notifyListeners();
+  }
+
+  Future usuarioEmpresa(int idUsuario, String idEmpresa) async {
+    var r = await BaseService().post("admin/usuario/usuario-empresa",
+        body: {"idUsuario": idUsuario, "idEmpresa": idEmpresa});
+    if (r.statusCode == 200) {}
+  }
+}

+ 3 - 0
lib/viewmodels/viewmodels.dart

@@ -0,0 +1,3 @@
+export '../viewmodels/login_view_model.dart';
+export '../viewmodels/usuarios_view_model.dart';
+export '../viewmodels/profile_view_model.dart';

+ 43 - 0
lib/views/home/home_screen.dart

@@ -0,0 +1,43 @@
+import 'package:flutter/material.dart';
+import 'package:yoshi_papas_app/widgets/widgets.dart';
+import 'package:provider/provider.dart';
+
+import '../../viewmodels/login_view_model.dart';
+
+class HomeScreen extends StatefulWidget {
+  const HomeScreen({super.key});
+
+  @override
+  Formulario createState() => Formulario();
+}
+
+class Formulario extends State<HomeScreen> {
+  @override
+  void initState() {
+    super.initState();
+    Future(() async {
+      await Provider.of<LoginViewModel>(context, listen: false).setValores();
+    });
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    String nombre = Provider.of<LoginViewModel>(context).nombre;
+    String correo = Provider.of<LoginViewModel>(context).correo;
+    return Scaffold(
+      backgroundColor: Colors.grey.shade200,
+      drawer: AppDrawer(),
+      appBar: AppBar(
+        elevation: 0,
+        title: const Text('Inicio'),
+        actions: [usuarioHeader(nombre, correo)],
+      ),
+      body: const Center(
+        child: Image(
+          image: AssetImage('assets/JoshiLogo.png'),
+          height: 200,
+        ),
+      ),
+    );
+  }
+}

+ 170 - 0
lib/views/login/login_screen.dart

@@ -0,0 +1,170 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+
+import '../../themes/themes.dart';
+import '../../viewmodels/viewmodels.dart';
+import '../../widgets/widgets.dart';
+
+class LoginScreen extends StatefulWidget {
+  const LoginScreen({Key? key}) : super(key: key);
+
+  @override
+  State<LoginScreen> createState() => _LoginScreenState();
+}
+
+class _LoginScreenState extends State<LoginScreen> {
+  final _correo = TextEditingController();
+  final _pass = TextEditingController();
+
+  @override
+  void dispose() {
+    super.dispose();
+    _correo.dispose();
+    _pass.dispose();
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    final size = MediaQuery.sizeOf(context);
+    final loginViewModel = Provider.of<LoginViewModel>(context);
+    final obscureText = loginViewModel.obscureText;
+    final errores = loginViewModel.errores;
+
+    return Scaffold(
+      backgroundColor: Color.fromRGBO(245, 245, 245, 1),
+      body: SingleChildScrollView(
+        child: Padding(
+          padding: const EdgeInsets.all(8.0),
+          child: Column(
+            mainAxisAlignment: MainAxisAlignment.center,
+            children: [
+              SizedBox(height: size.width < 1200 ? 20 : 100),
+              const Image(
+                image: AssetImage('assets/JoshiLogoHorizontal.png'),
+                height: 250,
+              ),
+              const Text(
+                'Inicie sesión para acceder al sistema',
+                style: TextStyle(fontSize: 26, fontWeight: FontWeight.bold),
+                textAlign: TextAlign.center,
+              ),
+              const SizedBox(height: 20),
+              SizedBox(
+                width: size.width < 1200 ? size.width : size.width * .35,
+                child: Card(
+                  elevation: 5,
+                  shape: RoundedRectangleBorder(
+                      borderRadius: BorderRadius.circular(15)),
+                  child: Padding(
+                    padding: const EdgeInsets.all(15),
+                    child: Column(
+                      children: [
+                        //CORREO ELECTRONICO
+                        AppTextField(
+                          autofillHints: [AutofillHints.username],
+                          prefixIcon: const Icon(Icons.mail),
+                          etiqueta: 'Correo electrónico',
+                          hintText: 'Introduzca su correo electrónico',
+                          errorText: errores?['correo'],
+                          controller: _correo,
+                          keyboardType: TextInputType.emailAddress,
+                        ),
+                        const SizedBox(height: 15),
+                        //CONTRASEÑA
+                        AppTextField(
+                          autofillHints: [AutofillHints.newPassword],
+                          maxLines: 1,
+                          obscureText: obscureText,
+                          prefixIcon: const Icon(Icons.lock),
+                          suffixIcon: IconButton(
+                            onPressed: () {
+                              loginViewModel.showPassword();
+                            },
+                            icon: obscureText
+                                ? const Icon(Icons.remove_red_eye_outlined)
+                                : const Icon(Icons.remove_red_eye),
+                          ),
+                          onSubmitted: (v) async {
+                            if (v.isEmpty) return;
+                            await loginViewModel.login(
+                                _correo.text, _pass.text);
+                          },
+                          etiqueta: 'Contraseña',
+                          hintText: 'Introduzca su contraseña',
+                          errorText: errores?['clave'],
+                          controller: _pass,
+                          keyboardType: TextInputType.visiblePassword,
+                        ),
+                      ],
+                    ),
+                  ),
+                ),
+              ),
+              const SizedBox(height: 20),
+              Align(
+                alignment: Alignment.center,
+                child: SizedBox(
+                  height: 75,
+                  width: 380,
+                  child: ElevatedButton(
+                    style: ButtonStyle(
+                      shape: MaterialStatePropertyAll(
+                        RoundedRectangleBorder(
+                          borderRadius: BorderRadius.circular(10),
+                        ),
+                      ),
+                      backgroundColor:
+                          MaterialStatePropertyAll(AppTheme.secondary),
+                    ),
+                    onPressed: () async {
+                      await loginViewModel.login(_correo.text, _pass.text);
+                      String mensaje = "";
+                      if (loginViewModel.errores!["correo"] != null) {
+                        mensaje += "\n${loginViewModel.errores!["correo"]}";
+                      }
+                      if (loginViewModel.errores!["pass"] != null) {
+                        mensaje += "\n${loginViewModel.errores!["pass"]}";
+                      }
+                      if (mensaje.isNotEmpty && context.mounted) {
+                        return showDialog(
+                          context: context,
+                          builder: (context) {
+                            return AlertDialog(
+                              title: const Text("Alerta"),
+                              content: Text(mensaje),
+                              actions: [
+                                Row(children: [
+                                  Expanded(
+                                      child: TextButton(
+                                    onPressed: () async {
+                                      Navigator.pop(context);
+                                    },
+                                    child: const Text('Continuar'),
+                                  ))
+                                ])
+                              ],
+                            );
+                          },
+                        );
+                      }
+                    },
+                    child: const Row(
+                      mainAxisAlignment: MainAxisAlignment.center,
+                      children: [
+                        Text(
+                          'Iniciar Sesión',
+                          style: TextStyle(fontSize: 18, color: Colors.white),
+                        ),
+                      ],
+                    ),
+                  ),
+                ),
+              ),
+              const SizedBox(height: 20),
+            ],
+          ),
+        ),
+      ),
+    );
+  }
+}

+ 47 - 0
lib/views/main/main_screen.dart

@@ -0,0 +1,47 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+
+import '../../viewmodels/viewmodels.dart';
+import '../../views/login/login_screen.dart';
+import '../home/home_screen.dart';
+
+class MainScreen extends StatefulWidget {
+  const MainScreen({super.key});
+
+  @override
+  MainScreenState createState() => MainScreenState();
+}
+
+class MainScreenState extends State<MainScreen> {
+  @override
+  void initState() {
+    super.initState();
+    Future(() async {
+      Provider.of<LoginViewModel>(context, listen: false).checkSession();
+    });
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    return Consumer(builder: (context, LoginViewModel login, _) {
+      switch (login.status) {
+        case Status.uninitialized:
+          return const Scaffold(
+            body: Center(
+              child: CircularProgressIndicator(),
+            ),
+          );
+        case Status.unauthenticated:
+          return const LoginScreen();
+        case Status.authenticating:
+          return const Scaffold(
+            body: Center(
+              child: CircularProgressIndicator(),
+            ),
+          );
+        case Status.authenticated:
+          return const HomeScreen();
+      }
+    });
+  }
+}

+ 703 - 0
lib/views/pedido/pedido_form.dart

@@ -0,0 +1,703 @@
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:yoshi_papas_app/widgets/widgets.dart';
+import '../../themes/themes.dart';
+
+class PedidoForm extends StatefulWidget {
+  @override
+  _PedidoFormState createState() => _PedidoFormState();
+}
+
+enum CustomizationStep { Base, Salsa, Aderezo, Toppings }
+
+class _PedidoFormState extends State<PedidoForm> {
+  Map<String, bool> baseOptions = {};
+  Map<String, bool> sauceOptions = {};
+  Map<String, bool> dressingOptions = {};
+  Map<String, bool> toppingOptions = {};
+  bool isCustomizingProduct = false;
+  Map<String, dynamic>? currentProductForCustomization;
+  String? selectedBase;
+  List<String> selectedSauce = [];
+  List<String> selectedDressing = [];
+  List<String> selectedToppings = [];
+  List<Map<String, dynamic>> productsInCart = [];
+  String currentCategory = 'Hamburguesa de pollo';
+
+  Map<String, List<Map<String, dynamic>>> categoryProducts = {
+    'Hamburguesa de pollo': [
+      {
+        'name': 'Rebanada de queso',
+        'price': 25,
+        'category': 'Hamburguesa de pollo'
+      },
+      {
+        'name': 'Porción de queso',
+        'price': 15,
+        'category': 'Hamburguesa de pollo'
+      },
+      {
+        'name': 'Hamburguesa de pollo',
+        'price': 110,
+        'category': 'Hamburguesa de pollo'
+      },
+    ],
+    'Postres': [
+      {'name': 'Muffin', 'price': 35, 'category': 'Postres'},
+      {'name': 'Rebanada de Pay de Nuez', 'price': 65, 'category': 'Postres'},
+    ],
+    'Cono de papas': [
+      {
+        'name': 'Cono de papas grande',
+        'price': 120,
+        'category': 'Cono de papas'
+      },
+      {
+        'name': 'Cono de papas mediano',
+        'price': 85,
+        'category': 'Cono de papas'
+      },
+    ],
+  };
+  List<Map<String, dynamic>> products = [];
+
+  CustomizationStep _currentStep = CustomizationStep.Base;
+  late Map<CustomizationStep, Widget> _stepWidgets;
+
+  @override
+  void initState() {
+    super.initState();
+    // Inicializa con la categoría actual
+    products = categoryProducts[currentCategory]!;
+    initializeCheckboxStates();
+    _stepWidgets = {
+      CustomizationStep.Base: _buildBaseOptions(),
+      CustomizationStep.Salsa: _buildSauceOptions(),
+      CustomizationStep.Aderezo: _buildDressingOptions(),
+      CustomizationStep.Toppings: _buildToppingsOptions(),
+    };
+  }
+
+  void customizeProduct(Map<String, dynamic> product) {
+    if (product['category'] == 'Cono de papas') {
+      setState(() {
+        isCustomizingProduct = true;
+        currentProductForCustomization = product;
+      });
+    } else {
+      addToCart(product);
+    }
+  }
+
+  void initializeCheckboxStates() {
+    // Inicializa los mapas de opciones con valores false
+    for (var base in [
+      'Papa Gajo',
+      'Papa Regilla',
+      'Papa Curly',
+      'Papa Smile',
+      'Papa Francesa'
+    ]) {
+      baseOptions[base] = false;
+    }
+    for (var sauce in [
+      'BBQ',
+      'HOTBBQ',
+      'BUFFALO',
+      'TERIYAKI',
+      'PARMESAN GARLIC',
+      'MANGO HABANERO'
+    ]) {
+      sauceOptions[sauce] = false;
+    }
+    for (var dressing in ['QUESO AMARILLO', 'RANCH', 'CHIPOTLE', 'KETCHUP']) {
+      dressingOptions[dressing] = false;
+    }
+    for (var topping in [
+      'JALAPEÑO',
+      'QUESO BLANCO',
+      'TAKIS',
+      'RUFFLES',
+      'QUESO PARMESANO',
+      'ELOTE'
+    ]) {
+      toppingOptions[topping] = false;
+    }
+  }
+
+  void addToCart(Map<String, dynamic> product) {
+    // Si es un "Cono de papas" y estamos personalizando
+    if (product['category'] == 'Cono de papas' && isCustomizingProduct) {
+      final Map<String, dynamic> customizedProduct = {
+        ...product,
+        'customizations': {
+          'base': selectedBase,
+          'sauce': selectedSauce,
+          'dressing': selectedDressing,
+          'toppings': selectedToppings,
+        },
+        'quantity':
+            1, // Asegúrate de que cada producto personalizado tenga una cantidad inicial de 1
+      };
+
+      setState(() {
+        productsInCart
+            .add(customizedProduct); // Añade el producto personalizado
+        isCustomizingProduct = false; // Termina la personalización
+        resetCustomizations(); // Llama a un método que restablecerá las personalizaciones
+      });
+    } else {
+      // Si no es un "Cono de papas" o no estamos personalizando, añade directamente al carrito
+      setState(() {
+        int index = productsInCart.indexWhere((p) =>
+            p['name'] == product['name'] &&
+            p['customizations'] ==
+                product[
+                    'customizations']); // Comparar también las personalizaciones
+        if (index != -1) {
+          productsInCart[index]['quantity'] += 1;
+        } else {
+          productsInCart.add(
+              {...product, 'quantity': 1}); // Añade con cantidad inicial de 1
+        }
+      });
+    }
+  }
+
+  void resetCustomizations() {
+    // Restablece las variables de estado de las personalizaciones
+    selectedBase = null;
+    selectedSauce = [];
+    selectedDressing = [];
+    selectedToppings = [];
+    // Restablecer cualquier otro estado de personalización aquí
+  }
+
+  void finalizeCustomization() {
+    // Aquí debes construir el producto basado en las selecciones de personalización
+
+    selectedBase = baseOptions.entries
+        .firstWhere((entry) => entry.value, orElse: () => MapEntry('', false))
+        .key;
+    selectedSauce = sauceOptions.entries
+        .where((entry) => entry.value)
+        .map((e) => e.key)
+        .toList();
+    selectedDressing = dressingOptions.entries
+        .where((entry) => entry.value)
+        .map((e) => e.key)
+        .toList();
+    selectedToppings = toppingOptions.entries
+        .where((entry) => entry.value)
+        .map((e) => e.key)
+        .toList();
+
+    Map<String, dynamic> customizedProduct = {
+      ...currentProductForCustomization!,
+      'customizations': {
+        'base': selectedBase,
+        'sauce': selectedSauce,
+        'dressing': selectedDressing,
+        'toppings': selectedToppings,
+      }
+    };
+
+    addToCart(customizedProduct);
+    setState(() {
+      isCustomizingProduct = false;
+      currentProductForCustomization = null;
+      initializeCheckboxStates(); // Reinicia los estados de los checkbox
+    });
+  }
+
+  Widget buildCategoryButtons() {
+    return Row(
+      mainAxisAlignment: MainAxisAlignment.center,
+      children: categoryProducts.keys.map((String key) {
+        return Padding(
+          padding: const EdgeInsets.symmetric(horizontal: 4.0),
+          child: OutlinedButton(
+            onPressed: () {
+              setState(() {
+                currentCategory = key;
+                products = categoryProducts[key]!;
+              });
+            },
+            style: OutlinedButton.styleFrom(
+              backgroundColor: Colors.white,
+              foregroundColor: Colors.black,
+              side: BorderSide(
+                width: 2.0,
+                color: currentCategory == key ? AppTheme.primary : Colors.grey,
+              ),
+            ),
+            child: Text(key),
+          ),
+        );
+      }).toList(),
+    );
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    return Scaffold(
+      appBar: encabezado(
+        titulo: "CREAR PEDIDO",
+      ),
+      body: Row(
+        children: [
+          // Sección izquierda con la lista del carrito - 30%
+          Flexible(
+            flex: 3,
+            child: tarjeta(
+              Column(
+                children: [
+                  // Encabezados de la lista
+                  const Padding(
+                    padding:
+                        EdgeInsets.symmetric(horizontal: 8.0, vertical: 16.0),
+                    child: Row(
+                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
+                      children: [
+                        Text('Producto',
+                            style: TextStyle(
+                                fontWeight: FontWeight.bold, fontSize: 18)),
+                        Text('Cantidad',
+                            style: TextStyle(
+                                fontWeight: FontWeight.bold, fontSize: 18)),
+                      ],
+                    ),
+                  ),
+                  // Lista de productos
+                  Expanded(
+                    child: ListView.builder(
+                      itemCount: productsInCart.length,
+                      itemBuilder: (context, index) {
+                        var product = productsInCart[index];
+                        return ListTile(
+                          title: _buildProductItem(product),
+                          trailing: Row(
+                            mainAxisSize: MainAxisSize.min,
+                            children: [
+                              IconButton(
+                                icon: const Icon(Icons.remove),
+                                onPressed: () {
+                                  // Lógica para disminuir la cantidad
+                                  setState(() {
+                                    if (product['quantity'] > 1) {
+                                      productsInCart[index]['quantity'] -= 1;
+                                    } else {
+                                      productsInCart.removeAt(index);
+                                    }
+                                  });
+                                },
+                              ),
+                              Text('${product['quantity'] ?? 1}'),
+                              IconButton(
+                                icon: const Icon(Icons.add),
+                                onPressed: () {
+                                  // Lógica para aumentar la cantidad
+                                  setState(() {
+                                    productsInCart[index]['quantity'] += 1;
+                                  });
+                                },
+                              ),
+                            ],
+                          ),
+                        );
+                      },
+                    ),
+                  ),
+                  ElevatedButton(
+                    style: ButtonStyle(
+                        backgroundColor:
+                            MaterialStatePropertyAll(AppTheme.primary),
+                        textStyle: const MaterialStatePropertyAll(
+                            TextStyle(fontSize: 22)),
+                        foregroundColor:
+                            const MaterialStatePropertyAll(Colors.black),
+                        padding: const MaterialStatePropertyAll(
+                            EdgeInsets.fromLTRB(80, 20, 80, 20))),
+                    onPressed: () {
+                      // Aquí agregarías la lógica para guardar el pedido
+                    },
+                    child: const Text('Guardar'),
+                  ),
+                ],
+              ),
+              color: Colors.white,
+              padding: 8.0,
+            ),
+          ),
+
+          const SizedBox(
+            width: 35,
+          ),
+
+          // Sección derecha con los productos disponibles - 70%
+          Flexible(
+            flex: 7,
+            child: Column(
+              children: [
+                // Botones de categorías de productos
+                buildCategoryButtons(),
+
+                // GridView de productos
+                Expanded(
+                  child: isCustomizingProduct
+                      ? buildCustomizationOptions()
+                      : buildProductGrid(),
+                ),
+              ],
+            ),
+          ),
+        ],
+      ),
+    );
+  }
+
+  Widget _buildProductItem(Map<String, dynamic> product) {
+    List<Widget> customizationWidgets = [];
+    if (product.containsKey('customizations')) {
+      Map customizations = product['customizations'];
+      customizationWidgets.addAll([
+        Text(' - Base: ${customizations['base']}'),
+        ...customizations['sauce']
+            .map<Widget>((sauce) => Text(' - Salsa: $sauce'))
+            .toList(),
+        ...customizations['dressing']
+            .map<Widget>((dressing) => Text(' - Aderezo: $dressing'))
+            .toList(),
+        ...customizations['toppings']
+            .map<Widget>((topping) => Text(' - Topping: $topping'))
+            .toList(),
+      ]);
+    }
+
+    return Column(
+      crossAxisAlignment: CrossAxisAlignment.start,
+      children: [
+        Text(product['name']),
+        ...customizationWidgets,
+      ],
+    );
+  }
+
+  Widget buildProductGrid() {
+    return tarjeta(
+      GridView.builder(
+        itemCount: products.length,
+        gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
+          crossAxisCount: 2, // Número de columnas
+          childAspectRatio: 3 / 2, // Proporción de cada tarjeta
+          crossAxisSpacing: 10, // Espaciado horizontal
+          mainAxisSpacing: 10, // Espaciado vertical
+        ),
+        itemBuilder: (context, index) {
+          final product = products[index];
+          return tarjeta(
+            InkWell(
+              onTap: () => customizeProduct(product),
+              child: Column(
+                mainAxisAlignment: MainAxisAlignment.center,
+                children: [
+                  // Añade el ícono aquí
+                  const Icon(Icons.fastfood,
+                      size: 80), // Tamaño del ícono ajustable
+                  const SizedBox(height: 8), // Espacio entre ícono y texto
+                  Text(
+                    product['name'],
+                    style: const TextStyle(fontSize: 16),
+                    textAlign: TextAlign.center,
+                  ),
+                  const SizedBox(height: 8), // Espacio entre texto y precio
+                  Text(
+                    '\$${product['price']}',
+                    style:
+                        const TextStyle(fontSize: 24, color: Color(0xFF008000)),
+                    textAlign: TextAlign.center,
+                  ),
+                ],
+              ),
+            ),
+            color: const Color(0xFFF4F4F4),
+            padding: 8.0,
+          );
+        },
+      ),
+      color: Colors.white,
+      padding: 8.0,
+    );
+  }
+
+  Widget buildCustomizationOptions() {
+    Widget currentStepWidget;
+    switch (_currentStep) {
+      case CustomizationStep.Base:
+        currentStepWidget = _buildBaseOptions();
+        break;
+      case CustomizationStep.Salsa:
+        currentStepWidget = _buildSauceOptions();
+        break;
+      case CustomizationStep.Aderezo:
+        currentStepWidget = _buildDressingOptions();
+        break;
+      case CustomizationStep.Toppings:
+        currentStepWidget = _buildToppingsOptions();
+        break;
+      default:
+        currentStepWidget = SizedBox.shrink();
+    }
+
+    // Solo muestra el botón de confirmación si isCustomizingProduct es true.
+    Widget confirmButton = isCustomizingProduct
+        ? Padding(
+            padding: const EdgeInsets.symmetric(vertical: 16.0),
+            child: _buildConfirmButton(),
+          )
+        : SizedBox.shrink();
+
+    return tarjeta(
+      Column(
+        children: [
+          Expanded(
+            child: Row(
+              children: [
+                Flexible(
+                  flex: 3,
+                  child: ListView(
+                    children: CustomizationStep.values.map((step) {
+                      // Verifica si el paso es Salsa, Aderezo o Toppings para añadir el texto " (Max 2)"
+                      String stepName = describeEnum(step);
+                      if (step == CustomizationStep.Salsa ||
+                          step == CustomizationStep.Aderezo ||
+                          step == CustomizationStep.Toppings) {
+                        stepName +=
+                            " (Max 2)"; // Agrega " (Max 2)" al nombre del paso+
+                      }
+
+                      return ListTile(
+                        title: Text(stepName),
+                        selected: _currentStep == step,
+                        onTap: () => setState(() => _currentStep = step),
+                      );
+                    }).toList(),
+                  ),
+                ),
+                Flexible(
+                  flex: 7,
+                  child: currentStepWidget,
+                ),
+              ],
+            ),
+          ),
+          Padding(
+            padding: const EdgeInsets.symmetric(vertical: 16.0),
+            child: _buildConfirmButton(),
+          ), // Incluir el botón de confirmación aquí
+        ],
+      ),
+      color: Colors.white,
+      padding: 8.0,
+    );
+  }
+
+  Widget buildCheckboxListTile({
+    required String title,
+    required Map<String, bool> optionsMap,
+    required Function(String, bool?) onChanged,
+  }) {
+    return CheckboxListTile(
+      title: Text(title),
+      value: optionsMap[title] ?? false,
+      onChanged: (bool? value) {
+        setState(() {
+          onChanged(title, value);
+        });
+      },
+      secondary: Image.asset('assets/JoshiLogo.png', width: 30),
+    );
+  }
+
+  Widget _buildBaseOptions() {
+    return GridView.count(
+      crossAxisCount: 3,
+      children: baseOptions.keys.map((String key) {
+        bool isSelected =
+            baseOptions[key] ?? false; // Determina si está seleccionado
+        return GestureDetector(
+          onTap: () {
+            setState(() {
+              baseOptions.keys.forEach(
+                  (k) => baseOptions[k] = false); // Desmarca todos primero
+              baseOptions[key] = true; // Marca el seleccionado
+            });
+          },
+          child: Container(
+            decoration: BoxDecoration(
+              color: isSelected ? AppTheme.primary : const Color(0xFFF4F4F4),
+              border: Border.all(color: isSelected ? Colors.red : Colors.grey),
+            ),
+            child: Center(
+              child: Text(key,
+                  style: TextStyle(
+                      color: isSelected ? Colors.white : Colors.black)),
+            ),
+          ),
+        );
+      }).toList(),
+    );
+  }
+
+  Widget _buildSauceOptions() {
+    return GridView.count(
+      crossAxisCount: 3,
+      children: sauceOptions.keys.map((String key) {
+        bool isSelected = sauceOptions[key] ?? false;
+        return GestureDetector(
+          onTap: () {
+            int selectedCount = sauceOptions.values.where((b) => b).length;
+            setState(() {
+              // Si la salsa ya está seleccionada, la deselecciona.
+              if (isSelected) {
+                sauceOptions[key] = false;
+              } else {
+                // Si se están seleccionando menos de 2 salsas, permite esta selección.
+                if (selectedCount < 2) {
+                  sauceOptions[key] = true;
+                } else {
+                  // Si ya hay 2 salsas seleccionadas, primero deselecciona la primera seleccionada.
+                  final firstSelected = sauceOptions.keys.firstWhere(
+                    (k) => sauceOptions[k]!,
+                    orElse: () => '',
+                  );
+                  if (firstSelected.isNotEmpty) {
+                    sauceOptions[firstSelected] = false;
+                    sauceOptions[key] = true;
+                  }
+                }
+              }
+            });
+          },
+          child: Container(
+            decoration: BoxDecoration(
+              color: isSelected ? AppTheme.primary : const Color(0xFFF4F4F4),
+              border: Border.all(color: Colors.grey),
+            ),
+            child: Center(
+              child: Text(key,
+                  style: TextStyle(
+                      color: isSelected ? Colors.white : Colors.black)),
+            ),
+          ),
+        );
+      }).toList(),
+    );
+  }
+
+  Widget _buildDressingOptions() {
+    return GridView.count(
+      crossAxisCount: 3,
+      children: dressingOptions.keys.map((String key) {
+        bool isSelected = dressingOptions[key] ?? false;
+        return GestureDetector(
+          onTap: () {
+            int selectedCount = dressingOptions.values.where((b) => b).length;
+            setState(() {
+              // Si la salsa ya está seleccionada, la deselecciona.
+              if (isSelected) {
+                dressingOptions[key] = false;
+              } else {
+                // Si se están seleccionando menos de 2 salsas, permite esta selección.
+                if (selectedCount < 2) {
+                  dressingOptions[key] = true;
+                } else {
+                  // Si ya hay 2 salsas seleccionadas, primero deselecciona la primera seleccionada.
+                  final firstSelected = dressingOptions.keys.firstWhere(
+                    (k) => dressingOptions[k]!,
+                    orElse: () => '',
+                  );
+                  if (firstSelected.isNotEmpty) {
+                    dressingOptions[firstSelected] = false;
+                    dressingOptions[key] = true;
+                  }
+                }
+              }
+            });
+          },
+          child: Container(
+            decoration: BoxDecoration(
+              color: isSelected ? AppTheme.primary : const Color(0xFFF4F4F4),
+              border: Border.all(color: Colors.grey),
+            ),
+            child: Center(
+              child: Text(key,
+                  style: TextStyle(
+                      color: isSelected ? Colors.white : Colors.black)),
+            ),
+          ),
+        );
+      }).toList(),
+    );
+  }
+
+  Widget _buildToppingsOptions() {
+    return GridView.count(
+      crossAxisCount: 3,
+      children: toppingOptions.keys.map((String key) {
+        bool isSelected = toppingOptions[key] ?? false;
+        return GestureDetector(
+          onTap: () {
+            int selectedCount = toppingOptions.values.where((b) => b).length;
+            setState(() {
+              // Si la salsa ya está seleccionada, la deselecciona.
+              if (isSelected) {
+                toppingOptions[key] = false;
+              } else {
+                // Si se están seleccionando menos de 2 salsas, permite esta selección.
+                if (selectedCount < 2) {
+                  toppingOptions[key] = true;
+                } else {
+                  // Si ya hay 2 salsas seleccionadas, primero deselecciona la primera seleccionada.
+                  final firstSelected = toppingOptions.keys.firstWhere(
+                    (k) => toppingOptions[k]!,
+                    orElse: () => '',
+                  );
+                  if (firstSelected.isNotEmpty) {
+                    toppingOptions[firstSelected] = false;
+                    toppingOptions[key] = true;
+                  }
+                }
+              }
+            });
+          },
+          child: Container(
+            decoration: BoxDecoration(
+              color: isSelected ? AppTheme.primary : const Color(0xFFF4F4F4),
+              border: Border.all(color: Colors.grey),
+            ),
+            child: Center(
+              child: Text(key,
+                  style: TextStyle(
+                      color: isSelected ? Colors.white : Colors.black)),
+            ),
+          ),
+        );
+      }).toList(),
+    );
+  }
+
+  Widget _buildConfirmButton() {
+    return ElevatedButton(
+      style: ElevatedButton.styleFrom(
+          primary: AppTheme.primary, // Color del botón
+          onPrimary: Colors.black,
+          textStyle: const TextStyle(fontSize: 22),
+          padding: const EdgeInsets.fromLTRB(80, 20, 80, 20)),
+      onPressed: () {
+        finalizeCustomization(); // Este método creará el pedido personalizado
+      },
+      child: Text('Confirmar Pedido'),
+    );
+  }
+}

+ 0 - 0
lib/views/pedido/pedido_screen.dart


Некоторые файлы не были показаны из-за большого количества измененных файлов