From 46760c895e5728dd7f07dad066b274658e6bfc51 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:24:50 +0500 Subject: [PATCH 001/158] feat: font family localization assets --- evently/.gitignore | 43 ++ evently/.metadata | 45 ++ evently/README.md | 16 + evently/analysis_options.yaml | 28 + evently/android/.gitignore | 13 + evently/android/app/build.gradle | 67 ++ .../android/app/src/main/AndroidManifest.xml | 44 ++ .../com/example/evently/MainActivity.kt | 5 + .../res/drawable-v21/launch_background.xml | 12 + .../main/res/drawable/launch_background.xml | 12 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 544 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 442 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 721 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 1031 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 1443 bytes .../app/src/main/res/values-night/styles.xml | 18 + .../app/src/main/res/values/styles.xml | 18 + .../app/src/profile/AndroidManifest.xml | 7 + evently/android/build.gradle | 18 + evently/android/gradle.properties | 3 + .../gradle/wrapper/gradle-wrapper.properties | 5 + evently/android/settings.gradle | 26 + evently/assets/fonts/UniversalSans-300.ttf | Bin 0 -> 15368 bytes evently/assets/fonts/UniversalSans-400.ttf | Bin 0 -> 15372 bytes evently/assets/fonts/UniversalSans-500.ttf | Bin 0 -> 15364 bytes evently/assets/fonts/UniversalSans-600.ttf | Bin 0 -> 15372 bytes evently/assets/fonts/UniversalSans-750.ttf | Bin 0 -> 15360 bytes evently/i18n/de.json | 2 + evently/i18n/en-US.json | 2 + evently/i18n/es.json | 2 + evently/i18n/ru-RU.json | 2 + evently/ios/.gitignore | 34 + evently/ios/Flutter/AppFrameworkInfo.plist | 26 + evently/ios/Flutter/Debug.xcconfig | 2 + evently/ios/Flutter/Release.xcconfig | 2 + evently/ios/Podfile | 44 ++ evently/ios/Runner.xcodeproj/project.pbxproj | 619 +++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/WorkspaceSettings.xcsettings | 8 + .../xcshareddata/xcschemes/Runner.xcscheme | 98 +++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/WorkspaceSettings.xcsettings | 8 + evently/ios/Runner/AppDelegate.swift | 13 + .../AppIcon.appiconset/Contents.json | 122 +++ .../Icon-App-1024x1024@1x.png | Bin 0 -> 10932 bytes .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin 0 -> 295 bytes .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin 0 -> 406 bytes .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin 0 -> 450 bytes .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin 0 -> 282 bytes .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin 0 -> 462 bytes .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin 0 -> 704 bytes .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin 0 -> 406 bytes .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin 0 -> 586 bytes .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin 0 -> 862 bytes .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin 0 -> 862 bytes .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin 0 -> 1674 bytes .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin 0 -> 762 bytes .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin 0 -> 1226 bytes .../Icon-App-83.5x83.5@2x.png | Bin 0 -> 1418 bytes .../LaunchImage.imageset/Contents.json | 23 + .../LaunchImage.imageset/LaunchImage.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/LaunchImage@2x.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/LaunchImage@3x.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/README.md | 5 + .../Runner/Base.lproj/LaunchScreen.storyboard | 37 + evently/ios/Runner/Base.lproj/Main.storyboard | 26 + evently/ios/Runner/Info.plist | 49 ++ evently/ios/Runner/Runner-Bridging-Header.h | 1 + evently/ios/RunnerTests/RunnerTests.swift | 12 + evently/lib/main.dart | 22 + evently/linux/.gitignore | 1 + evently/linux/CMakeLists.txt | 145 ++++ evently/linux/flutter/CMakeLists.txt | 88 +++ .../flutter/generated_plugin_registrant.cc | 11 + .../flutter/generated_plugin_registrant.h | 15 + evently/linux/flutter/generated_plugins.cmake | 23 + evently/linux/main.cc | 6 + evently/linux/my_application.cc | 124 +++ evently/linux/my_application.h | 18 + evently/macos/.gitignore | 7 + evently/macos/Flutter/Flutter-Debug.xcconfig | 2 + .../macos/Flutter/Flutter-Release.xcconfig | 2 + .../Flutter/GeneratedPluginRegistrant.swift | 12 + evently/macos/Podfile | 43 ++ .../macos/Runner.xcodeproj/project.pbxproj | 705 ++++++++++++++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/xcschemes/Runner.xcscheme | 98 +++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + evently/macos/Runner/AppDelegate.swift | 9 + .../AppIcon.appiconset/Contents.json | 68 ++ .../AppIcon.appiconset/app_icon_1024.png | Bin 0 -> 102994 bytes .../AppIcon.appiconset/app_icon_128.png | Bin 0 -> 5680 bytes .../AppIcon.appiconset/app_icon_16.png | Bin 0 -> 520 bytes .../AppIcon.appiconset/app_icon_256.png | Bin 0 -> 14142 bytes .../AppIcon.appiconset/app_icon_32.png | Bin 0 -> 1066 bytes .../AppIcon.appiconset/app_icon_512.png | Bin 0 -> 36406 bytes .../AppIcon.appiconset/app_icon_64.png | Bin 0 -> 2218 bytes evently/macos/Runner/Base.lproj/MainMenu.xib | 343 +++++++++ evently/macos/Runner/Configs/AppInfo.xcconfig | 14 + evently/macos/Runner/Configs/Debug.xcconfig | 2 + evently/macos/Runner/Configs/Release.xcconfig | 2 + .../macos/Runner/Configs/Warnings.xcconfig | 13 + .../macos/Runner/DebugProfile.entitlements | 12 + evently/macos/Runner/Info.plist | 32 + evently/macos/Runner/MainFlutterWindow.swift | 15 + evently/macos/Runner/Release.entitlements | 8 + evently/macos/RunnerTests/RunnerTests.swift | 12 + evently/pubspec.lock | 391 ++++++++++ evently/pubspec.yaml | 81 ++ evently/test/widget_test.dart | 30 + evently/web/favicon.png | Bin 0 -> 917 bytes evently/web/icons/Icon-192.png | Bin 0 -> 5292 bytes evently/web/icons/Icon-512.png | Bin 0 -> 8252 bytes evently/web/icons/Icon-maskable-192.png | Bin 0 -> 5594 bytes evently/web/icons/Icon-maskable-512.png | Bin 0 -> 20998 bytes evently/web/index.html | 59 ++ evently/web/manifest.json | 35 + evently/windows/.gitignore | 17 + evently/windows/CMakeLists.txt | 108 +++ evently/windows/flutter/CMakeLists.txt | 109 +++ .../flutter/generated_plugin_registrant.cc | 11 + .../flutter/generated_plugin_registrant.h | 15 + .../windows/flutter/generated_plugins.cmake | 23 + evently/windows/runner/CMakeLists.txt | 40 + evently/windows/runner/Runner.rc | 121 +++ evently/windows/runner/flutter_window.cpp | 71 ++ evently/windows/runner/flutter_window.h | 33 + evently/windows/runner/main.cpp | 43 ++ evently/windows/runner/resource.h | 16 + evently/windows/runner/resources/app_icon.ico | Bin 0 -> 33772 bytes evently/windows/runner/runner.exe.manifest | 20 + evently/windows/runner/utils.cpp | 65 ++ evently/windows/runner/utils.h | 19 + evently/windows/runner/win32_window.cpp | 288 +++++++ evently/windows/runner/win32_window.h | 102 +++ 138 files changed, 5119 insertions(+) create mode 100644 evently/.gitignore create mode 100644 evently/.metadata create mode 100644 evently/README.md create mode 100644 evently/analysis_options.yaml create mode 100644 evently/android/.gitignore create mode 100644 evently/android/app/build.gradle create mode 100644 evently/android/app/src/main/AndroidManifest.xml create mode 100644 evently/android/app/src/main/kotlin/com/example/evently/MainActivity.kt create mode 100644 evently/android/app/src/main/res/drawable-v21/launch_background.xml create mode 100644 evently/android/app/src/main/res/drawable/launch_background.xml create mode 100644 evently/android/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 evently/android/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 evently/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 evently/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 evently/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 evently/android/app/src/main/res/values-night/styles.xml create mode 100644 evently/android/app/src/main/res/values/styles.xml create mode 100644 evently/android/app/src/profile/AndroidManifest.xml create mode 100644 evently/android/build.gradle create mode 100644 evently/android/gradle.properties create mode 100644 evently/android/gradle/wrapper/gradle-wrapper.properties create mode 100644 evently/android/settings.gradle create mode 100644 evently/assets/fonts/UniversalSans-300.ttf create mode 100644 evently/assets/fonts/UniversalSans-400.ttf create mode 100644 evently/assets/fonts/UniversalSans-500.ttf create mode 100644 evently/assets/fonts/UniversalSans-600.ttf create mode 100644 evently/assets/fonts/UniversalSans-750.ttf create mode 100644 evently/i18n/de.json create mode 100644 evently/i18n/en-US.json create mode 100644 evently/i18n/es.json create mode 100644 evently/i18n/ru-RU.json create mode 100644 evently/ios/.gitignore create mode 100644 evently/ios/Flutter/AppFrameworkInfo.plist create mode 100644 evently/ios/Flutter/Debug.xcconfig create mode 100644 evently/ios/Flutter/Release.xcconfig create mode 100644 evently/ios/Podfile create mode 100644 evently/ios/Runner.xcodeproj/project.pbxproj create mode 100644 evently/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 evently/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme create mode 100644 evently/ios/Runner.xcworkspace/contents.xcworkspacedata create mode 100644 evently/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 evently/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 evently/ios/Runner/AppDelegate.swift create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png create mode 100644 evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png create mode 100644 evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json create mode 100644 evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png create mode 100644 evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png create mode 100644 evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png create mode 100644 evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md create mode 100644 evently/ios/Runner/Base.lproj/LaunchScreen.storyboard create mode 100644 evently/ios/Runner/Base.lproj/Main.storyboard create mode 100644 evently/ios/Runner/Info.plist create mode 100644 evently/ios/Runner/Runner-Bridging-Header.h create mode 100644 evently/ios/RunnerTests/RunnerTests.swift create mode 100644 evently/lib/main.dart create mode 100644 evently/linux/.gitignore create mode 100644 evently/linux/CMakeLists.txt create mode 100644 evently/linux/flutter/CMakeLists.txt create mode 100644 evently/linux/flutter/generated_plugin_registrant.cc create mode 100644 evently/linux/flutter/generated_plugin_registrant.h create mode 100644 evently/linux/flutter/generated_plugins.cmake create mode 100644 evently/linux/main.cc create mode 100644 evently/linux/my_application.cc create mode 100644 evently/linux/my_application.h create mode 100644 evently/macos/.gitignore create mode 100644 evently/macos/Flutter/Flutter-Debug.xcconfig create mode 100644 evently/macos/Flutter/Flutter-Release.xcconfig create mode 100644 evently/macos/Flutter/GeneratedPluginRegistrant.swift create mode 100644 evently/macos/Podfile create mode 100644 evently/macos/Runner.xcodeproj/project.pbxproj create mode 100644 evently/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 evently/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme create mode 100644 evently/macos/Runner.xcworkspace/contents.xcworkspacedata create mode 100644 evently/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 evently/macos/Runner/AppDelegate.swift create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png create mode 100644 evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png create mode 100644 evently/macos/Runner/Base.lproj/MainMenu.xib create mode 100644 evently/macos/Runner/Configs/AppInfo.xcconfig create mode 100644 evently/macos/Runner/Configs/Debug.xcconfig create mode 100644 evently/macos/Runner/Configs/Release.xcconfig create mode 100644 evently/macos/Runner/Configs/Warnings.xcconfig create mode 100644 evently/macos/Runner/DebugProfile.entitlements create mode 100644 evently/macos/Runner/Info.plist create mode 100644 evently/macos/Runner/MainFlutterWindow.swift create mode 100644 evently/macos/Runner/Release.entitlements create mode 100644 evently/macos/RunnerTests/RunnerTests.swift create mode 100644 evently/pubspec.lock create mode 100644 evently/pubspec.yaml create mode 100644 evently/test/widget_test.dart create mode 100644 evently/web/favicon.png create mode 100644 evently/web/icons/Icon-192.png create mode 100644 evently/web/icons/Icon-512.png create mode 100644 evently/web/icons/Icon-maskable-192.png create mode 100644 evently/web/icons/Icon-maskable-512.png create mode 100644 evently/web/index.html create mode 100644 evently/web/manifest.json create mode 100644 evently/windows/.gitignore create mode 100644 evently/windows/CMakeLists.txt create mode 100644 evently/windows/flutter/CMakeLists.txt create mode 100644 evently/windows/flutter/generated_plugin_registrant.cc create mode 100644 evently/windows/flutter/generated_plugin_registrant.h create mode 100644 evently/windows/flutter/generated_plugins.cmake create mode 100644 evently/windows/runner/CMakeLists.txt create mode 100644 evently/windows/runner/Runner.rc create mode 100644 evently/windows/runner/flutter_window.cpp create mode 100644 evently/windows/runner/flutter_window.h create mode 100644 evently/windows/runner/main.cpp create mode 100644 evently/windows/runner/resource.h create mode 100644 evently/windows/runner/resources/app_icon.ico create mode 100644 evently/windows/runner/runner.exe.manifest create mode 100644 evently/windows/runner/utils.cpp create mode 100644 evently/windows/runner/utils.h create mode 100644 evently/windows/runner/win32_window.cpp create mode 100644 evently/windows/runner/win32_window.h diff --git a/evently/.gitignore b/evently/.gitignore new file mode 100644 index 0000000000..29a3a5017f --- /dev/null +++ b/evently/.gitignore @@ -0,0 +1,43 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/evently/.metadata b/evently/.metadata new file mode 100644 index 0000000000..d2765fcbec --- /dev/null +++ b/evently/.metadata @@ -0,0 +1,45 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "54e66469a933b60ddf175f858f82eaeb97e48c8d" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: android + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: ios + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: linux + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: macos + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: web + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: windows + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/evently/README.md b/evently/README.md new file mode 100644 index 0000000000..1ccda2c495 --- /dev/null +++ b/evently/README.md @@ -0,0 +1,16 @@ +# evently + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/evently/analysis_options.yaml b/evently/analysis_options.yaml new file mode 100644 index 0000000000..0d2902135c --- /dev/null +++ b/evently/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/evently/android/.gitignore b/evently/android/.gitignore new file mode 100644 index 0000000000..6f568019d3 --- /dev/null +++ b/evently/android/.gitignore @@ -0,0 +1,13 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties +**/*.keystore +**/*.jks diff --git a/evently/android/app/build.gradle b/evently/android/app/build.gradle new file mode 100644 index 0000000000..5f7c9ab47a --- /dev/null +++ b/evently/android/app/build.gradle @@ -0,0 +1,67 @@ +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.evently" + compileSdk flutter.compileSdkVersion + ndkVersion flutter.ndkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.evently" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies {} diff --git a/evently/android/app/src/main/AndroidManifest.xml b/evently/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..3be49b050a --- /dev/null +++ b/evently/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/evently/android/app/src/main/kotlin/com/example/evently/MainActivity.kt b/evently/android/app/src/main/kotlin/com/example/evently/MainActivity.kt new file mode 100644 index 0000000000..3c7b264762 --- /dev/null +++ b/evently/android/app/src/main/kotlin/com/example/evently/MainActivity.kt @@ -0,0 +1,5 @@ +package com.example.evently + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() diff --git a/evently/android/app/src/main/res/drawable-v21/launch_background.xml b/evently/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000000..f74085f3f6 --- /dev/null +++ b/evently/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/evently/android/app/src/main/res/drawable/launch_background.xml b/evently/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000000..304732f884 --- /dev/null +++ b/evently/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/evently/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/evently/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 GIT binary patch literal 544 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY3?!3`olAj~WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!h8bpbvhu0Wd6uZuB!w&u2PAxD2eNXD>P5D~Wn-+_Wa#27Xc zC?Zj|6r#X(-D3u$NCt}(Ms06KgJ4FxJVv{GM)!I~&n8Bnc94O7-Hd)cjDZswgC;Qs zO=b+9!WcT8F?0rF7!Uys2bs@gozCP?z~o%U|N3vA*22NaGQG zlg@K`O_XuxvZ&Ks^m&R!`&1=spLvfx7oGDKDwpwW`#iqdw@AL`7MR}m`rwr|mZgU`8P7SBkL78fFf!WnuYWm$5Z0 zNXhDbCv&49sM544K|?c)WrFfiZvCi9h0O)B3Pgg&ebxsLQ05GG~ AQ2+n{ literal 0 HcmV?d00001 diff --git a/evently/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/evently/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be GIT binary patch literal 442 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xx&nMcT!A!W`0S9QKQy;}1Cl^CgaH=;G9cpY;r$Q>i*pfB zP2drbID<_#qf;rPZx^FqH)F_D#*k@@q03KywUtLX8Ua?`H+NMzkczFPK3lFz@i_kW%1NOn0|D2I9n9wzH8m|-tHjsw|9>@K=iMBhxvkv6m8Y-l zytQ?X=U+MF$@3 zt`~i=@j|6y)RWMK--}M|=T`o&^Ni>IoWKHEbBXz7?A@mgWoL>!*SXo`SZH-*HSdS+ yn*9;$7;m`l>wYBC5bq;=U}IMqLzqbYCidGC!)_gkIk_C@Uy!y&wkt5C($~2D>~)O*cj@FGjOCM)M>_ixfudOh)?xMu#Fs z#}Y=@YDTwOM)x{K_j*Q;dPdJ?Mz0n|pLRx{4n|)f>SXlmV)XB04CrSJn#dS5nK2lM zrZ9#~WelCp7&e13Y$jvaEXHskn$2V!!DN-nWS__6T*l;H&Fopn?A6HZ-6WRLFP=R` zqG+CE#d4|IbyAI+rJJ`&x9*T`+a=p|0O(+s{UBcyZdkhj=yS1>AirP+0R;mf2uMgM zC}@~JfByORAh4SyRgi&!(cja>F(l*O+nd+@4m$|6K6KDn_&uvCpV23&>G9HJp{xgg zoq1^2_p9@|WEo z*X_Uko@K)qYYv~>43eQGMdbiGbo>E~Q& zrYBH{QP^@Sti!`2)uG{irBBq@y*$B zi#&(U-*=fp74j)RyIw49+0MRPMRU)+a2r*PJ$L5roHt2$UjExCTZSbq%V!HeS7J$N zdG@vOZB4v_lF7Plrx+hxo7(fCV&}fHq)$ literal 0 HcmV?d00001 diff --git a/evently/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/evently/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c GIT binary patch literal 1031 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q8Ax83A=Cw=BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFa`(sgt!6~Yi|1%a`XoT0ojZ}lNrNjb9xjc(B0U1_% zz5^97Xt*%oq$rQy4?0GKNfJ44uvxI)gC`h-NZ|&0-7(qS@?b!5r36oQ}zyZrNO3 zMO=Or+<~>+A&uN&E!^Sl+>xE!QC-|oJv`ApDhqC^EWD|@=#J`=d#Xzxs4ah}w&Jnc z$|q_opQ^2TrnVZ0o~wh<3t%W&flvYGe#$xqda2bR_R zvPYgMcHgjZ5nSA^lJr%;<&0do;O^tDDh~=pIxA#coaCY>&N%M2^tq^U%3DB@ynvKo}b?yu-bFc-u0JHzced$sg7S3zqI(2 z#Km{dPr7I=pQ5>FuK#)QwK?Y`E`B?nP+}U)I#c1+FM*1kNvWG|a(TpksZQ3B@sD~b zpQ2)*V*TdwjFOtHvV|;OsiDqHi=6%)o4b!)x$)%9pGTsE z-JL={-Ffv+T87W(Xpooq<`r*VzWQcgBN$$`u}f>-ZQI1BB8ykN*=e4rIsJx9>z}*o zo~|9I;xof literal 0 HcmV?d00001 diff --git a/evently/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/evently/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 GIT binary patch literal 1443 zcmb`G{WsKk6vsdJTdFg%tJav9_E4vzrOaqkWF|A724Nly!y+?N9`YV6wZ}5(X(D_N(?!*n3`|_r0Hc?=PQw&*vnU?QTFY zB_MsH|!j$PP;I}?dppoE_gA(4uc!jV&0!l7_;&p2^pxNo>PEcNJv za5_RT$o2Mf!<+r?&EbHH6nMoTsDOa;mN(wv8RNsHpG)`^ymG-S5By8=l9iVXzN_eG%Xg2@Xeq76tTZ*dGh~Lo9vl;Zfs+W#BydUw zCkZ$o1LqWQO$FC9aKlLl*7x9^0q%0}$OMlp@Kk_jHXOjofdePND+j!A{q!8~Jn+s3 z?~~w@4?egS02}8NuulUA=L~QQfm;MzCGd)XhiftT;+zFO&JVyp2mBww?;QByS_1w! zrQlx%{^cMj0|Bo1FjwY@Q8?Hx0cIPF*@-ZRFpPc#bBw{5@tD(5%sClzIfl8WU~V#u zm5Q;_F!wa$BSpqhN>W@2De?TKWR*!ujY;Yylk_X5#~V!L*Gw~;$%4Q8~Mad z@`-kG?yb$a9cHIApZDVZ^U6Xkp<*4rU82O7%}0jjHlK{id@?-wpN*fCHXyXh(bLt* zPc}H-x0e4E&nQ>y%B-(EL=9}RyC%MyX=upHuFhAk&MLbsF0LP-q`XnH78@fT+pKPW zu72MW`|?8ht^tz$iC}ZwLp4tB;Q49K!QCF3@!iB1qOI=?w z7In!}F~ij(18UYUjnbmC!qKhPo%24?8U1x{7o(+?^Zu0Hx81|FuS?bJ0jgBhEMzf< zCgUq7r2OCB(`XkKcN-TL>u5y#dD6D!)5W?`O5)V^>jb)P)GBdy%t$uUMpf$SNV31$ zb||OojAbvMP?T@$h_ZiFLFVHDmbyMhJF|-_)HX3%m=CDI+ID$0^C>kzxprBW)hw(v zr!Gmda);ICoQyhV_oP5+C%?jcG8v+D@9f?Dk*!BxY}dazmrT@64UrP3hlslANK)bq z$67n83eh}OeW&SV@HG95P|bjfqJ7gw$e+`Hxo!4cx`jdK1bJ>YDSpGKLPZ^1cv$ek zIB?0S<#tX?SJCLWdMd{-ME?$hc7A$zBOdIJ)4!KcAwb=VMov)nK;9z>x~rfT1>dS+ zZ6#`2v@`jgbqq)P22H)Tx2CpmM^o1$B+xT6`(v%5xJ(?j#>Q$+rx_R|7TzDZe{J6q zG1*EcU%tE?!kO%^M;3aM6JN*LAKUVb^xz8-Pxo#jR5(-KBeLJvA@-gxNHx0M-ZJLl z;#JwQoh~9V?`UVo#}{6ka@II>++D@%KqGpMdlQ}?9E*wFcf5(#XQnP$Dk5~%iX^>f z%$y;?M0BLp{O3a(-4A?ewryHrrD%cx#Q^%KY1H zNre$ve+vceSLZcNY4U(RBX&)oZn*Py()h)XkE?PL$!bNb{N5FVI2Y%LKEm%yvpyTP z(1P?z~7YxD~Rf<(a@_y` literal 0 HcmV?d00001 diff --git a/evently/android/app/src/main/res/values-night/styles.xml b/evently/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000000..06952be745 --- /dev/null +++ b/evently/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/evently/android/app/src/main/res/values/styles.xml b/evently/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000..cb1ef88056 --- /dev/null +++ b/evently/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/evently/android/app/src/profile/AndroidManifest.xml b/evently/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000000..399f6981d5 --- /dev/null +++ b/evently/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/evently/android/build.gradle b/evently/android/build.gradle new file mode 100644 index 0000000000..bc157bd1a1 --- /dev/null +++ b/evently/android/build.gradle @@ -0,0 +1,18 @@ +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/evently/android/gradle.properties b/evently/android/gradle.properties new file mode 100644 index 0000000000..598d13fee4 --- /dev/null +++ b/evently/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/evently/android/gradle/wrapper/gradle-wrapper.properties b/evently/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..e1ca574ef0 --- /dev/null +++ b/evently/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/evently/android/settings.gradle b/evently/android/settings.gradle new file mode 100644 index 0000000000..1d6d19b7f8 --- /dev/null +++ b/evently/android/settings.gradle @@ -0,0 +1,26 @@ +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.7.10" apply false +} + +include ":app" diff --git a/evently/assets/fonts/UniversalSans-300.ttf b/evently/assets/fonts/UniversalSans-300.ttf new file mode 100644 index 0000000000000000000000000000000000000000..2b315e809886545cccf59902ce784334909632de GIT binary patch literal 15368 zcmcJ033yyrb^pC@Hto`Au_W7)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%T8B4 M;EXs(V}-5%e~K1MBLDyZ literal 0 HcmV?d00001 diff --git a/evently/assets/fonts/UniversalSans-500.ttf b/evently/assets/fonts/UniversalSans-500.ttf new file mode 100644 index 0000000000000000000000000000000000000000..9397e376438258bfe2b5876ef47225716a5b532d GIT binary patch literal 15364 zcmb7r3qVxYng2O=hM56*3Im9UFvD9I28LmP;WaS42XGi3f(oLdq6jK#qIsEYviY}7 z(`=h=9-HRfnDnvjrr9L5*~T>4ZeGnM%_g)ve2W0{^`Hl@Z2r z&^!6%);Y4En#0_QIY(N!h*^&!No!AKurj+d8(b(dv$a6QIHqrGAiDoiVeIfV-?@XH@5le& zjmqarnSQq}4zETgQ7sb2>7GU~Jm3^6Z@5EUF_GnfHonwgSb z%H`*%Rrpw|_!r{G5aq zmdPZYmzA+Uql_&5f-RPwWgDbFuo~%q@Z62O7Fl6#X_jr^naDSz&ks=7$u{V|ha8P; zLH~!f=gVljla)(r(C=L~EIrPa=zhm6((No=x|f-yX;vVmvr=g*^Gl_y1kVzwnw9Vt zmLN@_+{*mykF1WJQa+b-DE|*@*R`N;8*-QE@24?*72Y{3;7u6U#@eMgmL#1-)*~me zB>oP|k{)8Ud>dOLEyuW(Y?;);2U$HhO9?$l zIxJf&zl%50s%$)?@O&3No)+(!C{gbiW?==GuZp<=Wti<{*RlKALz#;*mt_7Z=Rrk5 zAL^9}7)8v^s?p2C#}Ovq9FwT3H)wWbK%dERyjWZQ!CX0Hm!kS|(aEwM-hCrR8QkEn4oz zllViq7dc1E{dneTc@WP$E%)G=k6eIE{t4C~awDF_T5iXasG{sawj);|yO67q-N;SI zBqz!($kcBbndCKwycc;1@^xDF<9WZ9m*e@6mis_rDl+lFhi5u6je}pw{E?bjfb3Dt zY~X3G-1JlZH_=5)Y2fVj>;d)^yp_U}xrMv=03YYq@$d5g;GakiX`}Q*=^5#;^ry{x;Sx9P|9*Xw_+|0F^mQ5@loSRV2B5&I*4Z&+ZcH4GWT~g9NmC1sDZCvL~@@=$SO-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yP;h8@~>8x@9rynt@4P(uC z3Q*|8CJHjuDMuhNl0XElgRsmwOAp0dgd6?m0zHI2>JW*Z5RoZW&83ikrZ{Xa3B5X{ z#jK>GIzjsxoQjd$j$_WytYQ{bOLbx{0uySTgZU+;d3y9E?SEsHDx1G)5Of}TUx6_m zoE1C8DP|SUihHozAH?MmyYK;=FfYKVa{}HBI2+}VqYkpjrDy^de&dAGXe0LOsgPPR zPK~q0xiRhRlkojek6pSM=L1o&t9ZOe;-d3iJNEa$<$yPImQHyouKCG=SHe3A WJk6hXmYqsx9nfNh?qP{~v;PkcJwz}7 literal 0 HcmV?d00001 diff --git a/evently/assets/fonts/UniversalSans-600.ttf b/evently/assets/fonts/UniversalSans-600.ttf new file mode 100644 index 0000000000000000000000000000000000000000..44705b9defdb908d15bfaac1fcc57ab720a182ec GIT binary patch literal 15372 zcmb_@33yz^wPw}5y{T<2ZKejxmwrtCmWZ9N%OY#aBuOvM3 zcqAY3dm#zSKuFjEnee`c^9Uiq0TKuy1j4{LHYN`97{Zb<4#vSa>O23bds}MRKr-Jq zbyat%I(6#ob#C1j9^aTWlZj1OiI`? zwtEikF~IjcuBI*9uiHF(bmu3G8ElLtZQVLKwkaj8=X#6>epW^erb3+)&!B;2Zr!ox z+NbWb{20%FLfy1|c4Ex@-I&K1(}O1V*p9Jl=h&~=1p2n(*)}t_W3uD)b@$>H^vEr9 zv%B~F+4)=>V|L=_fpbAldf;Z zU3W;ipty8LJsz4B4!=1t}i)AFzPj4%klAJ^|lFWB4?l^~}NhFs_pYq*W{q?8jkDoaA6} z{B35J?qikw5KDvH3Z?Zd7uPiKQ!3rWs--Lzk882?Wmd}GVnwJ0+BKhh*@#rfa=C+* z@objJZ)Gmj0;(EZ0slAF%KpMyNN!vQ*%8n0vMA{e;6BGZy8mD<$g>8Lr2+`j4$IW; z-@p@DRVJ=xT;Bl1#~XNTE6?7Ox^TdM7mta}v&Fa%`- zjsjN9DgotVV;WR~Ek%P`4a-xDkwq}0^0e}#@;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+R5^L1S(DdQx4cKk~9fSKE|lmse~s<1@=J{4+*|S2Y0~0;zJc0RtP@fIbeGRu?r{{ zmc%F|gVAcBMez&dOND$-#8(uVoFQ39%~|NfaloNE;tAEB0IeTlt^i38C=^bKSHS~XfiQ|d0{O`*6lsaIbmOD7F9p^ zM5Hj$8VdEYa^__<|6di#-tzwhLIOu5oEp>rQ#IiHm`*XvaaP=g-Tqu$wa`)tXRRez zjXdoCIdqh(i4y&8su2761ZZ0nPNkD^R!!%|w6jmd*F!CK=_F4EoDRg| zJpvcSTn>Y_ncBw)s420HuZz=!D5fDZC7w7a3x5*;o&h1cL20}Aw@W*RV?CiVeh xI`x(#p3^~_5tmg^l?~nyPbg>Lnwm%w$kG|W(_9vMmYoE=k%YabLNHNp_P<9bC{X|a literal 0 HcmV?d00001 diff --git a/evently/i18n/de.json b/evently/i18n/de.json new file mode 100644 index 0000000000..7a73a41bfd --- /dev/null +++ b/evently/i18n/de.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json new file mode 100644 index 0000000000..7a73a41bfd --- /dev/null +++ b/evently/i18n/en-US.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json new file mode 100644 index 0000000000..7a73a41bfd --- /dev/null +++ b/evently/i18n/es.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json new file mode 100644 index 0000000000..7a73a41bfd --- /dev/null +++ b/evently/i18n/ru-RU.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/evently/ios/.gitignore b/evently/ios/.gitignore new file mode 100644 index 0000000000..7a7f9873ad --- /dev/null +++ b/evently/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/evently/ios/Flutter/AppFrameworkInfo.plist b/evently/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000..7c56964006 --- /dev/null +++ b/evently/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/evently/ios/Flutter/Debug.xcconfig b/evently/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000..ec97fc6f30 --- /dev/null +++ b/evently/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/evently/ios/Flutter/Release.xcconfig b/evently/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000..c4855bfe20 --- /dev/null +++ b/evently/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/evently/ios/Podfile b/evently/ios/Podfile new file mode 100644 index 0000000000..d97f17e223 --- /dev/null +++ b/evently/ios/Podfile @@ -0,0 +1,44 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/evently/ios/Runner.xcodeproj/project.pbxproj b/evently/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..39d6832f04 --- /dev/null +++ b/evently/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,619 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = PKBW8U3YH7; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 331C8088294A63A400263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 331C8089294A63A400263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 331C808A294A63A400263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = PKBW8U3YH7; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently; + 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)"; + DEVELOPMENT_TEAM = PKBW8U3YH7; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C8088294A63A400263BE5 /* Debug */, + 331C8089294A63A400263BE5 /* Release */, + 331C808A294A63A400263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/evently/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/evently/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000..919434a625 --- /dev/null +++ b/evently/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000..f9b0d7c5ea --- /dev/null +++ b/evently/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/evently/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/evently/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000..8e3ca5dfe1 --- /dev/null +++ b/evently/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/evently/ios/Runner.xcworkspace/contents.xcworkspacedata b/evently/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000..1d526a16ed --- /dev/null +++ b/evently/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/evently/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/evently/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/evently/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/evently/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/evently/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000..f9b0d7c5ea --- /dev/null +++ b/evently/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/evently/ios/Runner/AppDelegate.swift b/evently/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000000..70693e4a8c --- /dev/null +++ b/evently/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000..d36b1fab2d --- /dev/null +++ b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..dc9ada4725e9b0ddb1deab583e5b5102493aa332 GIT binary patch literal 10932 zcmeHN2~<R zh`|8`A_PQ1nSu(UMFx?8j8PC!!VDphaL#`F42fd#7Vlc`zIE4n%Y~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cassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..797d452e458972bab9d994556c8305db4c827017 GIT binary patch literal 406 zcmV;H0crk;P))>cdjpWt&rLJgVp-t?DREyuq1A%0Z4)6_WsQ7{nzjN zo!X zGXV)2i3kcZIL~_j>uIKPK_zib+3T+Nt3Mb&Br)s)UIaA}@p{wDda>7=Q|mGRp7pqY zkJ!7E{MNz$9nOwoVqpFb)}$IP24Wn2JJ=Cw(!`OXJBr45rP>>AQr$6c7slJWvbpNW z@KTwna6d?PP>hvXCcp=4F;=GR@R4E7{4VU^0p4F>v^#A|>07*qoM6N<$f*5nx ACIA2c literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..6ed2d933e1120817fe9182483a228007b18ab6ae GIT binary patch literal 450 zcmV;z0X_bSP)iGWQ_5NJQ_~rNh*z)}eT%KUb z`7gNk0#AwF^#0T0?hIa^`~Ck;!}#m+_uT050aTR(J!bU#|IzRL%^UsMS#KsYnTF*!YeDOytlP4VhV?b} z%rz_<=#CPc)tU1MZTq~*2=8~iZ!lSa<{9b@2Jl;?IEV8)=fG217*|@)CCYgFze-x? zIFODUIA>nWKpE+bn~n7;-89sa>#DR>TSlqWk*!2hSN6D~Qb#VqbP~4Fk&m`@1$JGr zXPIdeRE&b2Thd#{MtDK$px*d3-Wx``>!oimf%|A-&-q*6KAH)e$3|6JV%HX{Hig)k suLT-RhftRq8b9;(V=235Wa|I=027H2wCDra;{X5v07*qoM6N<$f;9x^2LJ#7 literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cd7b0099ca80c806f8fe495613e8d6c69460d76 GIT binary patch literal 282 zcmV+#0p(^bcu7P-R4C8Q z&e;xxFbF_Vrezo%_kH*OKhshZ6BFpG-Y1e10`QXJKbND7AMQ&cMj60B5TNObaZxYybcN07*qoM6N<$g3m;S%K!iX literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..fe730945a01f64a61e2235dbe3f45b08f7729182 GIT binary patch literal 462 zcmV;<0WtoGP)-}iV`2<;=$?g5M=KQbZ{F&YRNy7Nn@%_*5{gvDM0aKI4?ESmw z{NnZg)A0R`+4?NF_RZexyVB&^^ZvN!{I28tr{Vje;QNTz`dG&Jz0~Ek&f2;*Z7>B|cg}xYpxEFY+0YrKLF;^Q+-HreN0P{&i zK~zY`?b7ECf-n?@;d<&orQ*Q7KoR%4|C>{W^h6@&01>0SKS`dn{Q}GT%Qj_{PLZ_& zs`MFI#j-(>?bvdZ!8^xTwlY{qA)T4QLbY@j(!YJ7aXJervHy6HaG_2SB`6CC{He}f zHVw(fJWApwPq!6VY7r1w-Fs)@ox~N+q|w~e;JI~C4Vf^@d>Wvj=fl`^u9x9wd9 zR%3*Q+)t%S!MU_`id^@&Y{y7-r98lZX0?YrHlfmwb?#}^1b{8g&KzmkE(L>Z&)179 zp<)v6Y}pRl100G2FL_t(o!|l{-Q-VMg#&MKg7c{O0 z2wJImOS3Gy*Z2Qifdv~JYOp;v+U)a|nLoc7hNH;I$;lzDt$}rkaFw1mYK5_0Q(Sut zvbEloxON7$+HSOgC9Z8ltuC&0OSF!-mXv5caV>#bc3@hBPX@I$58-z}(ZZE!t-aOG zpjNkbau@>yEzH(5Yj4kZiMH32XI!4~gVXNnjAvRx;Sdg^`>2DpUEwoMhTs_st8pKG z(%SHyHdU&v%f36~uERh!bd`!T2dw;z6PrOTQ7Vt*#9F2uHlUVnb#ev_o^fh}Dzmq} zWtlk35}k=?xj28uO|5>>$yXadTUE@@IPpgH`gJ~Ro4>jd1IF|(+IX>8M4Ps{PNvmI zNj4D+XgN83gPt_Gm}`Ybv{;+&yu-C(Grdiahmo~BjG-l&mWM+{e5M1sm&=xduwgM9 z`8OEh`=F3r`^E{n_;%9weN{cf2%7=VzC@cYj+lg>+3|D|_1C@{hcU(DyQG_BvBWe? zvTv``=%b1zrol#=R`JB)>cdjpWt&rLJgVp-t?DREyuq1A%0Z4)6_WsQ7{nzjN zo!X zGXV)2i3kcZIL~_j>uIKPK_zib+3T+Nt3Mb&Br)s)UIaA}@p{wDda>7=Q|mGRp7pqY zkJ!7E{MNz$9nOwoVqpFb)}$IP24Wn2JJ=Cw(!`OXJBr45rP>>AQr$6c7slJWvbpNW z@KTwna6d?PP>hvXCcp=4F;=GR@R4E7{4VU^0p4F>v^#A|>07*qoM6N<$f*5nx ACIA2c literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..502f463a9bc882b461c96aadf492d1729e49e725 GIT binary patch literal 586 zcmV-Q0=4~#P)+}#`wDE{8-2Mebf5<{{PqV{TgVcv*r8?UZ3{-|G?_}T*&y;@cqf{ z{Q*~+qr%%p!1pS*_Uicl#q9lc(D`!D`LN62sNwq{oYw(Wmhk)k<@f$!$@ng~_5)Ru z0Z)trIA5^j{DIW^c+vT2%lW+2<(RtE2wR;4O@)Tm`Xr*?A(qYoM}7i5Yxw>D(&6ou zxz!_Xr~yNF+waPe00049Nkl*;a!v6h%{rlvIH#gW3s8p;bFr=l}mRqpW2h zw=OA%hdyL~z+UHOzl0eKhEr$YYOL-c-%Y<)=j?(bzDweB7{b+%_ypvm_cG{SvM=DK zhv{K@m>#Bw>2W$eUI#iU)Wdgs8Y3U+A$Gd&{+j)d)BmGKx+43U_!tik_YlN)>$7G! zhkE!s;%oku3;IwG3U^2kw?z+HM)jB{@zFhK8P#KMSytSthr+4!c(5c%+^UBn`0X*2 zy3(k600_CSZj?O$Qu%&$;|TGUJrptR(HzyIx>5E(2r{eA(<6t3e3I0B)7d6s7?Z5J zZ!rtKvA{MiEBm&KFtoifx>5P^Z=vl)95XJn()aS5%ad(s?4-=Tkis9IGu{`Fy8r+H07*qoM6N<$f20Z)wqMt%V?S?~D#06};F zA3KcL`Wb+>5ObvgQIG&ig8(;V04hz?@cqy3{mSh8o!|U|)cI!1_+!fWH@o*8vh^CU z^ws0;(c$gI+2~q^tO#GDHf@=;DncUw00J^eL_t(&-tE|HQ`%4vfZ;WsBqu-$0nu1R zq^Vj;p$clf^?twn|KHO+IGt^q#a3X?w9dXC@*yxhv&l}F322(8Y1&=P&I}~G@#h6; z1CV9ecD9ZEe87{{NtI*)_aJ<`kJa z?5=RBtFF50s;jQLFil-`)m2wrb=6h(&brpj%nG_U&ut~$?8Rokzxi8zJoWr#2dto5 zOX_URcc<1`Iky+jc;A%Vzx}1QU{2$|cKPom2Vf1{8m`vja4{F>HS?^Nc^rp}xo+Nh zxd}eOm`fm3@MQC1< zIk&aCjb~Yh%5+Yq0`)D;q{#-Uqlv*o+Oor zE!I71Z@ASH3grl8&P^L0WpavHoP|UX4e?!igT`4?AZk$hu*@%6WJ;zDOGlw7kj@ zY5!B-0ft0f?Lgb>C;$Ke07*qoM6N<$f~t1N9smFU literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0ec303439225b78712f49115768196d8d76f6790 GIT binary patch literal 862 zcmV-k1EKthP)20Z)wqMt%V?S?~D#06};F zA3KcL`Wb+>5ObvgQIG&ig8(;V04hz?@cqy3{mSh8o!|U|)cI!1_+!fWH@o*8vh^CU z^ws0;(c$gI+2~q^tO#GDHf@=;DncUw00J^eL_t(&-tE|HQ`%4vfZ;WsBqu-$0nu1R zq^Vj;p$clf^?twn|KHO+IGt^q#a3X?w9dXC@*yxhv&l}F322(8Y1&=P&I}~G@#h6; z1CV9ecD9ZEe87{{NtI*)_aJ<`kJa z?5=RBtFF50s;jQLFil-`)m2wrb=6h(&brpj%nG_U&ut~$?8Rokzxi8zJoWr#2dto5 zOX_URcc<1`Iky+jc;A%Vzx}1QU{2$|cKPom2Vf1{8m`vja4{F>HS?^Nc^rp}xo+Nh zxd}eOm`fm3@MQC1< zIk&aCjb~Yh%5+Yq0`)D;q{#-Uqlv*o+Oor zE!I71Z@ASH3grl8&P^L0WpavHoP|UX4e?!igT`4?AZk$hu*@%6WJ;zDOGlw7kj@ zY5!B-0ft0f?Lgb>C;$Ke07*qoM6N<$f~t1N9smFU literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..e9f5fea27c705180eb716271f41b582e76dcbd90 GIT binary patch literal 1674 zcmV;526g#~P){YQnis^a@{&-nmRmq)<&%Mztj67_#M}W?l>kYSliK<%xAp;0j{!}J0!o7b zE>q9${Lb$D&h7k=+4=!ek^n+`0zq>LL1O?lVyea53S5x`Nqqo2YyeuIrQrJj9XjOp z{;T5qbj3}&1vg1VK~#9!?b~^C5-}JC@Pyrv-6dSEqJqT}#j9#dJ@GzT@B8}x zU&J@bBI>f6w6en+CeI)3^kC*U?}X%OD8$Fd$H&LV$H&LV$H&LV#|K5~mLYf|VqzOc zkc7qL~0sOYuM{tG`rYEDV{DWY`Z8&)kW*hc2VkBuY+^Yx&92j&StN}Wp=LD zxoGxXw6f&8sB^u})h@b@z0RBeD`K7RMR9deyL(ZJu#39Z>rT)^>v}Khq8U-IbIvT> z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-wxC~31II47gc zHcehD6Uxlf%+M^^uN5Wc*G%^;>D5qT{>=uxUhX%WJu^Z*(_Wq9y}npFO{Hhb>s6<9 zNi0pHXWFaVZnb)1+RS&F)xOv6&aeILcI)`k#0YE+?e)5&#r7J#c`3Z7x!LpTc01dx zrdC3{Z;joZ^KN&))zB_i)I9fWedoN>Zl-6_Iz+^G&*ak2jpF07*qoM6N<$f;w%0(f|Me literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/evently/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0467bf12aa4d28f374bb26596605a46dcbb3e7c8 GIT binary patch literal 1418 zcmV;51$Fv~P)q zKfU)WzW*n(@|xWGCA9ScMt*e9`2kdxPQ&&>|-UCa7_51w+ zLUsW@ZzZSW0y$)Hp~e9%PvP|a03ks1`~K?q{u;6NC8*{AOqIUq{CL&;p56Lf$oQGq z^={4hPQv)y=I|4n+?>7Fim=dxt1 z2H+Dm+1+fh+IF>G0SjJMkQQre1x4|G*Z==(Ot&kCnUrL4I(rf(ucITwmuHf^hXiJT zkdTm&kdTm&kdTm&kdP`esgWG0BcWCVkVZ&2dUwN`cgM8QJb`Z7Z~e<&Yj2(}>Tmf` zm1{eLgw!b{bXkjWbF%dTkTZEJWyWOb##Lfw4EK2}<0d6%>AGS{po>WCOy&f$Tay_> z?NBlkpo@s-O;0V%Y_Xa-G#_O08q5LR*~F%&)}{}r&L%Sbs8AS4t7Y0NEx*{soY=0MZExqA5XHQkqi#4gW3 zqODM^iyZl;dvf)-bOXtOru(s)Uc7~BFx{w-FK;2{`VA?(g&@3z&bfLFyctOH!cVsF z7IL=fo-qBndRUm;kAdXR4e6>k-z|21AaN%ubeVrHl*<|s&Ax@W-t?LR(P-24A5=>a z*R9#QvjzF8n%@1Nw@?CG@6(%>+-0ASK~jEmCV|&a*7-GKT72W<(TbSjf)&Eme6nGE z>Gkj4Sq&2e+-G%|+NM8OOm5zVl9{Z8Dd8A5z3y8mZ=4Bv4%>as_{9cN#bm~;h>62( zdqY93Zy}v&c4n($Vv!UybR8ocs7#zbfX1IY-*w~)p}XyZ-SFC~4w>BvMVr`dFbelV{lLL0bx7@*ZZdebr3`sP;? zVImji)kG)(6Juv0lz@q`F!k1FE;CQ(D0iG$wchPbKZQELlsZ#~rt8#90Y_Xh&3U-< z{s<&cCV_1`^TD^ia9!*mQDq& zn2{r`j};V|uV%_wsP!zB?m%;FeaRe+X47K0e+KE!8C{gAWF8)lCd1u1%~|M!XNRvw zvtqy3iz0WSpWdhn6$hP8PaRBmp)q`#PCA`Vd#Tc$@f1tAcM>f_I@bC)hkI9|o(Iqv zo}Piadq!j76}004RBio<`)70k^`K1NK)q>w?p^C6J2ZC!+UppiK6&y3Kmbv&O!oYF z34$0Z;QO!JOY#!`qyGH<3Pd}Pt@q*A0V=3SVtWKRR8d8Z&@)3qLPA19LPA19LPEUC YUoZo%k(ykuW&i*H07*qoM6N<$f+CH{y8r+H literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000000..0bedcf2fd4 --- /dev/null +++ b/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000000..89c2725b70 --- /dev/null +++ b/evently/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/evently/ios/Runner/Base.lproj/LaunchScreen.storyboard b/evently/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000..f2e259c7c9 --- /dev/null +++ b/evently/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/evently/ios/Runner/Base.lproj/Main.storyboard b/evently/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000..f3c28516fb --- /dev/null +++ b/evently/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/evently/ios/Runner/Info.plist b/evently/ios/Runner/Info.plist new file mode 100644 index 0000000000..aadaf6c0dc --- /dev/null +++ b/evently/ios/Runner/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Evently + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + evently + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/evently/ios/Runner/Runner-Bridging-Header.h b/evently/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000000..308a2a560b --- /dev/null +++ b/evently/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/evently/ios/RunnerTests/RunnerTests.swift b/evently/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000000..86a7c3b1b6 --- /dev/null +++ b/evently/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Flutter +import UIKit +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/evently/lib/main.dart b/evently/lib/main.dart new file mode 100644 index 0000000000..01d470fbc0 --- /dev/null +++ b/evently/lib/main.dart @@ -0,0 +1,22 @@ +import 'package:flutter/material.dart'; + +void main() { + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Evently', + theme: ThemeData( + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + useMaterial3: true, + ), + home: const Placeholder(), + ); + } +} diff --git a/evently/linux/.gitignore b/evently/linux/.gitignore new file mode 100644 index 0000000000..d3896c9844 --- /dev/null +++ b/evently/linux/.gitignore @@ -0,0 +1 @@ +flutter/ephemeral diff --git a/evently/linux/CMakeLists.txt b/evently/linux/CMakeLists.txt new file mode 100644 index 0000000000..3f5f9a3f72 --- /dev/null +++ b/evently/linux/CMakeLists.txt @@ -0,0 +1,145 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.10) +project(runner LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "evently") +# The unique GTK application identifier for this application. See: +# https://wiki.gnome.org/HowDoI/ChooseApplicationID +set(APPLICATION_ID "com.example.evently") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Load bundled libraries from the lib/ directory relative to the binary. +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Root filesystem for cross-building. +if(FLUTTER_TARGET_PLATFORM_SYSROOT) + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +endif() + +# Define build configuration options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Define the application target. To change its name, change BINARY_NAME above, +# not the value here, or `flutter run` will no longer work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) + +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) + install(FILES "${bundled_library}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endforeach(bundled_library) + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/evently/linux/flutter/CMakeLists.txt b/evently/linux/flutter/CMakeLists.txt new file mode 100644 index 0000000000..d5bd01648a --- /dev/null +++ b/evently/linux/flutter/CMakeLists.txt @@ -0,0 +1,88 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/evently/linux/flutter/generated_plugin_registrant.cc b/evently/linux/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000000..e71a16d23d --- /dev/null +++ b/evently/linux/flutter/generated_plugin_registrant.cc @@ -0,0 +1,11 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + + +void fl_register_plugins(FlPluginRegistry* registry) { +} diff --git a/evently/linux/flutter/generated_plugin_registrant.h b/evently/linux/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000000..e0f0a47bc0 --- /dev/null +++ b/evently/linux/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void fl_register_plugins(FlPluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/evently/linux/flutter/generated_plugins.cmake b/evently/linux/flutter/generated_plugins.cmake new file mode 100644 index 0000000000..2e1de87a7e --- /dev/null +++ b/evently/linux/flutter/generated_plugins.cmake @@ -0,0 +1,23 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/evently/linux/main.cc b/evently/linux/main.cc new file mode 100644 index 0000000000..e7c5c54370 --- /dev/null +++ b/evently/linux/main.cc @@ -0,0 +1,6 @@ +#include "my_application.h" + +int main(int argc, char** argv) { + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/evently/linux/my_application.cc b/evently/linux/my_application.cc new file mode 100644 index 0000000000..549c112a05 --- /dev/null +++ b/evently/linux/my_application.cc @@ -0,0 +1,124 @@ +#include "my_application.h" + +#include +#ifdef GDK_WINDOWING_X11 +#include +#endif + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; + char** dart_entrypoint_arguments; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + MyApplication* self = MY_APPLICATION(application); + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + + // Use a header bar when running in GNOME as this is the common style used + // by applications and is the setup most users will be using (e.g. Ubuntu + // desktop). + // If running on X and not using GNOME then just use a traditional title bar + // in case the window manager does more exotic layout, e.g. tiling. + // If running on Wayland assume the header bar will work (may need changing + // if future cases occur). + gboolean use_header_bar = TRUE; +#ifdef GDK_WINDOWING_X11 + GdkScreen* screen = gtk_window_get_screen(window); + if (GDK_IS_X11_SCREEN(screen)) { + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); + if (g_strcmp0(wm_name, "GNOME Shell") != 0) { + use_header_bar = FALSE; + } + } +#endif + if (use_header_bar) { + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "evently"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + } else { + gtk_window_set_title(window, "evently"); + } + + gtk_window_set_default_size(window, 1280, 720); + gtk_widget_show(GTK_WIDGET(window)); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); + + FlView* view = fl_view_new(project); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +// Implements GApplication::local_command_line. +static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { + MyApplication* self = MY_APPLICATION(application); + // Strip out the first argument as it is the binary name. + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); + + g_autoptr(GError) error = nullptr; + if (!g_application_register(application, nullptr, &error)) { + g_warning("Failed to register: %s", error->message); + *exit_status = 1; + return TRUE; + } + + g_application_activate(application); + *exit_status = 0; + + return TRUE; +} + +// Implements GApplication::startup. +static void my_application_startup(GApplication* application) { + //MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application startup. + + G_APPLICATION_CLASS(my_application_parent_class)->startup(application); +} + +// Implements GApplication::shutdown. +static void my_application_shutdown(GApplication* application) { + //MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application shutdown. + + G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); +} + +// Implements GObject::dispose. +static void my_application_dispose(GObject* object) { + MyApplication* self = MY_APPLICATION(object); + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); + G_OBJECT_CLASS(my_application_parent_class)->dispose(object); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; + G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; + G_APPLICATION_CLASS(klass)->startup = my_application_startup; + G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; + G_OBJECT_CLASS(klass)->dispose = my_application_dispose; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, + "flags", G_APPLICATION_NON_UNIQUE, + nullptr)); +} diff --git a/evently/linux/my_application.h b/evently/linux/my_application.h new file mode 100644 index 0000000000..72271d5e41 --- /dev/null +++ b/evently/linux/my_application.h @@ -0,0 +1,18 @@ +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/evently/macos/.gitignore b/evently/macos/.gitignore new file mode 100644 index 0000000000..746adbb6b9 --- /dev/null +++ b/evently/macos/.gitignore @@ -0,0 +1,7 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/evently/macos/Flutter/Flutter-Debug.xcconfig b/evently/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000000..4b81f9b2d2 --- /dev/null +++ b/evently/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/evently/macos/Flutter/Flutter-Release.xcconfig b/evently/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000000..5caa9d1579 --- /dev/null +++ b/evently/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/evently/macos/Flutter/GeneratedPluginRegistrant.swift b/evently/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 0000000000..724bb2ac32 --- /dev/null +++ b/evently/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,12 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import shared_preferences_foundation + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) +} diff --git a/evently/macos/Podfile b/evently/macos/Podfile new file mode 100644 index 0000000000..c795730db8 --- /dev/null +++ b/evently/macos/Podfile @@ -0,0 +1,43 @@ +platform :osx, '10.14' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/evently/macos/Runner.xcodeproj/project.pbxproj b/evently/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..fea2009b12 --- /dev/null +++ b/evently/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,705 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* evently.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "evently.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* evently.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* evently.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/evently.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/evently"; + }; + name = Debug; + }; + 331C80DC294CF71000263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/evently.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/evently"; + }; + name = Release; + }; + 331C80DD294CF71000263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.evently.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/evently.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/evently"; + }; + name = Profile; + }; + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug */, + 331C80DC294CF71000263BE5 /* Release */, + 331C80DD294CF71000263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/evently/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/evently/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/evently/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/evently/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/evently/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000..835c74450e --- /dev/null +++ b/evently/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/evently/macos/Runner.xcworkspace/contents.xcworkspacedata b/evently/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000..1d526a16ed --- /dev/null +++ b/evently/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/evently/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/evently/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/evently/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/evently/macos/Runner/AppDelegate.swift b/evently/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000000..d53ef64377 --- /dev/null +++ b/evently/macos/Runner/AppDelegate.swift @@ -0,0 +1,9 @@ +import Cocoa +import FlutterMacOS + +@NSApplicationMain +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000..a2ec33f19f --- /dev/null +++ b/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000000000000000000000000000000000000..82b6f9d9a33e198f5747104729e1fcef999772a5 GIT binary patch literal 102994 zcmeEugo5nb1G~3xi~y`}h6XHx5j$(L*3|5S2UfkG$|UCNI>}4f?MfqZ+HW-sRW5RKHEm z^unW*Xx{AH_X3Xdvb%C(Bh6POqg==@d9j=5*}oEny_IS;M3==J`P0R!eD6s~N<36C z*%-OGYqd0AdWClO!Z!}Y1@@RkfeiQ$Ib_ z&fk%T;K9h`{`cX3Hu#?({4WgtmkR!u3ICS~|NqH^fdNz>51-9)OF{|bRLy*RBv#&1 z3Oi_gk=Y5;>`KbHf~w!`u}!&O%ou*Jzf|Sf?J&*f*K8cftMOKswn6|nb1*|!;qSrlw= zr-@X;zGRKs&T$y8ENnFU@_Z~puu(4~Ir)>rbYp{zxcF*!EPS6{(&J}qYpWeqrPWW< zfaApz%<-=KqxrqLLFeV3w0-a0rEaz9&vv^0ZfU%gt9xJ8?=byvNSb%3hF^X_n7`(fMA;C&~( zM$cQvQ|g9X)1AqFvbp^B{JEX$o;4iPi?+v(!wYrN{L}l%e#5y{j+1NMiT-8=2VrCP zmFX9=IZyAYA5c2!QO96Ea-6;v6*$#ZKM-`%JCJtrA3d~6h{u+5oaTaGE)q2b+HvdZ zvHlY&9H&QJ5|uG@wDt1h99>DdHy5hsx)bN`&G@BpxAHh$17yWDyw_jQhhjSqZ=e_k z_|r3=_|`q~uA47y;hv=6-o6z~)gO}ZM9AqDJsR$KCHKH;QIULT)(d;oKTSPDJ}Jx~G#w-(^r<{GcBC*~4bNjfwHBumoPbU}M)O za6Hc2ik)2w37Yyg!YiMq<>Aov?F2l}wTe+>h^YXcK=aesey^i)QC_p~S zp%-lS5%)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O7n++ zo@9)d#`(AT$mbW5g;c;&z>1_2Nk%;L?TIhfeK%PYp>5N<5wdihxw4-qvVsN6t@bol zDFgi~t`B&ZU3ek!#fXVE5Ao$7AwI+@amT_m2SclwQE{cLcv3kwhokq+!S%>Fe_*(Z z75)vhq@YqZqa~Hf$0S?T@nr_%mV%*aT${~4)6|(P@Bq_Q!VC4tZa`7?ra`4?oV+wSr2`TVSUmKS_>V@3%0*S#!+L=3f@oF=4k9U9xv0p1;Fx&}V;X2J~h zcz^}G3|;s8JyEFR*LB*fPUm+?f+ofnBQ5uK%NrwA+RV_~h<6-mw_wU?NGRI!zNTh% z&>ty6x8&gW75gdW)?p->&%?{*brS|k@b|(>&<^nyO55Pi_q*eK)=J*Uunw2cw--p%E!VXuDa? ztZ$HPKJ6$Sh7!UrpxVBLFSnpZOw$(ftvg!Nk1LVfL+FL(u zh1Abu(oCSmgqQ2IrE;Zz2f2DAD%T4XO6tU&)2IB}vV3{^xpz1MYFEPy_09RP2QvmA zIqw<(UaCnCs!mFX$+3sjnV*(O5)y`jW!*wzF-l^K`Bxgap+0Ej z@c^nf{Ic`6I5#9bcE7fwiiP8JZ9dr3FsD~SBiW_`8{UgFt*{$@qj#E)90JYra>Zs3 z$sCTuzOye2GdTO;4@;wgJK@!ij-|c--insluCR}{#q=D6Xz#nL6;`rkc*UzLTR%Y{ zN2YK;Zcz4YY=+|(0_?E=#~3U@I1fIyRiBF zIeWj=id+b|L;kSMs>NMfeB^(={IdrC;NYJy_$L+olL`OdOqgH0OpSa?FTRhwb<|%A Pe7HEdAEg|=c=LY&YVNkY literal 0 HcmV?d00001 diff --git a/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000000000000000000000000000000000000..13b35eba55c6dabc3aac36f33d859266c18fa0d0 GIT binary patch literal 5680 zcmaiYXH?Tqu=Xz`p-L#B_gI#0we$cm_HcmYFP$?wj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J=vTvHZ~SDe_JXOe9*fa zgEPf;gD^|qE=dl>Qkx3(80#SE7oxXQ(n4qQ#by{uppSKoDbaq`U+fRqk0BwI>IXV3 zD#K%ASkzd7u>@|pA=)Z>rQr@dLH}*r7r0ng zxa^eME+l*s7{5TNu!+bD{Pp@2)v%g6^>yj{XP&mShhg9GszNu4ITW=XCIUp2Xro&1 zg_D=J3r)6hp$8+94?D$Yn2@Kp-3LDsci)<-H!wCeQt$e9Jk)K86hvV^*Nj-Ea*o;G zsuhRw$H{$o>8qByz1V!(yV{p_0X?Kmy%g#1oSmlHsw;FQ%j9S#}ha zm0Nx09@jmOtP8Q+onN^BAgd8QI^(y!n;-APUpo5WVdmp8!`yKTlF>cqn>ag`4;o>i zl!M0G-(S*fm6VjYy}J}0nX7nJ$h`|b&KuW4d&W5IhbR;-)*9Y0(Jj|@j`$xoPQ=Cl literal 0 HcmV?d00001 diff --git a/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000000000000000000000000000000000000..0a3f5fa40fb3d1e0710331a48de5d256da3f275d GIT binary patch literal 520 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|Tv8)E(|mmy zw18|52FCVG1{RPKAeI7R1_tH@j10^`nh_+nfC(-uuz(rC1}QWNE&K#jR^;j87-Auq zoUlN^K{r-Q+XN;zI ze|?*NFmgt#V#GwrSWaz^2G&@SBmck6ZcIFMww~vE<1E?M2#KUn1CzsB6D2+0SuRV@ zV2kK5HvIGB{HX-hQzs0*AB%5$9RJ@a;)Ahq#p$GSP91^&hi#6sg*;a~dt}4AclK>h z_3MoPRQ{i;==;*1S-mY<(JFzhAxMI&<61&m$J0NDHdJ3tYx~j0%M-uN6Zl8~_0DOkGXc0001@sz3l12C6Xg{AT~( zm6w64BA|AX`Ve)YY-glyudNN>MAfkXz-T7`_`fEolM;0T0BA)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@B$`FtE=hz5b}S`|c6Ey+j@D1ZibjJaRlR;{cxAWv z?Nqa>QqV*H-*zzaPvpLMHt~nl(x6?vrPpR?zn7~wow?oj*1TKmx4j71>$hvtC$DLD zUrz0^tiP0792U&dxJxNv@r}Elsjn^aSLUu=9#mD{&9n8|ayIL$!H3s>%KEvbchBFW z%cd?VU83mGF#Dar9*s~w&AnmQRQIOvR+uWsuZ?+|a=TzApXO@q^(r%8=}iv#wCnFq z=K9}JbqU@k99Q%j-}NNk+qLCP)jXfmOO|)@?mHcnynd6({mJisP1_}u7k)|eYHXWK z63eQ)E$ufFi!3CWUY2gw%e>omCv}qEX66aH-k&35f9`Q@Us|NPetVqe8=dX*VxJdn ze`q7b=Dn(UA(2sf&g)cOmQFhNJ#<-aMELJZbA#@to>25@kbW<)&!X01 z%NMJt>1ST)tyX)h@?`DxhbgCHr>S4wv}WC&Nw-!{+Z7$2D}74QAcXTvip=M0%Tp_N zor=k`)t|ra^ySr-+(|R9mB(E=`MX#y(wSw)$!iymzB;^c*>%&^*7HxTnRga=soSZT zdDl+9s;r!v8hk6POtzBaig4pRp7eWF(<8gufvNHPu6xs-=e{;mnHzJyGKE+8L0j}; z@%8-e^UCL5HhMiR>sD3Rve&yVZ#{Q1*CO8c+qSr^Z#CN;)(X5>tGG5yUw3<+CfhaL z%bP;hZ?jvgJU67BWyiy74_)6r)_nSxttxn0`0?HE^5(uydHVgP+HE$V?Lv)Leti43 zWA|;f-RqX``95>)^P-fw!Vi{3KNsII-*5f){gdxqd%gVdB1sOBNe=nEW%;i~g_P8J w!5uhoe-Jcg1nPN%MiEAtgE$;km@@t6ukO)1^!cY^83Pb_y85}Sb4q9e0FIsP9{>OV literal 0 HcmV?d00001 diff --git a/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/evently/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000000000000000000000000000000000000..2f1632cfddf3d9dade342351e627a0a75609fb46 GIT binary pat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4#DkNM8lUlqI7>YQLf)(lz9Q3Uw`)nc(z3{m5ZE77Ul$V%m)E}3&8L0 z-XaU|eB~Is08eORPk;=<>!1w)Kf}FOVS2l&9~A+@R#koFJ$Czd%Y(ENTV&A~U(IPI z;UY+gf+&6ioZ=roly<0Yst8ck>(M=S?B-ys3mLdM&)ex!hbt+ol|T6CTS+Sc0jv(& z7ijdvFwBq;0a{%3GGwkDKTeG`b+lyj0jjS1OMkYnepCdoosNY`*zmBIo*981BU%%U z@~$z0V`OVtIbEx5pa|Tct|Lg#ZQf5OYMUMRD>Wdxm5SAqV2}3!ceE-M2 z@O~lQ0OiKQp}o9I;?uxCgYVV?FH|?Riri*U$Zi_`V2eiA>l zdSm6;SEm6#T+SpcE8Ro_f2AwxzI z44hfe^WE3!h@W3RDyA_H440cpmYkv*)6m1XazTqw%=E5Xv7^@^^T7Q2wxr+Z2kVYr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/evently/macos/Runner/Configs/AppInfo.xcconfig b/evently/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000000..e0c7993dcb --- /dev/null +++ b/evently/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = evently + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.evently + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. diff --git a/evently/macos/Runner/Configs/Debug.xcconfig b/evently/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000000..36b0fd9464 --- /dev/null +++ b/evently/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/evently/macos/Runner/Configs/Release.xcconfig b/evently/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000000..dff4f49561 --- /dev/null +++ b/evently/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/evently/macos/Runner/Configs/Warnings.xcconfig b/evently/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000000..42bcbf4780 --- /dev/null +++ b/evently/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/evently/macos/Runner/DebugProfile.entitlements b/evently/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000000..dddb8a30c8 --- /dev/null +++ b/evently/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/evently/macos/Runner/Info.plist b/evently/macos/Runner/Info.plist new file mode 100644 index 0000000000..4789daa6a4 --- /dev/null +++ b/evently/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/evently/macos/Runner/MainFlutterWindow.swift b/evently/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000000..3cc05eb234 --- /dev/null +++ b/evently/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/evently/macos/Runner/Release.entitlements b/evently/macos/Runner/Release.entitlements new file mode 100644 index 0000000000..852fa1a472 --- /dev/null +++ b/evently/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/evently/macos/RunnerTests/RunnerTests.swift b/evently/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000000..5418c9f539 --- /dev/null +++ b/evently/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import FlutterMacOS +import Cocoa +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/evently/pubspec.lock b/evently/pubspec.lock new file mode 100644 index 0000000000..61d3ba1aeb --- /dev/null +++ b/evently/pubspec.lock @@ -0,0 +1,391 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + args: + dependency: transitive + description: + name: args + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" + url: "https://pub.dev" + source: hosted + version: "2.5.0" + async: + dependency: transitive + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: transitive + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: transitive + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: transitive + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + easy_localization: + dependency: "direct main" + description: + name: easy_localization + sha256: "432698c31a488dd64c56d4759f20d04844baba5e9e4f2cb1abb9676257918b17" + url: "https://pub.dev" + source: hosted + version: "3.0.6" + easy_logger: + dependency: transitive + description: + name: easy_logger + sha256: c764a6e024846f33405a2342caf91c62e357c24b02c04dbc712ef232bf30ffb7 + url: "https://pub.dev" + source: hosted + version: "0.0.2" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + ffi: + dependency: transitive + description: + name: ffi + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + file: + dependency: transitive + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + flutter_localizations: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + intl: + dependency: transitive + description: + name: intl + sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + url: "https://pub.dev" + source: hosted + version: "0.18.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + lints: + dependency: transitive + description: + name: lints + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + url: "https://pub.dev" + source: hosted + version: "3.0.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: transitive + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: transitive + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 + url: "https://pub.dev" + source: hosted + version: "2.2.1" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + url: "https://pub.dev" + source: hosted + version: "2.2.1" + platform: + dependency: transitive + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + shared_preferences: + dependency: transitive + description: + name: shared_preferences + sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 + url: "https://pub.dev" + source: hosted + version: "2.2.3" + shared_preferences_android: + dependency: transitive + description: + name: shared_preferences_android + sha256: "1ee8bf911094a1b592de7ab29add6f826a7331fb854273d55918693d5364a1f2" + url: "https://pub.dev" + source: hosted + version: "2.2.2" + shared_preferences_foundation: + dependency: transitive + description: + name: shared_preferences_foundation + sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7" + url: "https://pub.dev" + source: hosted + version: "2.4.0" + shared_preferences_linux: + dependency: transitive + description: + name: shared_preferences_linux + sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + shared_preferences_platform_interface: + dependency: transitive + description: + name: shared_preferences_platform_interface + sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + shared_preferences_web: + dependency: transitive + description: + name: shared_preferences_web + sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + url: "https://pub.dev" + source: hosted + version: "2.3.0" + shared_preferences_windows: + dependency: transitive + description: + name: shared_preferences_windows + sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: transitive + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + web: + dependency: transitive + description: + name: web + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + url: "https://pub.dev" + source: hosted + version: "0.5.1" + win32: + dependency: transitive + description: + name: win32 + sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb" + url: "https://pub.dev" + source: hosted + version: "5.5.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d + url: "https://pub.dev" + source: hosted + version: "1.0.4" +sdks: + dart: ">=3.3.4 <4.0.0" + flutter: ">=3.19.0" diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml new file mode 100644 index 0000000000..3676e656ea --- /dev/null +++ b/evently/pubspec.yaml @@ -0,0 +1,81 @@ +name: evently +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: '>=3.3.4 <4.0.0' + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.6 + easy_localization: ^3.0.6 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^3.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + assets: + - i18n/en-US.json + - i18n/ru-RU.json + - i18n/de.json + - i18n/es.json + + fonts: + - family: UniversalSans + fonts: + - asset: assets/fonts/UniversalSans-300.ttf + weight: 300 + - asset: assets/fonts/UniversalSans-400.ttf + weight: 400 + - asset: assets/fonts/UniversalSans-500.ttf + weight: 500 + - asset: assets/fonts/UniversalSans-600.ttf + weight: 600 + - asset: assets/fonts/UniversalSans-750.ttf + weight: 700 \ No newline at end of file diff --git a/evently/test/widget_test.dart b/evently/test/widget_test.dart new file mode 100644 index 0000000000..98e97f7664 --- /dev/null +++ b/evently/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility in the flutter_test package. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:evently/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/evently/web/favicon.png b/evently/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa46ac1ae21512746f852a42ba87e4165dfdd1 GIT binary patch literal 917 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0X7 zltGxWVyS%@P(fs7NJL45ua8x7ey(0(N`6wRUPW#JP&EUCO@$SZnVVXYs8ErclUHn2 zVXFjIVFhG^g!Ppaz)DK8ZIvQ?0~DO|i&7O#^-S~(l1AfjnEK zjFOT9D}DX)@^Za$W4-*MbbUihOG|wNBYh(yU7!lx;>x^|#0uTKVr7USFmqf|i<65o z3raHc^AtelCMM;Vme?vOfh>Xph&xL%(-1c06+^uR^q@XSM&D4+Kp$>4P^%3{)XKjo zGZknv$b36P8?Z_gF{nK@`XI}Z90TzwSQO}0J1!f2c(B=V`5aP@1P1a|PZ!4!3&Gl8 zTYqUsf!gYFyJnXpu0!n&N*SYAX-%d(5gVjrHJWqXQshj@!Zm{!01WsQrH~9=kTxW#6SvuapgMqt>$=j#%eyGrQzr zP{L-3gsMA^$I1&gsBAEL+vxi1*Igl=8#8`5?A-T5=z-sk46WA1IUT)AIZHx1rdUrf zVJrJn<74DDw`j)Ki#gt}mIT-Q`XRa2-jQXQoI%w`nb|XblvzK${ZzlV)m-XcwC(od z71_OEC5Bt9GEXosOXaPTYOia#R4ID2TiU~`zVMl08TV_C%DnU4^+HE>9(CE4D6?Fz oujB08i7adh9xk7*FX66dWH6F5TM;?E2b5PlUHx3vIVCg!0Dx9vYXATM literal 0 HcmV?d00001 diff --git a/evently/web/icons/Icon-192.png b/evently/web/icons/Icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..b749bfef07473333cf1dd31e9eed89862a5d52aa GIT binary patch literal 5292 zcmZ`-2T+sGz6~)*FVZ`aW+(v>MIm&M-g^@e2u-B-DoB?qO+b1Tq<5uCCv>ESfRum& zp%X;f!~1{tzL__3=gjVJ=j=J>+nMj%ncXj1Q(b|Ckbw{Y0FWpt%4y%$uD=Z*c-x~o zE;IoE;xa#7Ll5nj-e4CuXB&G*IM~D21rCP$*xLXAK8rIMCSHuSu%bL&S3)8YI~vyp@KBu9Ph7R_pvKQ@xv>NQ`dZp(u{Z8K3yOB zn7-AR+d2JkW)KiGx0hosml;+eCXp6+w%@STjFY*CJ?udJ64&{BCbuebcuH;}(($@@ znNlgBA@ZXB)mcl9nbX#F!f_5Z=W>0kh|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KX6uNQC6%oUH z2DZa1s3%Vtk|bglbxep-w)PbFG!J17`<$g8lVhqD2w;Z0zGsh-r zxZ13G$G<48leNqR!DCVt9)@}(zMI5w6Wo=N zpP1*3DI;~h2WDWgcKn*f!+ORD)f$DZFwgKBafEZmeXQMAsq9sxP9A)7zOYnkHT9JU zRA`umgmP9d6=PHmFIgx=0$(sjb>+0CHG)K@cPG{IxaJ&Ueo8)0RWgV9+gO7+Bl1(F z7!BslJ2MP*PWJ;x)QXbR$6jEr5q3 z(3}F@YO_P1NyTdEXRLU6fp?9V2-S=E+YaeLL{Y)W%6`k7$(EW8EZSA*(+;e5@jgD^I zaJQ2|oCM1n!A&-8`;#RDcZyk*+RPkn_r8?Ak@agHiSp*qFNX)&i21HE?yuZ;-C<3C zwJGd1lx5UzViP7sZJ&|LqH*mryb}y|%AOw+v)yc`qM)03qyyrqhX?ub`Cjwx2PrR! z)_z>5*!*$x1=Qa-0uE7jy0z`>|Ni#X+uV|%_81F7)b+nf%iz=`fF4g5UfHS_?PHbr zB;0$bK@=di?f`dS(j{l3-tSCfp~zUuva+=EWxJcRfp(<$@vd(GigM&~vaYZ0c#BTs z3ijkxMl=vw5AS&DcXQ%eeKt!uKvh2l3W?&3=dBHU=Gz?O!40S&&~ei2vg**c$o;i89~6DVns zG>9a*`k5)NI9|?W!@9>rzJ;9EJ=YlJTx1r1BA?H`LWijk(rTax9(OAu;q4_wTj-yj z1%W4GW&K4T=uEGb+E!>W0SD_C0RR91 literal 0 HcmV?d00001 diff --git a/evently/web/icons/Icon-512.png b/evently/web/icons/Icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..88cfd48dff1169879ba46840804b412fe02fefd6 GIT binary patch literal 8252 zcmd5=2T+s!lYZ%-(h(2@5fr2dC?F^$C=i-}R6$UX8af(!je;W5yC_|HmujSgN*6?W z3knF*TL1$|?oD*=zPbBVex*RUIKsL<(&Rj9%^UD2IK3W?2j>D?eWQgvS-HLymHo9%~|N2Q{~j za?*X-{b9JRow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@`$xTZzZc3je?n^yG<8sw$`Y%}9mUsjUR%T!?k^(q)6FH6Af^b6 zlPg~IEwg0y;`t9y;#D+uz!oE4VP&Je!<#q*F?m5L5?J3i@!0J6q#eu z!RRU`-)HeqGi_UJZ(n~|PSNsv+Wgl{P-TvaUQ9j?ZCtvb^37U$sFpBrkT{7Jpd?HpIvj2!}RIq zH{9~+gErN2+}J`>Jvng2hwM`=PLNkc7pkjblKW|+Fk9rc)G1R>Ww>RC=r-|!m-u7( zc(a$9NG}w#PjWNMS~)o=i~WA&4L(YIW25@AL9+H9!?3Y}sv#MOdY{bb9j>p`{?O(P zIvb`n?_(gP2w3P#&91JX*md+bBEr%xUHMVqfB;(f?OPtMnAZ#rm5q5mh;a2f_si2_ z3oXWB?{NF(JtkAn6F(O{z@b76OIqMC$&oJ_&S|YbFJ*)3qVX_uNf5b8(!vGX19hsG z(OP>RmZp29KH9Ge2kKjKigUmOe^K_!UXP`von)PR8Qz$%=EmOB9xS(ZxE_tnyzo}7 z=6~$~9k0M~v}`w={AeqF?_)9q{m8K#6M{a&(;u;O41j)I$^T?lx5(zlebpY@NT&#N zR+1bB)-1-xj}R8uwqwf=iP1GbxBjneCC%UrSdSxK1vM^i9;bUkS#iRZw2H>rS<2<$ zNT3|sDH>{tXb=zq7XZi*K?#Zsa1h1{h5!Tq_YbKFm_*=A5-<~j63he;4`77!|LBlo zR^~tR3yxcU=gDFbshyF6>o0bdp$qmHS7D}m3;^QZq9kBBU|9$N-~oU?G5;jyFR7>z hN`IR97YZXIo@y!QgFWddJ3|0`sjFx!m))><{BI=FK%f8s literal 0 HcmV?d00001 diff --git a/evently/web/icons/Icon-maskable-192.png b/evently/web/icons/Icon-maskable-192.png new file mode 100644 index 0000000000000000000000000000000000000000..eb9b4d76e525556d5d89141648c724331630325d GIT binary patch literal 5594 zcmdT|`#%%j|KDb2V@0DPm$^(Lx5}lO%Yv(=e*7hl@QqKS50#~#^IQPxBmuh|i9sXnt4ch@VT0F7% zMtrs@KWI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+B@0ofJ4*{>_AIxfe-#xp>(1 z@Y3Nfd>fmqvjL;?+DmZk*KsfXJf<%~(gcLwEez%>1c6XSboURUh&k=B)MS>6kw9bY z{7vdev7;A}5fy*ZE23DS{J?8at~xwVk`pEwP5^k?XMQ7u64;KmFJ#POzdG#np~F&H ze-BUh@g54)dsS%nkBb}+GuUEKU~pHcYIg4vSo$J(J|U36bs0Use+3A&IMcR%6@jv$ z=+QI+@wW@?iu}Hpyzlvj-EYeop{f65GX0O%>w#0t|V z1-svWk`hU~m`|O$kw5?Yn5UhI%9P-<45A(v0ld1n+%Ziq&TVpBcV9n}L9Tus-TI)f zd_(g+nYCDR@+wYNQm1GwxhUN4tGMLCzDzPqY$~`l<47{+l<{FZ$L6(>J)|}!bi<)| zE35dl{a2)&leQ@LlDxLQOfUDS`;+ZQ4ozrleQwaR-K|@9T{#hB5Z^t#8 zC-d_G;B4;F#8A2EBL58s$zF-=SCr`P#z zNCTnHF&|X@q>SkAoYu>&s9v@zCpv9lLSH-UZzfhJh`EZA{X#%nqw@@aW^vPcfQrlPs(qQxmC|4tp^&sHy!H!2FH5eC{M@g;ElWNzlb-+ zxpfc0m4<}L){4|RZ>KReag2j%Ot_UKkgpJN!7Y_y3;Ssz{9 z!K3isRtaFtQII5^6}cm9RZd5nTp9psk&u1C(BY`(_tolBwzV_@0F*m%3G%Y?2utyS zY`xM0iDRT)yTyYukFeGQ&W@ReM+ADG1xu@ruq&^GK35`+2r}b^V!m1(VgH|QhIPDE X>c!)3PgKfL&lX^$Z>Cpu&6)6jvi^Z! literal 0 HcmV?d00001 diff --git a/evently/web/icons/Icon-maskable-512.png b/evently/web/icons/Icon-maskable-512.png new file mode 100644 index 0000000000000000000000000000000000000000..d69c56691fbdb0b7efa65097c7cc1edac12a6d3e GIT binary patch literal 20998 zcmeFZ_gj-)&^4Nb2tlbLMU<{!p(#yjqEe+=0IA_oih%ScH9@5#MNp&}Y#;;(h=A0@ zh7{>lT2MkSQ344eAvrhici!td|HJuyv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b4C;Hd(SM-S~GQhzb>HgF2|2Usww0nL^;x@1eaB)=+Clj+$fF@H( z-fqP??~QMT$KI-#m;QC*&6vkp&8699G3)Bq0*kFZXINw=b9OVaed(3(3kS|IZ)CM? zJdnW&%t8MveBuK21uiYj)_a{Fnw0OErMzMN?d$QoPwkhOwcP&p+t>P)4tHlYw-pPN z^oJ=uc$Sl>pv@fZH~ZqxSvdhF@F1s=oZawpr^-#l{IIOGG=T%QXjtwPhIg-F@k@uIlr?J->Ia zpEUQ*=4g|XYn4Gez&aHr*;t$u3oODPmc2Ku)2Og|xjc%w;q!Zz+zY)*3{7V8bK4;& zYV82FZ+8?v)`J|G1w4I0fWdKg|2b#iaazCv;|?(W-q}$o&Y}Q5d@BRk^jL7#{kbCK zSgkyu;=DV+or2)AxCBgq-nj5=@n^`%T#V+xBGEkW4lCqrE)LMv#f;AvD__cQ@Eg3`~x| zW+h9mofSXCq5|M)9|ez(#X?-sxB%Go8};sJ?2abp(Y!lyi>k)|{M*Z$c{e1-K4ky` MPgg&ebxsLQ025IeI{*Lx literal 0 HcmV?d00001 diff --git a/evently/web/index.html b/evently/web/index.html new file mode 100644 index 0000000000..1daf61dade --- /dev/null +++ b/evently/web/index.html @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + evently + + + + + + + + + + diff --git a/evently/web/manifest.json b/evently/web/manifest.json new file mode 100644 index 0000000000..5f96e74995 --- /dev/null +++ b/evently/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "evently", + "short_name": "evently", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} diff --git a/evently/windows/.gitignore b/evently/windows/.gitignore new file mode 100644 index 0000000000..d492d0d98c --- /dev/null +++ b/evently/windows/.gitignore @@ -0,0 +1,17 @@ +flutter/ephemeral/ + +# Visual Studio user-specific files. +*.suo +*.user +*.userosscache +*.sln.docstates + +# Visual Studio build-related files. +x64/ +x86/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ diff --git a/evently/windows/CMakeLists.txt b/evently/windows/CMakeLists.txt new file mode 100644 index 0000000000..2ead30126c --- /dev/null +++ b/evently/windows/CMakeLists.txt @@ -0,0 +1,108 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.14) +project(evently LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "evently") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(VERSION 3.14...3.25) + +# Define build configuration option. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() +# Define settings for the Profile build mode. +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/evently/windows/flutter/CMakeLists.txt b/evently/windows/flutter/CMakeLists.txt new file mode 100644 index 0000000000..903f4899d6 --- /dev/null +++ b/evently/windows/flutter/CMakeLists.txt @@ -0,0 +1,109 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/evently/windows/flutter/generated_plugin_registrant.cc b/evently/windows/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000000..8b6d4680af --- /dev/null +++ b/evently/windows/flutter/generated_plugin_registrant.cc @@ -0,0 +1,11 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + + +void RegisterPlugins(flutter::PluginRegistry* registry) { +} diff --git a/evently/windows/flutter/generated_plugin_registrant.h b/evently/windows/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000000..dc139d85a9 --- /dev/null +++ b/evently/windows/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void RegisterPlugins(flutter::PluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/evently/windows/flutter/generated_plugins.cmake b/evently/windows/flutter/generated_plugins.cmake new file mode 100644 index 0000000000..b93c4c30c1 --- /dev/null +++ b/evently/windows/flutter/generated_plugins.cmake @@ -0,0 +1,23 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/evently/windows/runner/CMakeLists.txt b/evently/windows/runner/CMakeLists.txt new file mode 100644 index 0000000000..394917c053 --- /dev/null +++ b/evently/windows/runner/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/evently/windows/runner/Runner.rc b/evently/windows/runner/Runner.rc new file mode 100644 index 0000000000..fc1d6dccb2 --- /dev/null +++ b/evently/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.example" "\0" + VALUE "FileDescription", "evently" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "evently" "\0" + VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" + VALUE "OriginalFilename", "evently.exe" "\0" + VALUE "ProductName", "evently" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/evently/windows/runner/flutter_window.cpp b/evently/windows/runner/flutter_window.cpp new file mode 100644 index 0000000000..955ee3038f --- /dev/null +++ b/evently/windows/runner/flutter_window.cpp @@ -0,0 +1,71 @@ +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + + flutter_controller_->engine()->SetNextFrameCallback([&]() { + this->Show(); + }); + + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/evently/windows/runner/flutter_window.h b/evently/windows/runner/flutter_window.h new file mode 100644 index 0000000000..6da0652f05 --- /dev/null +++ b/evently/windows/runner/flutter_window.h @@ -0,0 +1,33 @@ +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/evently/windows/runner/main.cpp b/evently/windows/runner/main.cpp new file mode 100644 index 0000000000..6c53953eb1 --- /dev/null +++ b/evently/windows/runner/main.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.Create(L"evently", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/evently/windows/runner/resource.h b/evently/windows/runner/resource.h new file mode 100644 index 0000000000..66a65d1e4a --- /dev/null +++ b/evently/windows/runner/resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/evently/windows/runner/resources/app_icon.ico b/evently/windows/runner/resources/app_icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..c04e20caf6370ebb9253ad831cc31de4a9c965f6 GIT binary patch literal 33772 zcmeHQc|26z|35SKE&G-*mXah&B~fFkXr)DEO&hIfqby^T&>|8^_Ub8Vp#`BLl3lbZ zvPO!8k!2X>cg~Elr=IVxo~J*a`+9wR=A83c-k-DFd(XM&UI1VKCqM@V;DDtJ09WB} zRaHKiW(GT00brH|0EeTeKVbpbGZg?nK6-j827q-+NFM34gXjqWxJ*a#{b_apGN<-L_m3#8Z26atkEn& ze87Bvv^6vVmM+p+cQ~{u%=NJF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=KO=@ep)aBJ$c!JHfBMJpsP*3G za7|)VJJ8B;4?n{~ldJF7%jmb`-ftIvNd~ekoufG(`K(3=LNc;HBY& z(lp#q8XAD#cIf}k49zX_i`*fO+#!zKA&%T3j@%)R+#yag067CU%yUEe47>wzGU8^` z1EXFT^@I!{J!F8!X?S6ph8J=gUi5tl93*W>7}_uR<2N2~e}FaG?}KPyugQ=-OGEZs z!GBoyYY+H*ANn4?Z)X4l+7H%`17i5~zRlRIX?t)6_eu=g2Q`3WBhxSUeea+M-S?RL zX9oBGKn%a!H+*hx4d2(I!gsi+@SQK%<{X22M~2tMulJoa)0*+z9=-YO+;DFEm5eE1U9b^B(Z}2^9!Qk`!A$wUE z7$Ar5?NRg2&G!AZqnmE64eh^Anss3i!{}%6@Et+4rr!=}!SBF8eZ2*J3ujCWbl;3; z48H~goPSv(8X61fKKdpP!Z7$88NL^Z?j`!^*I?-P4X^pMxyWz~@$(UeAcTSDd(`vO z{~rc;9|GfMJcApU3k}22a!&)k4{CU!e_ny^Y3cO;tOvOMKEyWz!vG(Kp*;hB?d|R3`2X~=5a6#^o5@qn?J-bI8Ppip{-yG z!k|VcGsq!jF~}7DMr49Wap-s&>o=U^T0!Lcy}!(bhtYsPQy z4|EJe{12QL#=c(suQ89Mhw9<`bui%nx7Nep`C&*M3~vMEACmcRYYRGtANq$F%zh&V zc)cEVeHz*Z1N)L7k-(k3np#{GcDh2Q@ya0YHl*n7fl*ZPAsbU-a94MYYtA#&!c`xGIaV;yzsmrjfieTEtqB_WgZp2*NplHx=$O{M~2#i_vJ{ps-NgK zQsxKK_CBM2PP_je+Xft`(vYfXXgIUr{=PA=7a8`2EHk)Ym2QKIforz# tySWtj{oF3N9@_;i*Fv5S)9x^z=nlWP>jpp-9)52ZmLVA=i*%6g{{fxOO~wEK literal 0 HcmV?d00001 diff --git a/evently/windows/runner/runner.exe.manifest b/evently/windows/runner/runner.exe.manifest new file mode 100644 index 0000000000..a42ea7687c --- /dev/null +++ b/evently/windows/runner/runner.exe.manifest @@ -0,0 +1,20 @@ + + + + + PerMonitorV2 + + + + + + + + + + + + + + + diff --git a/evently/windows/runner/utils.cpp b/evently/windows/runner/utils.cpp new file mode 100644 index 0000000000..b2b08734db --- /dev/null +++ b/evently/windows/runner/utils.cpp @@ -0,0 +1,65 @@ +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr) + -1; // remove the trailing null character + int input_length = (int)wcslen(utf16_string); + std::string utf8_string; + if (target_length <= 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + input_length, utf8_string.data(), target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/evently/windows/runner/utils.h b/evently/windows/runner/utils.h new file mode 100644 index 0000000000..3879d54755 --- /dev/null +++ b/evently/windows/runner/utils.h @@ -0,0 +1,19 @@ +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/evently/windows/runner/win32_window.cpp b/evently/windows/runner/win32_window.cpp new file mode 100644 index 0000000000..60608d0fe5 --- /dev/null +++ b/evently/windows/runner/win32_window.cpp @@ -0,0 +1,288 @@ +#include "win32_window.h" + +#include +#include + +#include "resource.h" + +namespace { + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + } + FreeLibrary(user32_module); +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registrar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::Create(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + UpdateTheme(window); + + return OnCreate(); +} + +bool Win32Window::Show() { + return ShowWindow(window_handle_, SW_SHOWNORMAL); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + + case WM_DWMCOLORIZATIONCOLORCHANGED: + UpdateTheme(hwnd); + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} + +void Win32Window::UpdateTheme(HWND const window) { + DWORD light_mode; + DWORD light_mode_size = sizeof(light_mode); + LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &light_mode, + &light_mode_size); + + if (result == ERROR_SUCCESS) { + BOOL enable_dark_mode = light_mode == 0; + DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, + &enable_dark_mode, sizeof(enable_dark_mode)); + } +} diff --git a/evently/windows/runner/win32_window.h b/evently/windows/runner/win32_window.h new file mode 100644 index 0000000000..e901dde684 --- /dev/null +++ b/evently/windows/runner/win32_window.h @@ -0,0 +1,102 @@ +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates a win32 window with |title| that is positioned and sized using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size this function will scale the inputted width and height as + // as appropriate for the default monitor. The window is invisible until + // |Show| is called. Returns true if the window was created successfully. + bool Create(const std::wstring& title, const Point& origin, const Size& size); + + // Show the current window. Returns true if the window was successfully shown. + bool Show(); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + // Update the window frame's theme to match the system theme. + static void UpdateTheme(HWND const window); + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_ From 9d812e7242d50ea8b792edc7401dfdd8cf89ca54 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:26:42 +0500 Subject: [PATCH 002/158] feat: easy localizations --- evently/lib/main.dart | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 01d470fbc0..e69a44e404 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,7 +1,21 @@ +import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; void main() { - runApp(const MyApp()); + runApp( + EasyLocalization( + supportedLocales: const [ + Locale('en', 'US'), + Locale('ru', 'RU'), + Locale('es'), + Locale('de'), + ], + path: 'i18n', + fallbackLocale: const Locale('en', 'US'), + saveLocale: false, + child: const MyApp(), + ), + ); } class MyApp extends StatelessWidget { From 698b0e51bdb4782f11ac4fa01abac968abe453f2 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:32:47 +0500 Subject: [PATCH 003/158] feat: screen utils init --- evently/lib/main.dart | 19 +++++++++++-------- evently/pubspec.lock | 8 ++++++++ evently/pubspec.yaml | 1 + 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/evently/lib/main.dart b/evently/lib/main.dart index e69a44e404..5ebe108c9f 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,5 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; void main() { runApp( @@ -24,13 +25,15 @@ class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { - return MaterialApp( - title: 'Evently', - theme: ThemeData( - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), - useMaterial3: true, - ), - home: const Placeholder(), - ); + return ScreenUtilInit( + minTextAdapt: true, + builder: (BuildContext context, child) => MaterialApp( + title: 'Evently', + theme: ThemeData( + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + useMaterial3: true, + ), + home: const Placeholder(), + )); } } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 61d3ba1aeb..8af3e0b22a 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -115,6 +115,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_screenutil: + dependency: "direct main" + description: + name: flutter_screenutil + sha256: "8cf100b8e4973dc570b6415a2090b0bfaa8756ad333db46939efc3e774ee100d" + url: "https://pub.dev" + source: hosted + version: "5.9.0" flutter_test: dependency: "direct dev" description: flutter diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index 3676e656ea..a936584545 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -36,6 +36,7 @@ dependencies: # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.6 easy_localization: ^3.0.6 + flutter_screenutil: ^5.9.0 dev_dependencies: flutter_test: From b5bbf56cb1a604ca357fadf95ad3d886478ec096 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:37:52 +0500 Subject: [PATCH 004/158] feat: basic app architecture following easel app --- evently/lib/main.dart | 33 ++++++--- evently/lib/utils/evently_app_theme.dart | 73 +++++++++++++++++++ .../Flutter/GeneratedPluginRegistrant.swift | 2 + evently/pubspec.lock | 66 ++++++++++++++++- evently/pubspec.yaml | 1 + 5 files changed, 165 insertions(+), 10 deletions(-) create mode 100644 evently/lib/utils/evently_app_theme.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 5ebe108c9f..620fe85924 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,4 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -19,6 +20,8 @@ void main() { ); } +final navigatorKey = GlobalKey(); + class MyApp extends StatelessWidget { const MyApp({super.key}); @@ -26,14 +29,26 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return ScreenUtilInit( - minTextAdapt: true, - builder: (BuildContext context, child) => MaterialApp( - title: 'Evently', - theme: ThemeData( - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), - useMaterial3: true, - ), - home: const Placeholder(), - )); + minTextAdapt: true, + builder: (BuildContext context, child) => MaterialApp( + builder: (context, widget) { + ScreenUtil.init(context); + return MediaQuery( + data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling), + child: widget!, + ); + }, + localizationsDelegates: context.localizationDelegates, + supportedLocales: context.supportedLocales, + locale: context.locale, + title: 'Evently', + navigatorKey: navigatorKey, + theme: EventlyAppTheme.theme(context), + initialRoute: '/', + routes: { + '/': (context) => const Placeholder(), + }, + ), + ); } } diff --git a/evently/lib/utils/evently_app_theme.dart b/evently/lib/utils/evently_app_theme.dart new file mode 100644 index 0000000000..01924e6214 --- /dev/null +++ b/evently/lib/utils/evently_app_theme.dart @@ -0,0 +1,73 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:google_fonts/google_fonts.dart'; + +class EventlyAppTheme { + static const Color kWhite = Color(0xFFFFFFFF); + static const Color kBgColor = Color.fromRGBO(242, 239, 234, 1); + static const Color kGrey = Color(0xFF8D8C8C); + static const Color kLightGreyText = Color(0xFF9B9A9A); + static const Color kLightGrey = Color(0xFFC4C4C4); + static const Color kLightGrey02 = Color(0xFFF2EFEA); + static const Color kDarkGrey02 = Color(0xFF808080); + static const Color kDartGrey = Color(0xFF333333); + static const Color kDartGrey02 = Color(0xFFA1A1A1); + static const Color kLightGrey03 = Color(0xFFD9D9D9); + static const Color kBlack = Colors.black; + static const Color kTransparent = Colors.transparent; + static const Color kBlue = Color(0xFF1212C4); + static const Color kDarkText = Color(0xFF080830); + static const Color kLightText = Color(0xFF464545); + static const Color kNightBlue = Color(0xFF0A004A); + static const Color kLightWhiteBackground = Color(0xFFE5E5E5); + static const Color kRed = Color(0xFFFC4403); + static const Color kWhite02 = Color.fromRGBO(255, 255, 255, 0.2); + static const Color kWhite03 = Color(0xFFFBFBFB); + static const Color kPurple01 = Color.fromRGBO(18, 18, 196, 0.6); + static const Color kDarkBlue = Color.fromRGBO(18, 18, 196, 1); + static const Color kPurple02 = Color(0xFF4534CE); + static const Color kPurple03 = Color(0xFFCBC8F3); + static const Color kLightPurple = Color(0xFFB6B6E8); + static const Color kDarkGreen = Color(0xFF3A8977); + static const Color kYellow = Color(0xFFF3BA2F); + static const Color kLightYellow = Color(0xFFFED564); + static const Color kLightRed = Color(0xFFEF4421); + static const Color kBgWhite = Color(0xFFE5E5E5); + static const Color kLightBlackText = Color(0xFFA0A6AB); + static const Color kpurpleButtonColor = Color(0xFF8F8FCE); + static const Color kpurpleDark = Color(0xFF1212C4); + static const Color kTextGrey = Color(0xFF7A7A8F); + static const Color kGreyIcon = Color(0xFFAEAEAE); + static const Color kDarkPurple = Color(0xff0A004A); + + static const Color kLightGreyColor = Color(0xFFE5E5E5); + static const Color kPurple = Color(0xFF4421CC); + static const Color kHashtagColor = Color(0xFFB6B6E8); + + static const String universalSansFamily = "UniversalSans"; + + static ThemeData theme(BuildContext context) => ThemeData( + primaryColor: kWhite, + textTheme: GoogleFonts.interTextTheme(Theme.of(context).textTheme), + scaffoldBackgroundColor: kWhite, + visualDensity: VisualDensity.standard, + ); + + static Color cardBackground = const Color(0xFFC4C4C4).withOpacity(0.2); + static Color cardBackgroundSelected = const Color(0x801212C4).withOpacity(0.2); + + static TextStyle titleStyle = TextStyle( + fontSize: 18.sp, + fontWeight: FontWeight.w800, + color: EventlyAppTheme.kBlack, + fontFamily: universalSansFamily, + ); + static TextStyle digitTextStyle = TextStyle( + fontSize: 20.sp, + fontWeight: FontWeight.w800, + color: EventlyAppTheme.kWhite, + fontFamily: universalSansFamily, + ); + + static TextStyle kDeleteHeaderTextStyle = TextStyle(fontSize: 14.sp, fontFamily: 'UniversalSans', color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w600); +} diff --git a/evently/macos/Flutter/GeneratedPluginRegistrant.swift b/evently/macos/Flutter/GeneratedPluginRegistrant.swift index 724bb2ac32..b8e2b22f76 100644 --- a/evently/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/evently/macos/Flutter/GeneratedPluginRegistrant.swift @@ -5,8 +5,10 @@ import FlutterMacOS import Foundation +import path_provider_foundation import shared_preferences_foundation func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 8af3e0b22a..9b371c0a60 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -49,6 +49,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.18.0" + crypto: + dependency: transitive + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" cupertino_icons: dependency: "direct main" description: @@ -133,6 +141,30 @@ packages: description: flutter source: sdk version: "0.0.0" + google_fonts: + dependency: "direct main" + description: + name: google_fonts + sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82 + url: "https://pub.dev" + source: hosted + version: "6.2.1" + http: + dependency: transitive + description: + name: http + sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" intl: dependency: transitive description: @@ -205,6 +237,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.9.0" + path_provider: + dependency: transitive + description: + name: path_provider + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 + url: "https://pub.dev" + source: hosted + version: "2.1.3" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + sha256: a248d8146ee5983446bf03ed5ea8f6533129a12b11f12057ad1b4a67a2b3b41d + url: "https://pub.dev" + source: hosted + version: "2.2.4" + path_provider_foundation: + dependency: transitive + description: + name: path_provider_foundation + sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f" + url: "https://pub.dev" + source: hosted + version: "2.3.2" path_provider_linux: dependency: transitive description: @@ -354,6 +410,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.6.1" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" vector_math: dependency: transitive description: @@ -396,4 +460,4 @@ packages: version: "1.0.4" sdks: dart: ">=3.3.4 <4.0.0" - flutter: ">=3.19.0" + flutter: ">=3.19.2" diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index a936584545..c7d428ee02 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -37,6 +37,7 @@ dependencies: cupertino_icons: ^1.0.6 easy_localization: ^3.0.6 flutter_screenutil: ^5.9.0 + google_fonts: ^6.2.1 dev_dependencies: flutter_test: From d860ddb5dbca0d2dd69bdd6bd6158aca87bcb889 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:43:15 +0500 Subject: [PATCH 005/158] feat: routes configurations --- evently/lib/main.dart | 5 ++++- evently/lib/utils/route_util.dart | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 evently/lib/utils/route_util.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 620fe85924..0cbbca978f 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -3,7 +3,10 @@ import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -void main() { +void main() async { + WidgetsFlutterBinding.ensureInitialized(); + await EasyLocalization.ensureInitialized(); + runApp( EasyLocalization( supportedLocales: const [ diff --git a/evently/lib/utils/route_util.dart b/evently/lib/utils/route_util.dart new file mode 100644 index 0000000000..c8ce8f45b3 --- /dev/null +++ b/evently/lib/utils/route_util.dart @@ -0,0 +1,5 @@ +class RouteUtil { + RouteUtil(); + + static String kRouteEventHub = "/eventHub"; +} From 373d13767fe9384b06af018e8c54d6e2a834ff77 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:47:39 +0500 Subject: [PATCH 006/158] feat: screen responsiveness --- evently/lib/main.dart | 12 ++++++++++++ evently/lib/utils/constants.dart | 1 + evently/lib/utils/screen_responsive.dart | 18 ++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 evently/lib/utils/constants.dart create mode 100644 evently/lib/utils/screen_responsive.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 0cbbca978f..250bed3617 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,12 +1,19 @@ +import 'dart:ui'; + import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +bool isTablet = false; + void main() async { WidgetsFlutterBinding.ensureInitialized(); await EasyLocalization.ensureInitialized(); + isTablet = _getIsCurrentDeviceTablet(); + runApp( EasyLocalization( supportedLocales: const [ @@ -55,3 +62,8 @@ class MyApp extends StatelessWidget { ); } } + +bool _getIsCurrentDeviceTablet() { + final MediaQueryData mediaQuery = MediaQueryData.fromView(PlatformDispatcher.instance.implicitView!); + return mediaQuery.size.shortestSide >= tabletMinWidth; +} diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart new file mode 100644 index 0000000000..40621e4583 --- /dev/null +++ b/evently/lib/utils/constants.dart @@ -0,0 +1 @@ +const double tabletMinWidth = 600; diff --git a/evently/lib/utils/screen_responsive.dart b/evently/lib/utils/screen_responsive.dart new file mode 100644 index 0000000000..6a7510bf5c --- /dev/null +++ b/evently/lib/utils/screen_responsive.dart @@ -0,0 +1,18 @@ +import 'package:evently/main.dart'; +import 'package:flutter/material.dart'; + +class ScreenResponsive extends StatelessWidget { + final WidgetBuilder mobileScreen; + final WidgetBuilder tabletScreen; + + const ScreenResponsive({super.key, required this.mobileScreen, required this.tabletScreen}); + + @override + Widget build(BuildContext context) { + if (isTablet) { + return tabletScreen(context); + } + + return mobileScreen(context); + } +} From 2676e2a1cb220a42ed93b9d0e4cdc3ddc9bfa0b1 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:50:15 +0500 Subject: [PATCH 007/158] feat: splash screen --- evently/lib/main.dart | 4 ++-- evently/lib/screens/splash_screen.dart | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 evently/lib/screens/splash_screen.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 250bed3617..424b766985 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,6 +1,6 @@ import 'dart:ui'; - import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/screens/splash_screen.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; @@ -56,7 +56,7 @@ class MyApp extends StatelessWidget { theme: EventlyAppTheme.theme(context), initialRoute: '/', routes: { - '/': (context) => const Placeholder(), + '/': (context) => const SplashScreen(), }, ), ); diff --git a/evently/lib/screens/splash_screen.dart b/evently/lib/screens/splash_screen.dart new file mode 100644 index 0000000000..f63c3ff4cd --- /dev/null +++ b/evently/lib/screens/splash_screen.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class SplashScreen extends StatefulWidget { + const SplashScreen({super.key}); + + @override + State createState() => _SplashScreenState(); +} + +class _SplashScreenState extends State { + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} From e37dcf30fc88c2b148d0eefe88157c04b47115e3 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 10:58:23 +0500 Subject: [PATCH 008/158] feat: splash screen assets --- evently/assets/images/svg/splash.svg | 227 +++++++++++++++++++++++++ evently/lib/screens/splash_screen.dart | 2 +- evently/lib/utils/constants.dart | 5 + evently/pubspec.yaml | 1 + 4 files changed, 234 insertions(+), 1 deletion(-) create mode 100644 evently/assets/images/svg/splash.svg diff --git a/evently/assets/images/svg/splash.svg b/evently/assets/images/svg/splash.svg new file mode 100644 index 0000000000..f0b2fe451a --- /dev/null +++ b/evently/assets/images/svg/splash.svg @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/evently/lib/screens/splash_screen.dart b/evently/lib/screens/splash_screen.dart index f63c3ff4cd..05a58912ec 100644 --- a/evently/lib/screens/splash_screen.dart +++ b/evently/lib/screens/splash_screen.dart @@ -10,6 +10,6 @@ class SplashScreen extends StatefulWidget { class _SplashScreenState extends State { @override Widget build(BuildContext context) { - return const Placeholder(); + return Scaffold(); } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 40621e4583..ec4ce6ba45 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -1 +1,6 @@ const double tabletMinWidth = 600; + +/// ```SVG assets +class SVGUtils { + static const kSvgSplash = 'assets/images/svg/splash.svg'; +} diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index c7d428ee02..d82275a7c7 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -67,6 +67,7 @@ flutter: - i18n/ru-RU.json - i18n/de.json - i18n/es.json + - assets/images/svg/ fonts: - family: UniversalSans From efd31a26d0593987482c10bed594edecd072cdcc Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 11:03:37 +0500 Subject: [PATCH 009/158] feat: screen --- evently/lib/screens/splash_screen.dart | 14 ++++++- evently/pubspec.lock | 56 ++++++++++++++++++++++++++ evently/pubspec.yaml | 1 + 3 files changed, 70 insertions(+), 1 deletion(-) diff --git a/evently/lib/screens/splash_screen.dart b/evently/lib/screens/splash_screen.dart index 05a58912ec..11d5e061f5 100644 --- a/evently/lib/screens/splash_screen.dart +++ b/evently/lib/screens/splash_screen.dart @@ -1,4 +1,7 @@ +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/screen_responsive.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_svg/flutter_svg.dart'; class SplashScreen extends StatefulWidget { const SplashScreen({super.key}); @@ -10,6 +13,15 @@ class SplashScreen extends StatefulWidget { class _SplashScreenState extends State { @override Widget build(BuildContext context) { - return Scaffold(); + return Scaffold( + body: ScreenResponsive( + mobileScreen: (BuildContext context) => buildMobileScreen(context), + tabletScreen: (BuildContext context) => buildMobileScreen(context), + ), + ); + } + + Widget buildMobileScreen(BuildContext context) { + return SvgPicture.asset(SVGUtils.kSvgSplash, fit: BoxFit.cover); } } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 9b371c0a60..419f03753a 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -131,6 +131,14 @@ packages: url: "https://pub.dev" source: hosted version: "5.9.0" + flutter_svg: + dependency: "direct main" + description: + name: flutter_svg + sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2" + url: "https://pub.dev" + source: hosted + version: "2.0.10+1" flutter_test: dependency: "direct dev" description: flutter @@ -237,6 +245,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.9.0" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf + url: "https://pub.dev" + source: hosted + version: "1.0.1" path_provider: dependency: transitive description: @@ -285,6 +301,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.1" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + url: "https://pub.dev" + source: hosted + version: "6.0.2" platform: dependency: transitive description: @@ -418,6 +442,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.2" + vector_graphics: + dependency: transitive + description: + name: vector_graphics + sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3" + url: "https://pub.dev" + source: hosted + version: "1.1.11+1" + vector_graphics_codec: + dependency: transitive + description: + name: vector_graphics_codec + sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da + url: "https://pub.dev" + source: hosted + version: "1.1.11+1" + vector_graphics_compiler: + dependency: transitive + description: + name: vector_graphics_compiler + sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81" + url: "https://pub.dev" + source: hosted + version: "1.1.11+1" vector_math: dependency: transitive description: @@ -458,6 +506,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.4" + xml: + dependency: transitive + description: + name: xml + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + url: "https://pub.dev" + source: hosted + version: "6.5.0" sdks: dart: ">=3.3.4 <4.0.0" flutter: ">=3.19.2" diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index d82275a7c7..88554b7604 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -38,6 +38,7 @@ dependencies: easy_localization: ^3.0.6 flutter_screenutil: ^5.9.0 google_fonts: ^6.2.1 + flutter_svg: ^2.0.10+1 dev_dependencies: flutter_test: From 579dbfee579d1cff64c6d8bd05f657d789062b12 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 11:08:51 +0500 Subject: [PATCH 010/158] feat: splah basic flow --- evently/lib/main.dart | 2 ++ evently/lib/screens/splash_screen.dart | 10 ++++++++++ evently/lib/utils/constants.dart | 1 + 3 files changed, 13 insertions(+) diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 424b766985..f3da2b4ec7 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -3,6 +3,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/screens/splash_screen.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -57,6 +58,7 @@ class MyApp extends StatelessWidget { initialRoute: '/', routes: { '/': (context) => const SplashScreen(), + RouteUtil.kRouteEventHub: (context) => const Placeholder(), }, ), ); diff --git a/evently/lib/screens/splash_screen.dart b/evently/lib/screens/splash_screen.dart index 11d5e061f5..0a4082b0f6 100644 --- a/evently/lib/screens/splash_screen.dart +++ b/evently/lib/screens/splash_screen.dart @@ -1,4 +1,6 @@ +import 'package:evently/main.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/screen_responsive.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -11,6 +13,14 @@ class SplashScreen extends StatefulWidget { } class _SplashScreenState extends State { + @override + void initState() { + Future.delayed(const Duration(seconds: kSplashScreenDuration), () { + navigatorKey.currentState!.pushReplacementNamed(RouteUtil.kRouteEventHub); + }); + super.initState(); + } + @override Widget build(BuildContext context) { return Scaffold( diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index ec4ce6ba45..0dca1f9f63 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -1,4 +1,5 @@ const double tabletMinWidth = 600; +const int kSplashScreenDuration = 3; /// ```SVG assets class SVGUtils { From 0e3836ec061c849fd4dd2ed8a1073ce032e5ac11 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 11:13:08 +0500 Subject: [PATCH 011/158] feat: event hub screen --- evently/lib/main.dart | 3 ++- .../lib/screens/event_hub/event_hub_screen.dart | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 evently/lib/screens/event_hub/event_hub_screen.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index f3da2b4ec7..6559377d1c 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,5 +1,6 @@ import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/screens/event_hub/event_hub_screen.dart'; import 'package:evently/screens/splash_screen.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; @@ -58,7 +59,7 @@ class MyApp extends StatelessWidget { initialRoute: '/', routes: { '/': (context) => const SplashScreen(), - RouteUtil.kRouteEventHub: (context) => const Placeholder(), + RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), }, ), ); diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart new file mode 100644 index 0000000000..4b65e6c3ba --- /dev/null +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class EventHubScreen extends StatefulWidget { + const EventHubScreen({super.key}); + + @override + State createState() => _EventHubScreenState(); +} + +class _EventHubScreenState extends State { + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} From 4856baacc82ed7cd25f217fdea684d09bc019ffa Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 11:25:47 +0500 Subject: [PATCH 012/158] feat: event hub screen --- evently/lib/generated/locale_keys.g.dart | 5 +++++ .../screens/event_hub/event_hub_screen.dart | 22 ++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 evently/lib/generated/locale_keys.g.dart diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart new file mode 100644 index 0000000000..ebfe94fe06 --- /dev/null +++ b/evently/lib/generated/locale_keys.g.dart @@ -0,0 +1,5 @@ +// DO NOT EDIT. This is code generated via package:easy_localization/generate.dart + +abstract class LocaleKeys { + +} diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 4b65e6c3ba..1ade0634f6 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -1,4 +1,6 @@ +import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; class EventHubScreen extends StatefulWidget { const EventHubScreen({super.key}); @@ -10,6 +12,24 @@ class EventHubScreen extends StatefulWidget { class _EventHubScreenState extends State { @override Widget build(BuildContext context) { - return const Placeholder(); + return ColoredBox( + color: EventlyAppTheme.kWhite, + child: SafeArea( + child: Scaffold( + backgroundColor: EventlyAppTheme.kBgWhite, + body: Padding( + padding: EdgeInsets.only(top: 20.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + + ], + ), + ), + ), + ), + ); } + + } From 1ba9c6935c62b36777193334b9ab404ba2db3cdf Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 12:04:06 +0500 Subject: [PATCH 013/158] feat: event hub basic with styling --- evently/i18n/de.json | 7 + evently/i18n/en-US.json | 7 + evently/i18n/es.json | 7 + evently/i18n/ru-RU.json | 7 + evently/lib/generated/locale_keys.g.dart | 7 + .../screens/event_hub/event_hub_screen.dart | 131 ++++++++++++- evently/lib/utils/constants.dart | 2 + evently/lib/widgets/clipped_button.dart | 184 ++++++++++++++++++ 8 files changed, 347 insertions(+), 5 deletions(-) create mode 100644 evently/lib/widgets/clipped_button.dart diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 7a73a41bfd..8050886a69 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -1,2 +1,9 @@ { + "eventhub": "Event Hub", + "welcome_event": "Welcome to Evently, where you can create custom events and issue NFT tickets with perks attendees can use during the event!", + "draft": "Draft", + "for_sale" : "For Sale", + "history": "History", + "no_nft_created": "There is no NFTs created.", + "create_event": "Create an event!" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 7a73a41bfd..8050886a69 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -1,2 +1,9 @@ { + "eventhub": "Event Hub", + "welcome_event": "Welcome to Evently, where you can create custom events and issue NFT tickets with perks attendees can use during the event!", + "draft": "Draft", + "for_sale" : "For Sale", + "history": "History", + "no_nft_created": "There is no NFTs created.", + "create_event": "Create an event!" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 7a73a41bfd..8050886a69 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -1,2 +1,9 @@ { + "eventhub": "Event Hub", + "welcome_event": "Welcome to Evently, where you can create custom events and issue NFT tickets with perks attendees can use during the event!", + "draft": "Draft", + "for_sale" : "For Sale", + "history": "History", + "no_nft_created": "There is no NFTs created.", + "create_event": "Create an event!" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 7a73a41bfd..8050886a69 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -1,2 +1,9 @@ { + "eventhub": "Event Hub", + "welcome_event": "Welcome to Evently, where you can create custom events and issue NFT tickets with perks attendees can use during the event!", + "draft": "Draft", + "for_sale" : "For Sale", + "history": "History", + "no_nft_created": "There is no NFTs created.", + "create_event": "Create an event!" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index ebfe94fe06..078c26fb99 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -1,5 +1,12 @@ // DO NOT EDIT. This is code generated via package:easy_localization/generate.dart abstract class LocaleKeys { + static const eventhub = 'eventhub'; + static const welcome_event = 'welcome_event'; + static const draft = 'draft'; + static const for_sale = 'for_sale'; + static const history = 'history'; + static const no_nft_created = 'no_nft_created'; + static const create_event = 'create_event'; } diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 1ade0634f6..f0c395832b 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -1,4 +1,10 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/main.dart'; +import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/widgets/clipped_button.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -10,19 +16,103 @@ class EventHubScreen extends StatefulWidget { } class _EventHubScreenState extends State { + TextStyle headingStyle = TextStyle( + fontSize: isTablet ? 20.sp : 20.sp, + fontWeight: FontWeight.w800, + color: EventlyAppTheme.kLightPurple, + fontFamily: kUniversalFontFamily, + ); + TextStyle titleStyle = TextStyle( + fontSize: isTablet ? 14.sp : 14.sp, + fontWeight: FontWeight.w700, + color: EventlyAppTheme.kWhite, + fontFamily: kUniversalFontFamily, + ); + TextStyle btnTxtStyle = TextStyle( + fontSize: isTablet ? 12.sp : 12.sp, + fontWeight: FontWeight.w700, + color: EventlyAppTheme.kWhite, + fontFamily: kUniversalFontFamily, + ); + + TextStyle subTitleStyle = TextStyle( + fontSize: isTablet ? 12.sp : 12.sp, + fontWeight: FontWeight.w700, + color: EventlyAppTheme.kLightText, + fontFamily: kUniversalFontFamily, + ); + @override Widget build(BuildContext context) { - return ColoredBox( - color: EventlyAppTheme.kWhite, + return ColoredBox( + color: EventlyAppTheme.kBlack, child: SafeArea( child: Scaffold( - backgroundColor: EventlyAppTheme.kBgWhite, + backgroundColor: EventlyAppTheme.kBlack, body: Padding( padding: EdgeInsets.only(top: 20.h), child: Column( - crossAxisAlignment: CrossAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, children: [ - + Container( + height: 40.h, + alignment: Alignment.centerRight, + padding: EdgeInsets.symmetric(horizontal: 16.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + InkWell( + onTap: () => {}, + child: DecoratedBox( + decoration: BoxDecoration( + color: EventlyAppTheme.kpurpleDark, + boxShadow: [BoxShadow(color: EventlyAppTheme.kpurpleDark.withOpacity(0.6), blurRadius: 8.0)], + ), + child: Icon(Icons.add, size: 27.h, color: EventlyAppTheme.kWhite), + ), + ), + ], + ), + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Text( + LocaleKeys.eventhub.tr(), + style: headingStyle, + textAlign: TextAlign.center, + ), + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Text( + LocaleKeys.welcome_event.tr(), + style: titleStyle, + textAlign: TextAlign.center, + ), + ), + SizedBox(height: 20.h), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + getButton(title: LocaleKeys.draft), + getButton(title: LocaleKeys.for_sale), + getButton(title: LocaleKeys.history), + ], + ), + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Align( + alignment: Alignment.centerLeft, + child: Text( + LocaleKeys.no_nft_created.tr(), + style: subTitleStyle, + )), + ), + const Spacer(), + Padding(padding: EdgeInsets.symmetric(horizontal: 20.w), child: getCreateEventWidget()), ], ), ), @@ -31,5 +121,36 @@ class _EventHubScreenState extends State { ); } + Widget getButton({required String title}) { + return Expanded( + child: Container( + alignment: Alignment.center, + margin: EdgeInsets.symmetric(horizontal: 8.w), + decoration: BoxDecoration(border: Border.all(color: EventlyAppTheme.kWhite)), + padding: EdgeInsets.symmetric(vertical: 5.h, horizontal: 10.w), + child: Text( + title.tr(), + style: btnTxtStyle, + textAlign: TextAlign.center, + ), + ), + ); + } + Widget getCreateEventWidget() { + return Padding( + padding: EdgeInsets.only(bottom: 20.h), + child: ClippedButton( + title: LocaleKeys.create_event.tr(), + bgColor: EventlyAppTheme.kBlue, + textColor: EventlyAppTheme.kWhite, + onPressed: () {}, + cuttingHeight: 15.h, + clipperType: ClipperType.bottomLeftTopRight, + isShadow: false, + fontWeight: FontWeight.w700, + fontSize: 14, + ), + ); + } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 0dca1f9f63..60501e0e1c 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -1,5 +1,7 @@ const double tabletMinWidth = 600; const int kSplashScreenDuration = 3; +const String kUniversalFontFamily = "UniversalSans"; + /// ```SVG assets class SVGUtils { diff --git a/evently/lib/widgets/clipped_button.dart b/evently/lib/widgets/clipped_button.dart new file mode 100644 index 0000000000..9e19546ede --- /dev/null +++ b/evently/lib/widgets/clipped_button.dart @@ -0,0 +1,184 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +// ignore_for_file: must_be_immutable + +enum ClipperType { topLeftBottomRight, bottomLeftTopRight } + +class ClippedButton extends StatelessWidget { + final VoidCallback onPressed; + final String title; + final Color bgColor; + final Color textColor; + final double cuttingHeight; + final ClipperType clipperType; + final FontWeight fontWeight; + bool? isShadow = true; + final double fontSize; + + ClippedButton({ + super.key, + required this.onPressed, + required this.title, + required this.bgColor, + required this.textColor, + required this.cuttingHeight, + this.isShadow = true, + required this.clipperType, + required this.fontWeight, + this.fontSize = 16, + }); + + @override + Widget build(BuildContext context) { + return InkWell( + onTap: () { + onPressed.call(); + }, + child: isShadow! + ? CustomPaint( + painter: clipperType == ClipperType.bottomLeftTopRight + ? BoxShadowPainterBottomLeftTopRight(cuttingHeight: cuttingHeight) + : BoxShadowPainterTopLeftBottomRight(cuttingHeight: cuttingHeight), + child: ClipPath( + clipper: clipperType == ClipperType.bottomLeftTopRight + ? ButtonClipperBottomLeftTopRight(cuttingHeight: cuttingHeight) + : ButtonClipperTopLeftBottomRight(cuttingHeight: cuttingHeight), + child: Container( + color: bgColor, + height: 40.h, + child: Center( + child: Text( + title, + style: TextStyle( + color: textColor, + fontSize: fontSize.sp, + fontWeight: fontWeight, + ), + textAlign: TextAlign.center, + ), + ), + ), + ), + ) + : ClipPath( + clipper: clipperType == ClipperType.bottomLeftTopRight + ? ButtonClipperBottomLeftTopRight(cuttingHeight: cuttingHeight) + : ButtonClipperTopLeftBottomRight(cuttingHeight: cuttingHeight), + child: Container( + color: bgColor, + height: 40.h, + child: Center( + child: Text( + title, + style: TextStyle( + color: textColor, + fontSize: fontSize.sp, + fontWeight: fontWeight, + ), + textAlign: TextAlign.center, + ), + ), + ), + ), + ); + } +} + +class ButtonClipperBottomLeftTopRight extends CustomClipper { + final double cuttingHeight; + + ButtonClipperBottomLeftTopRight({required this.cuttingHeight}); + + @override + Path getClip(Size size) { + final path = Path(); + path.lineTo(0, size.height - cuttingHeight); + path.lineTo(cuttingHeight, size.height); + path.lineTo(size.width, size.height); + path.lineTo(size.width, cuttingHeight); + path.lineTo(size.width - cuttingHeight, 0); + path.lineTo(0, 0); + + return path; + } + + @override + bool shouldReclip(covariant CustomClipper oldClipper) { + return false; + } +} + +class ButtonClipperTopLeftBottomRight extends CustomClipper { + final double cuttingHeight; + + ButtonClipperTopLeftBottomRight({required this.cuttingHeight}); + + @override + Path getClip(Size size) { + final path = Path(); + path.moveTo(0, size.height); + path.lineTo(0, cuttingHeight); + path.lineTo(cuttingHeight, 0); + path.lineTo(size.width, 0); + path.lineTo(size.width, size.height - cuttingHeight); + path.lineTo(size.width - cuttingHeight, size.height); + path.lineTo(0, size.height); + + return path; + } + + @override + bool shouldReclip(covariant CustomClipper oldClipper) { + return false; + } +} + +class BoxShadowPainterBottomLeftTopRight extends CustomPainter { + final double cuttingHeight; + + BoxShadowPainterBottomLeftTopRight({required this.cuttingHeight}); + + @override + void paint(Canvas canvas, Size size) { + final Path path = Path(); + path.lineTo(0, size.height - cuttingHeight); + path.lineTo(cuttingHeight, size.height); + path.lineTo(size.width, size.height); + path.lineTo(size.width, cuttingHeight); + path.lineTo(size.width - cuttingHeight, 0); + path.lineTo(0, 0); + + canvas.drawShadow(path, Colors.black45, 10.0, true); + } + + @override + bool shouldRepaint(CustomPainter oldDelegate) { + return true; + } +} + +class BoxShadowPainterTopLeftBottomRight extends CustomPainter { + final double cuttingHeight; + + BoxShadowPainterTopLeftBottomRight({required this.cuttingHeight}); + + @override + void paint(Canvas canvas, Size size) { + final path = Path(); + path.moveTo(0, size.height); + path.lineTo(0, cuttingHeight); + path.lineTo(cuttingHeight, 0); + path.lineTo(size.width, 0); + path.lineTo(size.width, size.height - cuttingHeight); + path.lineTo(size.width - cuttingHeight, size.height); + path.lineTo(0, size.height); + + canvas.drawShadow(path, Colors.black45, 10.0, true); + } + + @override + bool shouldRepaint(CustomPainter oldDelegate) { + return true; + } +} From 0b6610fc528549520e3a4c21a778fd555eac8165 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 12:13:52 +0500 Subject: [PATCH 014/158] feat: home screen --- evently/lib/main.dart | 1 + evently/lib/screens/event_hub/event_hub_screen.dart | 8 +++++--- evently/lib/utils/route_util.dart | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 6559377d1c..2f5c8d71a6 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -60,6 +60,7 @@ class MyApp extends StatelessWidget { routes: { '/': (context) => const SplashScreen(), RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), + RouteUtil.createEvent: (context) => const Placeholder(), }, ), ); diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index f0c395832b..f482f7b09a 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -3,8 +3,8 @@ import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/main.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/widgets/clipped_button.dart'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -62,7 +62,7 @@ class _EventHubScreenState extends State { mainAxisAlignment: MainAxisAlignment.end, children: [ InkWell( - onTap: () => {}, + onTap: () => Navigator.of(context).pushNamed(RouteUtil.createEvent), child: DecoratedBox( decoration: BoxDecoration( color: EventlyAppTheme.kpurpleDark, @@ -144,7 +144,9 @@ class _EventHubScreenState extends State { title: LocaleKeys.create_event.tr(), bgColor: EventlyAppTheme.kBlue, textColor: EventlyAppTheme.kWhite, - onPressed: () {}, + onPressed: () { + Navigator.of(context).pushNamed(RouteUtil.createEvent); + }, cuttingHeight: 15.h, clipperType: ClipperType.bottomLeftTopRight, isShadow: false, diff --git a/evently/lib/utils/route_util.dart b/evently/lib/utils/route_util.dart index c8ce8f45b3..03058cf14b 100644 --- a/evently/lib/utils/route_util.dart +++ b/evently/lib/utils/route_util.dart @@ -2,4 +2,5 @@ class RouteUtil { RouteUtil(); static String kRouteEventHub = "/eventHub"; + static String createEvent = "/createEvent"; } From 41833720476d02d23db4ddff7e656aa8c4ccfc5a Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 12:17:14 +0500 Subject: [PATCH 015/158] feat: create event --- evently/lib/main.dart | 3 ++- evently/lib/screens/create_event.dart | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 evently/lib/screens/create_event.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 2f5c8d71a6..588f540d72 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,5 +1,6 @@ import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/screens/create_event.dart'; import 'package:evently/screens/event_hub/event_hub_screen.dart'; import 'package:evently/screens/splash_screen.dart'; import 'package:evently/utils/constants.dart'; @@ -60,7 +61,7 @@ class MyApp extends StatelessWidget { routes: { '/': (context) => const SplashScreen(), RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), - RouteUtil.createEvent: (context) => const Placeholder(), + RouteUtil.createEvent: (context) => const CreateEvent(), }, ), ); diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart new file mode 100644 index 0000000000..c0c4516f9a --- /dev/null +++ b/evently/lib/screens/create_event.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class CreateEvent extends StatefulWidget { + const CreateEvent({super.key}); + + @override + State createState() => _CreateEventState(); +} + +class _CreateEventState extends State { + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} From 7d6b46755fc27c3a56791a2a15fbd7c7bae5789a Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 12:38:42 +0500 Subject: [PATCH 016/158] feat: GetIt via injectable and build runner --- evently/lib/main.dart | 4 + evently/lib/utils/di/di.config.dart | 30 ++ evently/lib/utils/di/di.dart | 13 + evently/lib/utils/di/register_modules.dart | 12 + .../viewmodels/create_event_viewmodel.dart | 12 + evently/pubspec.lock | 320 ++++++++++++++++++ evently/pubspec.yaml | 5 + 7 files changed, 396 insertions(+) create mode 100644 evently/lib/utils/di/di.config.dart create mode 100644 evently/lib/utils/di/di.dart create mode 100644 evently/lib/utils/di/register_modules.dart create mode 100644 evently/lib/viewmodels/create_event_viewmodel.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 588f540d72..f9ec0db562 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -4,17 +4,21 @@ import 'package:evently/screens/create_event.dart'; import 'package:evently/screens/event_hub/event_hub_screen.dart'; import 'package:evently/screens/splash_screen.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; + bool isTablet = false; void main() async { WidgetsFlutterBinding.ensureInitialized(); await EasyLocalization.ensureInitialized(); + configureDependencies(); + isTablet = _getIsCurrentDeviceTablet(); runApp( diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart new file mode 100644 index 0000000000..af886c649e --- /dev/null +++ b/evently/lib/utils/di/di.config.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ************************************************************************** +// InjectableConfigGenerator +// ************************************************************************** + +// ignore_for_file: type=lint +// coverage:ignore-file + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; +import 'package:get_it/get_it.dart' as _i1; +import 'package:injectable/injectable.dart' as _i2; + +extension GetItInjectableX on _i1.GetIt { +// initializes the registration of main-scope dependencies inside of GetIt + _i1.GetIt init({ + String? environment, + _i2.EnvironmentFilter? environmentFilter, + }) { + final gh = _i2.GetItHelper( + this, + environment, + environmentFilter, + ); + gh.lazySingleton<_i3.CreateEventViewModel>( + () => _i3.CreateEventViewModel()); + return this; + } +} diff --git a/evently/lib/utils/di/di.dart b/evently/lib/utils/di/di.dart new file mode 100644 index 0000000000..ecf2d0d691 --- /dev/null +++ b/evently/lib/utils/di/di.dart @@ -0,0 +1,13 @@ +// coverage: false +// coverage:ignore-file + +import 'package:evently/utils/di/di.config.dart'; +import 'package:get_it/get_it.dart'; +import 'package:injectable/injectable.dart'; + +// Service Locator for project +final sl = GetIt.I; + +// initialization of Service locator +@InjectableInit() +void configureDependencies() => sl.init(); diff --git a/evently/lib/utils/di/register_modules.dart b/evently/lib/utils/di/register_modules.dart new file mode 100644 index 0000000000..4782ae37f2 --- /dev/null +++ b/evently/lib/utils/di/register_modules.dart @@ -0,0 +1,12 @@ +// coverage: false +// coverage:ignore-file +// Injectable is a convenient code generator for get_it. +// All you have to do now is annotate your injectable classes with @injectable and let the generator do the work. +// This class is use to generate code to register objects on app start +import 'package:injectable/injectable.dart'; + + +@module +abstract class RegisterModule { + +} diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart new file mode 100644 index 0000000000..89eaae418e --- /dev/null +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -0,0 +1,12 @@ + + + +import 'package:flutter/material.dart'; +import 'package:injectable/injectable.dart'; + + +@lazySingleton +class CreateEventViewModel extends ChangeNotifier { + + +} \ No newline at end of file diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 419f03753a..af6ab5919f 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -1,6 +1,22 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" + url: "https://pub.dev" + source: hosted + version: "67.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" + url: "https://pub.dev" + source: hosted + version: "6.4.1" args: dependency: transitive description: @@ -25,6 +41,70 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.1" + build: + dependency: transitive + description: + name: build + sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + build_config: + dependency: transitive + description: + name: build_config + sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 + url: "https://pub.dev" + source: hosted + version: "1.1.1" + build_daemon: + dependency: transitive + description: + name: build_daemon + sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" + url: "https://pub.dev" + source: hosted + version: "4.0.1" + build_resolvers: + dependency: transitive + description: + name: build_resolvers + sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" + url: "https://pub.dev" + source: hosted + version: "2.4.2" + build_runner: + dependency: "direct main" + description: + name: build_runner + sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22" + url: "https://pub.dev" + source: hosted + version: "2.4.9" + build_runner_core: + dependency: transitive + description: + name: build_runner_core + sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799" + url: "https://pub.dev" + source: hosted + version: "7.3.0" + built_collection: + dependency: transitive + description: + name: built_collection + sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" + url: "https://pub.dev" + source: hosted + version: "5.1.1" + built_value: + dependency: transitive + description: + name: built_value + sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb + url: "https://pub.dev" + source: hosted + version: "8.9.2" characters: dependency: transitive description: @@ -33,6 +113,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff + url: "https://pub.dev" + source: hosted + version: "2.0.3" clock: dependency: transitive description: @@ -41,6 +129,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.1" + code_builder: + dependency: transitive + description: + name: code_builder + sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 + url: "https://pub.dev" + source: hosted + version: "4.10.0" collection: dependency: transitive description: @@ -49,6 +145,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.18.0" + convert: + dependency: transitive + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" crypto: dependency: transitive description: @@ -65,6 +169,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.8" + dart_style: + dependency: transitive + description: + name: dart_style + sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" + url: "https://pub.dev" + source: hosted + version: "2.3.6" easy_localization: dependency: "direct main" description: @@ -105,6 +217,14 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.0" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" + url: "https://pub.dev" + source: hosted + version: "1.1.0" flutter: dependency: "direct main" description: flutter @@ -149,6 +269,30 @@ packages: description: flutter source: sdk version: "0.0.0" + frontend_server_client: + dependency: transitive + description: + name: frontend_server_client + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 + url: "https://pub.dev" + source: hosted + version: "4.0.0" + get_it: + dependency: "direct main" + description: + name: get_it + sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1 + url: "https://pub.dev" + source: hosted + version: "7.7.0" + glob: + dependency: transitive + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" google_fonts: dependency: "direct main" description: @@ -157,6 +301,14 @@ packages: url: "https://pub.dev" source: hosted version: "6.2.1" + graphs: + dependency: transitive + description: + name: graphs + sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 + url: "https://pub.dev" + source: hosted + version: "2.3.1" http: dependency: transitive description: @@ -165,6 +317,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.1" + http_multi_server: + dependency: transitive + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" http_parser: dependency: transitive description: @@ -173,6 +333,22 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.2" + injectable: + dependency: "direct main" + description: + name: injectable + sha256: "3d98967224a5fdd4094a61bf53ed9616c3fbcf3e090bf83e7cb7d436d0c20041" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + injectable_generator: + dependency: "direct main" + description: + name: injectable_generator + sha256: "2ca3ada337eac0ef6b82f8049c970ddb63947738fdf32ac6cbef8d1567d7ba05" + url: "https://pub.dev" + source: hosted + version: "2.6.1" intl: dependency: transitive description: @@ -181,6 +357,30 @@ packages: url: "https://pub.dev" source: hosted version: "0.18.1" + io: + dependency: transitive + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: transitive + description: + name: js + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf + url: "https://pub.dev" + source: hosted + version: "0.7.1" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" + url: "https://pub.dev" + source: hosted + version: "4.9.0" leak_tracker: dependency: transitive description: @@ -213,6 +413,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.0" + logging: + dependency: transitive + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" matcher: dependency: transitive description: @@ -237,6 +445,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.11.0" + mime: + dependency: transitive + description: + name: mime + sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + package_config: + dependency: transitive + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" path: dependency: transitive description: @@ -325,6 +549,38 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" + pool: + dependency: transitive + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + pubspec_parse: + dependency: transitive + description: + name: pubspec_parse + sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + url: "https://pub.dev" + source: hosted + version: "1.2.3" + recase: + dependency: transitive + description: + name: recase + sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213 + url: "https://pub.dev" + source: hosted + version: "4.1.0" shared_preferences: dependency: transitive description: @@ -381,11 +637,35 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.2" + shelf: + dependency: transitive + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_web_socket: + dependency: transitive + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" sky_engine: dependency: transitive description: flutter source: sdk version: "0.0.99" + source_gen: + dependency: transitive + description: + name: source_gen + sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" + url: "https://pub.dev" + source: hosted + version: "1.5.0" source_span: dependency: transitive description: @@ -410,6 +690,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.2" + stream_transform: + dependency: transitive + description: + name: stream_transform + sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" + url: "https://pub.dev" + source: hosted + version: "2.1.0" string_scanner: dependency: transitive description: @@ -434,6 +722,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.6.1" + timing: + dependency: transitive + description: + name: timing + sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" + url: "https://pub.dev" + source: hosted + version: "1.0.1" typed_data: dependency: transitive description: @@ -482,6 +778,14 @@ packages: url: "https://pub.dev" source: hosted version: "13.0.0" + watcher: + dependency: transitive + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" web: dependency: transitive description: @@ -490,6 +794,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + url: "https://pub.dev" + source: hosted + version: "2.4.5" win32: dependency: transitive description: @@ -514,6 +826,14 @@ packages: url: "https://pub.dev" source: hosted version: "6.5.0" + yaml: + dependency: transitive + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" sdks: dart: ">=3.3.4 <4.0.0" flutter: ">=3.19.2" diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index 88554b7604..b1eb5db376 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -39,6 +39,10 @@ dependencies: flutter_screenutil: ^5.9.0 google_fonts: ^6.2.1 flutter_svg: ^2.0.10+1 + get_it: ^7.7.0 + injectable_generator: ^2.6.1 + build_runner: ^2.4.9 + injectable: ^2.4.1 dev_dependencies: flutter_test: @@ -51,6 +55,7 @@ dev_dependencies: # rules and activating additional ones. flutter_lints: ^3.0.0 + # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec From 85130ef1f2655d24a0e80b40180cb944bad9b990 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 12:45:16 +0500 Subject: [PATCH 017/158] feat: translation for create event screen --- evently/i18n/de.json | 6 +++- evently/i18n/en-US.json | 6 +++- evently/i18n/es.json | 6 +++- evently/i18n/ru-RU.json | 6 +++- evently/lib/utils/constants.dart | 2 ++ .../viewmodels/create_event_viewmodel.dart | 35 ++++++++++++++++--- 6 files changed, 52 insertions(+), 9 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 8050886a69..4fd5ed6e56 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -5,5 +5,9 @@ "for_sale" : "For Sale", "history": "History", "no_nft_created": "There is no NFTs created.", - "create_event": "Create an event!" + "create_event": "Create an event!", + "overview": "Overview", + "detail": "Detail", + "perks": "Perks", + "price": "Price" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 8050886a69..4fd5ed6e56 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -5,5 +5,9 @@ "for_sale" : "For Sale", "history": "History", "no_nft_created": "There is no NFTs created.", - "create_event": "Create an event!" + "create_event": "Create an event!", + "overview": "Overview", + "detail": "Detail", + "perks": "Perks", + "price": "Price" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 8050886a69..4fd5ed6e56 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -5,5 +5,9 @@ "for_sale" : "For Sale", "history": "History", "no_nft_created": "There is no NFTs created.", - "create_event": "Create an event!" + "create_event": "Create an event!", + "overview": "Overview", + "detail": "Detail", + "perks": "Perks", + "price": "Price" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 8050886a69..4fd5ed6e56 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -5,5 +5,9 @@ "for_sale" : "For Sale", "history": "History", "no_nft_created": "There is no NFTs created.", - "create_event": "Create an event!" + "create_event": "Create an event!", + "overview": "Overview", + "detail": "Detail", + "perks": "Perks", + "price": "Price" } \ No newline at end of file diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 60501e0e1c..3244672e3b 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -1,6 +1,8 @@ const double tabletMinWidth = 600; const int kSplashScreenDuration = 3; const String kUniversalFontFamily = "UniversalSans"; +const int kPageAnimationTimeInMillis = 300; +const kDraft = "Draft"; /// ```SVG assets diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index 89eaae418e..ca8c5c7c24 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -1,12 +1,37 @@ - - - +import 'package:evently/utils/constants.dart'; import 'package:flutter/material.dart'; import 'package:injectable/injectable.dart'; - @lazySingleton class CreateEventViewModel extends ChangeNotifier { + CreateEventViewModel(); + + late ValueNotifier currentPage; + late ValueNotifier currentStep; + late PageController pageController; + + String? from; + final List pageTitles = ['LocaleKeys.upload.tr()', ' LocaleKeys.nft_detail_text.tr()', ' LocaleKeys.nft_pricing.tr()', '']; + + void init({required VoidCallback setTextField}) { + currentPage = ValueNotifier(0); + currentStep = ValueNotifier(0); + pageController = PageController(); + } + + Future nextPage() async { + await pageController.nextPage(duration: const Duration(milliseconds: kPageAnimationTimeInMillis), curve: Curves.easeIn); + notifyListeners(); + } + + Future previousPage() async { + from = kDraft; + await pageController.previousPage(duration: const Duration(milliseconds: kPageAnimationTimeInMillis), curve: Curves.easeIn); + notifyListeners(); + } -} \ No newline at end of file + void disposeControllers() { + pageController.dispose(); + } +} From 1afb9513784313e71480d56b6e45983ad4294a1a Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 14:01:35 +0500 Subject: [PATCH 018/158] feat: create event view model --- evently/lib/generated/locale_keys.g.dart | 4 ++++ evently/lib/viewmodels/create_event_viewmodel.dart | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 078c26fb99..942681b16c 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -8,5 +8,9 @@ abstract class LocaleKeys { static const history = 'history'; static const no_nft_created = 'no_nft_created'; static const create_event = 'create_event'; + static const overview = 'overview'; + static const detail = 'detail'; + static const perks = 'perks'; + static const price = 'price'; } diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index ca8c5c7c24..77055543d1 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -1,3 +1,5 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/utils/constants.dart'; import 'package:flutter/material.dart'; import 'package:injectable/injectable.dart'; @@ -11,7 +13,12 @@ class CreateEventViewModel extends ChangeNotifier { late PageController pageController; String? from; - final List pageTitles = ['LocaleKeys.upload.tr()', ' LocaleKeys.nft_detail_text.tr()', ' LocaleKeys.nft_pricing.tr()', '']; + final List pageTitles = [ + LocaleKeys.overview.tr(), + LocaleKeys.detail.tr(), + LocaleKeys.perks.tr(), + LocaleKeys.price.tr(), + ]; void init({required VoidCallback setTextField}) { currentPage = ValueNotifier(0); From c44c1765ca242b36dce737761d1de9687146fe8a Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 14:14:35 +0500 Subject: [PATCH 019/158] feat: page controller --- evently/lib/screens/create_event.dart | 66 ++++++++++++++++++- .../viewmodels/create_event_viewmodel.dart | 2 +- evently/pubspec.lock | 16 +++++ evently/pubspec.yaml | 1 + 4 files changed, 83 insertions(+), 2 deletions(-) diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index c0c4516f9a..e9cd7bcf85 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,4 +1,8 @@ +import 'package:evently/utils/di/di.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; class CreateEvent extends StatefulWidget { const CreateEvent({super.key}); @@ -8,8 +12,68 @@ class CreateEvent extends StatefulWidget { } class _CreateEventState extends State { + CreateEventViewModel createEventViewModel = sl(); + + @override + void initState() { + createEventViewModel.init(); + super.initState(); + } + + @override + Widget build(BuildContext context) { + return ColoredBox( + color: EventlyAppTheme.kWhite, + child: SafeArea( + bottom: false, + child: Scaffold( + body: ChangeNotifierProvider.value(value: createEventViewModel, child: const CreateEventContent()), + ), + ), + ); + } +} + +class CreateEventContent extends StatelessWidget { + const CreateEventContent({super.key}); + @override Widget build(BuildContext context) { - return const Placeholder(); + final createEventViewModel = context.watch(); + return PageView.builder( + controller: createEventViewModel.pageController, + physics: const NeverScrollableScrollPhysics(), + onPageChanged: (int page) { + createEventViewModel.currentPage.value = page; + final map = {0: 0, 1: 1, 2: 2, 3: 2}; + createEventViewModel.currentStep.value = map[page]!; + }, + itemBuilder: (BuildContext context, int index) { + final map = { + 0: overview, + 1: details, + 2: perks, + 3: price, + }; + + return map[index]?.call() ?? const SizedBox(); + }, + ); + } + + Widget overview() { + return const Text("overview"); + } + + Widget details() { + return const Text("details"); + } + + Widget perks() { + return const Text("perks"); + } + + Widget price() { + return const Text("price"); } } diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index 77055543d1..85a277e351 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -20,7 +20,7 @@ class CreateEventViewModel extends ChangeNotifier { LocaleKeys.price.tr(), ]; - void init({required VoidCallback setTextField}) { + void init() { currentPage = ValueNotifier(0); currentStep = ValueNotifier(0); pageController = PageController(); diff --git a/evently/pubspec.lock b/evently/pubspec.lock index af6ab5919f..add78ea306 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -453,6 +453,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.5" + nested: + dependency: transitive + description: + name: nested + sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" + url: "https://pub.dev" + source: hosted + version: "1.0.0" package_config: dependency: transitive description: @@ -557,6 +565,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" + provider: + dependency: "direct main" + description: + name: provider + sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c + url: "https://pub.dev" + source: hosted + version: "6.1.2" pub_semver: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index b1eb5db376..e8d7f24d1e 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -43,6 +43,7 @@ dependencies: injectable_generator: ^2.6.1 build_runner: ^2.4.9 injectable: ^2.4.1 + provider: ^6.1.2 dev_dependencies: flutter_test: From 36f1380da0f9d34dc1515668dc6bc67fa5c8cee3 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 14:27:34 +0500 Subject: [PATCH 020/158] feat: over view screen and step indicator --- evently/lib/screens/create_event.dart | 3 ++- evently/lib/screens/overview_screen.dart | 28 ++++++++++++++++++++++++ evently/lib/utils/space_utils.dart | 24 ++++++++++++++++++++ evently/pubspec.lock | 8 +++++++ evently/pubspec.yaml | 1 + 5 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 evently/lib/screens/overview_screen.dart create mode 100644 evently/lib/utils/space_utils.dart diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index e9cd7bcf85..71d4af69a7 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,3 +1,4 @@ +import 'package:evently/screens/overview_screen.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; @@ -62,7 +63,7 @@ class CreateEventContent extends StatelessWidget { } Widget overview() { - return const Text("overview"); + return const OverViewScreen(); } Widget details() { diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart new file mode 100644 index 0000000000..4f25195199 --- /dev/null +++ b/evently/lib/screens/overview_screen.dart @@ -0,0 +1,28 @@ +import 'package:evently/viewmodels/create_event_viewmodel.dart'; +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +class OverViewScreen extends StatefulWidget { + const OverViewScreen({Key? key}) : super(key: key); + + @override + State createState() => _OverViewScreenState(); +} + +class _OverViewScreenState extends State { + @override + void initState() { + super.initState(); + } + + @override + Widget build(BuildContext context) { + final homeViewModel = context.watch(); + + return Scaffold( + body: Column( + children: [], + ), + ); + } +} diff --git a/evently/lib/utils/space_utils.dart b/evently/lib/utils/space_utils.dart new file mode 100644 index 0000000000..ac39b726f4 --- /dev/null +++ b/evently/lib/utils/space_utils.dart @@ -0,0 +1,24 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +class VerticalSpace extends StatelessWidget { + final double height; + + const VerticalSpace(this.height, {super.key}); + + @override + Widget build(BuildContext context) => SizedBox( + height: height.h, + ); +} + +class HorizontalSpace extends StatelessWidget { + final double width; + + const HorizontalSpace(this.width, {super.key}); + + @override + Widget build(BuildContext context) => SizedBox( + width: width, + ); +} diff --git a/evently/pubspec.lock b/evently/pubspec.lock index add78ea306..796764cdd7 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -698,6 +698,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.11.1" + steps_indicator: + dependency: "direct main" + description: + name: steps_indicator + sha256: a6e55fae97f29db3df2b8bed77d55ead127f16ffa024e0fe0234b5d71eddffa1 + url: "https://pub.dev" + source: hosted + version: "1.3.0" stream_channel: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index e8d7f24d1e..d7decb6b93 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -44,6 +44,7 @@ dependencies: build_runner: ^2.4.9 injectable: ^2.4.1 provider: ^6.1.2 + steps_indicator: ^1.3.0 dev_dependencies: flutter_test: From 70f329afd7955ca926c33e62cf0d532766daca8a Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 15:17:44 +0500 Subject: [PATCH 021/158] feat: dotted border --- evently/assets/images/svg/upload.svg | 3 + .../assets/images/text_field_multi_line.png | Bin 0 -> 649 bytes .../assets/images/text_field_single_line.png | Bin 0 -> 358 bytes .../screens/custom_widgets/step_labels.dart | 50 +++++++ .../custom_widgets/steps_indicator.dart | 40 ++++++ evently/lib/widgets/easel_text_field.dart | 127 ++++++++++++++++++ 6 files changed, 220 insertions(+) create mode 100644 evently/assets/images/svg/upload.svg create mode 100644 evently/assets/images/text_field_multi_line.png create mode 100644 evently/assets/images/text_field_single_line.png create mode 100644 evently/lib/screens/custom_widgets/step_labels.dart create mode 100644 evently/lib/screens/custom_widgets/steps_indicator.dart create mode 100644 evently/lib/widgets/easel_text_field.dart diff --git a/evently/assets/images/svg/upload.svg b/evently/assets/images/svg/upload.svg new file mode 100644 index 0000000000..a8383b830b --- /dev/null +++ b/evently/assets/images/svg/upload.svg @@ -0,0 +1,3 @@ + + + diff --git a/evently/assets/images/text_field_multi_line.png b/evently/assets/images/text_field_multi_line.png new file mode 100644 index 0000000000000000000000000000000000000000..5a1fc8bdc3bb4a9f6a5179215aa00d0c931bf87a GIT binary patch literal 649 zcmeAS@N?(olHy`uVBq!ia0y~yU`z(G>p0keVM%xNb!1@J*w6hZk(GggNzT*7F{Fa=?Uj?BEQ}%y7cU-AGY!7% z+Pb-N_sxp$>N zl>;&U>cv7h@-A}f&p+tbA{q=ND7mEF9D97I?H7Z_}J%NE$7 zOtv|qdkmP)$)ag$qjvWy*q#| zP`~dMb4Fr8bG))%8qb9r`vt{~*)lTDc63WJn`|lrsh7H8^eE{V1N&_&Fm=lqOx?78 b^oc>qz<>G_cV=KHFfe$!`njxgN@xNAAzX4v literal 0 HcmV?d00001 diff --git a/evently/lib/screens/custom_widgets/step_labels.dart b/evently/lib/screens/custom_widgets/step_labels.dart new file mode 100644 index 0000000000..a66cf071b5 --- /dev/null +++ b/evently/lib/screens/custom_widgets/step_labels.dart @@ -0,0 +1,50 @@ +import 'package:easel_flutter/utils/constants.dart'; +import 'package:easel_flutter/utils/easel_app_theme.dart'; +import 'package:easy_localization/easy_localization.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + + +class StepLabels extends StatelessWidget { + final ValueNotifier currentStep; + final ValueNotifier currentPage; + + const StepLabels({ + Key? key, + required this.currentPage, + required this.currentStep, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 0.1.sw), + child: Row( + children: List.generate(stepLabels.length, (index) { + return SizedBox( + width: 0.8.sw / stepLabels.length, + child: ValueListenableBuilder( + valueListenable: currentPage, + builder: (_, int currentPage, __) => Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + stepLabels[index].tr(), + style: Theme.of(context).textTheme.bodyMedium!.copyWith( + fontSize: 8.sp, + fontFamily: 'Inter', + fontWeight: FontWeight.w700, + color: currentStep.value >= index + ? EaselAppTheme.kBlue + : EaselAppTheme.kGrey, + ), + ), + ], + ), + ), + ); + }), + ), + ); + } +} diff --git a/evently/lib/screens/custom_widgets/steps_indicator.dart b/evently/lib/screens/custom_widgets/steps_indicator.dart new file mode 100644 index 0000000000..74dab820d7 --- /dev/null +++ b/evently/lib/screens/custom_widgets/steps_indicator.dart @@ -0,0 +1,40 @@ +import 'package:easel_flutter/utils/easel_app_theme.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:steps_indicator/steps_indicator.dart'; + +class MyStepsIndicator extends StatelessWidget { + final ValueNotifier currentStep; + + const MyStepsIndicator({ + required this.currentStep, + }); + + @override + Widget build(BuildContext context) { + return ValueListenableBuilder( + valueListenable: currentStep, + builder: (_, int value, __) { + return StepsIndicator( + selectedStep: currentStep.value, + nbSteps: 3, + lineLength: 0.68.sw / 3, + doneLineColor: EaselAppTheme.kBlue, + undoneLineColor: EaselAppTheme.kLightGrey, + doneLineThickness: 1.5, + undoneLineThickness: 1.5, + unselectedStepColorIn: EaselAppTheme.kLightGrey, + unselectedStepColorOut: EaselAppTheme.kLightGrey, + doneStepColor: EaselAppTheme.kBlue, + selectedStepColorIn: EaselAppTheme.kBlue, + selectedStepColorOut: EaselAppTheme.kBlue, + enableLineAnimation: true, + enableStepAnimation: true, + lineLengthCustomStep: const [], + doneStepWidget: Container(width: 10.w, height: 10.h, decoration: const BoxDecoration(color: EaselAppTheme.kBlue)), + unselectedStepWidget: Container(width: 10.w, height: 10.h, decoration: const BoxDecoration(color: EaselAppTheme.kLightGrey)), + selectedStepWidget: Container(width: 15.w, height: 15.h, decoration: const BoxDecoration(color: EaselAppTheme.kBlue)), + ); + }); + } +} diff --git a/evently/lib/widgets/easel_text_field.dart b/evently/lib/widgets/easel_text_field.dart new file mode 100644 index 0000000000..14c36fe396 --- /dev/null +++ b/evently/lib/widgets/easel_text_field.dart @@ -0,0 +1,127 @@ +import 'package:easel_flutter/utils/constants.dart'; +import 'package:easel_flutter/utils/easel_app_theme.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +import '../utils/screen_responsive.dart'; + +class EaselTextField extends StatelessWidget { + const EaselTextField( + {Key? key, + required this.label, + this.hint = "", + this.controller, + this.validator, + this.noOfLines = 1, // default to single line + this.inputFormatters = const [], + this.keyboardType = TextInputType.text, + this.textCapitalization = TextCapitalization.none}) + : super(key: key); + + final String label; + final String hint; + final TextEditingController? controller; + final String? Function(String?)? validator; + final int noOfLines; + final TextInputType keyboardType; + final List inputFormatters; + final TextCapitalization textCapitalization; + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + label, + textAlign: TextAlign.start, + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), + ), + SizedBox(height: 4.h), + Stack( + children: [ + ScreenResponsive( + mobileScreen: (context) => Image.asset( + noOfLines == 1 ? PngUtils.kTextFieldSingleLine : PngUtils.kTextFieldMultiLine, + height: noOfLines == 1 ? 40.h : 120.h, + width: 1.sw, + fit: BoxFit.fill, + ), + tabletScreen: (context) => Image.asset( + noOfLines == 1 ? PngUtils.kTextFieldSingleLine : PngUtils.kTextFieldMultiLine, + height: noOfLines == 1 ? 32.h : 110.h, + width: 1.sw, + fit: BoxFit.fill, + ), + ), + ScreenResponsive( + mobileScreen: (_) => buildMobileTextField(), + tabletScreen: (_) => buildTabletTextField()), + ], + ), + ], + ); + } + + SizedBox buildMobileTextField() { + return SizedBox( + height: noOfLines == 1 ? 40.h : 120.h, + child: Align( + child: TextFormField( + style: TextStyle( + fontSize: noOfLines == 1 ? 18.sp : 15.sp, + fontWeight: FontWeight.w400, + color: EaselAppTheme.kDarkText), + controller: controller, + validator: validator, + minLines: noOfLines, + maxLines: noOfLines, + keyboardType: keyboardType, + textCapitalization: textCapitalization, + inputFormatters: inputFormatters, + decoration: InputDecoration( + hintText: hint, + hintStyle: TextStyle( + fontSize: 15.sp, + fontWeight: FontWeight.w400, + color: EaselAppTheme.kGrey), + border: const OutlineInputBorder(borderSide: BorderSide.none), + floatingLabelBehavior: FloatingLabelBehavior.always, + contentPadding: EdgeInsets.fromLTRB(10.w, 0.h, 10.w, 0.h), + ), + ), + ), + ); + } + + SizedBox buildTabletTextField() { + return SizedBox( + height: noOfLines == 1 ? 32.h : 110.h, + child: Align( + child: TextFormField( + style: TextStyle( + fontSize: noOfLines == 1 ? 16.sp : 14.sp, + fontWeight: FontWeight.w400, + color: EaselAppTheme.kDarkText), + controller: controller, + validator: validator, + minLines: noOfLines, + maxLines: noOfLines, + keyboardType: keyboardType, + textCapitalization: textCapitalization, + inputFormatters: inputFormatters, + decoration: InputDecoration( + hintText: hint, + hintStyle: TextStyle( + fontSize: noOfLines == 1 ? 16.sp : 14.sp, + color: EaselAppTheme.kGrey), + border: const OutlineInputBorder(borderSide: BorderSide.none), + floatingLabelBehavior: FloatingLabelBehavior.always, + contentPadding: EdgeInsets.fromLTRB(10.w, 0.h, 10.w, 0.h), + ), + ), + ), + ); + } +} From b9960534f1e5b4482cd367c0f8ab09c60627d1fb Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 15:18:20 +0500 Subject: [PATCH 022/158] feat: dotted border --- evently/i18n/de.json | 11 +- evently/i18n/en-US.json | 11 +- evently/i18n/es.json | 11 +- evently/i18n/ru-RU.json | 11 +- evently/lib/generated/locale_keys.g.dart | 7 + .../screens/custom_widgets/step_labels.dart | 13 +- .../custom_widgets/steps_indicator.dart | 27 +-- evently/lib/screens/overview_screen.dart | 161 +++++++++++++++++- evently/lib/utils/constants.dart | 8 + evently/lib/widgets/easel_text_field.dart | 39 ++--- evently/pubspec.lock | 16 ++ evently/pubspec.yaml | 2 + 12 files changed, 262 insertions(+), 55 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 4fd5ed6e56..9d24282a4c 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -9,5 +9,14 @@ "overview": "Overview", "detail": "Detail", "perks": "Perks", - "price": "Price" + "price": "Price", + "event_name" : "Event Name", + "what_your_event_called": "What is your event called?", + "host_name": "Host Name", + "who_hosting_it": "Who is hosting it?", + "thumbnail" : "Thumbnail", + "tap_select": "Tap to select ", + "mb_limit": "200MB Limit", + "continue": "Continue", + "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 4fd5ed6e56..9d24282a4c 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -9,5 +9,14 @@ "overview": "Overview", "detail": "Detail", "perks": "Perks", - "price": "Price" + "price": "Price", + "event_name" : "Event Name", + "what_your_event_called": "What is your event called?", + "host_name": "Host Name", + "who_hosting_it": "Who is hosting it?", + "thumbnail" : "Thumbnail", + "tap_select": "Tap to select ", + "mb_limit": "200MB Limit", + "continue": "Continue", + "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 4fd5ed6e56..9d24282a4c 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -9,5 +9,14 @@ "overview": "Overview", "detail": "Detail", "perks": "Perks", - "price": "Price" + "price": "Price", + "event_name" : "Event Name", + "what_your_event_called": "What is your event called?", + "host_name": "Host Name", + "who_hosting_it": "Who is hosting it?", + "thumbnail" : "Thumbnail", + "tap_select": "Tap to select ", + "mb_limit": "200MB Limit", + "continue": "Continue", + "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 4fd5ed6e56..9d24282a4c 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -9,5 +9,14 @@ "overview": "Overview", "detail": "Detail", "perks": "Perks", - "price": "Price" + "price": "Price", + "event_name" : "Event Name", + "what_your_event_called": "What is your event called?", + "host_name": "Host Name", + "who_hosting_it": "Who is hosting it?", + "thumbnail" : "Thumbnail", + "tap_select": "Tap to select ", + "mb_limit": "200MB Limit", + "continue": "Continue", + "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 942681b16c..d6554a6536 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -12,5 +12,12 @@ abstract class LocaleKeys { static const detail = 'detail'; static const perks = 'perks'; static const price = 'price'; + static const event_name = 'event_name'; + static const what_your_event_called = 'what_your_event_called'; + static const host_name = 'host_name'; + static const who_hosting_it = 'who_hosting_it'; + static const thumbnail = 'thumbnail'; + static const tap_select = 'tap_select'; + static const mb_limit = 'mb_limit'; } diff --git a/evently/lib/screens/custom_widgets/step_labels.dart b/evently/lib/screens/custom_widgets/step_labels.dart index a66cf071b5..af388a4b75 100644 --- a/evently/lib/screens/custom_widgets/step_labels.dart +++ b/evently/lib/screens/custom_widgets/step_labels.dart @@ -1,19 +1,18 @@ -import 'package:easel_flutter/utils/constants.dart'; -import 'package:easel_flutter/utils/easel_app_theme.dart'; import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; - class StepLabels extends StatelessWidget { final ValueNotifier currentStep; final ValueNotifier currentPage; const StepLabels({ - Key? key, + super.key, required this.currentPage, required this.currentStep, - }) : super(key: key); + }); @override Widget build(BuildContext context) { @@ -34,9 +33,7 @@ class StepLabels extends StatelessWidget { fontSize: 8.sp, fontFamily: 'Inter', fontWeight: FontWeight.w700, - color: currentStep.value >= index - ? EaselAppTheme.kBlue - : EaselAppTheme.kGrey, + color: currentStep.value >= index ? EventlyAppTheme.kBlue : EventlyAppTheme.kGrey, ), ), ], diff --git a/evently/lib/screens/custom_widgets/steps_indicator.dart b/evently/lib/screens/custom_widgets/steps_indicator.dart index 74dab820d7..dd371d675d 100644 --- a/evently/lib/screens/custom_widgets/steps_indicator.dart +++ b/evently/lib/screens/custom_widgets/steps_indicator.dart @@ -1,4 +1,4 @@ -import 'package:easel_flutter/utils/easel_app_theme.dart'; +import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:steps_indicator/steps_indicator.dart'; @@ -7,6 +7,7 @@ class MyStepsIndicator extends StatelessWidget { final ValueNotifier currentStep; const MyStepsIndicator({ + super.key, required this.currentStep, }); @@ -17,23 +18,23 @@ class MyStepsIndicator extends StatelessWidget { builder: (_, int value, __) { return StepsIndicator( selectedStep: currentStep.value, - nbSteps: 3, - lineLength: 0.68.sw / 3, - doneLineColor: EaselAppTheme.kBlue, - undoneLineColor: EaselAppTheme.kLightGrey, + nbSteps: 4, + lineLength: 0.68.sw / 4, + doneLineColor: EventlyAppTheme.kBlue, + undoneLineColor: EventlyAppTheme.kLightGrey, doneLineThickness: 1.5, undoneLineThickness: 1.5, - unselectedStepColorIn: EaselAppTheme.kLightGrey, - unselectedStepColorOut: EaselAppTheme.kLightGrey, - doneStepColor: EaselAppTheme.kBlue, - selectedStepColorIn: EaselAppTheme.kBlue, - selectedStepColorOut: EaselAppTheme.kBlue, + unselectedStepColorIn: EventlyAppTheme.kLightGrey, + unselectedStepColorOut: EventlyAppTheme.kLightGrey, + doneStepColor: EventlyAppTheme.kBlue, + selectedStepColorIn: EventlyAppTheme.kBlue, + selectedStepColorOut: EventlyAppTheme.kBlue, enableLineAnimation: true, enableStepAnimation: true, lineLengthCustomStep: const [], - doneStepWidget: Container(width: 10.w, height: 10.h, decoration: const BoxDecoration(color: EaselAppTheme.kBlue)), - unselectedStepWidget: Container(width: 10.w, height: 10.h, decoration: const BoxDecoration(color: EaselAppTheme.kLightGrey)), - selectedStepWidget: Container(width: 15.w, height: 15.h, decoration: const BoxDecoration(color: EaselAppTheme.kBlue)), + doneStepWidget: Container(width: 10.w, height: 10.h, decoration: const BoxDecoration(color: EventlyAppTheme.kBlue)), + unselectedStepWidget: Container(width: 10.w, height: 10.h, decoration: const BoxDecoration(color: EventlyAppTheme.kLightGrey)), + selectedStepWidget: Container(width: 15.w, height: 15.h, decoration: const BoxDecoration(color: EventlyAppTheme.kBlue)), ); }); } diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 4f25195199..1ae23e3179 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -1,5 +1,16 @@ +import 'package:dotted_border/dotted_border.dart'; +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/screens/custom_widgets/step_labels.dart'; +import 'package:evently/screens/custom_widgets/steps_indicator.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; +import 'package:evently/widgets/easel_text_field.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; class OverViewScreen extends StatefulWidget { @@ -10,6 +21,10 @@ class OverViewScreen extends StatefulWidget { } class _OverViewScreenState extends State { + final _formKey = GlobalKey(); + final ValueNotifier _eventNameFieldError = ValueNotifier(""); + final ValueNotifier _hostNameFieldError = ValueNotifier(""); + @override void initState() { super.initState(); @@ -17,11 +32,151 @@ class _OverViewScreenState extends State { @override Widget build(BuildContext context) { - final homeViewModel = context.watch(); + final createEventViewModel = context.watch(); return Scaffold( - body: Column( - children: [], + body: SingleChildScrollView( + child: Form( + key: _formKey, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + const VerticalSpace(5), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(10), + const VerticalSpace(20), + Stack( + alignment: Alignment.center, + children: [ + Align( + alignment: Alignment.centerLeft, + child: ValueListenableBuilder( + valueListenable: createEventViewModel.currentPage, + builder: (_, int currentPage, __) => Padding( + padding: EdgeInsets.only(left: 10.sp), + child: IconButton( + onPressed: () { + FocusScope.of(context).unfocus(); + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + Navigator.pop(context); + }, + icon: const Icon( + Icons.arrow_back_ios, + color: EventlyAppTheme.kGrey, + ), + )), + )), + ValueListenableBuilder( + valueListenable: createEventViewModel.currentPage, + builder: (_, int currentPage, __) { + return Text( + createEventViewModel.pageTitles[createEventViewModel.currentPage.value], + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 18.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kDarkText), + ); + }, + ), + ], + ), + const VerticalSpace(20), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + EventlyTextField( + label: LocaleKeys.event_name.tr(), + hint: LocaleKeys.what_your_event_called.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _eventNameFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + VerticalSpace(20.h), + EventlyTextField( + label: LocaleKeys.host_name.tr(), + hint: LocaleKeys.who_hosting_it.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _hostNameFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + VerticalSpace(20.h), + Text( + LocaleKeys.thumbnail.tr(), + textAlign: TextAlign.start, + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), + ), + VerticalSpace(20.h), + DottedBorder( + color: EventlyAppTheme.kLightPurple, + dashPattern: [8, 4], + strokeWidth: 2, + child: Container( + width: double.infinity, + padding: EdgeInsets.symmetric(vertical: 20.w), + child: Column( + children: [ + Text( + LocaleKeys.tap_select.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), + ), + VerticalSpace(10.h), + SvgPicture.asset(SVGUtils.kSvgUpload), + VerticalSpace(10.h), + Text( + LocaleKeys.mb_limit.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), + ), + ], + ), + ), + ) + ], + ), + ), + ], + ), + ), ), ); } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 3244672e3b..b5a3daba07 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -4,8 +4,16 @@ const String kUniversalFontFamily = "UniversalSans"; const int kPageAnimationTimeInMillis = 300; const kDraft = "Draft"; +final List stepLabels = ["overview", "detail", "perks", "price"]; /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; + static const kSvgUpload = "assets/images/svg/upload.svg"; +} + +/// ```PNG assets +class PngUtils { + static const kTextFieldSingleLine = 'assets/images/text_field_single_line.png'; + static const kTextFieldMultiLine = 'assets/images/text_field_multi_line.png'; } diff --git a/evently/lib/widgets/easel_text_field.dart b/evently/lib/widgets/easel_text_field.dart index 14c36fe396..1d855daaa2 100644 --- a/evently/lib/widgets/easel_text_field.dart +++ b/evently/lib/widgets/easel_text_field.dart @@ -1,14 +1,13 @@ -import 'package:easel_flutter/utils/constants.dart'; -import 'package:easel_flutter/utils/easel_app_theme.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/screen_responsive.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import '../utils/screen_responsive.dart'; - -class EaselTextField extends StatelessWidget { - const EaselTextField( - {Key? key, +class EventlyTextField extends StatelessWidget { + const EventlyTextField( + {super.key, required this.label, this.hint = "", this.controller, @@ -16,8 +15,7 @@ class EaselTextField extends StatelessWidget { this.noOfLines = 1, // default to single line this.inputFormatters = const [], this.keyboardType = TextInputType.text, - this.textCapitalization = TextCapitalization.none}) - : super(key: key); + this.textCapitalization = TextCapitalization.none}); final String label; final String hint; @@ -55,9 +53,7 @@ class EaselTextField extends StatelessWidget { fit: BoxFit.fill, ), ), - ScreenResponsive( - mobileScreen: (_) => buildMobileTextField(), - tabletScreen: (_) => buildTabletTextField()), + ScreenResponsive(mobileScreen: (_) => buildMobileTextField(), tabletScreen: (_) => buildTabletTextField()), ], ), ], @@ -69,10 +65,7 @@ class EaselTextField extends StatelessWidget { height: noOfLines == 1 ? 40.h : 120.h, child: Align( child: TextFormField( - style: TextStyle( - fontSize: noOfLines == 1 ? 18.sp : 15.sp, - fontWeight: FontWeight.w400, - color: EaselAppTheme.kDarkText), + style: TextStyle(fontSize: noOfLines == 1 ? 18.sp : 15.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kDarkText), controller: controller, validator: validator, minLines: noOfLines, @@ -82,10 +75,7 @@ class EaselTextField extends StatelessWidget { inputFormatters: inputFormatters, decoration: InputDecoration( hintText: hint, - hintStyle: TextStyle( - fontSize: 15.sp, - fontWeight: FontWeight.w400, - color: EaselAppTheme.kGrey), + hintStyle: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kGrey), border: const OutlineInputBorder(borderSide: BorderSide.none), floatingLabelBehavior: FloatingLabelBehavior.always, contentPadding: EdgeInsets.fromLTRB(10.w, 0.h, 10.w, 0.h), @@ -100,10 +90,7 @@ class EaselTextField extends StatelessWidget { height: noOfLines == 1 ? 32.h : 110.h, child: Align( child: TextFormField( - style: TextStyle( - fontSize: noOfLines == 1 ? 16.sp : 14.sp, - fontWeight: FontWeight.w400, - color: EaselAppTheme.kDarkText), + style: TextStyle(fontSize: noOfLines == 1 ? 16.sp : 14.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kDarkText), controller: controller, validator: validator, minLines: noOfLines, @@ -113,9 +100,7 @@ class EaselTextField extends StatelessWidget { inputFormatters: inputFormatters, decoration: InputDecoration( hintText: hint, - hintStyle: TextStyle( - fontSize: noOfLines == 1 ? 16.sp : 14.sp, - color: EaselAppTheme.kGrey), + hintStyle: TextStyle(fontSize: noOfLines == 1 ? 16.sp : 14.sp, color: EventlyAppTheme.kGrey), border: const OutlineInputBorder(borderSide: BorderSide.none), floatingLabelBehavior: FloatingLabelBehavior.always, contentPadding: EdgeInsets.fromLTRB(10.w, 0.h, 10.w, 0.h), diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 796764cdd7..9ea74c0867 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -177,6 +177,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.6" + dotted_border: + dependency: "direct main" + description: + name: dotted_border + sha256: "108837e11848ca776c53b30bc870086f84b62ed6e01c503ed976e8f8c7df9c04" + url: "https://pub.dev" + source: hosted + version: "2.1.0" easy_localization: dependency: "direct main" description: @@ -477,6 +485,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.9.0" + path_drawing: + dependency: transitive + description: + name: path_drawing + sha256: bbb1934c0cbb03091af082a6389ca2080345291ef07a5fa6d6e078ba8682f977 + url: "https://pub.dev" + source: hosted + version: "1.0.1" path_parsing: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index d7decb6b93..33ec5726be 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -45,6 +45,7 @@ dependencies: injectable: ^2.4.1 provider: ^6.1.2 steps_indicator: ^1.3.0 + dotted_border: ^2.1.0 dev_dependencies: flutter_test: @@ -76,6 +77,7 @@ flutter: - i18n/de.json - i18n/es.json - assets/images/svg/ + - assets/images/ fonts: - family: UniversalSans From 5e93a6c62468529a60d55f04e7a4f6dee32b1312 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 15:36:29 +0500 Subject: [PATCH 023/158] feat: dotted border --- evently/i18n/de.json | 2 +- evently/i18n/en-US.json | 2 +- evently/i18n/es.json | 2 +- evently/i18n/ru-RU.json | 2 +- evently/lib/generated/locale_keys.g.dart | 2 ++ evently/lib/screens/overview_screen.dart | 33 +++++++++++++++++++++--- 6 files changed, 36 insertions(+), 7 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 9d24282a4c..026f298d20 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -17,6 +17,6 @@ "thumbnail" : "Thumbnail", "tap_select": "Tap to select ", "mb_limit": "200MB Limit", - "continue": "Continue", + "continue_key": "Continue", "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 9d24282a4c..026f298d20 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -17,6 +17,6 @@ "thumbnail" : "Thumbnail", "tap_select": "Tap to select ", "mb_limit": "200MB Limit", - "continue": "Continue", + "continue_key": "Continue", "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 9d24282a4c..026f298d20 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -17,6 +17,6 @@ "thumbnail" : "Thumbnail", "tap_select": "Tap to select ", "mb_limit": "200MB Limit", - "continue": "Continue", + "continue_key": "Continue", "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 9d24282a4c..026f298d20 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -17,6 +17,6 @@ "thumbnail" : "Thumbnail", "tap_select": "Tap to select ", "mb_limit": "200MB Limit", - "continue": "Continue", + "continue_key": "Continue", "save_draft": "Save as draft" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index d6554a6536..852e36882b 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -19,5 +19,7 @@ abstract class LocaleKeys { static const thumbnail = 'thumbnail'; static const tap_select = 'tap_select'; static const mb_limit = 'mb_limit'; + static const continue_key = 'continue_key'; + static const save_draft = 'save_draft'; } diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 1ae23e3179..6c49e4e195 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -7,14 +7,17 @@ import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; +import 'package:evently/widgets/clipped_button.dart'; import 'package:evently/widgets/easel_text_field.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; class OverViewScreen extends StatefulWidget { - const OverViewScreen({Key? key}) : super(key: key); + const OverViewScreen({super.key}); @override State createState() => _OverViewScreenState(); @@ -149,7 +152,7 @@ class _OverViewScreenState extends State { VerticalSpace(20.h), DottedBorder( color: EventlyAppTheme.kLightPurple, - dashPattern: [8, 4], + dashPattern: const [10, 2], strokeWidth: 2, child: Container( width: double.infinity, @@ -170,7 +173,31 @@ class _OverViewScreenState extends State { ], ), ), - ) + ), + VerticalSpace(20.h), + ClippedButton( + title: LocaleKeys.continue_key.tr(), + bgColor: EventlyAppTheme.kBlue, + textColor: EventlyAppTheme.kWhite, + onPressed: () { + // validateAndUpdateDescription(moveNextPage: true); + }, + cuttingHeight: 15.h, + clipperType: ClipperType.bottomLeftTopRight, + isShadow: false, + fontWeight: FontWeight.w700, + ), + VerticalSpace(10.h), + Center( + child: InkWell( + onTap: () {}, + child: Text( + LocaleKeys.save_draft.tr(), + style: TextStyle(color: EventlyAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), + ), + ), + ), + VerticalSpace(5.h), ], ), ), From 615d0ad53c4e6acb340b17b507a63a9505698a0a Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 15:54:04 +0500 Subject: [PATCH 024/158] dotted border from design --- evently/assets/images/svg/dotted_border.svg | 3 ++ evently/lib/screens/overview_screen.dart | 56 ++++++++++++--------- evently/lib/utils/constants.dart | 1 + 3 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 evently/assets/images/svg/dotted_border.svg diff --git a/evently/assets/images/svg/dotted_border.svg b/evently/assets/images/svg/dotted_border.svg new file mode 100644 index 0000000000..00eb751c3e --- /dev/null +++ b/evently/assets/images/svg/dotted_border.svg @@ -0,0 +1,3 @@ + + + diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 6c49e4e195..025cda3844 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -150,30 +150,36 @@ class _OverViewScreenState extends State { style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), ), VerticalSpace(20.h), - DottedBorder( - color: EventlyAppTheme.kLightPurple, - dashPattern: const [10, 2], - strokeWidth: 2, - child: Container( - width: double.infinity, - padding: EdgeInsets.symmetric(vertical: 20.w), - child: Column( - children: [ - Text( - LocaleKeys.tap_select.tr(), - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), - ), - VerticalSpace(10.h), - SvgPicture.asset(SVGUtils.kSvgUpload), - VerticalSpace(10.h), - Text( - LocaleKeys.mb_limit.tr(), - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), - ), - ], - ), - ), - ), + // DottedBorder( + // borderType: BorderType.RRect, + // radius: const Radius.circular(10), + // // borderType: BorderType.Rect, + // color: EventlyAppTheme.kLightPurple, + // + // strokeWidth: 2, + // child: Container( + // width: double.infinity, + // padding: EdgeInsets.symmetric(vertical: 20.w), + // child: Column( + // children: [ + // Text( + // LocaleKeys.tap_select.tr(), + // style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), + // ), + // VerticalSpace(10.h), + // SvgPicture.asset(SVGUtils.kSvgUpload), + // VerticalSpace(10.h), + // Text( + // LocaleKeys.mb_limit.tr(), + // style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), + // ), + // ], + // ), + // ), + // ), + + SvgPicture.asset(SVGUtils.dottedBorder), + VerticalSpace(20.h), ClippedButton( title: LocaleKeys.continue_key.tr(), @@ -198,6 +204,8 @@ class _OverViewScreenState extends State { ), ), VerticalSpace(5.h), + + ], ), ), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index b5a3daba07..e6a1940b00 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -10,6 +10,7 @@ final List stepLabels = ["overview", "detail", "perks", "price"]; class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; static const kSvgUpload = "assets/images/svg/upload.svg"; + static const dottedBorder = "assets/images/svg/dotted_border.svg"; } /// ```PNG assets From 427f192097f8eae34619feb461cf37026892f16f Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 16:08:08 +0500 Subject: [PATCH 025/158] feat: detail screen translations --- evently/assets/images/svg/dotted_border.svg | 3 - evently/i18n/de.json | 10 +++- evently/i18n/en-US.json | 10 +++- evently/i18n/es.json | 10 +++- evently/i18n/ru-RU.json | 10 +++- evently/lib/screens/create_event.dart | 3 +- evently/lib/screens/detail_screen.dart | 15 +++++ evently/lib/screens/overview_screen.dart | 64 ++++++++++----------- evently/lib/utils/constants.dart | 2 +- 9 files changed, 83 insertions(+), 44 deletions(-) delete mode 100644 evently/assets/images/svg/dotted_border.svg create mode 100644 evently/lib/screens/detail_screen.dart diff --git a/evently/assets/images/svg/dotted_border.svg b/evently/assets/images/svg/dotted_border.svg deleted file mode 100644 index 00eb751c3e..0000000000 --- a/evently/assets/images/svg/dotted_border.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 026f298d20..300fa8f4f8 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -18,5 +18,13 @@ "tap_select": "Tap to select ", "mb_limit": "200MB Limit", "continue_key": "Continue", - "save_draft": "Save as draft" + "save_draft": "Save as draft", + "start_date": "Start date", + "end_date" : "End date", + "start_time": "Start time", + "end_time": "End time", + "location": "Location", + "search_location": "Search location", + "description": "Description", + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 026f298d20..300fa8f4f8 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -18,5 +18,13 @@ "tap_select": "Tap to select ", "mb_limit": "200MB Limit", "continue_key": "Continue", - "save_draft": "Save as draft" + "save_draft": "Save as draft", + "start_date": "Start date", + "end_date" : "End date", + "start_time": "Start time", + "end_time": "End time", + "location": "Location", + "search_location": "Search location", + "description": "Description", + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 026f298d20..300fa8f4f8 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -18,5 +18,13 @@ "tap_select": "Tap to select ", "mb_limit": "200MB Limit", "continue_key": "Continue", - "save_draft": "Save as draft" + "save_draft": "Save as draft", + "start_date": "Start date", + "end_date" : "End date", + "start_time": "Start time", + "end_time": "End time", + "location": "Location", + "search_location": "Search location", + "description": "Description", + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 026f298d20..300fa8f4f8 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -18,5 +18,13 @@ "tap_select": "Tap to select ", "mb_limit": "200MB Limit", "continue_key": "Continue", - "save_draft": "Save as draft" + "save_draft": "Save as draft", + "start_date": "Start date", + "end_date" : "End date", + "start_time": "Start time", + "end_time": "End time", + "location": "Location", + "search_location": "Search location", + "description": "Description", + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" } \ No newline at end of file diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 71d4af69a7..89116dad35 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,3 +1,4 @@ +import 'package:evently/screens/detail_screen.dart'; import 'package:evently/screens/overview_screen.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; @@ -67,7 +68,7 @@ class CreateEventContent extends StatelessWidget { } Widget details() { - return const Text("details"); + return const DetailsScreen(); } Widget perks() { diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart new file mode 100644 index 0000000000..4ba7b632f9 --- /dev/null +++ b/evently/lib/screens/detail_screen.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class DetailsScreen extends StatefulWidget { + const DetailsScreen({super.key}); + + @override + State createState() => _DetailsScreenState(); +} + +class _DetailsScreenState extends State { + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 025cda3844..2cddf9f312 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -9,9 +9,7 @@ import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; import 'package:evently/widgets/easel_text_field.dart'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; @@ -150,43 +148,41 @@ class _OverViewScreenState extends State { style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), ), VerticalSpace(20.h), - // DottedBorder( - // borderType: BorderType.RRect, - // radius: const Radius.circular(10), - // // borderType: BorderType.Rect, - // color: EventlyAppTheme.kLightPurple, - // - // strokeWidth: 2, - // child: Container( - // width: double.infinity, - // padding: EdgeInsets.symmetric(vertical: 20.w), - // child: Column( - // children: [ - // Text( - // LocaleKeys.tap_select.tr(), - // style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), - // ), - // VerticalSpace(10.h), - // SvgPicture.asset(SVGUtils.kSvgUpload), - // VerticalSpace(10.h), - // Text( - // LocaleKeys.mb_limit.tr(), - // style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), - // ), - // ], - // ), - // ), - // ), - - SvgPicture.asset(SVGUtils.dottedBorder), - + ClipRRect( + borderRadius: BorderRadius.only(topRight: Radius.circular(8.r), topLeft: Radius.circular(8.r)), + child: DottedBorder( + borderType: BorderType.Rect, + dashPattern: const [10, 6], + color: EventlyAppTheme.kLightPurple, + strokeWidth: 3.h, + child: Container( + width: double.infinity, + padding: EdgeInsets.symmetric(vertical: 20.w), + child: Column( + children: [ + Text( + LocaleKeys.tap_select.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), + ), + VerticalSpace(10.h), + SvgPicture.asset(SVGUtils.kSvgUpload), + VerticalSpace(10.h), + Text( + LocaleKeys.mb_limit.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kLightPurple), + ), + ], + ), + ), + ), + ), VerticalSpace(20.h), ClippedButton( title: LocaleKeys.continue_key.tr(), bgColor: EventlyAppTheme.kBlue, textColor: EventlyAppTheme.kWhite, onPressed: () { - // validateAndUpdateDescription(moveNextPage: true); + createEventViewModel.nextPage(); }, cuttingHeight: 15.h, clipperType: ClipperType.bottomLeftTopRight, @@ -204,8 +200,6 @@ class _OverViewScreenState extends State { ), ), VerticalSpace(5.h), - - ], ), ), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index e6a1940b00..5c538046c0 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -10,7 +10,7 @@ final List stepLabels = ["overview", "detail", "perks", "price"]; class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; static const kSvgUpload = "assets/images/svg/upload.svg"; - static const dottedBorder = "assets/images/svg/dotted_border.svg"; + } /// ```PNG assets From 4a5b984d37b4f0a04db3f3b8bf39a0cb4dde7557 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 16:24:33 +0500 Subject: [PATCH 026/158] feat: detail screen ui development --- evently/lib/generated/locale_keys.g.dart | 8 + evently/lib/screens/detail_screen.dart | 310 ++++++++++++++++++++++- 2 files changed, 317 insertions(+), 1 deletion(-) diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 852e36882b..8bcda64816 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -21,5 +21,13 @@ abstract class LocaleKeys { static const mb_limit = 'mb_limit'; static const continue_key = 'continue_key'; static const save_draft = 'save_draft'; + static const start_date = 'start_date'; + static const end_date = 'end_date'; + static const start_time = 'start_time'; + static const end_time = 'end_time'; + static const location = 'location'; + static const search_location = 'search_location'; + static const description = 'description'; + static const what_event_for = 'what_event_for'; } diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 4ba7b632f9..d310ce27bd 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -1,4 +1,15 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/screens/custom_widgets/step_labels.dart'; +import 'package:evently/screens/custom_widgets/steps_indicator.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/space_utils.dart'; +import 'package:evently/viewmodels/create_event_viewmodel.dart'; +import 'package:evently/widgets/clipped_button.dart'; +import 'package:evently/widgets/easel_text_field.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:provider/provider.dart'; class DetailsScreen extends StatefulWidget { const DetailsScreen({super.key}); @@ -8,8 +19,305 @@ class DetailsScreen extends StatefulWidget { } class _DetailsScreenState extends State { + final _formKey = GlobalKey(); + final ValueNotifier _startDateFieldError = ValueNotifier(""); + final ValueNotifier _endDateFieldError = ValueNotifier(""); + final ValueNotifier _startTimeFieldError = ValueNotifier(""); + final ValueNotifier _endTimeFieldError = ValueNotifier(""); + + @override + void initState() { + super.initState(); + } + @override Widget build(BuildContext context) { - return const Placeholder(); + final createEventViewModel = context.watch(); + + return Scaffold( + body: SingleChildScrollView( + child: Form( + key: _formKey, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + const VerticalSpace(5), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(10), + const VerticalSpace(20), + Stack( + alignment: Alignment.center, + children: [ + Align( + alignment: Alignment.centerLeft, + child: ValueListenableBuilder( + valueListenable: createEventViewModel.currentPage, + builder: (_, int currentPage, __) => Padding( + padding: EdgeInsets.only(left: 10.sp), + child: IconButton( + onPressed: () { + FocusScope.of(context).unfocus(); + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + Navigator.pop(context); + }, + icon: const Icon( + Icons.arrow_back_ios, + color: EventlyAppTheme.kGrey, + ), + )), + )), + ValueListenableBuilder( + valueListenable: createEventViewModel.currentPage, + builder: (_, int currentPage, __) { + return Text( + createEventViewModel.pageTitles[createEventViewModel.currentPage.value], + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 18.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kDarkText), + ); + }, + ), + ], + ), + const VerticalSpace(20), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Expanded( + child: Column( + children: [ + EventlyTextField( + label: LocaleKeys.start_date.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _startDateFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + ], + ), + ), + HorizontalSpace(20.w), + Expanded( + child: Column( + children: [ + EventlyTextField( + label: LocaleKeys.end_date.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _endDateFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + ], + ), + ), + ], + ), + VerticalSpace(20.h), + Row( + children: [ + Expanded( + child: Column( + children: [ + EventlyTextField( + label: LocaleKeys.start_time.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _startTimeFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + ], + ), + ), + HorizontalSpace(20.w), + Expanded( + child: Column( + children: [ + EventlyTextField( + label: LocaleKeys.end_time.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _endTimeFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + ], + ), + ), + ], + ), + VerticalSpace(20.h), + + EventlyTextField( + label: LocaleKeys.location.tr(), + hint: LocaleKeys.search_location.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _startDateFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + VerticalSpace(20.h), + + + EventlyTextField( + + label: LocaleKeys.description.tr(), + hint: LocaleKeys.what_event_for.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + + noOfLines: 4, + ), + ValueListenableBuilder( + valueListenable: _startDateFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + VerticalSpace(20.h), + + ClippedButton( + title: LocaleKeys.continue_key.tr(), + bgColor: EventlyAppTheme.kBlue, + textColor: EventlyAppTheme.kWhite, + onPressed: () { + createEventViewModel.nextPage(); + }, + cuttingHeight: 15.h, + clipperType: ClipperType.bottomLeftTopRight, + isShadow: false, + fontWeight: FontWeight.w700, + ), + VerticalSpace(10.h), + Center( + child: InkWell( + onTap: () {}, + child: Text( + LocaleKeys.save_draft.tr(), + style: TextStyle(color: EventlyAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), + ), + ), + ), + VerticalSpace(5.h), + ], + ), + ), + ], + ), + ), + ), + ); } } From 1d509691f8d23252d9f5d341adf4e59e6d459884 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 16:36:41 +0500 Subject: [PATCH 027/158] feat: perks translations --- evently/i18n/de.json | 8 +- evently/i18n/en-US.json | 8 +- evently/i18n/es.json | 8 +- evently/i18n/ru-RU.json | 8 +- evently/lib/screens/create_event.dart | 3 +- evently/lib/screens/detail_screen.dart | 9 +- evently/lib/screens/perks_screen.dart | 111 +++++++++++++++++++++++++ 7 files changed, 143 insertions(+), 12 deletions(-) create mode 100644 evently/lib/screens/perks_screen.dart diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 300fa8f4f8..46ccddcc01 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -26,5 +26,11 @@ "location": "Location", "search_location": "Search location", "description": "Description", - "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n", + "add_perk": "Add perk", + "perk_icon": "Perk icon", + "description_optional": "Description (optional)", + "claim_free_drink": "Claim your free drink at the bar during the event!", + "character_limit": "256 character limit", + "there_no_perks_created": "There are no perks created." } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 300fa8f4f8..46ccddcc01 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -26,5 +26,11 @@ "location": "Location", "search_location": "Search location", "description": "Description", - "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n", + "add_perk": "Add perk", + "perk_icon": "Perk icon", + "description_optional": "Description (optional)", + "claim_free_drink": "Claim your free drink at the bar during the event!", + "character_limit": "256 character limit", + "there_no_perks_created": "There are no perks created." } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 300fa8f4f8..46ccddcc01 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -26,5 +26,11 @@ "location": "Location", "search_location": "Search location", "description": "Description", - "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n", + "add_perk": "Add perk", + "perk_icon": "Perk icon", + "description_optional": "Description (optional)", + "claim_free_drink": "Claim your free drink at the bar during the event!", + "character_limit": "256 character limit", + "there_no_perks_created": "There are no perks created." } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 300fa8f4f8..46ccddcc01 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -26,5 +26,11 @@ "location": "Location", "search_location": "Search location", "description": "Description", - "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n" + "what_event_for": "What is the event for? What should guests expect? Is there a dress code? Can they bring a guest?\n\n", + "add_perk": "Add perk", + "perk_icon": "Perk icon", + "description_optional": "Description (optional)", + "claim_free_drink": "Claim your free drink at the bar during the event!", + "character_limit": "256 character limit", + "there_no_perks_created": "There are no perks created." } \ No newline at end of file diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 89116dad35..ab041d4aff 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,5 +1,6 @@ import 'package:evently/screens/detail_screen.dart'; import 'package:evently/screens/overview_screen.dart'; +import 'package:evently/screens/perks_screen.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; @@ -72,7 +73,7 @@ class CreateEventContent extends StatelessWidget { } Widget perks() { - return const Text("perks"); + return const PerksScreen(); } Widget price() { diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index d310ce27bd..3e47e8cd04 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -24,6 +24,7 @@ class _DetailsScreenState extends State { final ValueNotifier _endDateFieldError = ValueNotifier(""); final ValueNotifier _startTimeFieldError = ValueNotifier(""); final ValueNotifier _endTimeFieldError = ValueNotifier(""); + final ValueNotifier _descriptionFieldError = ValueNotifier(""); @override void initState() { @@ -225,7 +226,6 @@ class _DetailsScreenState extends State { ], ), VerticalSpace(20.h), - EventlyTextField( label: LocaleKeys.location.tr(), hint: LocaleKeys.search_location.tr(), @@ -254,10 +254,7 @@ class _DetailsScreenState extends State { }, ), VerticalSpace(20.h), - - EventlyTextField( - label: LocaleKeys.description.tr(), hint: LocaleKeys.what_event_for.tr(), controller: TextEditingController(), @@ -265,11 +262,10 @@ class _DetailsScreenState extends State { validator: (value) { return null; }, - noOfLines: 4, ), ValueListenableBuilder( - valueListenable: _startDateFieldError, + valueListenable: _descriptionFieldError, builder: (_, String artNameFieldError, __) { if (artNameFieldError.isEmpty) { return const SizedBox.shrink(); @@ -287,7 +283,6 @@ class _DetailsScreenState extends State { }, ), VerticalSpace(20.h), - ClippedButton( title: LocaleKeys.continue_key.tr(), bgColor: EventlyAppTheme.kBlue, diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart new file mode 100644 index 0000000000..ed4cc7d92b --- /dev/null +++ b/evently/lib/screens/perks_screen.dart @@ -0,0 +1,111 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/screens/custom_widgets/step_labels.dart'; +import 'package:evently/screens/custom_widgets/steps_indicator.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/space_utils.dart'; +import 'package:evently/viewmodels/create_event_viewmodel.dart'; +import 'package:evently/widgets/clipped_button.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:provider/provider.dart'; + +class PerksScreen extends StatefulWidget { + const PerksScreen({super.key}); + + @override + State createState() => _PerksScreenState(); +} + +class _PerksScreenState extends State { + + final _formKey = GlobalKey(); + + @override + Widget build(BuildContext context) { + final createEventViewModel = context.watch(); + + return Scaffold( + body: SingleChildScrollView( + child: Form( + key: _formKey, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + const VerticalSpace(5), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(10), + const VerticalSpace(20), + Stack( + alignment: Alignment.center, + children: [ + Align( + alignment: Alignment.centerLeft, + child: ValueListenableBuilder( + valueListenable: createEventViewModel.currentPage, + builder: (_, int currentPage, __) => Padding( + padding: EdgeInsets.only(left: 10.sp), + child: IconButton( + onPressed: () { + FocusScope.of(context).unfocus(); + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + Navigator.pop(context); + }, + icon: const Icon( + Icons.arrow_back_ios, + color: EventlyAppTheme.kGrey, + ), + )), + )), + ValueListenableBuilder( + valueListenable: createEventViewModel.currentPage, + builder: (_, int currentPage, __) { + return Text( + createEventViewModel.pageTitles[createEventViewModel.currentPage.value], + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 18.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kDarkText), + ); + }, + ), + ], + ), + const VerticalSpace(20), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + ClippedButton( + title: LocaleKeys.continue_key.tr(), + bgColor: EventlyAppTheme.kBlue, + textColor: EventlyAppTheme.kWhite, + onPressed: () { + createEventViewModel.nextPage(); + }, + cuttingHeight: 15.h, + clipperType: ClipperType.bottomLeftTopRight, + isShadow: false, + fontWeight: FontWeight.w700, + ), + VerticalSpace(10.h), + Center( + child: InkWell( + onTap: () {}, + child: Text( + LocaleKeys.save_draft.tr(), + style: TextStyle(color: EventlyAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), + ), + ), + ), + VerticalSpace(5.h), + ], + ), + ), + ], + ), + ), + ), + ); + } +} From bb8f8477964441d129aa0781cb4657972dbaf2c3 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 16:51:59 +0500 Subject: [PATCH 028/158] feat: asset on perk screen --- evently/assets/images/svg/drinks.svg | 7 +++ evently/assets/images/svg/gift.svg | 3 + evently/assets/images/svg/shirt.svg | 3 + evently/lib/screens/perks_screen.dart | 86 +++++++++++++++------------ evently/lib/utils/constants.dart | 4 +- 5 files changed, 64 insertions(+), 39 deletions(-) create mode 100644 evently/assets/images/svg/drinks.svg create mode 100644 evently/assets/images/svg/gift.svg create mode 100644 evently/assets/images/svg/shirt.svg diff --git a/evently/assets/images/svg/drinks.svg b/evently/assets/images/svg/drinks.svg new file mode 100644 index 0000000000..982911aaa5 --- /dev/null +++ b/evently/assets/images/svg/drinks.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/evently/assets/images/svg/gift.svg b/evently/assets/images/svg/gift.svg new file mode 100644 index 0000000000..20f05015f8 --- /dev/null +++ b/evently/assets/images/svg/gift.svg @@ -0,0 +1,3 @@ + + + diff --git a/evently/assets/images/svg/shirt.svg b/evently/assets/images/svg/shirt.svg new file mode 100644 index 0000000000..b7d8d23fe3 --- /dev/null +++ b/evently/assets/images/svg/shirt.svg @@ -0,0 +1,3 @@ + + + diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index ed4cc7d92b..31ccd0c43d 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -18,7 +18,6 @@ class PerksScreen extends StatefulWidget { } class _PerksScreenState extends State { - final _formKey = GlobalKey(); @override @@ -26,51 +25,62 @@ class _PerksScreenState extends State { final createEventViewModel = context.watch(); return Scaffold( - body: SingleChildScrollView( + body: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) => SingleChildScrollView( + child: ConstrainedBox( + constraints: BoxConstraints(minHeight: constraints.maxHeight), child: Form( key: _formKey, child: Column( crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const VerticalSpace(20), - MyStepsIndicator(currentStep: createEventViewModel.currentStep), - const VerticalSpace(5), - StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), - const VerticalSpace(10), - const VerticalSpace(20), - Stack( - alignment: Alignment.center, + Column( children: [ - Align( - alignment: Alignment.centerLeft, - child: ValueListenableBuilder( + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + const VerticalSpace(5), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(10), + const VerticalSpace(20), + Stack( + alignment: Alignment.center, + children: [ + Align( + alignment: Alignment.centerLeft, + child: ValueListenableBuilder( + valueListenable: createEventViewModel.currentPage, + builder: (_, int currentPage, __) => Padding( + padding: EdgeInsets.only(left: 10.sp), + child: IconButton( + onPressed: () { + FocusScope.of(context).unfocus(); + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + Navigator.pop(context); + }, + icon: const Icon( + Icons.arrow_back_ios, + color: EventlyAppTheme.kGrey, + ), + )), + )), + ValueListenableBuilder( valueListenable: createEventViewModel.currentPage, - builder: (_, int currentPage, __) => Padding( - padding: EdgeInsets.only(left: 10.sp), - child: IconButton( - onPressed: () { - FocusScope.of(context).unfocus(); - ScaffoldMessenger.of(context).hideCurrentSnackBar(); - Navigator.pop(context); - }, - icon: const Icon( - Icons.arrow_back_ios, - color: EventlyAppTheme.kGrey, - ), - )), - )), - ValueListenableBuilder( - valueListenable: createEventViewModel.currentPage, - builder: (_, int currentPage, __) { - return Text( - createEventViewModel.pageTitles[createEventViewModel.currentPage.value], - style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 18.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kDarkText), - ); - }, + builder: (_, int currentPage, __) { + return Text( + createEventViewModel.pageTitles[createEventViewModel.currentPage.value], + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 18.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kDarkText), + ); + }, + ), + ], ), + const VerticalSpace(20), + + + ], ), - const VerticalSpace(20), Padding( padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), child: Column( @@ -105,7 +115,7 @@ class _PerksScreenState extends State { ], ), ), - ), - ); + )), + )); } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 5c538046c0..3c5dcc6e86 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -10,7 +10,9 @@ final List stepLabels = ["overview", "detail", "perks", "price"]; class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; static const kSvgUpload = "assets/images/svg/upload.svg"; - + static const kShirt = "assets/images/svg/shirt.svg"; + static const kGift = "assets/images/svg/gift.svg"; + static const kDrinks = "assets/images/svg/drinks.svg"; } /// ```PNG assets From 8f833cbd9f6053b91247de9ff513722c93d769dd Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 17:35:13 +0500 Subject: [PATCH 029/158] feat: add perk ui --- .../images/svg/dark_purple_single_line.png | Bin 0 -> 362 bytes .../images/svg/light_purple_single_line.png | Bin 0 -> 361 bytes evently/assets/images/svg/minus.svg | 4 + .../assets/images/text_field_multi_line.png | Bin 649 -> 665 bytes .../assets/images/text_field_single_line.png | Bin 358 -> 416 bytes evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/generated/locale_keys.g.dart | 7 ++ evently/lib/screens/perks_screen.dart | 98 +++++++++++++++++- evently/lib/utils/constants.dart | 3 + 12 files changed, 116 insertions(+), 8 deletions(-) create mode 100644 evently/assets/images/svg/dark_purple_single_line.png create mode 100644 evently/assets/images/svg/light_purple_single_line.png create mode 100644 evently/assets/images/svg/minus.svg diff --git a/evently/assets/images/svg/dark_purple_single_line.png b/evently/assets/images/svg/dark_purple_single_line.png new file mode 100644 index 0000000000000000000000000000000000000000..8881c70bcdca4190666b2954fb8698882404d2b4 GIT binary patch literal 362 zcmeAS@N?(olHy`uVBq!ia0y~yU`z(GwK>>;&U>cv7h@-A}f&p-_yl0q=ND76>r`{0V1v!#q2!}GA141 z=DN@{|B$bQz@g>2xAqxFWN#6D^RHqDuPlS_TPucH#>ou~X*>c4dKj5z7&Zp?P$ zQahMBH62VH>IYE~x95YY%N=0q^a(I^xCKnzIs&FH^?<2UX9TBPv+$aBw{;7P1A~IW M)78&qol`;+02efBj{pDw literal 0 HcmV?d00001 diff --git a/evently/assets/images/svg/light_purple_single_line.png b/evently/assets/images/svg/light_purple_single_line.png new file mode 100644 index 0000000000000000000000000000000000000000..7a2914d411af6110c3d19e1ef60e3836328df1b7 GIT binary patch literal 361 zcmeAS@N?(olHy`uVBq!ia0y~yU`z(GwK>>;&U>cv7h@-A}f&p&(p;*q=ND7mEF9D97I?Ho&79XO4#oz z2J*2o_$xVd^yl8(ZEm4Hiz}_zGCrS~AvTwtVV7}o149~*z=0k{rWu9~490963C9>1 z&qydVNHVh+P(iY4H?O)e+l!ZmkNzf>n8KQ zN#-q|QjZ+%VT}4=_$cWZL-ucDFeL@yNm_z=GYmkK_iPI=H47}~J=5}05xY&LhN$&L SU1?xQFnGH9xvX literal 0 HcmV?d00001 diff --git a/evently/assets/images/svg/minus.svg b/evently/assets/images/svg/minus.svg new file mode 100644 index 0000000000..588b49faa0 --- /dev/null +++ b/evently/assets/images/svg/minus.svg @@ -0,0 +1,4 @@ + + + + diff --git a/evently/assets/images/text_field_multi_line.png b/evently/assets/images/text_field_multi_line.png index 5a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78 b^oc>qz<>G_cV=KHFfe$!`njxgN@xNAAzX4v diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 46ccddcc01..e52f2127d1 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -32,5 +32,6 @@ "description_optional": "Description (optional)", "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", - "there_no_perks_created": "There are no perks created." + "there_no_perks_created": "There are no perks created.", + "free_shirt": "1 free t-shirt" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 46ccddcc01..e52f2127d1 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -32,5 +32,6 @@ "description_optional": "Description (optional)", "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", - "there_no_perks_created": "There are no perks created." + "there_no_perks_created": "There are no perks created.", + "free_shirt": "1 free t-shirt" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 46ccddcc01..e52f2127d1 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -32,5 +32,6 @@ "description_optional": "Description (optional)", "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", - "there_no_perks_created": "There are no perks created." + "there_no_perks_created": "There are no perks created.", + "free_shirt": "1 free t-shirt" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 46ccddcc01..e52f2127d1 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -32,5 +32,6 @@ "description_optional": "Description (optional)", "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", - "there_no_perks_created": "There are no perks created." + "there_no_perks_created": "There are no perks created.", + "free_shirt": "1 free t-shirt" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 8bcda64816..a1e7e06fb8 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -29,5 +29,12 @@ abstract class LocaleKeys { static const search_location = 'search_location'; static const description = 'description'; static const what_event_for = 'what_event_for'; + static const add_perk = 'add_perk'; + static const perk_icon = 'perk_icon'; + static const description_optional = 'description_optional'; + static const claim_free_drink = 'claim_free_drink'; + static const character_limit = 'character_limit'; + static const there_no_perks_created = 'there_no_perks_created'; + static const free_shirt = 'free_shirt'; } diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 31ccd0c43d..01396b05d0 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -2,12 +2,17 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; +import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; class PerksScreen extends StatefulWidget { @@ -36,12 +41,12 @@ class _PerksScreenState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ const VerticalSpace(20), MyStepsIndicator(currentStep: createEventViewModel.currentStep), const VerticalSpace(5), StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), - const VerticalSpace(10), const VerticalSpace(20), Stack( alignment: Alignment.center, @@ -76,9 +81,94 @@ class _PerksScreenState extends State { ], ), const VerticalSpace(20), - - - + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + LocaleKeys.add_perk.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold), + ), + InkWell( + onTap: () {}, + child: DecoratedBox( + decoration: const BoxDecoration( + color: EventlyAppTheme.kpurpleDark, + ), + child: Icon(Icons.add, size: 16.h, color: EventlyAppTheme.kWhite), + ), + ), + ], + ), + ), + const VerticalSpace(10), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Text( + LocaleKeys.there_no_perks_created.tr(), + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kDarkGrey02), + ), + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Stack( + alignment: Alignment.center, + children: [ + ScreenResponsive( + mobileScreen: (context) => Image.asset( + PngUtils.kLightPurpleSingleLine, + height: 40.h, + width: 1.sw, + fit: BoxFit.fill, + ), + tabletScreen: (context) => Image.asset( + PngUtils.kLightPurpleSingleLine, + height: 32.h, + width: 1.sw, + fit: BoxFit.fill, + ), + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 10.w), + child: Row( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + SvgPicture.asset(SVGUtils.kMinus), + HorizontalSpace(10.w), + Text( + LocaleKeys.free_shirt.tr(), + style: TextStyle(color: EventlyAppTheme.kWhite, fontSize: 15.sp, fontWeight: FontWeight.bold), + ), + ], + ), + ) + ], + ), + ), + const VerticalSpace(10), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50.w), + child: Text( + LocaleKeys.perk_icon.tr(), + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 13.sp, + ), + ), + ), + const VerticalSpace(6), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Container(padding: const EdgeInsets.all(7), color: EventlyAppTheme.kPurple03, child: SvgPicture.asset(SVGUtils.kShirt)), + Container(padding: const EdgeInsets.all(7), color: Colors.transparent, child: SvgPicture.asset(SVGUtils.kGift)), + Container(padding: const EdgeInsets.all(7), color: Colors.transparent, child: SvgPicture.asset(SVGUtils.kDrinks)), + ], + ), + ) ], ), Padding( diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 3c5dcc6e86..6dc9923896 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -13,10 +13,13 @@ class SVGUtils { static const kShirt = "assets/images/svg/shirt.svg"; static const kGift = "assets/images/svg/gift.svg"; static const kDrinks = "assets/images/svg/drinks.svg"; + static const kMinus = "assets/images/svg/minus.svg"; } /// ```PNG assets class PngUtils { static const kTextFieldSingleLine = 'assets/images/text_field_single_line.png'; static const kTextFieldMultiLine = 'assets/images/text_field_multi_line.png'; + static const kDarkPurpleSingleLine = 'assets/images/svg/dark_purple_single_line.png'; + static const kLightPurpleSingleLine = 'assets/images/svg/light_purple_single_line.png'; } From 4d8dd78f6aef4d47410d38abdff85b22d70db9f8 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 17:43:23 +0500 Subject: [PATCH 030/158] feat: perks screen ui --- evently/lib/screens/perks_screen.dart | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 01396b05d0..df744303e2 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -8,6 +8,7 @@ import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; +import 'package:evently/widgets/easel_text_field.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; @@ -168,7 +169,22 @@ class _PerksScreenState extends State { Container(padding: const EdgeInsets.all(7), color: Colors.transparent, child: SvgPicture.asset(SVGUtils.kDrinks)), ], ), - ) + ), + const VerticalSpace(20), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50.w), + child: EventlyTextField( + noOfLines: 4, + label: LocaleKeys.description_optional.tr(), + hint: LocaleKeys.claim_free_drink.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ), + ], ), Padding( From f03ea0033b2fe9dd69d4b4c03ac3450a7fb99197 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Tue, 7 May 2024 17:58:26 +0500 Subject: [PATCH 031/158] feat: price screen --- evently/lib/screens/create_event.dart | 3 ++- evently/lib/screens/perks_screen.dart | 2 -- evently/lib/screens/price_screen.dart | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 evently/lib/screens/price_screen.dart diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index ab041d4aff..83a818cfa9 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,6 +1,7 @@ import 'package:evently/screens/detail_screen.dart'; import 'package:evently/screens/overview_screen.dart'; import 'package:evently/screens/perks_screen.dart'; +import 'package:evently/screens/price_screen.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; @@ -77,6 +78,6 @@ class CreateEventContent extends StatelessWidget { } Widget price() { - return const Text("price"); + return const PriceScreen(); } } diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index df744303e2..66da0da1c4 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -9,9 +9,7 @@ import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; import 'package:evently/widgets/easel_text_field.dart'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart new file mode 100644 index 0000000000..5bdbc6c110 --- /dev/null +++ b/evently/lib/screens/price_screen.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class PriceScreen extends StatefulWidget { + const PriceScreen({super.key}); + + @override + State createState() => _PriceScreenState(); +} + +class _PriceScreenState extends State { + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} From 1e076c79692d1177bbb590da2a17ec730ec5287c Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 11:03:27 +0500 Subject: [PATCH 032/158] feat: Event provide, price text input field --- evently/assets/images/denom_pylon.png | Bin 0 -> 804 bytes evently/assets/images/denom_usd.png | Bin 0 -> 1169 bytes evently/assets/images/text_field_button.png | Bin 0 -> 370 bytes evently/i18n/de.json | 7 +- evently/i18n/en-US.json | 7 +- evently/i18n/es.json | 7 +- evently/i18n/ru-RU.json | 7 +- evently/lib/evently_provider.dart | 26 ++ evently/lib/generated/locale_keys.g.dart | 5 + evently/lib/models/denom.dart | 84 ++++++ evently/lib/screens/detail_screen.dart | 2 +- evently/lib/screens/overview_screen.dart | 2 +- evently/lib/screens/perks_screen.dart | 2 +- evently/lib/screens/price_screen.dart | 249 +++++++++++++++++- evently/lib/utils/amount_formatter.dart | 28 ++ evently/lib/utils/constants.dart | 24 ++ .../widgets/evently_price_input_field.dart | 113 ++++++++ ...ext_field.dart => evently_text_field.dart} | 0 18 files changed, 554 insertions(+), 9 deletions(-) create mode 100644 evently/assets/images/denom_pylon.png create mode 100644 evently/assets/images/denom_usd.png create mode 100644 evently/assets/images/text_field_button.png create mode 100644 evently/lib/evently_provider.dart create mode 100644 evently/lib/models/denom.dart create mode 100644 evently/lib/utils/amount_formatter.dart create mode 100644 evently/lib/widgets/evently_price_input_field.dart rename evently/lib/widgets/{easel_text_field.dart => evently_text_field.dart} (100%) diff --git a/evently/assets/images/denom_pylon.png b/evently/assets/images/denom_pylon.png new file mode 100644 index 0000000000000000000000000000000000000000..b4e43bc030e44103893f304c429fc9c0f293c2c5 GIT binary patch literal 804 zcmV+<1Ka$GP)GhHiikuh>|G|IGAhe-Hb3COvV)zJnj$;{1jl|2C#31ZD$fSG4+U~29vNRZM@P9k4OqHsW5lJQYmDLlzTO@#a{+(p#t4Md)R#W6zhfC*jjswiU>?v#bSzuB1^SPYp968 ziLPGNC`-$XT)r1*9v)L|vtdMx_k{%NBQUTa)W#Q6n(#jBsIV_&fg(8E(p!SwgOnq< irN>dC_zWqw^o{}S80M}ArXj`v0000_sXggY7^}pWx?nOe2!IY{6A4Qx$m=V1Iy6Tq2Yvyj5Hx3bNDY;t zDTB%DlW^Tv?23f#)r>(7Ob0kyVOzK$nSZflV)TgJH)#`D6qO)|%w&()KTo@uQR>2~ z5M`K8iLWJ}nL#l`t{5{8V}_z(T?zjI9eBaz!UujTkIs++rC^br?t|j8ibyMl42aH- z1yjvZ(;;(#8*-L!fem<3*%COm(157o0fX}r-Gz|NnLETq>+JXIQS4c^;nUn;o!9GIJ)tM zOds+U60jm;jkurdm=CIA7tiutyU=g4MYiq!-2oOzBSBt}q@}kJ`UZPpmOUMuvlk`Q z(Y<>~E;@BSH22htG#~>d#voXrq4OO)Mqjz*zaS!uOw|@=s*JQnuytIe(42IG35$VntkKikg4JmXDm^gfh*i^D?GHh3k#V+5_Yiym8tOJP(+e3Ni=yza>A)nC((mlz<5EI76$nk`gT1^QC zIO7z_u>)Z$q&`@2#?RwIoC^}*=Nv!d?BSGsuo}yC{G`XlCq1?ucM7iPPQe+i4o0^# jD1z6AG_^XFX;SeQf-|ptuI;pw00000NkvXXu0mjf5mFd) literal 0 HcmV?d00001 diff --git a/evently/assets/images/text_field_button.png b/evently/assets/images/text_field_button.png new file mode 100644 index 0000000000000000000000000000000000000000..3554ba3ac5eb8dbf6ed46362557124334fea8f6d GIT binary patch literal 370 zcmeAS@N?(olHy`uVBq!ia0vp^JwU9@!3HE(-Au>;Qk(@Ik;M!Q+`=Ht$S`Y;1W=H% zILO_JVcj{Imp~3nx}&cn1H;CC?mvmFKsk0#7srqa#<$n@`Z60z98ZjQ@$7oz)S;wh z*65ocVwS+8BITCAqVg&sX&?Wgr~fkFS6ZDe`+hmQ{CoNNtp_|dGcg_%5abc0fLMGr zNS^huhVC@qyK}hP_Sz*!t`}G1Ib3(_(lvM1f5ERWFRM9zX@@?((WGhSrd*xVSN~Y;RGP8UN&zHMlAv=|J9Vn7q~4mnH-SOK;OXk;vd$@? F2>{y$f`R}5 literal 0 HcmV?d00001 diff --git a/evently/i18n/de.json b/evently/i18n/de.json index e52f2127d1..dfa99e77e0 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -33,5 +33,10 @@ "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", "there_no_perks_created": "There are no perks created.", - "free_shirt": "1 free t-shirt" + "free_shirt": "1 free t-shirt", + "is_free_drop": "Is this a free drop?", + "yes": "Yes", + "no" : "No", + "number_tickets": "Number of Tickets", + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index e52f2127d1..dfa99e77e0 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -33,5 +33,10 @@ "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", "there_no_perks_created": "There are no perks created.", - "free_shirt": "1 free t-shirt" + "free_shirt": "1 free t-shirt", + "is_free_drop": "Is this a free drop?", + "yes": "Yes", + "no" : "No", + "number_tickets": "Number of Tickets", + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index e52f2127d1..dfa99e77e0 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -33,5 +33,10 @@ "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", "there_no_perks_created": "There are no perks created.", - "free_shirt": "1 free t-shirt" + "free_shirt": "1 free t-shirt", + "is_free_drop": "Is this a free drop?", + "yes": "Yes", + "no" : "No", + "number_tickets": "Number of Tickets", + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index e52f2127d1..dfa99e77e0 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -33,5 +33,10 @@ "claim_free_drink": "Claim your free drink at the bar during the event!", "character_limit": "256 character limit", "there_no_perks_created": "There are no perks created.", - "free_shirt": "1 free t-shirt" + "free_shirt": "1 free t-shirt", + "is_free_drop": "Is this a free drop?", + "yes": "Yes", + "no" : "No", + "number_tickets": "Number of Tickets", + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart new file mode 100644 index 0000000000..d742f7c69c --- /dev/null +++ b/evently/lib/evently_provider.dart @@ -0,0 +1,26 @@ + + + +import 'package:evently/models/denom.dart'; +import 'package:flutter/cupertino.dart'; + +enum FreeDrop { yes, no, unselected } + +class EventlyProvider extends ChangeNotifier { + + Denom _selectedDenom = Denom.availableDenoms.first; + + Denom get selectedDenom => _selectedDenom; + + List supportedDenomList = []; + + TextEditingController priceController = TextEditingController(); + + FreeDrop isFreeDrop = FreeDrop.unselected; + + void setSelectedDenom(Denom value) { + _selectedDenom = value; + notifyListeners(); + } + +} \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index a1e7e06fb8..47bf5b4a74 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -36,5 +36,10 @@ abstract class LocaleKeys { static const character_limit = 'character_limit'; static const there_no_perks_created = 'there_no_perks_created'; static const free_shirt = 'free_shirt'; + static const is_free_drop = 'is_free_drop'; + static const yes = 'yes'; + static const no = 'no'; + static const number_tickets = 'number_tickets'; + static const network_fee_listed_price_occur_on_chain = 'network_fee_listed_price_occur_on_chain'; } diff --git a/evently/lib/models/denom.dart b/evently/lib/models/denom.dart new file mode 100644 index 0000000000..1c94ab5551 --- /dev/null +++ b/evently/lib/models/denom.dart @@ -0,0 +1,84 @@ +import 'package:evently/utils/amount_formatter.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +import '../main.dart'; + +class Denom { + final String name; + final String symbol; + final String icon; + + Denom({required this.name, required this.symbol, required this.icon}); + + factory Denom.initial() { + return Denom(icon: '', name: '', symbol: ''); + } + + static List get availableDenoms => [ + Denom(name: kUSDText, symbol: kUsdSymbol, icon: PngUtils.kIconDenomUsd), + Denom(name: kPylonText, symbol: kPylonSymbol, icon: PngUtils.kIconDenomPylon), + ]; + + TextInputFormatter getFormatter() { + if (symbol == kPylonSymbol) { + return AmountFormatter(maxDigits: kMaxPriceLength); + } + return AmountFormatter(maxDigits: kMaxPriceLength, isDecimal: true); + } + + @override + String toString() { + return 'Denom{name: $name, symbol: $symbol, icon: $icon}'; + } + + Widget getIconWidget() { + switch (symbol) { + case kUsdSymbol: + case kPylonSymbol: + case kAtomSymbol: + case kEuroSymbol: + case kJunoSymbol: + return Image.asset( + icon, + height: 20.h, + fit: BoxFit.contain, + width: 20.w, + ); + case kEthereumSymbol: + return Container( + padding: EdgeInsets.symmetric(vertical: isTablet ? 5.h : 10.h), + child: Image.asset( + icon, + height: 20.h, + )); + case kAgoricSymbol: + return Image.asset( + icon, + height: 15.h, + width: 15.w, + fit: BoxFit.contain, + ); + default: + return Image.asset(icon); + } + } + + String formatAmount({required String price}) { + switch (symbol) { + case kUsdSymbol: + case kPylonSymbol: + case kAtomSymbol: + case kEuroSymbol: + case kAgoricSymbol: + case kJunoSymbol: + return (double.parse(price.replaceAll(",", "").trim()) * kBigIntBase).toStringAsFixed(0); + case kEthereumSymbol: + return (double.parse(price.replaceAll(",", "").trim()) * kEthIntBase).toStringAsFixed(0); + default: + return (double.parse(price.replaceAll(",", "").trim()) * kBigIntBase).toStringAsFixed(0); + } + } +} diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 3e47e8cd04..65884fcc66 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -6,7 +6,7 @@ import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; -import 'package:evently/widgets/easel_text_field.dart'; +import 'package:evently/widgets/evently_text_field.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:provider/provider.dart'; diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 2cddf9f312..8917dc63ec 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -8,7 +8,7 @@ import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; -import 'package:evently/widgets/easel_text_field.dart'; +import 'package:evently/widgets/evently_text_field.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 66da0da1c4..6da878b98a 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -8,7 +8,7 @@ import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; -import 'package:evently/widgets/easel_text_field.dart'; +import 'package:evently/widgets/evently_text_field.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 5bdbc6c110..61360c9ac6 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -1,15 +1,260 @@ + +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/evently_provider.dart'; +import 'package:evently/screens/custom_widgets/step_labels.dart'; +import 'package:evently/screens/custom_widgets/steps_indicator.dart'; +import 'package:evently/utils/amount_formatter.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/screen_responsive.dart'; +import 'package:evently/utils/space_utils.dart'; +import 'package:evently/viewmodels/create_event_viewmodel.dart'; +import 'package:evently/widgets/clipped_button.dart'; +import 'package:evently/widgets/evently_price_input_field.dart'; +import 'package:evently/widgets/evently_text_field.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:get_it/get_it.dart'; +import 'package:provider/provider.dart'; + +import '../generated/locale_keys.g.dart'; class PriceScreen extends StatefulWidget { - const PriceScreen({super.key}); + const PriceScreen({Key? key}) : super(key: key); @override State createState() => _PriceScreenState(); } class _PriceScreenState extends State { + final _formKey = GlobalKey(); + final ValueNotifier _priceFieldError = ValueNotifier(""); + + @override + void dispose() { + _formKey.currentState?.dispose(); + super.dispose(); + } + + @override + void initState() { + super.initState(); + } + @override Widget build(BuildContext context) { - return const Placeholder(); + final homeViewModel = context.watch(); + + return Scaffold( + body: SingleChildScrollView( + child: Consumer(builder: (_, provider, __) { + return Form( + key: _formKey, + child: Column( + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: homeViewModel.currentStep), + const VerticalSpace(5), + StepLabels(currentPage: homeViewModel.currentPage, currentStep: homeViewModel.currentStep), + const VerticalSpace(10), + const VerticalSpace(20), + Stack( + alignment: Alignment.center, + children: [ + Align( + alignment: Alignment.centerLeft, + child: ValueListenableBuilder( + valueListenable: homeViewModel.currentPage, + builder: (_, int currentPage, __) => Padding( + padding: EdgeInsets.only(left: 10.sp), + child: IconButton( + onPressed: () { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + homeViewModel.previousPage(); + }, + icon: const Icon( + Icons.arrow_back_ios, + color: EventlyAppTheme.kGrey, + ), + )), + )), + ValueListenableBuilder( + valueListenable: homeViewModel.currentPage, + builder: (_, int currentPage, __) { + return Text( + homeViewModel.pageTitles[homeViewModel.currentPage.value], + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 18.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kDarkText), + ); + }, + ), + ], + ), + ScreenResponsive( + mobileScreen: (context) => const VerticalSpace(6), + tabletScreen: (context) => const VerticalSpace(30), + ), + VerticalSpace(10.h), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + LocaleKeys.is_free_drop.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), + ), + SizedBox( + height: 10.h, + ), + Row(children: [ + InkWell( + onTap: () { + // provider.updateIsFreeDropStatus(FreeDrop.yes); + }, + child: Container( + width: 140.w, + height: 30.h, + decoration: BoxDecoration( + color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kBlue : EventlyAppTheme.kTransparent, + border: Border.all(color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kBlue : EventlyAppTheme.kBlack, width: 2.w), + ), + child: Center( + child: Text( + LocaleKeys.yes.tr(), + style: TextStyle( + color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kWhite : EventlyAppTheme.kBlack, + ), + ), + ), + ), + ), + SizedBox( + width: 30.w, + ), + InkWell( + onTap: () { + + }, + child: Container( + width: 140.w, + height: 30.h, + decoration: BoxDecoration( + color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kBlue : EventlyAppTheme.kTransparent, + border: Border.all(color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kBlue : EventlyAppTheme.kBlack, width: 2.w), + ), + child: Center( + child: Text( + LocaleKeys.no.tr(), + style: TextStyle( + color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kWhite : EventlyAppTheme.kBlack, + ), + ), + ), + ), + ), + ]), + if (provider.isFreeDrop != FreeDrop.unselected) + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (provider.isFreeDrop == FreeDrop.no) + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + VerticalSpace(20.h), + EventlyPriceInputField( + key: ValueKey("${provider.selectedDenom.name}-amount"), + inputFormatters: [FilteringTextInputFormatter.digitsOnly, LengthLimitingTextInputFormatter(kMaxPriceLength), provider.selectedDenom.getFormatter()], + controller: provider.priceController, + validator: (value) { + + }, + ), + + Text( + LocaleKeys.network_fee_listed_price_occur_on_chain.tr(), + style: TextStyle(color: EventlyAppTheme.kLightPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), + ), + ], + ), + + ], + ), + if (provider.isFreeDrop == FreeDrop.unselected) + ScreenResponsive( + mobileScreen: (_) => VerticalSpace(0.38.sh), + tabletScreen: (_) => VerticalSpace(0.2.sh), + ), + if (provider.isFreeDrop == FreeDrop.yes) + ScreenResponsive( + mobileScreen: (_) => VerticalSpace(0.1.sh), + tabletScreen: (_) => VerticalSpace(0.05.sh), + ), + VerticalSpace(20.h), + ClippedButton( + title: LocaleKeys.continue_key.tr(), + bgColor: provider.isFreeDrop != FreeDrop.unselected ? EventlyAppTheme.kBlue : EventlyAppTheme.kPurple03, + textColor: EventlyAppTheme.kWhite, + onPressed: () async { + if (provider.isFreeDrop != FreeDrop.unselected) { + FocusScope.of(context).unfocus(); + validateAndUpdatePrice(moveNextPage: true); + } + }, + cuttingHeight: 15.h, + clipperType: ClipperType.bottomLeftTopRight, + isShadow: false, + fontWeight: FontWeight.w700, + ), + VerticalSpace(10.h), + Center( + child: InkWell( + + onTap: () { + if (provider.isFreeDrop == FreeDrop.unselected) { + Navigator.pop(context); + return; + } + FocusScope.of(context).unfocus(); + validateAndUpdatePrice(moveNextPage: false); + }, + child: Text( + LocaleKeys.save_as_draft.tr(), + style: TextStyle(color: EaselAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), + ), + ), + ), + VerticalSpace(5.h), + ], + ), + ), + ], + ), + ); + }), + ), + ); + } + + Future validateAndUpdatePrice({required bool moveNextPage}) async { + final navigator = Navigator.of(context); + final HomeViewModel homeViewModel = context.read(); + + if (!_formKey.currentState!.validate()) { + return; + } + GetIt.I.get().changeSelectedCollection(CollectionType.draft); + + if (context.read().isFreeDrop == FreeDrop.yes) { + if (_royaltiesFieldError.value.isNotEmpty || _noOfEditionsFieldError.value.isNotEmpty) return; + await context.read().updateNftFromPrice(nft!.id!); + moveNextPage ? homeViewModel.nextPage() : navigator.pop(); + + return; + } + if (_royaltiesFieldError.value.isNotEmpty || _noOfEditionsFieldError.value.isNotEmpty || _priceFieldError.value.isNotEmpty) return; + await context.read().updateNftFromPrice(nft!.id!); + moveNextPage ? homeViewModel.nextPage() : navigator.pop(); } } diff --git a/evently/lib/utils/amount_formatter.dart b/evently/lib/utils/amount_formatter.dart new file mode 100644 index 0000000000..246092db6d --- /dev/null +++ b/evently/lib/utils/amount_formatter.dart @@ -0,0 +1,28 @@ +import 'package:flutter/services.dart'; +import 'package:intl/intl.dart'; + +class AmountFormatter extends TextInputFormatter { + AmountFormatter({required this.maxDigits, this.isDecimal = false}); + + int maxDigits; + bool isDecimal; + + @override + TextEditingValue formatEditUpdate( + TextEditingValue oldValue, TextEditingValue newValue) { + maxDigits = 20; + if (newValue.selection.baseOffset == 0) { + return newValue; + } + if (newValue.selection.baseOffset > maxDigits) { + return oldValue; + } + final double value = double.parse(newValue.text); + final formatter = NumberFormat(isDecimal ? "#,##0.00" : "#,###", "en_US"); + final String newText = formatter.format(isDecimal ? value / 100 : value); + + return newValue.copyWith( + text: newText, + selection: TextSelection.collapsed(offset: newText.length)); + } +} diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 6dc9923896..ee5435b429 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -6,6 +6,27 @@ const kDraft = "Draft"; final List stepLabels = ["overview", "detail", "perks", "price"]; +const kPylonSymbol = 'upylon'; +const kUsdSymbol = 'ustripeusd'; +const kAtomSymbol = 'uatom'; +const kEuroSymbol = 'eeur'; +const kAgoricSymbol = 'urun'; +const kJunoSymbol = 'ujunox'; +const String kEthereumSymbol = "weth-wei"; + +const kPylonText = 'Pylon'; +const kUSDText = 'USD'; +const kAtomText = 'Atom'; +const kEurText = 'EEur'; +const kAgoricText = 'Agoric'; +const kJunoText = 'Juno'; +const kEthereum = "Ethereum"; + +const kMaxPriceLength = 14; +const int kBigIntBase = 1000000; +const int kEthIntBase = 1000000000000000000; + + /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; @@ -22,4 +43,7 @@ class PngUtils { static const kTextFieldMultiLine = 'assets/images/text_field_multi_line.png'; static const kDarkPurpleSingleLine = 'assets/images/svg/dark_purple_single_line.png'; static const kLightPurpleSingleLine = 'assets/images/svg/light_purple_single_line.png'; + static const kTextFieldButton = 'assets/images/text_field_button.png'; + static const kIconDenomUsd = 'assets/images/denom_usd.png'; + static const kIconDenomPylon = 'assets/images/denom_pylon.png'; } diff --git a/evently/lib/widgets/evently_price_input_field.dart b/evently/lib/widgets/evently_price_input_field.dart new file mode 100644 index 0000000000..6ecacec8dc --- /dev/null +++ b/evently/lib/widgets/evently_price_input_field.dart @@ -0,0 +1,113 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/evently_provider.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:provider/provider.dart'; +import '../generated/locale_keys.g.dart'; +import '../main.dart'; +import '../models/denom.dart'; + +class EventlyPriceInputField extends StatelessWidget { + const EventlyPriceInputField({super.key, this.controller, this.validator, this.inputFormatters = const []}); + + final TextEditingController? controller; + final String? Function(String?)? validator; + final List inputFormatters; + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + LocaleKeys.price.tr(), + textAlign: TextAlign.start, + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), + ), + SizedBox(height: 4.h), + Stack( + children: [ + Positioned( + child: Image.asset(PngUtils.kTextFieldSingleLine, width: 1.sw, height: isTablet ? 32.h : 40.h, fit: BoxFit.fill), + ), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: TextFormField( + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kDarkText), + controller: controller, + validator: validator, + minLines: 1, + keyboardType: TextInputType.number, + inputFormatters: inputFormatters, + decoration: InputDecoration( + hintText: LocaleKeys.network_fee_listed_price_occur_on_chain.tr(), + hintStyle: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kGrey), + border: const OutlineInputBorder(borderSide: BorderSide.none), + floatingLabelBehavior: FloatingLabelBehavior.always, + contentPadding: EdgeInsets.fromLTRB(10.w, 0.h, 10.w, 0.h)))), + const _CurrencyDropDown() + ], + ), + ], + ), + ], + ); + } +} + +class _CurrencyDropDown extends StatelessWidget { + const _CurrencyDropDown({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return Consumer( + builder: (_, provider, __) => Stack( + alignment: Alignment.center, + children: [ + Positioned(left: 0, top: 0, bottom: 0, right: 0, child: Image.asset(PngUtils.kTextFieldButton, height: isTablet ? 32.h : 40.h, fit: BoxFit.fill)), + Container( + padding: EdgeInsets.only(left: 5.w), + height: isTablet ? 32.h : 40.h, + child: Align( + child: DropdownButton( + onTap: () { + FocusManager.instance.primaryFocus?.unfocus(); + }, + value: provider.selectedDenom.symbol, + iconSize: 0, + elevation: 0, + underline: const SizedBox(), + dropdownColor: EventlyAppTheme.kPurple03, + style: TextStyle(color: EventlyAppTheme.kWhite, fontSize: 18.sp, fontWeight: FontWeight.w400), + onChanged: (String? data) { + if (data != null) { + final value = provider.supportedDenomList.firstWhere((denom) => denom.symbol == data); + provider.priceController.clear(); + provider.setSelectedDenom(value); + } + }, + items: provider.supportedDenomList.map((Denom value) { + return DropdownMenuItem( + value: value.symbol, + child: Row(children: [ + value.getIconWidget(), + SizedBox(width: isTablet ? 10.w : 10.w), + Text( + value.name, + style: TextStyle(fontSize: isTablet ? 16.sp : 18.sp), + ), + SizedBox(width: isTablet ? 0.w : 5.w), + ]), + ); + }).toList(), + ), + )), + ], + )); + } +} diff --git a/evently/lib/widgets/easel_text_field.dart b/evently/lib/widgets/evently_text_field.dart similarity index 100% rename from evently/lib/widgets/easel_text_field.dart rename to evently/lib/widgets/evently_text_field.dart From a8ac51aa11df3a8da08b7fb15f0d834766a41097 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 11:09:01 +0500 Subject: [PATCH 033/158] feat: evently provider --- evently/lib/evently_provider.dart | 9 ++--- evently/lib/main.dart | 52 +++++++++++++++------------ evently/lib/screens/price_screen.dart | 52 ++++----------------------- evently/lib/utils/di/di.config.dart | 2 ++ 4 files changed, 41 insertions(+), 74 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index d742f7c69c..2d4de74169 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -1,13 +1,11 @@ - - - import 'package:evently/models/denom.dart'; import 'package:flutter/cupertino.dart'; +import 'package:injectable/injectable.dart'; enum FreeDrop { yes, no, unselected } +@lazySingleton class EventlyProvider extends ChangeNotifier { - Denom _selectedDenom = Denom.availableDenoms.first; Denom get selectedDenom => _selectedDenom; @@ -22,5 +20,4 @@ class EventlyProvider extends ChangeNotifier { _selectedDenom = value; notifyListeners(); } - -} \ No newline at end of file +} diff --git a/evently/lib/main.dart b/evently/lib/main.dart index f9ec0db562..34b7bcdbdb 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,5 +1,6 @@ import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/evently_provider.dart'; import 'package:evently/screens/create_event.dart'; import 'package:evently/screens/event_hub/event_hub_screen.dart'; import 'package:evently/screens/splash_screen.dart'; @@ -9,7 +10,7 @@ import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; - +import 'package:provider/provider.dart'; bool isTablet = false; @@ -45,28 +46,33 @@ class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { - return ScreenUtilInit( - minTextAdapt: true, - builder: (BuildContext context, child) => MaterialApp( - builder: (context, widget) { - ScreenUtil.init(context); - return MediaQuery( - data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling), - child: widget!, - ); - }, - localizationsDelegates: context.localizationDelegates, - supportedLocales: context.supportedLocales, - locale: context.locale, - title: 'Evently', - navigatorKey: navigatorKey, - theme: EventlyAppTheme.theme(context), - initialRoute: '/', - routes: { - '/': (context) => const SplashScreen(), - RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), - RouteUtil.createEvent: (context) => const CreateEvent(), - }, + return MultiProvider( + providers: [ + ChangeNotifierProvider(create: (_) => sl()), + ], + child: ScreenUtilInit( + minTextAdapt: true, + builder: (BuildContext context, child) => MaterialApp( + builder: (context, widget) { + ScreenUtil.init(context); + return MediaQuery( + data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling), + child: widget!, + ); + }, + localizationsDelegates: context.localizationDelegates, + supportedLocales: context.supportedLocales, + locale: context.locale, + title: 'Evently', + navigatorKey: navigatorKey, + theme: EventlyAppTheme.theme(context), + initialRoute: '/', + routes: { + '/': (context) => const SplashScreen(), + RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), + RouteUtil.createEvent: (context) => const CreateEvent(), + }, + ), ), ); } diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 61360c9ac6..13d0fe61e8 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -1,9 +1,7 @@ - import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; -import 'package:evently/utils/amount_formatter.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/screen_responsive.dart'; @@ -11,17 +9,15 @@ import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; import 'package:evently/widgets/evently_price_input_field.dart'; -import 'package:evently/widgets/evently_text_field.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:get_it/get_it.dart'; import 'package:provider/provider.dart'; import '../generated/locale_keys.g.dart'; class PriceScreen extends StatefulWidget { - const PriceScreen({Key? key}) : super(key: key); + const PriceScreen({super.key}); @override State createState() => _PriceScreenState(); @@ -29,7 +25,7 @@ class PriceScreen extends StatefulWidget { class _PriceScreenState extends State { final _formKey = GlobalKey(); - final ValueNotifier _priceFieldError = ValueNotifier(""); + @override void dispose() { @@ -133,9 +129,7 @@ class _PriceScreenState extends State { width: 30.w, ), InkWell( - onTap: () { - - }, + onTap: () {}, child: Container( width: 140.w, height: 30.h, @@ -168,17 +162,15 @@ class _PriceScreenState extends State { inputFormatters: [FilteringTextInputFormatter.digitsOnly, LengthLimitingTextInputFormatter(kMaxPriceLength), provider.selectedDenom.getFormatter()], controller: provider.priceController, validator: (value) { - + return null; }, ), - Text( LocaleKeys.network_fee_listed_price_occur_on_chain.tr(), style: TextStyle(color: EventlyAppTheme.kLightPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), ), ], ), - ], ), if (provider.isFreeDrop == FreeDrop.unselected) @@ -199,7 +191,6 @@ class _PriceScreenState extends State { onPressed: () async { if (provider.isFreeDrop != FreeDrop.unselected) { FocusScope.of(context).unfocus(); - validateAndUpdatePrice(moveNextPage: true); } }, cuttingHeight: 15.h, @@ -210,18 +201,10 @@ class _PriceScreenState extends State { VerticalSpace(10.h), Center( child: InkWell( - - onTap: () { - if (provider.isFreeDrop == FreeDrop.unselected) { - Navigator.pop(context); - return; - } - FocusScope.of(context).unfocus(); - validateAndUpdatePrice(moveNextPage: false); - }, + onTap: () {}, child: Text( - LocaleKeys.save_as_draft.tr(), - style: TextStyle(color: EaselAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), + LocaleKeys.save_draft.tr(), + style: TextStyle(color: EventlyAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), ), ), ), @@ -236,25 +219,4 @@ class _PriceScreenState extends State { ), ); } - - Future validateAndUpdatePrice({required bool moveNextPage}) async { - final navigator = Navigator.of(context); - final HomeViewModel homeViewModel = context.read(); - - if (!_formKey.currentState!.validate()) { - return; - } - GetIt.I.get().changeSelectedCollection(CollectionType.draft); - - if (context.read().isFreeDrop == FreeDrop.yes) { - if (_royaltiesFieldError.value.isNotEmpty || _noOfEditionsFieldError.value.isNotEmpty) return; - await context.read().updateNftFromPrice(nft!.id!); - moveNextPage ? homeViewModel.nextPage() : navigator.pop(); - - return; - } - if (_royaltiesFieldError.value.isNotEmpty || _noOfEditionsFieldError.value.isNotEmpty || _priceFieldError.value.isNotEmpty) return; - await context.read().updateNftFromPrice(nft!.id!); - moveNextPage ? homeViewModel.nextPage() : navigator.pop(); - } } diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index af886c649e..a3e42a76dd 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -8,6 +8,7 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:evently/evently_provider.dart' as _i4; import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; import 'package:get_it/get_it.dart' as _i1; import 'package:injectable/injectable.dart' as _i2; @@ -25,6 +26,7 @@ extension GetItInjectableX on _i1.GetIt { ); gh.lazySingleton<_i3.CreateEventViewModel>( () => _i3.CreateEventViewModel()); + gh.lazySingleton<_i4.EventlyProvider>(() => _i4.EventlyProvider()); return this; } } From 19e1594dae664a62614cae03764be72784d31e7a Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 11:17:55 +0500 Subject: [PATCH 034/158] feat: price screen --- evently/lib/evently_provider.dart | 4 ++-- evently/lib/widgets/evently_price_input_field.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 2d4de74169..1e0d13c90a 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -10,11 +10,11 @@ class EventlyProvider extends ChangeNotifier { Denom get selectedDenom => _selectedDenom; - List supportedDenomList = []; + List supportedDenomList = Denom.availableDenoms; TextEditingController priceController = TextEditingController(); - FreeDrop isFreeDrop = FreeDrop.unselected; + FreeDrop isFreeDrop = FreeDrop.no; void setSelectedDenom(Denom value) { _selectedDenom = value; diff --git a/evently/lib/widgets/evently_price_input_field.dart b/evently/lib/widgets/evently_price_input_field.dart index 6ecacec8dc..5e59b98522 100644 --- a/evently/lib/widgets/evently_price_input_field.dart +++ b/evently/lib/widgets/evently_price_input_field.dart @@ -45,7 +45,7 @@ class EventlyPriceInputField extends StatelessWidget { keyboardType: TextInputType.number, inputFormatters: inputFormatters, decoration: InputDecoration( - hintText: LocaleKeys.network_fee_listed_price_occur_on_chain.tr(), + hintText: "\$21.99", hintStyle: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kGrey), border: const OutlineInputBorder(borderSide: BorderSide.none), floatingLabelBehavior: FloatingLabelBehavior.always, From 6e7c9549a0722b2f97052ed7f279f820b4a2e2c9 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 11:24:43 +0500 Subject: [PATCH 035/158] feat: event price --- evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/lib/generated/locale_keys.g.dart | 1 + evently/lib/screens/price_screen.dart | 52 +++++++++++++++++++----- 5 files changed, 48 insertions(+), 14 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index dfa99e77e0..ab097c5b84 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -38,5 +38,6 @@ "yes": "Yes", "no" : "No", "number_tickets": "Number of Tickets", - "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", + "maximum_1000": "1,000 maximum" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index dfa99e77e0..ab097c5b84 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -38,5 +38,6 @@ "yes": "Yes", "no" : "No", "number_tickets": "Number of Tickets", - "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", + "maximum_1000": "1,000 maximum" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index dfa99e77e0..ab097c5b84 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -38,5 +38,6 @@ "yes": "Yes", "no" : "No", "number_tickets": "Number of Tickets", - "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", + "maximum_1000": "1,000 maximum" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 47bf5b4a74..021910113a 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -41,5 +41,6 @@ abstract class LocaleKeys { static const no = 'no'; static const number_tickets = 'number_tickets'; static const network_fee_listed_price_occur_on_chain = 'network_fee_listed_price_occur_on_chain'; + static const maximum_1000 = 'maximum_1000'; } diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 13d0fe61e8..a09420f03d 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -9,6 +9,7 @@ import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/clipped_button.dart'; import 'package:evently/widgets/evently_price_input_field.dart'; +import 'package:evently/widgets/evently_text_field.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -25,7 +26,7 @@ class PriceScreen extends StatefulWidget { class _PriceScreenState extends State { final _formKey = GlobalKey(); - + final ValueNotifier _numberOfTicketsFieldError = ValueNotifier(""); @override void dispose() { @@ -169,20 +170,49 @@ class _PriceScreenState extends State { LocaleKeys.network_fee_listed_price_occur_on_chain.tr(), style: TextStyle(color: EventlyAppTheme.kLightPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), ), + VerticalSpace(20.h), + EventlyTextField( + label: LocaleKeys.number_tickets.tr(), + controller: TextEditingController(), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + ValueListenableBuilder( + valueListenable: _numberOfTicketsFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + Align( + alignment: Alignment.centerRight, + child: Text( + LocaleKeys.maximum_1000.tr(), + style: TextStyle(color: EventlyAppTheme.kLightPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), + textAlign: TextAlign.right, + ), + ), ], ), ], ), - if (provider.isFreeDrop == FreeDrop.unselected) - ScreenResponsive( - mobileScreen: (_) => VerticalSpace(0.38.sh), - tabletScreen: (_) => VerticalSpace(0.2.sh), - ), - if (provider.isFreeDrop == FreeDrop.yes) - ScreenResponsive( - mobileScreen: (_) => VerticalSpace(0.1.sh), - tabletScreen: (_) => VerticalSpace(0.05.sh), - ), + ScreenResponsive( + mobileScreen: (_) => VerticalSpace(0.1.sh), + tabletScreen: (_) => VerticalSpace(0.05.sh), + ), VerticalSpace(20.h), ClippedButton( title: LocaleKeys.continue_key.tr(), From 34a14891d9b9dcd85019a7f52fd953d34d8e8762 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 11:42:32 +0500 Subject: [PATCH 036/158] feat: host ticket preview --- evently/lib/main.dart | 4 +++- evently/lib/screens/create_event.dart | 2 +- .../lib/screens/event_hub/event_hub_screen.dart | 4 ++-- evently/lib/screens/host_view_ticket_preview.dart | 15 +++++++++++++++ evently/lib/screens/price_screen.dart | 5 ++++- evently/lib/utils/route_util.dart | 3 ++- 6 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 evently/lib/screens/host_view_ticket_preview.dart diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 34b7bcdbdb..91402dc708 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -3,6 +3,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/screens/create_event.dart'; import 'package:evently/screens/event_hub/event_hub_screen.dart'; +import 'package:evently/screens/host_view_ticket_preview.dart'; import 'package:evently/screens/splash_screen.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; @@ -70,7 +71,8 @@ class MyApp extends StatelessWidget { routes: { '/': (context) => const SplashScreen(), RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), - RouteUtil.createEvent: (context) => const CreateEvent(), + RouteUtil.kCreateEvent: (context) => const CreateEvent(), + RouteUtil.kHostTicketPreview: (context) => const HostTicketPreview(), }, ), ), diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 83a818cfa9..a9ab0a8633 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -49,7 +49,7 @@ class CreateEventContent extends StatelessWidget { physics: const NeverScrollableScrollPhysics(), onPageChanged: (int page) { createEventViewModel.currentPage.value = page; - final map = {0: 0, 1: 1, 2: 2, 3: 2}; + final map = {0: 0, 1: 1, 2: 2, 3: 3}; createEventViewModel.currentStep.value = map[page]!; }, itemBuilder: (BuildContext context, int index) { diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index f482f7b09a..b279718b90 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -62,7 +62,7 @@ class _EventHubScreenState extends State { mainAxisAlignment: MainAxisAlignment.end, children: [ InkWell( - onTap: () => Navigator.of(context).pushNamed(RouteUtil.createEvent), + onTap: () => Navigator.of(context).pushNamed(RouteUtil.kCreateEvent), child: DecoratedBox( decoration: BoxDecoration( color: EventlyAppTheme.kpurpleDark, @@ -145,7 +145,7 @@ class _EventHubScreenState extends State { bgColor: EventlyAppTheme.kBlue, textColor: EventlyAppTheme.kWhite, onPressed: () { - Navigator.of(context).pushNamed(RouteUtil.createEvent); + Navigator.of(context).pushNamed(RouteUtil.kCreateEvent); }, cuttingHeight: 15.h, clipperType: ClipperType.bottomLeftTopRight, diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart new file mode 100644 index 0000000000..6cac5b1ab8 --- /dev/null +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class HostTicketPreview extends StatefulWidget { + const HostTicketPreview({super.key}); + + @override + State createState() => _HostTicketPreviewState(); +} + +class _HostTicketPreviewState extends State { + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index a09420f03d..86235af21e 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -4,6 +4,7 @@ import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; @@ -231,7 +232,9 @@ class _PriceScreenState extends State { VerticalSpace(10.h), Center( child: InkWell( - onTap: () {}, + onTap: () { + Navigator.of(context).pushNamed(RouteUtil.kHostTicketPreview); + }, child: Text( LocaleKeys.save_draft.tr(), style: TextStyle(color: EventlyAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), diff --git a/evently/lib/utils/route_util.dart b/evently/lib/utils/route_util.dart index 03058cf14b..d4c1cdb492 100644 --- a/evently/lib/utils/route_util.dart +++ b/evently/lib/utils/route_util.dart @@ -2,5 +2,6 @@ class RouteUtil { RouteUtil(); static String kRouteEventHub = "/eventHub"; - static String createEvent = "/createEvent"; + static String kCreateEvent = "/createEvent"; + static String kHostTicketPreview = "/hostTicketPreview"; } From bfd49f9f090b79bce286c1e497a8ea86e2d792a8 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 12:22:16 +0500 Subject: [PATCH 037/158] feat: host preview screen --- evently/assets/images/host_preview.png | Bin 0 -> 5098 bytes evently/assets/images/phantom.png | Bin 0 -> 74369 bytes .../lib/screens/host_view_ticket_preview.dart | 150 +++++++++++++++++- evently/lib/screens/price_screen.dart | 4 +- evently/lib/utils/constants.dart | 5 +- 5 files changed, 154 insertions(+), 5 deletions(-) create mode 100644 evently/assets/images/host_preview.png create mode 100644 evently/assets/images/phantom.png diff --git a/evently/assets/images/host_preview.png b/evently/assets/images/host_preview.png new file mode 100644 index 0000000000000000000000000000000000000000..780b95cc1fa56c7d1f2a7205be39df703cfe9f73 GIT binary patch literal 5098 zcmeHL`BxK09v`5JMFF>11Ub?bDN;f}i4Y7B6(wn_%8_6WphB>QLq#Ov3M6YHkbp6elaLMj>;4D(_+j4n&G*fFGxMF#=QE#~ zYsbF}v$on{1pu%<`t9K;0L;h$SYS78G-Y>vO%%I1~i4FK4YjvhYveZHA|^4Q~A?8PpHlwkET=YzGI`0kAx zv76j}Y5n83JEin-SOj(y_BLk(W)&Uqmz;)#_Ug)4M_PU#J2D~I_8Tv;A-4LjHyv>^ z?#cheKc=QMT#6E^OYjTJzZ!R`e>tktci&R8Jm>+~+|}Yb_4(9^d$y>Rk1tvaQg+xz ziZyW8+uWOSvo1NE7F>d?sE@!Dr>4Gt!#Lt4{yIHO)DQnI5|aUNkH)E7r(wZ}uKpF=dXGO`*{*=QlCmLOOf zQQN?AfXfRc$n3;=p>YMS&qpid+G&k48qQIVu8wy)kmWI~VEd}O635LE z+9j=iGDcXoHrs*)?`(J?$)FVXTni5WJ_+&RSw-0;#itlV7rUL1W~##~n4W_Bgf}*$ zScqZ1L)>ePTr@OEXZZDs`eXjy%i7{@57g}i?z2m?UgEhCTf)@-kapO8K4xeO#)|9H zPQulojPr_#Y!n0#gKC00_D>O&J)$_}Z2LSC$@C+8+AG`a`=q0%n^#Me>AOKlhy*jD z6g=I`X=Ai7cIBRx_Bxjb?f^uVjG2>?p@%`L{mW>@GLdGb(59E=yrHXa=v_jPD*g}+ z$>ZNnCgw`5!%qN6mUK`aTXklfGm$buFTOc7HYj9FnNN!|>QZIryKieL1y^WA^^dhp zEtLu2<9!I5$zb{$@j_oFK-WWznt*aoNI+ESIyu3OShVwj^TOFN zVs3gbW;8B~jpS$tlBgMAqCs+iwW{l^yybCPZ5+|T6RF$>2D__e|3=HGe<*rd3kuQ) z4)_ny5XHLR&w+{LN*8?(12@ytI+HB2r^p=Jm(&v4D?=lA~i)J$8WNcCq@lh z>V{~!*WXDzxMFC2y7RqI zYpyEo%sf(0L9J3OO2;umnW(L-=^f`w9)qo2fMSwnLCn2d9+3D6!xZ9&tFB~uELY+# zQPQ^Xq5v;|GzyE)rs4gzOAOw;!qPXH0@atcrS5!n0yCrv9ox+h7Ul^%x&XBMNp#Vv zY#7-+=9KTdyu|)UoH@F~m53Yi<^^!SfO3`NjmMyz3$eG%CZp@_zpJ5c7xd6>! z50LqXC@-U+y>}qy-4+ux`=c)HL8)@3%fuv4P<39xBq)#?U+?o*@I>ilr>*8tA;%cl zi7ZRLV)m41vc{bzgS5651Y4O>a`y|s%hi6WLkI0$%f*Zr;1!}Gi_-UF>ID4=?K9I3 zXVJVde&RpwP?D(004iKbVB$7Szfk2V8qRRHVCd;7W;p$tIqaRxst6@K?xtQR5XWi+ z0@Cb*f0;@sZlssAFqi~>3;B6nGRrh6tTy^bv&{N}lUU))!G^)THr@`=e@bi#M66I| zKCLQR=&1K`Mkh zuy(bv?Mr9)_qSS=GRK|QnGXWOiWZdRQ;PIttc_u&xFFD~F#vuAi8l_2BwkF@4Q}qes3w J+;j+i=|8=%-ev#* literal 0 HcmV?d00001 diff --git a/evently/assets/images/phantom.png b/evently/assets/images/phantom.png new file mode 100644 index 0000000000000000000000000000000000000000..135a21e20c79375e53e56dd1a11c19c7f981ef5f GIT binary patch literal 74369 zcmV)iK%&2iP)o}_z&YJh`_b-32J zv|ZiTv&MctrK?>mUF*GD_!8($b+==myO5=V7f89#1AU~?xTbluClCkQbyoz_H{EH97Z{(B3&{jRsc!Gj0l z^=U*5(@2as>8^Xp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fY0LzBPZwB6T~6#VIPju>f;pPZ#hGGMK#o zb*p2VV+)$wB_0yu8p011lF>IP!>*76wo02VeH}!hL=r^Q+wT|fVjpTSys9TR&dM+`e1 zfqI?cq4~TKn9OTl0EYpN(lJy0Y`zeI$@72H8Kd1Y>?sl8N{URR3>j+Zc z?=~puHaU0b-fmNjpLd&{|BHVA)!XYSkLmHcyLQ%#man~rf{1y)P;<4@Si^a-i%>1# z_z)14AlH{-%=(>)^-={uixtoamhZXLcn4Ll$l#a(*Y)&0gRwMM-<{@yt12cN#NmNu z3~vR3Z$DSXv3)*BZal1&8LVeC(7_^Si*YW2My167EyGUw5VKu(q=}wgQ!1)Aj3sY( z4V^5Obk1h*0@fs((t#DoRk%c+Fvk;4IQFR-GC(~Bw#qlKf}>JtuZNAcUF5&d`FbC) z5PtjkTQsx}g_gPHL$;sr37@j??bh_+AO9tteVgMGZ@)qJS-ADHz_8MuVGhR8|G{st zklxV8tAXPnI&On8f;3XpS7JO;@&_t}U>y1aDZ!Iylztjx27%XF77-P%Q&~r6lIn;t z*|7je<@OGq%NpsLNd=`Qh-pj7EyFJBMgprFHrer=_G-f(*9-P|p7B_m2yBLa6U*gH zVlOB(yU#J3)8ivLUbLb}a2_0M!{^^Y$*_gK=Ya4EF#}e{C;~)5*?I-YZ!R71I`%@A zM+girL=j*ZP-(nkjj?8Bve{mW5I#QP*w5)q2=9_$h&wfE5EvF(436`JCO1;jT+=AZ zVux0mYzRR4p@6OTPH&lBBS?T;dST487lN#rRx`77&IfB8h;g2cppN26PF5E``mW?T3$`hd+7c8 nJ9k~ { @override Widget build(BuildContext context) { - return const Placeholder(); + return ColoredBox( + color: EventlyAppTheme.kWhite, + child: SafeArea( + child: Scaffold( + backgroundColor: EventlyAppTheme.kWhite, + body: Padding( + padding: EdgeInsets.only(top: 20.h), + child: Stack( + children: [ + Image.asset( + PngUtils.kHostPreview, + width: double.infinity, + ), + Padding( + padding: EdgeInsets.only(left: 25.h, right: 27.w), + child: Column( + children: [ + ClipRRect( + borderRadius: BorderRadius.only( + topRight: Radius.circular(10.r), + topLeft: Radius.circular(10.r), + ), + child: Stack( + alignment: Alignment.bottomLeft, + children: [ + Image.asset( + PngUtils.kPhantom, + fit: BoxFit.contain, + ), + Padding( + padding: EdgeInsets.only(left: 10.w, bottom: 10.h), + child: Text( + 'The Phantom of the Opera', + style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), + ), + ) + ], + ), + ), + VerticalSpace(10.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'DATE', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + 'Jul 04, 2022', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'Time', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + '7:15 PM', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], + ), + ], + ), + ), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'LOCATION', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + ConstrainedBox( + constraints: BoxConstraints(maxWidth: 1.sw / 2.4), + child: Text( + '245 W 44th St New York, NY 10036', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + maxLines: 2, + ), + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'SEAT', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '6A', + style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + Text( + 'Room 3', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ) + ], + ), + ], + ), + ], + ), + ), + + + ], + ), + ) + ], + ), + ), + ), + ), + ); } } diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 86235af21e..61407f0385 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -220,9 +220,7 @@ class _PriceScreenState extends State { bgColor: provider.isFreeDrop != FreeDrop.unselected ? EventlyAppTheme.kBlue : EventlyAppTheme.kPurple03, textColor: EventlyAppTheme.kWhite, onPressed: () async { - if (provider.isFreeDrop != FreeDrop.unselected) { - FocusScope.of(context).unfocus(); - } + Navigator.of(context).pushNamed(RouteUtil.kHostTicketPreview); }, cuttingHeight: 15.h, clipperType: ClipperType.bottomLeftTopRight, diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index ee5435b429..a7b57b7012 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -26,7 +26,6 @@ const kMaxPriceLength = 14; const int kBigIntBase = 1000000; const int kEthIntBase = 1000000000000000000; - /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; @@ -46,4 +45,8 @@ class PngUtils { static const kTextFieldButton = 'assets/images/text_field_button.png'; static const kIconDenomUsd = 'assets/images/denom_usd.png'; static const kIconDenomPylon = 'assets/images/denom_pylon.png'; + static const kHostPreview = "assets/images/host_preview.png"; + /// will remove this variable for ui dev + /// i need this variable to be used + static const kPhantom = "assets/images/phantom.png"; } From c6d51c6528d9b6052e8f2c35623ef93246e31af3 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 12:37:06 +0500 Subject: [PATCH 038/158] feat: dotted line --- evently/assets/images/dotted_line.png | Bin 0 -> 364 bytes evently/assets/images/svg/diamond.svg | 3 ++ .../lib/screens/host_view_ticket_preview.dart | 45 ++++++++++++++++-- evently/lib/utils/constants.dart | 2 + evently/lib/utils/evently_app_theme.dart | 2 +- 5 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 evently/assets/images/dotted_line.png create mode 100644 evently/assets/images/svg/diamond.svg diff --git a/evently/assets/images/dotted_line.png b/evently/assets/images/dotted_line.png new file mode 100644 index 0000000000000000000000000000000000000000..a42539bee300815f1d3c40c4eb9e071f4ec34fed GIT binary patch literal 364 zcmV-y0h9iTP)x1vXcunRT!v|>tkykr{@s`YYhWGA!&+J}{ z8~iy+i$p%mbJkJY5qT|cusBQ0MBY1`w=wRw{LPh=l$4a59^Kjc9d3`=^4YMN%qPPq zG9L{e$$T(;xQN%?I(j#e%vuC}l^D~*Z;@z?M-^B+ry$P81M+`3j0000< KMNUMnLSTYC&Y9l; literal 0 HcmV?d00001 diff --git a/evently/assets/images/svg/diamond.svg b/evently/assets/images/svg/diamond.svg new file mode 100644 index 0000000000..4e874f6959 --- /dev/null +++ b/evently/assets/images/svg/diamond.svg @@ -0,0 +1,3 @@ + + + diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 1951414c69..310e827106 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -5,6 +5,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; class HostTicketPreview extends StatefulWidget { const HostTicketPreview({super.key}); @@ -100,6 +101,7 @@ class _HostTicketPreviewState extends State { padding: EdgeInsets.only(left: 10.w, right: 30.h), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, children: [ Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -148,11 +150,48 @@ class _HostTicketPreviewState extends State { ], ), ), - - + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'PERKS', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Row( + children: [ + SvgPicture.asset(SVGUtils.kDiamond), + SizedBox(width: 5.w), + Text( + 'x 3', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), + ), + SizedBox(width: 5.w), + Text( + 'Redeem', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kDarkGreen, fontWeight: FontWeight.bold), + ) + ], + ) + ], + ), + ], + ), + ), + VerticalSpace(13.h), + Image.asset(PngUtils.kDottedLine) ], ), - ) + ), + + ], ), ), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index a7b57b7012..8c74ed7d7f 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -34,6 +34,7 @@ class SVGUtils { static const kGift = "assets/images/svg/gift.svg"; static const kDrinks = "assets/images/svg/drinks.svg"; static const kMinus = "assets/images/svg/minus.svg"; + static const kDiamond = "assets/images/svg/diamond.svg"; } /// ```PNG assets @@ -49,4 +50,5 @@ class PngUtils { /// will remove this variable for ui dev /// i need this variable to be used static const kPhantom = "assets/images/phantom.png"; + static const kDottedLine = "assets/images/dotted_line.png"; } diff --git a/evently/lib/utils/evently_app_theme.dart b/evently/lib/utils/evently_app_theme.dart index 01924e6214..bf9c10a22a 100644 --- a/evently/lib/utils/evently_app_theme.dart +++ b/evently/lib/utils/evently_app_theme.dart @@ -28,7 +28,7 @@ class EventlyAppTheme { static const Color kPurple02 = Color(0xFF4534CE); static const Color kPurple03 = Color(0xFFCBC8F3); static const Color kLightPurple = Color(0xFFB6B6E8); - static const Color kDarkGreen = Color(0xFF3A8977); + static const Color kDarkGreen = Color(0xFF14FB00); static const Color kYellow = Color(0xFFF3BA2F); static const Color kLightYellow = Color(0xFFFED564); static const Color kLightRed = Color(0xFFEF4421); From 3a1b92dcf9403d9efb2607bd434ebd05987dab87 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 16:35:30 +0500 Subject: [PATCH 039/158] feat: host ticket preview --- evently/assets/images/svg/camera.svg | 3 + .../lib/screens/host_view_ticket_preview.dart | 311 ++++++++++-------- 2 files changed, 168 insertions(+), 146 deletions(-) create mode 100644 evently/assets/images/svg/camera.svg diff --git a/evently/assets/images/svg/camera.svg b/evently/assets/images/svg/camera.svg new file mode 100644 index 0000000000..c0d27cad39 --- /dev/null +++ b/evently/assets/images/svg/camera.svg @@ -0,0 +1,3 @@ + + + diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 310e827106..77854973d9 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -21,33 +21,36 @@ class _HostTicketPreviewState extends State { color: EventlyAppTheme.kWhite, child: SafeArea( child: Scaffold( - backgroundColor: EventlyAppTheme.kWhite, - body: Padding( - padding: EdgeInsets.only(top: 20.h), - child: Stack( - children: [ - Image.asset( - PngUtils.kHostPreview, - width: double.infinity, + body: SingleChildScrollView( + child: ClipRRect( + borderRadius: BorderRadius.circular(10.r), + child: Container( + margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w), + // height: 1.sh, + // width: 1.sw, + decoration: BoxDecoration( + image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight), + borderRadius: BorderRadius.circular(10.r), ), - Padding( - padding: EdgeInsets.only(left: 25.h, right: 27.w), - child: Column( - children: [ - ClipRRect( + child: Column( + children: [ + // SizedBox(height: 20.h,), + Padding( + padding: const EdgeInsets.only(left: 3.0, right: 3.0, top: 16), + child: ClipRRect( borderRadius: BorderRadius.only( - topRight: Radius.circular(10.r), - topLeft: Radius.circular(10.r), + topRight: Radius.circular(14), + topLeft: Radius.circular(14), ), child: Stack( alignment: Alignment.bottomLeft, children: [ Image.asset( PngUtils.kPhantom, - fit: BoxFit.contain, + fit: BoxFit.cover, ), Padding( - padding: EdgeInsets.only(left: 10.w, bottom: 10.h), + padding: EdgeInsets.only(bottom: 10.h, left: 10.w), child: Text( 'The Phantom of the Opera', style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), @@ -56,143 +59,159 @@ class _HostTicketPreviewState extends State { ], ), ), - VerticalSpace(10.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'DATE', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Text( - 'Jul 04, 2022', - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - ], - ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'Time', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Text( - '7:15 PM', - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - ], - ), - ], - ), + ), + VerticalSpace(10.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'DATE', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + 'Jul 04, 2022', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'Time', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + '7:15 PM', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], + ), + ], ), - VerticalSpace(20.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'LOCATION', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'LOCATION', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + ConstrainedBox( + constraints: BoxConstraints(maxWidth: 1.sw / 2.4), + child: Text( + '245 W 44th St New York, NY 10036', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + maxLines: 2, ), - SizedBox(height: 1.h), - ConstrainedBox( - constraints: BoxConstraints(maxWidth: 1.sw / 2.4), - child: Text( - '245 W 44th St New York, NY 10036', + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'SEAT', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '6A', + style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + Text( + 'Room 3', style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - maxLines: 2, + ) + ], + ), + ], + ), + ], + ), + ), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'PERKS', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Row( + children: [ + SvgPicture.asset(SVGUtils.kDiamond), + SizedBox(width: 5.w), + Text( + 'x 3', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), ), - ), - ], - ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'SEAT', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - '6A', - style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - Text( - 'Room 3', - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ) - ], - ), - ], - ), - ], - ), + SizedBox(width: 5.w), + Text( + 'Redeem', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kDarkGreen, fontWeight: FontWeight.bold), + ) + ], + ) + ], + ), + ], ), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'PERKS', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Row( - children: [ - SvgPicture.asset(SVGUtils.kDiamond), - SizedBox(width: 5.w), - Text( - 'x 3', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), - ), - SizedBox(width: 5.w), - Text( - 'Redeem', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kDarkGreen, fontWeight: FontWeight.bold), - ) - ], - ) - ], - ), - ], - ), + ), + VerticalSpace(16.h), + Image.asset(PngUtils.kDottedLine), + VerticalSpace(40.h), + Text( + 'Scan QR to enter', + style: TextStyle( + color: EventlyAppTheme.kWhite, + fontWeight: FontWeight.bold, + fontSize: 15.sp, ), - VerticalSpace(13.h), - Image.asset(PngUtils.kDottedLine) - ], - ), - ), + ), + Container( + + decoration: BoxDecoration(color: EventlyAppTheme.kBlack), + width: 338, + height: 338, - ], + + ) + ], + ), + ), ), ), ), From b82472bce2a7fc5a5132d2665cb28d65a87ddbfb Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 16:38:29 +0500 Subject: [PATCH 040/158] feat: host view ticket preview --- evently/lib/screens/host_view_ticket_preview.dart | 11 ++++------- evently/lib/utils/constants.dart | 2 ++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 77854973d9..7cf8ef4d35 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -34,9 +34,8 @@ class _HostTicketPreviewState extends State { ), child: Column( children: [ - // SizedBox(height: 20.h,), Padding( - padding: const EdgeInsets.only(left: 3.0, right: 3.0, top: 16), + padding: const EdgeInsets.only(), child: ClipRRect( borderRadius: BorderRadius.only( topRight: Radius.circular(14), @@ -200,15 +199,13 @@ class _HostTicketPreviewState extends State { fontSize: 15.sp, ), ), + VerticalSpace(10.h), Container( - decoration: BoxDecoration(color: EventlyAppTheme.kBlack), width: 338, - height: 338, - - - ) + ), + SizedBox(height: 20.h), ], ), ), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 8c74ed7d7f..a28399f439 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -35,6 +35,7 @@ class SVGUtils { static const kDrinks = "assets/images/svg/drinks.svg"; static const kMinus = "assets/images/svg/minus.svg"; static const kDiamond = "assets/images/svg/diamond.svg"; + static const kCamera = "assets/images/svg/camera.svg"; } /// ```PNG assets @@ -47,6 +48,7 @@ class PngUtils { static const kIconDenomUsd = 'assets/images/denom_usd.png'; static const kIconDenomPylon = 'assets/images/denom_pylon.png'; static const kHostPreview = "assets/images/host_preview.png"; + /// will remove this variable for ui dev /// i need this variable to be used static const kPhantom = "assets/images/phantom.png"; From 99e9c0ae27d6f90fede86c7214222245d0b01e05 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 16:38:35 +0500 Subject: [PATCH 041/158] feat: host view ticket preview --- evently/lib/screens/host_view_ticket_preview.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 7cf8ef4d35..de2430bf61 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -37,7 +37,7 @@ class _HostTicketPreviewState extends State { Padding( padding: const EdgeInsets.only(), child: ClipRRect( - borderRadius: BorderRadius.only( + borderRadius: const BorderRadius.only( topRight: Radius.circular(14), topLeft: Radius.circular(14), ), From 8fa97836034f58ff9288da9fcb1d77108f69f4c2 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 16:53:51 +0500 Subject: [PATCH 042/158] feat: basic flow ui implementation --- evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 4 +- evently/lib/generated/locale_keys.g.dart | 1 + .../lib/screens/host_view_ticket_preview.dart | 43 ++++++++++++++++--- evently/lib/utils/constants.dart | 1 - 7 files changed, 48 insertions(+), 10 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index ab097c5b84..0bfaed5329 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -39,5 +39,6 @@ "no" : "No", "number_tickets": "Number of Tickets", "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", - "maximum_1000": "1,000 maximum" + "maximum_1000": "1,000 maximum", + "publish": "Publish" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index ab097c5b84..0bfaed5329 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -39,5 +39,6 @@ "no" : "No", "number_tickets": "Number of Tickets", "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", - "maximum_1000": "1,000 maximum" + "maximum_1000": "1,000 maximum", + "publish": "Publish" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index ab097c5b84..0bfaed5329 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -39,5 +39,6 @@ "no" : "No", "number_tickets": "Number of Tickets", "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", - "maximum_1000": "1,000 maximum" + "maximum_1000": "1,000 maximum", + "publish": "Publish" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index dfa99e77e0..0bfaed5329 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -38,5 +38,7 @@ "yes": "Yes", "no" : "No", "number_tickets": "Number of Tickets", - "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain" + "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", + "maximum_1000": "1,000 maximum", + "publish": "Publish" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 021910113a..76941d2da7 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -42,5 +42,6 @@ abstract class LocaleKeys { static const number_tickets = 'number_tickets'; static const network_fee_listed_price_occur_on_chain = 'network_fee_listed_price_occur_on_chain'; static const maximum_1000 = 'maximum_1000'; + static const publish = 'publish'; } diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index de2430bf61..75178cb432 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -1,9 +1,11 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; -import 'package:flutter/cupertino.dart'; +import 'package:evently/widgets/clipped_button.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -21,13 +23,44 @@ class _HostTicketPreviewState extends State { color: EventlyAppTheme.kWhite, child: SafeArea( child: Scaffold( + bottomNavigationBar: Container( + padding: EdgeInsets.symmetric(horizontal: 30.w), + height: 110.h, + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ClippedButton( + title: LocaleKeys.publish.tr(), + bgColor: EventlyAppTheme.kBlue, + textColor: EventlyAppTheme.kWhite, + onPressed: () { + Navigator.of(context).pushReplacementNamed(RouteUtil.kRouteEventHub); + }, + cuttingHeight: 15.h, + clipperType: ClipperType.bottomLeftTopRight, + isShadow: false, + fontWeight: FontWeight.w700, + ), + VerticalSpace(10.h), + Center( + child: InkWell( + onTap: () {}, + child: Text( + LocaleKeys.save_draft.tr(), + style: TextStyle(color: EventlyAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700), + ), + ), + ), + VerticalSpace(5.h), + ], + ), + ), body: SingleChildScrollView( child: ClipRRect( borderRadius: BorderRadius.circular(10.r), child: Container( margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w), - // height: 1.sh, - // width: 1.sw, decoration: BoxDecoration( image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight), borderRadius: BorderRadius.circular(10.r), @@ -201,7 +234,7 @@ class _HostTicketPreviewState extends State { ), VerticalSpace(10.h), Container( - decoration: BoxDecoration(color: EventlyAppTheme.kBlack), + decoration: const BoxDecoration(color: EventlyAppTheme.kBlack), width: 338, height: 338, ), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index a28399f439..a0cc943487 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -48,7 +48,6 @@ class PngUtils { static const kIconDenomUsd = 'assets/images/denom_usd.png'; static const kIconDenomPylon = 'assets/images/denom_pylon.png'; static const kHostPreview = "assets/images/host_preview.png"; - /// will remove this variable for ui dev /// i need this variable to be used static const kPhantom = "assets/images/phantom.png"; From cef363312f70d4c92e00b4d8167e57564571e377 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 8 May 2024 17:28:26 +0500 Subject: [PATCH 043/158] feat: response screen --- evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/generated/locale_keys.g.dart | 1 + evently/lib/main.dart | 4 ++ evently/lib/screens/buyer_status_screen.dart | 47 ++++++++++++++++++++ evently/lib/screens/splash_screen.dart | 2 +- evently/lib/utils/evently_app_theme.dart | 1 + evently/lib/utils/route_util.dart | 1 + 10 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 evently/lib/screens/buyer_status_screen.dart diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 0bfaed5329..4db952a64d 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -40,5 +40,6 @@ "number_tickets": "Number of Tickets", "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", "maximum_1000": "1,000 maximum", - "publish": "Publish" + "publish": "Publish", + "enjoy_the_event": "Enjoy the event!" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 0bfaed5329..4db952a64d 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -40,5 +40,6 @@ "number_tickets": "Number of Tickets", "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", "maximum_1000": "1,000 maximum", - "publish": "Publish" + "publish": "Publish", + "enjoy_the_event": "Enjoy the event!" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 0bfaed5329..4db952a64d 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -40,5 +40,6 @@ "number_tickets": "Number of Tickets", "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", "maximum_1000": "1,000 maximum", - "publish": "Publish" + "publish": "Publish", + "enjoy_the_event": "Enjoy the event!" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 0bfaed5329..4db952a64d 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -40,5 +40,6 @@ "number_tickets": "Number of Tickets", "network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain", "maximum_1000": "1,000 maximum", - "publish": "Publish" + "publish": "Publish", + "enjoy_the_event": "Enjoy the event!" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 76941d2da7..e4d53c71c1 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -43,5 +43,6 @@ abstract class LocaleKeys { static const network_fee_listed_price_occur_on_chain = 'network_fee_listed_price_occur_on_chain'; static const maximum_1000 = 'maximum_1000'; static const publish = 'publish'; + static const enjoy_the_event = 'enjoy_the_event'; } diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 91402dc708..12a8646ba1 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,6 +1,7 @@ import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; +import 'package:evently/screens/buyer_status_screen.dart'; import 'package:evently/screens/create_event.dart'; import 'package:evently/screens/event_hub/event_hub_screen.dart'; import 'package:evently/screens/host_view_ticket_preview.dart'; @@ -54,9 +55,11 @@ class MyApp extends StatelessWidget { child: ScreenUtilInit( minTextAdapt: true, builder: (BuildContext context, child) => MaterialApp( + builder: (context, widget) { ScreenUtil.init(context); return MediaQuery( + data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling), child: widget!, ); @@ -73,6 +76,7 @@ class MyApp extends StatelessWidget { RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), RouteUtil.kCreateEvent: (context) => const CreateEvent(), RouteUtil.kHostTicketPreview: (context) => const HostTicketPreview(), + RouteUtil.kBuyerResponse: (context) => const BuyerResponseScreen(), }, ), ), diff --git a/evently/lib/screens/buyer_status_screen.dart b/evently/lib/screens/buyer_status_screen.dart new file mode 100644 index 0000000000..2d2e62606f --- /dev/null +++ b/evently/lib/screens/buyer_status_screen.dart @@ -0,0 +1,47 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +class BuyerResponseScreen extends StatefulWidget { + const BuyerResponseScreen({super.key}); + + @override + State createState() => _BuyerResponseScreenState(); +} + +class _BuyerResponseScreenState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: EventlyAppTheme.kLightGreen, + body: SizedBox( + width: double.infinity, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + LocaleKeys.enjoy_the_event.tr(), + style: const TextStyle(fontSize: 28, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + SizedBox( + height: 10.h, + ), + Container( + height: 161, + width: 161, + decoration: const BoxDecoration(shape: BoxShape.circle, color: EventlyAppTheme.kWhite), + child: const Icon( + Icons.check, + size: 161, + color: EventlyAppTheme.kLightGreen, + ), + ) + ], + ), + ), + ); + } +} diff --git a/evently/lib/screens/splash_screen.dart b/evently/lib/screens/splash_screen.dart index 0a4082b0f6..c2c8a3b5d9 100644 --- a/evently/lib/screens/splash_screen.dart +++ b/evently/lib/screens/splash_screen.dart @@ -16,7 +16,7 @@ class _SplashScreenState extends State { @override void initState() { Future.delayed(const Duration(seconds: kSplashScreenDuration), () { - navigatorKey.currentState!.pushReplacementNamed(RouteUtil.kRouteEventHub); + navigatorKey.currentState!.pushReplacementNamed(RouteUtil.kBuyerResponse); }); super.initState(); } diff --git a/evently/lib/utils/evently_app_theme.dart b/evently/lib/utils/evently_app_theme.dart index bf9c10a22a..9bc6f9c03b 100644 --- a/evently/lib/utils/evently_app_theme.dart +++ b/evently/lib/utils/evently_app_theme.dart @@ -29,6 +29,7 @@ class EventlyAppTheme { static const Color kPurple03 = Color(0xFFCBC8F3); static const Color kLightPurple = Color(0xFFB6B6E8); static const Color kDarkGreen = Color(0xFF14FB00); + static const Color kLightGreen = Color(0xFF0CAF59); static const Color kYellow = Color(0xFFF3BA2F); static const Color kLightYellow = Color(0xFFFED564); static const Color kLightRed = Color(0xFFEF4421); diff --git a/evently/lib/utils/route_util.dart b/evently/lib/utils/route_util.dart index d4c1cdb492..7599ec4346 100644 --- a/evently/lib/utils/route_util.dart +++ b/evently/lib/utils/route_util.dart @@ -4,4 +4,5 @@ class RouteUtil { static String kRouteEventHub = "/eventHub"; static String kCreateEvent = "/createEvent"; static String kHostTicketPreview = "/hostTicketPreview"; + static String kBuyerResponse = "/buyerResponse"; } From 8abcf1093a319320b6e2e0a9ef7f2f571f772660 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Thu, 9 May 2024 09:42:41 +0500 Subject: [PATCH 044/158] feat: push --- evently/lib/main.dart | 3 +-- evently/lib/screens/splash_screen.dart | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 12a8646ba1..0fbf11cd38 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -53,13 +53,12 @@ class MyApp extends StatelessWidget { ChangeNotifierProvider(create: (_) => sl()), ], child: ScreenUtilInit( + designSize: const Size(428, 932), minTextAdapt: true, builder: (BuildContext context, child) => MaterialApp( - builder: (context, widget) { ScreenUtil.init(context); return MediaQuery( - data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling), child: widget!, ); diff --git a/evently/lib/screens/splash_screen.dart b/evently/lib/screens/splash_screen.dart index c2c8a3b5d9..0a4082b0f6 100644 --- a/evently/lib/screens/splash_screen.dart +++ b/evently/lib/screens/splash_screen.dart @@ -16,7 +16,7 @@ class _SplashScreenState extends State { @override void initState() { Future.delayed(const Duration(seconds: kSplashScreenDuration), () { - navigatorKey.currentState!.pushReplacementNamed(RouteUtil.kBuyerResponse); + navigatorKey.currentState!.pushReplacementNamed(RouteUtil.kRouteEventHub); }); super.initState(); } From 94d10b70f57b2e4ffcf04d1613786f7394451e00 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Thu, 9 May 2024 10:29:36 +0500 Subject: [PATCH 045/158] feat: dependency for pick file and image crooper --- .../android/app/src/main/AndroidManifest.xml | 5 + .../app/src/main/res/values/styles.xml | 2 + evently/lib/models/picked_file_model.dart | 8 + evently/lib/repository/repository.dart | 6 + evently/lib/utils/file_utils_helper.dart | 180 ++++++++++++++++++ evently/pubspec.lock | 48 +++++ evently/pubspec.yaml | 2 + 7 files changed, 251 insertions(+) create mode 100644 evently/lib/models/picked_file_model.dart create mode 100644 evently/lib/repository/repository.dart create mode 100644 evently/lib/utils/file_utils_helper.dart diff --git a/evently/android/app/src/main/AndroidManifest.xml b/evently/android/app/src/main/AndroidManifest.xml index 3be49b050a..dfa7edcdfd 100644 --- a/evently/android/app/src/main/AndroidManifest.xml +++ b/evently/android/app/src/main/AndroidManifest.xml @@ -29,6 +29,11 @@ + + + + + + + + + + @@ -36,7 +48,7 @@ android:theme="@style/AppTheme.UCropTheme"/> diff --git a/evently/android/app/src/main/kotlin/com/example/evently/MainActivity.kt b/evently/android/app/src/main/kotlin/tech/pylons/evently/MainActivity.kt similarity index 77% rename from evently/android/app/src/main/kotlin/com/example/evently/MainActivity.kt rename to evently/android/app/src/main/kotlin/tech/pylons/evently/MainActivity.kt index a0d1b936ab..1ffa24feaf 100644 --- a/evently/android/app/src/main/kotlin/com/example/evently/MainActivity.kt +++ b/evently/android/app/src/main/kotlin/tech/pylons/evently/MainActivity.kt @@ -1,4 +1,4 @@ -package com.example.evently +package tech.pylons.evently import io.flutter.embedding.android.FlutterActivity diff --git a/evently/ios/Runner/Info.plist b/evently/ios/Runner/Info.plist index aadaf6c0dc..b3d7d090d9 100644 --- a/evently/ios/Runner/Info.plist +++ b/evently/ios/Runner/Info.plist @@ -2,6 +2,25 @@ + + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + tech.pylons.evently + CFBundleURLSchemes + + pylons-evently + + + + LSApplicationQueriesSchemes + + pylons-wallet + + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 319eb448b7..096122181a 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -8,6 +8,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:injectable/injectable.dart'; +import 'models/events.dart'; + enum FreeDrop { yes, no, unselected } @LazySingleton() @@ -136,5 +138,11 @@ class EventlyProvider extends ChangeNotifier { if (result.path.isEmpty) return; setThumbnail = File(result.path); + } + + void createRecipe({required Event event}) { + + + } } diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 0fbf11cd38..1f4afea8a3 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -13,11 +13,15 @@ import 'package:evently/utils/route_util.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:provider/provider.dart'; +import 'package:pylons_sdk/pylons_sdk.dart'; bool isTablet = false; void main() async { WidgetsFlutterBinding.ensureInitialized(); + + PylonsWallet.setup(mode: PylonsMode.prod, host: 'evently'); + await EasyLocalization.ensureInitialized(); configureDependencies(); diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 55d833d46e..3fc46fb3b5 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -2,6 +2,7 @@ import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/models/picked_file_model.dart'; +import 'package:evently/services/datasources/local_datasource.dart'; import 'package:evently/utils/failure/failure.dart'; import 'package:evently/utils/file_utils_helper.dart'; import 'package:injectable/injectable.dart'; @@ -19,9 +20,13 @@ abstract class Repository { @LazySingleton(as: Repository) class RepositoryImp implements Repository { - RepositoryImp({required this.fileUtilsHelper}); + RepositoryImp({ + required this.fileUtilsHelper, + required this.localDataSource, + }); final FileUtilsHelper fileUtilsHelper; + final LocalDataSource localDataSource; @override Future> pickFile() async { @@ -35,8 +40,5 @@ class RepositoryImp implements Repository { } @override - String autoGenerateEventlyId() { - // TODO: implement autoGenerateEaselId - throw UnimplementedError(); - } + String autoGenerateEventlyId() => localDataSource.autoGenerateEventlyId(); } diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart new file mode 100644 index 0000000000..3c36564e5a --- /dev/null +++ b/evently/lib/services/datasources/local_datasource.dart @@ -0,0 +1,17 @@ +import 'package:evently/utils/date_utils.dart'; +import 'package:injectable/injectable.dart'; + +abstract class LocalDataSource { + /// This method will generate Evently Id for the Event + /// Output: [String] the id of the Event that is going to be added in the recipe + String autoGenerateEventlyId(); +} + +@LazySingleton(as: LocalDataSource) +class LocalDataSourceImpl extends LocalDataSource { + @override + String autoGenerateEventlyId() { + final String cookbookId = "Event_Recipe_auto_recipe_${getFullDateTime()}"; + return cookbookId; + } +} diff --git a/evently/lib/utils/date_utils.dart b/evently/lib/utils/date_utils.dart new file mode 100644 index 0000000000..76e78a9678 --- /dev/null +++ b/evently/lib/utils/date_utils.dart @@ -0,0 +1,9 @@ +import 'package:easy_localization/easy_localization.dart'; + +String getDate() { + return DateFormat.yMd('en_US').format(DateTime.now()); +} + +String getFullDateTime() { + return DateFormat('yyyy_MM_dd_HHmmss_SSS').format(DateTime.now()); +} diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index 8c6b8dc150..78fa8ea0ae 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -8,10 +8,11 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:evently/evently_provider.dart' as _i8; -import 'package:evently/repository/repository.dart' as _i7; -import 'package:evently/utils/di/register_modules.dart' as _i9; -import 'package:evently/utils/file_utils_helper.dart' as _i6; +import 'package:evently/evently_provider.dart' as _i9; +import 'package:evently/repository/repository.dart' as _i8; +import 'package:evently/services/datasources/local_datasource.dart' as _i6; +import 'package:evently/utils/di/register_modules.dart' as _i10; +import 'package:evently/utils/file_utils_helper.dart' as _i7; import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; import 'package:file_picker/file_picker.dart' as _i5; import 'package:get_it/get_it.dart' as _i1; @@ -34,16 +35,19 @@ extension GetItInjectableX on _i1.GetIt { () => _i3.CreateEventViewModel()); gh.lazySingleton<_i4.ImageCropper>(() => registerModule.imageCropper); gh.lazySingleton<_i5.FilePicker>(() => registerModule.filePicker); - gh.lazySingleton<_i6.FileUtilsHelper>(() => _i6.FileUtilsHelperImpl( + gh.lazySingleton<_i6.LocalDataSource>(() => _i6.LocalDataSourceImpl()); + gh.lazySingleton<_i7.FileUtilsHelper>(() => _i7.FileUtilsHelperImpl( imageCropper: gh<_i4.ImageCropper>(), filePicker: gh<_i5.FilePicker>(), )); - gh.lazySingleton<_i7.Repository>( - () => _i7.RepositoryImp(fileUtilsHelper: gh<_i6.FileUtilsHelper>())); - gh.lazySingleton<_i8.EventlyProvider>( - () => _i8.EventlyProvider(repository: gh<_i7.Repository>())); + gh.lazySingleton<_i8.Repository>(() => _i8.RepositoryImp( + fileUtilsHelper: gh<_i7.FileUtilsHelper>(), + localDataSource: gh<_i6.LocalDataSource>(), + )); + gh.lazySingleton<_i9.EventlyProvider>( + () => _i9.EventlyProvider(repository: gh<_i8.Repository>())); return this; } } -class _$RegisterModule extends _i9.RegisterModule {} +class _$RegisterModule extends _i10.RegisterModule {} diff --git a/evently/linux/flutter/generated_plugin_registrant.cc b/evently/linux/flutter/generated_plugin_registrant.cc index e71a16d23d..f6f23bfe97 100644 --- a/evently/linux/flutter/generated_plugin_registrant.cc +++ b/evently/linux/flutter/generated_plugin_registrant.cc @@ -6,6 +6,10 @@ #include "generated_plugin_registrant.h" +#include void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); + url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); } diff --git a/evently/linux/flutter/generated_plugins.cmake b/evently/linux/flutter/generated_plugins.cmake index 2e1de87a7e..f16b4c3421 100644 --- a/evently/linux/flutter/generated_plugins.cmake +++ b/evently/linux/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + url_launcher_linux ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/evently/macos/Flutter/GeneratedPluginRegistrant.swift b/evently/macos/Flutter/GeneratedPluginRegistrant.swift index b8e2b22f76..b19945c53d 100644 --- a/evently/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/evently/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,8 +7,10 @@ import Foundation import path_provider_foundation import shared_preferences_foundation +import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) + UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 038f069fbc..7e4c2016cf 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -33,6 +33,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.11.0" + bitstream: + dependency: transitive + description: + name: bitstream + sha256: "19a6b9f2d148010ae0c4149294cb1ad89cc212af961956dc4d2e931e0eadf963" + url: "https://pub.dev" + source: hosted + version: "1.1.0" boolean_selector: dependency: transitive description: @@ -185,6 +193,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.10.1" + decimal: + dependency: transitive + description: + name: decimal + sha256: "24a261d5d5c87e86c7651c417a5dbdf8bcd7080dd592533910e8d0505a279f21" + url: "https://pub.dev" + source: hosted + version: "2.3.3" dotted_border: dependency: "direct main" description: @@ -637,6 +653,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" + protobuf: + dependency: transitive + description: + name: protobuf + sha256: "01dd9bd0fa02548bf2ceee13545d4a0ec6046459d847b6b061d8a27237108a08" + url: "https://pub.dev" + source: hosted + version: "2.1.0" provider: dependency: "direct main" description: @@ -661,6 +685,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.3" + pylons_sdk: + dependency: "direct main" + description: + name: pylons_sdk + sha256: "448b4a88a7ac578918f856e283a34c8cfdb14709e626a5ae3f6c2fddab2d8c3b" + url: "https://pub.dev" + source: hosted + version: "0.1.4" + rational: + dependency: transitive + description: + name: rational + sha256: ba58e9e18df9abde280e8b10051e4bce85091e41e8e7e411b6cde2e738d357cf + url: "https://pub.dev" + source: hosted + version: "2.2.2" recase: dependency: transitive description: @@ -834,6 +874,94 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.2" + uni_links: + dependency: transitive + description: + name: uni_links + sha256: "051098acfc9e26a9fde03b487bef5d3d228ca8f67693480c6f33fd4fbb8e2b6e" + url: "https://pub.dev" + source: hosted + version: "0.5.1" + uni_links_platform_interface: + dependency: transitive + description: + name: uni_links_platform_interface + sha256: "929cf1a71b59e3b7c2d8a2605a9cf7e0b125b13bc858e55083d88c62722d4507" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + uni_links_web: + dependency: transitive + description: + name: uni_links_web + sha256: "7539db908e25f67de2438e33cc1020b30ab94e66720b5677ba6763b25f6394df" + url: "https://pub.dev" + source: hosted + version: "0.1.0" + url_launcher: + dependency: transitive + description: + name: url_launcher + sha256: "6ce1e04375be4eed30548f10a315826fd933c1e493206eab82eed01f438c8d2e" + url: "https://pub.dev" + source: hosted + version: "6.2.6" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + sha256: "360a6ed2027f18b73c8d98e159dda67a61b7f2e0f6ec26e86c3ada33b0621775" + url: "https://pub.dev" + source: hosted + version: "6.3.1" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5" + url: "https://pub.dev" + source: hosted + version: "6.2.5" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811 + url: "https://pub.dev" + source: hosted + version: "3.1.1" + url_launcher_macos: + dependency: transitive + description: + name: url_launcher_macos + sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234 + url: "https://pub.dev" + source: hosted + version: "3.1.0" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a" + url: "https://pub.dev" + source: hosted + version: "2.3.1" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7 + url: "https://pub.dev" + source: hosted + version: "3.1.1" vector_graphics: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index b7dcc58255..d5c3def475 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -50,6 +50,7 @@ dependencies: image_cropper: ^6.0.0 equatable: ^2.0.5 dartz: ^0.10.1 + pylons_sdk: ^0.1.4 dev_dependencies: flutter_test: diff --git a/evently/windows/flutter/generated_plugin_registrant.cc b/evently/windows/flutter/generated_plugin_registrant.cc index 8b6d4680af..4f7884874d 100644 --- a/evently/windows/flutter/generated_plugin_registrant.cc +++ b/evently/windows/flutter/generated_plugin_registrant.cc @@ -6,6 +6,9 @@ #include "generated_plugin_registrant.h" +#include void RegisterPlugins(flutter::PluginRegistry* registry) { + UrlLauncherWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("UrlLauncherWindows")); } diff --git a/evently/windows/flutter/generated_plugins.cmake b/evently/windows/flutter/generated_plugins.cmake index b93c4c30c1..88b22e5c77 100644 --- a/evently/windows/flutter/generated_plugins.cmake +++ b/evently/windows/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + url_launcher_windows ) list(APPEND FLUTTER_FFI_PLUGIN_LIST From 828cc6d74db8ed900a630b1fd10d60211081144d Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Fri, 10 May 2024 11:17:27 +0500 Subject: [PATCH 061/158] feat: get pylons profile --- evently/lib/evently_provider.dart | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 096122181a..fa5dbd0251 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -7,6 +7,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:injectable/injectable.dart'; +import 'package:pylons_sdk/low_level.dart'; import 'models/events.dart'; @@ -140,9 +141,29 @@ class EventlyProvider extends ChangeNotifier { setThumbnail = File(result.path); } - void createRecipe({required Event event}) { + void createRecipe({required Event event}) {} + void onPublishPress() {} + String currentUseName = ""; + bool stripeAccountExists = false; + ///* this method is used to get the profile + Future> getProfile() async { + final sdkResponse = await PylonsWallet.instance.getProfile(); + + if (sdkResponse.success) { + currentUseName = sdkResponse.data!.username; + stripeAccountExists = sdkResponse.data!.stripeExists; + + supportedDenomList = Denom.availableDenoms.where((Denom e) => sdkResponse.data!.supportedCoins.contains(e.symbol)).toList(); + + if (supportedDenomList.isNotEmpty && selectedDenom.symbol.isEmpty) { + _selectedDenom = supportedDenomList.first; + } + } + setHostName = currentUseName; + + return sdkResponse; } } From a28d4d532d0e34c29e7874abd5cdf6fc02657562 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Fri, 10 May 2024 12:17:31 +0500 Subject: [PATCH 062/158] feat: receipe creation basic structure --- evently/assets/images/svg/i_icon.svg | 4 + evently/i18n/de.json | 8 +- evently/i18n/en-US.json | 8 +- evently/i18n/es.json | 8 +- evently/i18n/ru-RU.json | 8 +- evently/lib/evently_provider.dart | 7 +- evently/lib/generated/locale_keys.g.dart | 6 + evently/lib/main.dart | 1 - evently/lib/screens/create_event.dart | 8 +- .../lib/screens/host_view_ticket_preview.dart | 96 ++++++++++ evently/lib/utils/constants.dart | 4 + evently/lib/utils/evently_app_theme.dart | 2 + evently/lib/utils/route_util.dart | 1 - evently/lib/widgets/dialog_clipper.dart | 22 +++ .../lib/widgets/pylon_loading_animation.dart | 38 ++++ evently/lib/widgets/pylons_button.dart | 75 ++++++++ .../widgets/show_wallet_install_dialog.dart | 164 ++++++++++++++++++ 17 files changed, 452 insertions(+), 8 deletions(-) create mode 100644 evently/assets/images/svg/i_icon.svg create mode 100644 evently/lib/widgets/dialog_clipper.dart create mode 100644 evently/lib/widgets/pylon_loading_animation.dart create mode 100644 evently/lib/widgets/pylons_button.dart create mode 100644 evently/lib/widgets/show_wallet_install_dialog.dart diff --git a/evently/assets/images/svg/i_icon.svg b/evently/assets/images/svg/i_icon.svg new file mode 100644 index 0000000000..05391d279d --- /dev/null +++ b/evently/assets/images/svg/i_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/evently/i18n/de.json b/evently/i18n/de.json index e1a203b9b1..a435c50c2a 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -47,5 +47,11 @@ "event_name_remaining_characters": "Event name should have {} characters or more", "enter_host_name": "Enter host name", "host_name_remaining_characters": "Host name should have {} characters or more", - "please_select_thumbnail" : "please select thumbnail" + "please_select_thumbnail" : "please select thumbnail", + "download_pylons_description": "Please download the Pylons app and create a username to publish a Event with Evently.", + "download_pylons_app": "Download Pylons app", + "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", + "open_pylons_app": "Öffnen Sie die Pylons-App", + "create_stripe_description": "Bitte registrieren Sie sich bei Stripe in der Pylons-App, um Ihre NFT für USD aufzulisten.", + "start": "Anfang" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index e1a203b9b1..b7fb9024fa 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -47,5 +47,11 @@ "event_name_remaining_characters": "Event name should have {} characters or more", "enter_host_name": "Enter host name", "host_name_remaining_characters": "Host name should have {} characters or more", - "please_select_thumbnail" : "please select thumbnail" + "please_select_thumbnail" : "please select thumbnail", + "download_pylons_description": "Please download the Pylons app and create a username to publish a Event with Evently.", + "download_pylons_app": "Download Pylons app", + "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", + "open_pylons_app": "Open Pylons app", + "create_stripe_description": "Please register with Stripe in the Pylons app to list your NFT for USD.", + "start": "Start" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index e1a203b9b1..3c2d3d9904 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -47,5 +47,11 @@ "event_name_remaining_characters": "Event name should have {} characters or more", "enter_host_name": "Enter host name", "host_name_remaining_characters": "Host name should have {} characters or more", - "please_select_thumbnail" : "please select thumbnail" + "please_select_thumbnail" : "please select thumbnail", + "download_pylons_description": "Please download the Pylons app and create a username to publish a Event with Evently.", + "download_pylons_app": "Download Pylons app", + "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", + "open_pylons_app": "Abrir la aplicación Pylons", + "create_stripe_description": "Regístrese con Stripe en la aplicación Pylons para enumerar su NFT para USD.", + "start": "Comienzo" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index e1a203b9b1..deaa8772b4 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -47,5 +47,11 @@ "event_name_remaining_characters": "Event name should have {} characters or more", "enter_host_name": "Enter host name", "host_name_remaining_characters": "Host name should have {} characters or more", - "please_select_thumbnail" : "please select thumbnail" + "please_select_thumbnail" : "please select thumbnail", + "download_pylons_description": "Please download the Pylons app and create a username to publish a Event with Evently.", + "download_pylons_app": "Download Pylons app", + "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", + "open_pylons_app": "Откройте приложение пилонов", + "create_stripe_description": "Пожалуйста, зарегистрируйтесь в Stripe в приложении Pylons, чтобы перечислить свои NFT в долларах США.", + "start": "Начинать" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index fa5dbd0251..a07a08231e 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -141,12 +141,17 @@ class EventlyProvider extends ChangeNotifier { setThumbnail = File(result.path); } - void createRecipe({required Event event}) {} + Future createRecipe({required Event event}) { + return Future.value(true); + } void onPublishPress() {} String currentUseName = ""; bool stripeAccountExists = false; + late Event event; + + bool showStripeDialog() => !stripeAccountExists && _selectedDenom.symbol == kUsdSymbol && isFreeDrop == FreeDrop.no; ///* this method is used to get the profile Future> getProfile() async { diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 002f02322a..6f4dadf90c 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -50,5 +50,11 @@ abstract class LocaleKeys { static const enter_host_name = 'enter_host_name'; static const host_name_remaining_characters = 'host_name_remaining_characters'; static const please_select_thumbnail = 'please_select_thumbnail'; + static const download_pylons_description = 'download_pylons_description'; + static const download_pylons_app = 'download_pylons_app'; + static const create_username_description = 'create_username_description'; + static const open_pylons_app = 'open_pylons_app'; + static const create_stripe_description = 'create_stripe_description'; + static const start = 'start'; } diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 1f4afea8a3..55b0e9ac72 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -78,7 +78,6 @@ class MyApp extends StatelessWidget { '/': (context) => const SplashScreen(), RouteUtil.kRouteEventHub: (context) => const EventHubScreen(), RouteUtil.kCreateEvent: (context) => const CreateEvent(), - RouteUtil.kHostTicketPreview: (context) => const HostTicketPreview(), RouteUtil.kBuyerResponse: (context) => const BuyerResponseScreen(), }, ), diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 15f522b05f..6ec350472d 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,4 +1,5 @@ import 'package:evently/screens/detail_screen.dart'; +import 'package:evently/screens/host_view_ticket_preview.dart'; import 'package:evently/screens/overview_screen.dart'; import 'package:evently/screens/perks_screen.dart'; import 'package:evently/screens/price_screen.dart'; @@ -56,7 +57,7 @@ class CreateEventContent extends StatelessWidget { physics: const NeverScrollableScrollPhysics(), onPageChanged: (int page) { createEventViewModel.currentPage.value = page; - final map = {0: 0, 1: 1, 2: 2, 3: 3}; + final map = {0: 0, 1: 1, 2: 2, 3: 3, 4: 4}; createEventViewModel.currentStep.value = map[page]!; }, itemBuilder: (BuildContext context, int index) { @@ -65,6 +66,7 @@ class CreateEventContent extends StatelessWidget { 1: details, 2: perks, 3: price, + 4: ticketPreview, }; return map[index]?.call() ?? const SizedBox(); @@ -87,4 +89,8 @@ class CreateEventContent extends StatelessWidget { Widget price() { return const PriceScreen(); } + + Widget ticketPreview() { + return const HostTicketPreview(); + } } diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 3438340504..08fb71519d 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -1,10 +1,19 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/evently_provider.dart'; +import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/main.dart'; import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; +import 'package:evently/widgets/pylon_loading_animation.dart'; +import 'package:evently/widgets/show_wallet_install_dialog.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; +import 'package:provider/provider.dart'; +import 'package:pylons_sdk/pylons_sdk.dart'; class HostTicketPreview extends StatefulWidget { const HostTicketPreview({super.key}); @@ -221,4 +230,91 @@ class _HostTicketPreviewState extends State { ), ); } + + Future onPublishPressed() async { + final viewModel = context.read(); + final navigator = Navigator.of(context); + + final PylonsLoadingAnimation pylonsLoadingAnimation = PylonsLoadingAnimation(context: context); + pylonsLoadingAnimation.show(); + + final isPylonsWalletExists = await PylonsWallet.instance.exists(); + + if (!isPylonsWalletExists) { + pylonsLoadingAnimation.hide(); + _showInstallWalletDialog(); + return; + } + + final profileResponse = await viewModel.getProfile(); + + if (profileResponse.errorCode == kErrProfileNotExist) { + pylonsLoadingAnimation.hide(); + _showCreateAccountDialog(); + return; + } + + if (viewModel.showStripeDialog()) { + pylonsLoadingAnimation.hide(); + _showStripeDialog(); + return; + } + + final bool isRecipeCreated = await viewModel.createRecipe(event: viewModel.event); + pylonsLoadingAnimation.hide(); + if (!isRecipeCreated) { + return; + } + + navigator.popUntil((route) { + return route.settings.name == RouteUtil.kCreateEvent; + }); + } + + void _showInstallWalletDialog() { + final ShowWalletInstallDialog showWalletInstallDialog = ShowWalletInstallDialog( + context: context, + errorMessage: LocaleKeys.download_pylons_description.tr(), + buttonMessage: LocaleKeys.download_pylons_app.tr(), + onButtonPressed: () { + PylonsWallet.instance.goToInstall(); + }, + onClose: () { + Navigator.of(navigatorKey.currentState!.overlay!.context).pop(); + }, + ); + + showWalletInstallDialog.show(); + } + + void _showCreateAccountDialog() { + final ShowWalletInstallDialog showWalletInstallDialog = ShowWalletInstallDialog( + context: context, + errorMessage: LocaleKeys.create_username_description.tr(), + buttonMessage: LocaleKeys.open_pylons_app.tr(), + onButtonPressed: () { + PylonsWallet.instance.goToPylons(); + }, + onClose: () { + Navigator.of(navigatorKey.currentState!.overlay!.context).pop(); + }, + ); + showWalletInstallDialog.show(); + } + + void _showStripeDialog() { + final ShowWalletInstallDialog showWalletInstallDialog = ShowWalletInstallDialog( + context: context, + errorMessage: LocaleKeys.create_stripe_description.tr(), + buttonMessage: LocaleKeys.start.tr(), + onButtonPressed: () async { + Navigator.pop(navigatorKey.currentState!.overlay!.context); + await PylonsWallet.instance.showStripe(); + }, + onClose: () { + Navigator.of(navigatorKey.currentState!.overlay!.context).pop(); + }, + ); + showWalletInstallDialog.show(); + } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 148370e685..cdd81d873d 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -33,6 +33,9 @@ const kPylons = "Pylons"; const kMinEventName = 9; const kMinHostName = 9; +const kErrProfileNotExist = 'profileDoesNotExist'; + + /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; @@ -43,6 +46,7 @@ class SVGUtils { static const kMinus = "assets/images/svg/minus.svg"; static const kDiamond = "assets/images/svg/diamond.svg"; static const kCamera = "assets/images/svg/camera.svg"; + static const kAlertIcon = 'assets/images/svg/i_icon.svg'; } /// ```PNG assets diff --git a/evently/lib/utils/evently_app_theme.dart b/evently/lib/utils/evently_app_theme.dart index 84a4173fb8..ecccef6fd6 100644 --- a/evently/lib/utils/evently_app_theme.dart +++ b/evently/lib/utils/evently_app_theme.dart @@ -24,6 +24,8 @@ class EventlyAppTheme { static const Color kGrey04 = Color(0xFFA1A1A1); static const Color kGreen = Color(0xFF0CAF59); + static const Color kLightRed = Color(0xFFEF4421); + static const String universalSansFamily = "UniversalSans"; static ThemeData theme(BuildContext context) => ThemeData( diff --git a/evently/lib/utils/route_util.dart b/evently/lib/utils/route_util.dart index 7599ec4346..b5820a1996 100644 --- a/evently/lib/utils/route_util.dart +++ b/evently/lib/utils/route_util.dart @@ -3,6 +3,5 @@ class RouteUtil { static String kRouteEventHub = "/eventHub"; static String kCreateEvent = "/createEvent"; - static String kHostTicketPreview = "/hostTicketPreview"; static String kBuyerResponse = "/buyerResponse"; } diff --git a/evently/lib/widgets/dialog_clipper.dart b/evently/lib/widgets/dialog_clipper.dart new file mode 100644 index 0000000000..f0aad3111d --- /dev/null +++ b/evently/lib/widgets/dialog_clipper.dart @@ -0,0 +1,22 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +class DialogClipper extends CustomClipper { + @override + Path getClip(Size size) { + final path = Path(); + path.lineTo(0, size.height); + path.lineTo(size.width - 65.h, size.height); + path.lineTo(size.width, size.height - 65.h); + path.lineTo(size.width, 0); + path.lineTo(65.h, 0); + path.lineTo(0, 65.h); + + return path; + } + + @override + bool shouldReclip(covariant CustomClipper oldClipper) { + return false; + } +} diff --git a/evently/lib/widgets/pylon_loading_animation.dart b/evently/lib/widgets/pylon_loading_animation.dart new file mode 100644 index 0000000000..5cead0a6b2 --- /dev/null +++ b/evently/lib/widgets/pylon_loading_animation.dart @@ -0,0 +1,38 @@ +import 'package:flutter/material.dart'; + +class PylonsLoadingAnimation { + PylonsLoadingAnimation({ + required this.context, + double height = 100, + double width = 100, + }) : _height = height, + _width = width; + + Future show() { + return showDialog( + context: context, + barrierDismissible: true, + barrierColor: Colors.white.withOpacity(0), + builder: (ctx) => PopScope( + canPop: false, + child: AlertDialog( + elevation: 0, + backgroundColor: Colors.transparent, + content: SizedBox( + height: _height, + width: _width, + child: Image.asset('assets/loading.gif', package: 'pylons_sdk'), + ), + ), + ), + ); + } + + void hide() { + Navigator.of(context).pop(); + } + + final BuildContext context; + final double _height; + final double _width; +} diff --git a/evently/lib/widgets/pylons_button.dart b/evently/lib/widgets/pylons_button.dart new file mode 100644 index 0000000000..3422a719cc --- /dev/null +++ b/evently/lib/widgets/pylons_button.dart @@ -0,0 +1,75 @@ +import 'package:evently/main.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +class PylonsButton extends StatelessWidget { + final VoidCallback onPressed; + final String btnText; + final bool showArrow; + + final double mobileScreenButtonWidth; + final Color color; + final Color textColor; + + const PylonsButton({super.key, this.showArrow = false, this.textColor = Colors.white, required this.btnText, required this.onPressed, this.mobileScreenButtonWidth = 0.5, required this.color}); + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: () { + onPressed(); + }, + child: ClipPath( + clipper: PylonsButtonClipper(), + child: Container( + width: isTablet ? 0.3.sw : mobileScreenButtonWidth.sw, + height: isTablet ? 0.07.sw : 0.12.sw, + decoration: BoxDecoration(color: color), + child: Stack( + children: [ + if (showArrow) + Positioned( + top: 0, + bottom: 0, + right: isTablet ? 2.w : 8.w, + child: Icon( + Icons.arrow_forward, + color: EventlyAppTheme.kWhite, + size: isTablet ? 15.w : 20.w, + )), + Center( + child: Text( + btnText, + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 15.sp, color: textColor, fontWeight: FontWeight.w600), + ), + ) + ], + ), + ), + ), + ); + } +} + +class PylonsButtonClipper extends CustomClipper { + @override + Path getClip(Size size) { + final Path path0 = Path(); + path0.moveTo(0, 0); + path0.lineTo(size.width * 0.8991000, 0); + path0.lineTo(size.width, size.height * 0.3484000); + path0.lineTo(size.width, size.height); + path0.lineTo(size.width * 0.1008500, size.height); + path0.lineTo(0, size.height * 0.6466000); + path0.lineTo(0, 0); + path0.close(); + + return path0; + } + + @override + bool shouldReclip(CustomClipper oldClipper) { + return oldClipper != this; + } +} diff --git a/evently/lib/widgets/show_wallet_install_dialog.dart b/evently/lib/widgets/show_wallet_install_dialog.dart new file mode 100644 index 0000000000..5d75b31703 --- /dev/null +++ b/evently/lib/widgets/show_wallet_install_dialog.dart @@ -0,0 +1,164 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/screen_responsive.dart'; +import 'package:evently/widgets/dialog_clipper.dart'; +import 'package:evently/widgets/pylons_button.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; + +class ShowWalletInstallDialog { + BuildContext context; + String errorMessage; + String buttonMessage; + VoidCallback onClose; + VoidCallback onButtonPressed; + + ShowWalletInstallDialog({required this.context, required this.errorMessage, required this.buttonMessage, required this.onClose, required this.onButtonPressed}); + + Future show() { + return showDialog( + context: context, + builder: (context) { + return Dialog( + elevation: 0, + backgroundColor: EventlyAppTheme.kTransparent, + child: ScreenResponsive( + mobileScreen: (context) => buildMobile(context), + tabletScreen: (context) => buildTablet(context), + ), + ); + }); + } + + ClipPath buildMobile(BuildContext context) { + return ClipPath( + clipper: DialogClipper(), + child: Container( + color: EventlyAppTheme.kLightRed, + padding: EdgeInsets.symmetric(horizontal: 0.05.sw), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + SizedBox(height: 30.h), + SvgPicture.asset( + SVGUtils.kAlertIcon, + height: 30.h, + ), + SizedBox(height: 30.h), + Text( + errorMessage, + style: TextStyle(color: Colors.white, fontSize: 12.sp, fontWeight: FontWeight.w800), + textAlign: TextAlign.center, + ), + SizedBox(height: 40.h), + Container( + padding: EdgeInsets.symmetric(horizontal: 0.05.sw), + height: 40.h, + child: PylonsButton( + btnText: buttonMessage, + onPressed: () { + onButtonPressed(); + Navigator.of(context).pop(); + }, + color: EventlyAppTheme.kBlue), + ), + SizedBox(height: 10.h), + GestureDetector( + child: SizedBox( + width: 0.35.sw, + height: 0.09.sw, + child: Stack( + children: [ + Center( + child: Text( + "cancel".tr(), + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 14.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w300), + ), + ), + ], + ), + ), + onTap: () { + onClose(); + }, + ), + SizedBox(height: 20.h), + ], + ), + ), + ); + } + + Padding buildTablet(BuildContext context) { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 0.1.sw), + child: ClipPath( + clipper: DialogClipper(), + child: ColoredBox( + color: EventlyAppTheme.kLightRed, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + SizedBox(height: 30.h), + SvgPicture.asset( + SVGUtils.kAlertIcon, + height: 30.h, + ), + SizedBox(height: 30.h), + Container( + padding: EdgeInsets.symmetric(horizontal: 0.09.sw), + child: Text( + errorMessage, + style: TextStyle( + color: Colors.white, + fontSize: 12.sp, + fontWeight: FontWeight.w800, + ), + textAlign: TextAlign.center, + ), + ), + SizedBox(height: 30.h), + Container( + padding: EdgeInsets.symmetric(horizontal: 0.1.sw), + height: 40.h, + child: PylonsButton( + btnText: buttonMessage, + onPressed: () { + onButtonPressed(); + Navigator.of(context).pop(); + }, + color: EventlyAppTheme.kBlue), + ), + SizedBox(height: 10.h), + GestureDetector( + child: Container( + padding: EdgeInsets.symmetric(horizontal: 0.1.sw), + child: Stack( + children: [ + Center( + child: Text( + "cancel".tr(), + style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 16.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w200), + ), + ), + ], + ), + ), + onTap: () { + onClose(); + }, + ), + SizedBox(height: 30.h), + ], + ), + ), + ), + ); + } +} From ca08e8df5d3816875f182e316564670fd28bb3b1 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Fri, 10 May 2024 12:55:07 +0500 Subject: [PATCH 063/158] feat: event cook book --- evently/lib/utils/extension_util.dart | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 evently/lib/utils/extension_util.dart diff --git a/evently/lib/utils/extension_util.dart b/evently/lib/utils/extension_util.dart new file mode 100644 index 0000000000..e69de29bb2 From b74e1601015200c3420d4d0c6b1889df26959ec8 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Fri, 10 May 2024 12:55:44 +0500 Subject: [PATCH 064/158] feat: create cook book evently --- evently/lib/evently_provider.dart | 72 ++++++++++++++++--- evently/lib/repository/repository.dart | 29 ++++++++ .../datasources/local_datasource.dart | 38 ++++++++++ evently/lib/utils/constants.dart | 9 +++ evently/lib/utils/extension_util.dart | 34 +++++++++ evently/pubspec.lock | 2 +- evently/pubspec.yaml | 1 + 7 files changed, 175 insertions(+), 10 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index a07a08231e..f4204f9c8a 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -1,8 +1,10 @@ import 'dart:io'; +import 'package:evently/main.dart'; import 'package:evently/models/denom.dart'; import 'package:evently/models/picked_file_model.dart'; import 'package:evently/repository/repository.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/extension_util.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; @@ -141,15 +143,11 @@ class EventlyProvider extends ChangeNotifier { setThumbnail = File(result.path); } - Future createRecipe({required Event event}) { - return Future.value(true); - } - - void onPublishPress() {} - - String currentUseName = ""; + String currentUserName = ""; bool stripeAccountExists = false; late Event event; + String? _cookbookId; + String _recipeId = ""; bool showStripeDialog() => !stripeAccountExists && _selectedDenom.symbol == kUsdSymbol && isFreeDrop == FreeDrop.no; @@ -158,7 +156,7 @@ class EventlyProvider extends ChangeNotifier { final sdkResponse = await PylonsWallet.instance.getProfile(); if (sdkResponse.success) { - currentUseName = sdkResponse.data!.username; + currentUserName = sdkResponse.data!.username; stripeAccountExists = sdkResponse.data!.stripeExists; supportedDenomList = Denom.availableDenoms.where((Denom e) => sdkResponse.data!.supportedCoins.contains(e.symbol)).toList(); @@ -167,8 +165,64 @@ class EventlyProvider extends ChangeNotifier { _selectedDenom = supportedDenomList.first; } } - setHostName = currentUseName; + setHostName = currentUserName; return sdkResponse; } + + Future createRecipe({required Event event}) async { + final scaffoldMessengerState = navigatorKey.getState(); + + _cookbookId = repository.getCookbookId(); + + final String savedUserName = repository.getCookBookGeneratorUsername(); + + if (_cookbookId == null || isDifferentUserName(savedUserName)) { + // create cookbook + final isCookBookCreated = await createCookbook(); + + if (isCookBookCreated) { + // this delay is added to wait the transaction is settle + // on the blockchain + Future.delayed(const Duration(milliseconds: 800)); + // get device cookbook id + _cookbookId = repository.getCookbookId(); + notifyListeners(); + } else { + return false; + } + } + + _recipeId = repository.autoGenerateEventlyId(); + + + return Future.value(true); + } + + /// send createCookBook tx message to the wallet app + /// return true or false depending on the response from the wallet app + Future createCookbook() async { + _cookbookId = repository.autoGenerateEventlyId(); + final cookBook1 = Cookbook( + creator: "", + id: _cookbookId, + name: cookbookName, + description: cookbookDesc, + developer: hostName, + version: kVersionCookboox, + supportEmail: supportedEmail, + enabled: true, + ); + + final response = await PylonsWallet.instance.txCreateCookbook(cookBook1); + if (response.success) { + repository.saveCookBookGeneratorUsername(currentUserName); + return true; + } + + navigatorKey.showMsg(message: response.error); + return false; + } + + bool isDifferentUserName(String savedUserName) => currentUserName.isNotEmpty && savedUserName != currentUserName; } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 3fc46fb3b5..2cb8440741 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -16,6 +16,19 @@ abstract class Repository { /// This method will generate evently Id for the event /// Output: [String] the id of the Event that is going to be added in the recipe String autoGenerateEventlyId(); + + /// This method will save the username of the cookbook generator + /// Input: [username] the username of the user who created the cookbook + /// Output: [bool] returns whether the operation is successful or not + Future saveCookBookGeneratorUsername(String username); + + /// This method will get the already created cookbook from the local database + /// Output: [String] if the cookbook already exists return cookbook else return null + String? getCookbookId(); + + /// This method will get the username of the cookbook generator + /// Output: [String] returns whether the operation is successful or not + String getCookBookGeneratorUsername(); } @LazySingleton(as: Repository) @@ -41,4 +54,20 @@ class RepositoryImp implements Repository { @override String autoGenerateEventlyId() => localDataSource.autoGenerateEventlyId(); + + @override + Future saveCookBookGeneratorUsername(String username) { + return localDataSource.saveCookBookGeneratorUsername(username); + } + + @override + String? getCookbookId() { + return localDataSource.getCookbookId(); + } + + @override + String getCookBookGeneratorUsername() { + return localDataSource.getCookBookGeneratorUsername(); + } + } diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 3c36564e5a..314e155d45 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -1,17 +1,55 @@ +import 'package:evently/utils/constants.dart'; import 'package:evently/utils/date_utils.dart'; import 'package:injectable/injectable.dart'; +import 'package:shared_preferences/shared_preferences.dart'; abstract class LocalDataSource { /// This method will generate Evently Id for the Event /// Output: [String] the id of the Event that is going to be added in the recipe String autoGenerateEventlyId(); + + /// This method will save the username of the cookbook generator + /// Input: [username] the username of the user who created the cookbook + /// Output: [bool] returns whether the operation is successful or not + Future saveCookBookGeneratorUsername(String username); + + /// This method will get the already created cookbook from the local database + /// Output: [String] if the cookbook already exists return cookbook else return null + String? getCookbookId(); + + /// This method will get the username of the cookbook generator + /// Output: [String] returns whether the operation is successful or not + String getCookBookGeneratorUsername(); } @LazySingleton(as: LocalDataSource) class LocalDataSourceImpl extends LocalDataSource { + LocalDataSourceImpl({required this.sharedPreferences}); + + final SharedPreferences sharedPreferences; + @override String autoGenerateEventlyId() { final String cookbookId = "Event_Recipe_auto_recipe_${getFullDateTime()}"; return cookbookId; } + + @override + Future saveCookBookGeneratorUsername(String username) async { + await sharedPreferences.setString(kUsername, username); + return true; + } + + /// gets cookbookId from local storage + ///return String or null + @override + String? getCookbookId() { + return sharedPreferences.getString(kCookbookId); + } + + @override + String getCookBookGeneratorUsername() { + return sharedPreferences.getString(kUsername) ?? ''; + } + } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index cdd81d873d..282d96c28e 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -35,6 +35,15 @@ const kMinHostName = 9; const kErrProfileNotExist = 'profileDoesNotExist'; +const cookbookName = "Evently Cookbook"; +const cookbookDesc = "Cookbook for Evenlty Event"; +const kVersionCookboox = "v0.0.1"; +const supportedEmail = "support@pylons.tech"; + +/// ````Reserved words, symbols, IDs etc +const kCookbookId = 'cookbook_id'; +const kUsername = 'username'; +const kHostName = 'artistName'; /// ```SVG assets class SVGUtils { diff --git a/evently/lib/utils/extension_util.dart b/evently/lib/utils/extension_util.dart index e69de29bb2..1039c40ed5 100644 --- a/evently/lib/utils/extension_util.dart +++ b/evently/lib/utils/extension_util.dart @@ -0,0 +1,34 @@ +import 'package:evently/main.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +extension NavigatorKey on GlobalKey { + void showMsg({required String message}) { + ScaffoldMessenger.maybeOf(currentState!.context) + ?..hideCurrentSnackBar() + ..showSnackBar(SnackBar( + content: Text( + message, + textAlign: TextAlign.start, + style: TextStyle( + fontSize: 14.sp, + ), + ), + duration: const Duration(seconds: 2), + )); + } +} + +extension ScaffoldMessengerKeyHelper on GlobalKey { + ScaffoldMessengerState? getState() { + if (navigatorKey.currentState == null) { + return null; + } + + if (navigatorKey.currentState!.overlay == null) { + return null; + } + + return ScaffoldMessenger.maybeOf(navigatorKey.currentState!.overlay!.context); + } +} diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 7e4c2016cf..09c999facf 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -710,7 +710,7 @@ packages: source: hosted version: "4.1.0" shared_preferences: - dependency: transitive + dependency: "direct main" description: name: shared_preferences sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index d5c3def475..557eef9e4d 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -51,6 +51,7 @@ dependencies: equatable: ^2.0.5 dartz: ^0.10.1 pylons_sdk: ^0.1.4 + shared_preferences: ^2.2.3 dev_dependencies: flutter_test: From 927304e84826149cbf3cc31c871561d9a81b2c51 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Fri, 10 May 2024 15:54:35 +0500 Subject: [PATCH 065/158] feat: basic implementation of the pylons sdk --- evently/lib/evently_provider.dart | 5 ++--- evently/lib/repository/repository.dart | 13 +++++++++++-- .../services/datasources/local_datasource.dart | 17 ++++++++++++++--- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index f4204f9c8a..c7f5e6b058 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -1,6 +1,7 @@ import 'dart:io'; import 'package:evently/main.dart'; import 'package:evently/models/denom.dart'; +import 'package:evently/models/events.dart'; import 'package:evently/models/picked_file_model.dart'; import 'package:evently/repository/repository.dart'; import 'package:evently/utils/constants.dart'; @@ -11,7 +12,6 @@ import 'package:flutter/widgets.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/low_level.dart'; -import 'models/events.dart'; enum FreeDrop { yes, no, unselected } @@ -195,14 +195,13 @@ class EventlyProvider extends ChangeNotifier { _recipeId = repository.autoGenerateEventlyId(); - return Future.value(true); } /// send createCookBook tx message to the wallet app /// return true or false depending on the response from the wallet app Future createCookbook() async { - _cookbookId = repository.autoGenerateEventlyId(); + _cookbookId = repository.autoGenerateCookbookId(); final cookBook1 = Cookbook( creator: "", id: _cookbookId, diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 2cb8440741..2706d8d076 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -15,7 +15,7 @@ abstract class Repository { /// This method will generate evently Id for the event /// Output: [String] the id of the Event that is going to be added in the recipe - String autoGenerateEventlyId(); + String autoGenerateCookbookId(); /// This method will save the username of the cookbook generator /// Input: [username] the username of the user who created the cookbook @@ -29,6 +29,10 @@ abstract class Repository { /// This method will get the username of the cookbook generator /// Output: [String] returns whether the operation is successful or not String getCookBookGeneratorUsername(); + + /// This method will generate easel Id for the NFT + /// Output: [String] the id of the NFT that is going to be added in the recipe + String autoGenerateEventlyId(); } @LazySingleton(as: Repository) @@ -53,7 +57,7 @@ class RepositoryImp implements Repository { } @override - String autoGenerateEventlyId() => localDataSource.autoGenerateEventlyId(); + String autoGenerateCookbookId() => localDataSource.autoGenerateCookbookId(); @override Future saveCookBookGeneratorUsername(String username) { @@ -70,4 +74,9 @@ class RepositoryImp implements Repository { return localDataSource.getCookBookGeneratorUsername(); } + @override + String autoGenerateEventlyId() { + return localDataSource.autoGenerateEventlyId(); + } + } diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 314e155d45..6bc64cef88 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -6,7 +6,7 @@ import 'package:shared_preferences/shared_preferences.dart'; abstract class LocalDataSource { /// This method will generate Evently Id for the Event /// Output: [String] the id of the Event that is going to be added in the recipe - String autoGenerateEventlyId(); + String autoGenerateCookbookId(); /// This method will save the username of the cookbook generator /// Input: [username] the username of the user who created the cookbook @@ -20,6 +20,10 @@ abstract class LocalDataSource { /// This method will get the username of the cookbook generator /// Output: [String] returns whether the operation is successful or not String getCookBookGeneratorUsername(); + + /// This method will generate easel Id for the NFT + /// Output: [String] the id of the NFT that is going to be added in the recipe + String autoGenerateEventlyId(); } @LazySingleton(as: LocalDataSource) @@ -29,8 +33,8 @@ class LocalDataSourceImpl extends LocalDataSource { final SharedPreferences sharedPreferences; @override - String autoGenerateEventlyId() { - final String cookbookId = "Event_Recipe_auto_recipe_${getFullDateTime()}"; + String autoGenerateCookbookId() { + final String cookbookId = "Evently_CookBook_auto_cookbook_${getFullDateTime()}"; return cookbookId; } @@ -52,4 +56,11 @@ class LocalDataSourceImpl extends LocalDataSource { return sharedPreferences.getString(kUsername) ?? ''; } + /// auto generates easelID string + /// returns easelId + @override + String autoGenerateEventlyId() { + final String cookbookId = "Evently_Recipe_auto_recipe_${getFullDateTime()}"; + return cookbookId; + } } From 9bde0e1ec19d1cff4f88687dad9e5133d0662779 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Fri, 10 May 2024 16:48:06 +0500 Subject: [PATCH 066/158] feat: shared preference init --- evently/lib/utils/di/di.config.dart | 24 +++++++++++++----------- evently/lib/utils/di/di.dart | 6 +++++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index 78fa8ea0ae..aa017fe664 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -8,16 +8,17 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:evently/evently_provider.dart' as _i9; -import 'package:evently/repository/repository.dart' as _i8; +import 'package:evently/evently_provider.dart' as _i10; +import 'package:evently/repository/repository.dart' as _i9; import 'package:evently/services/datasources/local_datasource.dart' as _i6; -import 'package:evently/utils/di/register_modules.dart' as _i10; -import 'package:evently/utils/file_utils_helper.dart' as _i7; +import 'package:evently/utils/di/register_modules.dart' as _i11; +import 'package:evently/utils/file_utils_helper.dart' as _i8; import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; import 'package:file_picker/file_picker.dart' as _i5; import 'package:get_it/get_it.dart' as _i1; import 'package:image_cropper/image_cropper.dart' as _i4; import 'package:injectable/injectable.dart' as _i2; +import 'package:shared_preferences/shared_preferences.dart' as _i7; extension GetItInjectableX on _i1.GetIt { // initializes the registration of main-scope dependencies inside of GetIt @@ -35,19 +36,20 @@ extension GetItInjectableX on _i1.GetIt { () => _i3.CreateEventViewModel()); gh.lazySingleton<_i4.ImageCropper>(() => registerModule.imageCropper); gh.lazySingleton<_i5.FilePicker>(() => registerModule.filePicker); - gh.lazySingleton<_i6.LocalDataSource>(() => _i6.LocalDataSourceImpl()); - gh.lazySingleton<_i7.FileUtilsHelper>(() => _i7.FileUtilsHelperImpl( + gh.lazySingleton<_i6.LocalDataSource>(() => _i6.LocalDataSourceImpl( + sharedPreferences: gh<_i7.SharedPreferences>())); + gh.lazySingleton<_i8.FileUtilsHelper>(() => _i8.FileUtilsHelperImpl( imageCropper: gh<_i4.ImageCropper>(), filePicker: gh<_i5.FilePicker>(), )); - gh.lazySingleton<_i8.Repository>(() => _i8.RepositoryImp( - fileUtilsHelper: gh<_i7.FileUtilsHelper>(), + gh.lazySingleton<_i9.Repository>(() => _i9.RepositoryImp( + fileUtilsHelper: gh<_i8.FileUtilsHelper>(), localDataSource: gh<_i6.LocalDataSource>(), )); - gh.lazySingleton<_i9.EventlyProvider>( - () => _i9.EventlyProvider(repository: gh<_i8.Repository>())); + gh.lazySingleton<_i10.EventlyProvider>( + () => _i10.EventlyProvider(repository: gh<_i9.Repository>())); return this; } } -class _$RegisterModule extends _i10.RegisterModule {} +class _$RegisterModule extends _i11.RegisterModule {} diff --git a/evently/lib/utils/di/di.dart b/evently/lib/utils/di/di.dart index ecf2d0d691..62d8189d3a 100644 --- a/evently/lib/utils/di/di.dart +++ b/evently/lib/utils/di/di.dart @@ -4,10 +4,14 @@ import 'package:evently/utils/di/di.config.dart'; import 'package:get_it/get_it.dart'; import 'package:injectable/injectable.dart'; +import 'package:shared_preferences/shared_preferences.dart'; // Service Locator for project final sl = GetIt.I; // initialization of Service locator @InjectableInit() -void configureDependencies() => sl.init(); +void configureDependencies() { + sl.registerSingletonAsync(() => SharedPreferences.getInstance()); + sl.init(); +} From c058e049d606cb5cf84100cacaadaa1cc2cedbd2 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Fri, 10 May 2024 17:44:20 +0500 Subject: [PATCH 067/158] feat: date time picker at detail screen --- evently/lib/screens/detail_screen.dart | 100 ++++++++++++++++++------- 1 file changed, 72 insertions(+), 28 deletions(-) diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 6408b7e44d..963e436601 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -54,26 +54,39 @@ class _DetailsScreenState extends State { Row( children: [ Expanded( - child: EventlyTextField( - enable: false, - label: LocaleKeys.start_date.tr(), - controller: TextEditingController(text: provider.startDate), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; + child: GestureDetector( + onTap: () async { + _showDatePicker(onSelected: (DateTime? val) { + if (val == null) return; + provider.setStartDate = DateFormat("dd-MM-yyyy").format(val); + }); }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.start_date.tr(), + controller: TextEditingController(text: provider.startDate), + textCapitalization: TextCapitalization.sentences, + ), ), ), HorizontalSpace(20.w), Expanded( - child: EventlyTextField( - enable: false, - label: LocaleKeys.end_date.tr(), - controller: TextEditingController(text: provider.endDate), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; + child: GestureDetector( + onTap: () { + _showDatePicker(onSelected: (DateTime? val) { + if (val == null) return; + provider.setEndDate = DateFormat("dd-MM-yyyy").format(val); + }); }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.end_date.tr(), + controller: TextEditingController(text: provider.endDate), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), ), ), ], @@ -82,26 +95,42 @@ class _DetailsScreenState extends State { Row( children: [ Expanded( - child: EventlyTextField( - enable: false, - label: LocaleKeys.start_time.tr(), - controller: TextEditingController(text: provider.startTime), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; + child: GestureDetector( + onTap: () { + _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { + if (timeOfDay == null) return; + provider.setStartTime = '${timeOfDay.hour}:${timeOfDay.minute}'; + }); }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.start_time.tr(), + controller: TextEditingController(text: provider.startTime), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), ), ), HorizontalSpace(20.w), Expanded( - child: EventlyTextField( - enable: false, - label: LocaleKeys.end_time.tr(), - controller: TextEditingController(text: provider.endTime), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; + child: GestureDetector( + onTap: () { + _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { + if (timeOfDay == null) return; + provider.setEndTime = '${timeOfDay.hour}:${timeOfDay.minute}'; + }); }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.end_time.tr(), + controller: TextEditingController(text: provider.endTime), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), ), ), ], @@ -146,4 +175,19 @@ class _DetailsScreenState extends State { )), ); } + + _showTimerPicker({required ValueChanged onSelected}) { + showTimePicker( + initialTime: TimeOfDay.now(), + context: context, + ).then((value) => onSelected(value!)); + } + + _showDatePicker({required ValueChanged onSelected}) { + showDatePicker( + context: context, + firstDate: DateTime.now(), + lastDate: DateTime.now(), + ).then((value) => onSelected(value!)); + } } From efac2abfa725a4960b21453690c4620c0ad3d725 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 13 May 2024 10:12:38 +0500 Subject: [PATCH 068/158] feat: detail data collection --- evently/lib/evently_provider.dart | 12 +++++------- evently/lib/screens/detail_screen.dart | 12 ++++++++++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index c7f5e6b058..1698f37577 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -12,7 +12,6 @@ import 'package:flutter/widgets.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/low_level.dart'; - enum FreeDrop { yes, no, unselected } @LazySingleton() @@ -68,7 +67,6 @@ class EventlyProvider extends ChangeNotifier { String _endTime = ""; String _location = ""; String _description = ""; - bool _isDetailEnable = false; String get startDate => _startDate; String get endDate => _endDate; @@ -76,40 +74,40 @@ class EventlyProvider extends ChangeNotifier { String get endTime => _endTime; String get location => _location; String get description => _description; - bool get isDetailEnable => _isDetailEnable; set setStartDate(String value) { _startDate = value; + notifyListeners(); } set setEndDate(String value) { _endDate = value; + notifyListeners(); } set setStartTime(String value) { _startTime = value; + notifyListeners(); } set setEndTime(String value) { _endTime = value; + notifyListeners(); } set setLocation(String value) { _location = value; + notifyListeners(); } set setDescription(String value) { _description = value; - notifyListeners(); - } - set isDetailEnable(bool value) { - _isDetailEnable = value; notifyListeners(); } diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 963e436601..31544ba913 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -151,6 +151,7 @@ class _DetailsScreenState extends State { ), VerticalSpace(20.h), EventlyTextField( + onChanged: (_) => provider.setDescription = _, label: LocaleKeys.description.tr(), hint: LocaleKeys.what_event_for.tr(), controller: TextEditingController(text: provider.description) @@ -162,9 +163,16 @@ class _DetailsScreenState extends State { ), const VerticalSpace(80), BottomButtons( - onPressContinue: () {}, + onPressContinue: () { + createEventViewModel.nextPage(); + }, onPressSaveDraft: () {}, - isContinueEnable: provider.isDetailEnable, + isContinueEnable: provider.startDate.isNotEmpty && + provider.endDate.isNotEmpty && + provider.startTime.isNotEmpty && + provider.endTime.isNotEmpty && + provider.description.isNotEmpty && + provider.location.isNotEmpty, ), ], ), From 5149d1d9fa42ca8774a4f3409764474feebfb421 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 13 May 2024 11:37:42 +0500 Subject: [PATCH 069/158] feat: perks screen --- evently/i18n/de.json | 5 +- evently/i18n/en-US.json | 5 +- evently/i18n/es.json | 5 +- evently/i18n/ru-RU.json | 5 +- evently/lib/evently_provider.dart | 33 ++- evently/lib/models/perks_model.dart | 16 ++ evently/lib/screens/perks_screen.dart | 335 +++++++++++++++++--------- evently/lib/utils/constants.dart | 6 + 8 files changed, 282 insertions(+), 128 deletions(-) create mode 100644 evently/lib/models/perks_model.dart diff --git a/evently/i18n/de.json b/evently/i18n/de.json index a435c50c2a..756503c09a 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -53,5 +53,8 @@ "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", "open_pylons_app": "Öffnen Sie die Pylons-App", "create_stripe_description": "Bitte registrieren Sie sich bei Stripe in der Pylons-App, um Ihre NFT für USD aufzulisten.", - "start": "Anfang" + "start": "Anfang", + "free_shirt": "1 free t-shirt", + "free_gift": "Free Gift", + "free_drink": "1 free drink" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index b7fb9024fa..6cef40ae5f 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -53,5 +53,8 @@ "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", "open_pylons_app": "Open Pylons app", "create_stripe_description": "Please register with Stripe in the Pylons app to list your NFT for USD.", - "start": "Start" + "start": "Start", + "free_shirt": "1 free t-shirt", + "free_gift": "Free Gift", + "free_drink": "1 free drink" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 3c2d3d9904..56fb8558b1 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -53,5 +53,8 @@ "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", "open_pylons_app": "Abrir la aplicación Pylons", "create_stripe_description": "Regístrese con Stripe en la aplicación Pylons para enumerar su NFT para USD.", - "start": "Comienzo" + "start": "Comienzo", + "free_shirt": "1 free t-shirt", + "free_gift": "Free Gift", + "free_drink": "1 free drink" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index deaa8772b4..0cfb75ca3d 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -53,5 +53,8 @@ "create_username_description": "Please Open Pylons app and create a username to publish a Event with Evently.", "open_pylons_app": "Откройте приложение пилонов", "create_stripe_description": "Пожалуйста, зарегистрируйтесь в Stripe в приложении Pylons, чтобы перечислить свои NFT в долларах США.", - "start": "Начинать" + "start": "Начинать", + "free_shirt": "1 free t-shirt", + "free_gift": "Free Gift", + "free_drink": "1 free drink" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 1698f37577..3afd308232 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -2,6 +2,7 @@ import 'dart:io'; import 'package:evently/main.dart'; import 'package:evently/models/denom.dart'; import 'package:evently/models/events.dart'; +import 'package:evently/models/perks_model.dart'; import 'package:evently/models/picked_file_model.dart'; import 'package:evently/repository/repository.dart'; import 'package:evently/utils/constants.dart'; @@ -77,37 +78,59 @@ class EventlyProvider extends ChangeNotifier { set setStartDate(String value) { _startDate = value; - notifyListeners(); } set setEndDate(String value) { _endDate = value; - notifyListeners(); } set setStartTime(String value) { _startTime = value; - notifyListeners(); } set setEndTime(String value) { _endTime = value; - notifyListeners(); } set setLocation(String value) { _location = value; - notifyListeners(); } set setDescription(String value) { _description = value; + notifyListeners(); + } + + /// perks screen + final List _perks = []; + int _selectedPerk = 0; + + List get perks => _perks; + + int get selectedPerk => _selectedPerk; + + set setSelectedPerks(int val) { + _selectedPerk = val; + notifyListeners(); + } + + set setPerks(PerksModel perksModel) { + _perks.add(perksModel); + notifyListeners(); + } + + updatePerks(PerksModel perksModel, int index) { + _perks[index] = perksModel; + notifyListeners(); + } + removePerks(int index) { + _perks.removeAt(index); notifyListeners(); } diff --git a/evently/lib/models/perks_model.dart b/evently/lib/models/perks_model.dart new file mode 100644 index 0000000000..ef148513e7 --- /dev/null +++ b/evently/lib/models/perks_model.dart @@ -0,0 +1,16 @@ +class PerksModel { + PerksModel({required this.name, required this.description}); + + final String name; + final String description; + + factory PerksModel.updateName({required String name, required PerksModel perksModel}) => PerksModel( + name: name, + description: perksModel.description, + ); + + factory PerksModel.updateDescription({required String description, required PerksModel perksModel}) => PerksModel( + name: perksModel.name, + description: description, + ); +} diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 2f41bf61d0..e4054143c1 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -1,5 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/evently_provider.dart'; import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/models/perks_model.dart'; import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; @@ -10,6 +12,7 @@ import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/evently_text_field.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -32,142 +35,236 @@ class _PerksScreenState extends State { return Scaffold( body: LayoutBuilder( builder: (BuildContext context, BoxConstraints constraints) => SingleChildScrollView( - child: ConstrainedBox( - constraints: BoxConstraints(minHeight: constraints.maxHeight), - child: Form( - key: _formKey, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Column( + child: ConstrainedBox( + constraints: BoxConstraints(minHeight: constraints.maxHeight), + child: Consumer( + builder: (_, provider, __) => Form( + key: _formKey, + child: Column( crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const VerticalSpace(20), - MyStepsIndicator(currentStep: createEventViewModel.currentStep), - const VerticalSpace(5), - StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), - const VerticalSpace(20), - PageAppBar( - onPressBack: () { - ScaffoldMessenger.of(context).hideCurrentSnackBar(); - createEventViewModel.previousPage(); - }, - ), - const VerticalSpace(20), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text( - LocaleKeys.add_perk.tr(), - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold), - ), - InkWell( - onTap: () {}, - child: DecoratedBox( - decoration: const BoxDecoration( - color: EventlyAppTheme.kBlue, + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + const VerticalSpace(5), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(20), + PageAppBar( + onPressBack: () { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + createEventViewModel.previousPage(); + }, + ), + const VerticalSpace(20), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + LocaleKeys.add_perk.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold), ), - child: Icon(Icons.add, size: 16.h, color: EventlyAppTheme.kWhite), + InkWell( + onTap: () => provider.setPerks = PerksModel(name: kFreeShirt, description: ''), + child: DecoratedBox( + decoration: const BoxDecoration( + color: EventlyAppTheme.kBlue, + ), + child: Icon(Icons.add, size: 16.h, color: EventlyAppTheme.kWhite), + ), + ), + ], + ), + ), + const VerticalSpace(10), + if (provider.perks.isEmpty) + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Text( + LocaleKeys.there_no_perks_created.tr(), + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kGrey01), ), ), - ], - ), - ), - const VerticalSpace(10), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Text( - LocaleKeys.there_no_perks_created.tr(), - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w700, color: EventlyAppTheme.kGrey01), - ), - ), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Stack( - alignment: Alignment.center, - children: [ - ScreenResponsive( - mobileScreen: (context) => Image.asset( - PngUtils.kLightPurpleSingleLine, - height: 40.h, - width: 1.sw, - fit: BoxFit.fill, + if (provider.perks.isNotEmpty) + PerksView( + perksModel: provider.perks[provider.selectedPerk], + onChangeDescription: (String value) => provider.updatePerks( + PerksModel.updateDescription( + description: value, + perksModel: provider.perks[provider.selectedPerk], + ), + provider.selectedPerk, ), - tabletScreen: (context) => Image.asset( - PngUtils.kLightPurpleSingleLine, - height: 32.h, - width: 1.sw, - fit: BoxFit.fill, + onChangeName: (String value) => provider.updatePerks( + PerksModel.updateName( + name: value, + perksModel: provider.perks[provider.selectedPerk], + ), + provider.selectedPerk, ), + removePerk: () { + provider.removePerks(provider.selectedPerk); + }, ), - Padding( - padding: EdgeInsets.symmetric(horizontal: 10.w), - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - SvgPicture.asset(SVGUtils.kMinus), - HorizontalSpace(10.w), - Text( - LocaleKeys.free_shirt.tr(), - style: TextStyle(color: EventlyAppTheme.kWhite, fontSize: 15.sp, fontWeight: FontWeight.bold), - ), - ], - ), - ) - ], - ), - ), - const VerticalSpace(10), - Padding( - padding: EdgeInsets.symmetric(horizontal: 50.w), - child: Text( - LocaleKeys.perk_icon.tr(), - style: TextStyle( - fontWeight: FontWeight.bold, - fontSize: 13.sp, - ), - ), - ), - const VerticalSpace(6), - Padding( - padding: EdgeInsets.symmetric(horizontal: 50.w), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Container(padding: const EdgeInsets.all(7), color: EventlyAppTheme.kTextLightPurple, child: SvgPicture.asset(SVGUtils.kShirt)), - Container(padding: const EdgeInsets.all(7), color: Colors.transparent, child: SvgPicture.asset(SVGUtils.kGift)), - Container(padding: const EdgeInsets.all(7), color: Colors.transparent, child: SvgPicture.asset(SVGUtils.kDrinks)), - ], - ), + ], ), const VerticalSpace(20), Padding( - padding: EdgeInsets.symmetric(horizontal: 50.w), - child: EventlyTextField( - noOfLines: 4, - label: LocaleKeys.description_optional.tr(), - hint: LocaleKeys.claim_free_drink.tr(), - controller: TextEditingController(), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, + padding: const EdgeInsets.symmetric(horizontal: 20), + child: BottomButtons( + onPressContinue: () {}, + onPressSaveDraft: () {}, + isContinueEnable: true, ), - ), + ) ], ), - BottomButtons( - onPressContinue: () {}, - onPressSaveDraft: () {}, - isContinueEnable: false, + ), + ), + ), + ), + )); + } +} + +class PerksView extends StatelessWidget { + const PerksView({ + super.key, + required this.perksModel, + required this.onChangeDescription, + required this.onChangeName, + required this.removePerk, + }); + + final PerksModel perksModel; + + final ValueChanged onChangeName; + final ValueChanged onChangeDescription; + final VoidCallback removePerk; + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Stack( + alignment: Alignment.center, + children: [ + ScreenResponsive( + mobileScreen: (context) => Image.asset( + PngUtils.kLightPurpleSingleLine, + height: 40.h, + width: 1.sw, + fit: BoxFit.fill, + ), + tabletScreen: (context) => Image.asset( + PngUtils.kLightPurpleSingleLine, + height: 32.h, + width: 1.sw, + fit: BoxFit.fill, + ), + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 10.w), + child: Row( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + GestureDetector( + child: SvgPicture.asset(SVGUtils.kMinus), + onTap: () => removePerk(), + ), + HorizontalSpace(10.w), + Text( + perksModel.name.tr(), + style: TextStyle(color: EventlyAppTheme.kWhite, fontSize: 15.sp, fontWeight: FontWeight.bold), + ), + ], + ), ) ], ), ), - )), - )); + const VerticalSpace(10), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50.w), + child: Text( + LocaleKeys.perk_icon.tr(), + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 13.sp, + ), + ), + ), + const VerticalSpace(6), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + PerksIconSelection( + icon: SVGUtils.kShirt, + isSelected: perksModel.name == kFreeShirt, + onTap: () => onChangeName(kFreeShirt), + ), + PerksIconSelection( + icon: SVGUtils.kGift, + isSelected: perksModel.name == kFreeGift, + onTap: () => onChangeName(kFreeGift), + ), + PerksIconSelection( + icon: SVGUtils.kDrinks, + isSelected: perksModel.name == kFreeDrink, + onTap: () => onChangeName(kFreeDrink), + ), + ], + ), + ), + const VerticalSpace(20), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50.w), + child: EventlyTextField( + onChanged: (_) => onChangeDescription(_), + noOfLines: 4, + label: LocaleKeys.description_optional.tr(), + hint: LocaleKeys.claim_free_drink.tr(), + controller: TextEditingController(text: perksModel.description), + textCapitalization: TextCapitalization.sentences, + ), + ), + ], + ); + } +} + +class PerksIconSelection extends StatelessWidget { + const PerksIconSelection({ + super.key, + required this.icon, + required this.isSelected, + required this.onTap, + }); + + final String icon; + final bool isSelected; + + final VoidCallback onTap; + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: () => onTap(), + child: Container( + padding: const EdgeInsets.all(7), + color: isSelected ? EventlyAppTheme.kTextLightPurple : Colors.transparent, + child: SvgPicture.asset(icon), + ), + ); } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 282d96c28e..956c4119e4 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -45,6 +45,12 @@ const kCookbookId = 'cookbook_id'; const kUsername = 'username'; const kHostName = 'artistName'; + +///perks +const kFreeShirt = "free_shirt"; +const kFreeGift = "free_gift"; +const kFreeDrink = "free_drink"; + /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; From df4d7364a5dcf12c3d4fd1611621ed4a86c7eda7 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 13 May 2024 12:27:04 +0500 Subject: [PATCH 070/158] feat: perk screen state managment and data collection --- evently/lib/screens/perks_screen.dart | 108 +++++++++++++++----------- 1 file changed, 62 insertions(+), 46 deletions(-) diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index e4054143c1..dfffa389b3 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -12,7 +12,6 @@ import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/evently_text_field.dart'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -91,7 +90,7 @@ class _PerksScreenState extends State { ), if (provider.perks.isNotEmpty) PerksView( - perksModel: provider.perks[provider.selectedPerk], + perksModel: provider.perks, onChangeDescription: (String value) => provider.updatePerks( PerksModel.updateDescription( description: value, @@ -106,9 +105,9 @@ class _PerksScreenState extends State { ), provider.selectedPerk, ), - removePerk: () { - provider.removePerks(provider.selectedPerk); - }, + removePerk: () => provider.removePerks(provider.selectedPerk), + selectedIndex: provider.selectedPerk, + setSelectedPerk: (_) => provider.setSelectedPerks = _, ), ], ), @@ -138,13 +137,16 @@ class PerksView extends StatelessWidget { required this.onChangeDescription, required this.onChangeName, required this.removePerk, + required this.selectedIndex, + required this.setSelectedPerk, }); - final PerksModel perksModel; - + final List perksModel; + final int selectedIndex; final ValueChanged onChangeName; final ValueChanged onChangeDescription; final VoidCallback removePerk; + final ValueChanged setSelectedPerk; @override Widget build(BuildContext context) { @@ -152,44 +154,55 @@ class PerksView extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Stack( - alignment: Alignment.center, - children: [ - ScreenResponsive( - mobileScreen: (context) => Image.asset( - PngUtils.kLightPurpleSingleLine, - height: 40.h, - width: 1.sw, - fit: BoxFit.fill, - ), - tabletScreen: (context) => Image.asset( - PngUtils.kLightPurpleSingleLine, - height: 32.h, - width: 1.sw, - fit: BoxFit.fill, - ), - ), - Padding( - padding: EdgeInsets.symmetric(horizontal: 10.w), - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - GestureDetector( - child: SvgPicture.asset(SVGUtils.kMinus), - onTap: () => removePerk(), - ), - HorizontalSpace(10.w), - Text( - perksModel.name.tr(), - style: TextStyle(color: EventlyAppTheme.kWhite, fontSize: 15.sp, fontWeight: FontWeight.bold), + Column( + children: perksModel + .asMap() + .entries + .map( + (e) => GestureDetector( + onTap: () => setSelectedPerk(e.key), + child: Padding( + padding: EdgeInsets.only(left: 20.w, right: 20.w, bottom: 10.h), + child: Stack( + alignment: Alignment.center, + children: [ + ScreenResponsive( + mobileScreen: (context) => Image.asset( + selectedIndex == e.key ? PngUtils.kLightPurpleSingleLine : PngUtils.kDarkPurpleSingleLine, + height: 40.h, + width: 1.sw, + fit: BoxFit.fill, + ), + tabletScreen: (context) => Image.asset( + selectedIndex == e.key ? PngUtils.kLightPurpleSingleLine : PngUtils.kDarkPurpleSingleLine, + height: 32.h, + width: 1.sw, + fit: BoxFit.fill, + ), + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 10.w), + child: Row( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + GestureDetector( + child: SvgPicture.asset(SVGUtils.kMinus), + onTap: () => removePerk(), + ), + HorizontalSpace(10.w), + Text( + e.value.name.tr(), + style: TextStyle(color: EventlyAppTheme.kWhite, fontSize: 15.sp, fontWeight: FontWeight.bold), + ), + ], + ), + ) + ], ), - ], + ), ), ) - ], - ), + .toList(), ), const VerticalSpace(10), Padding( @@ -210,17 +223,17 @@ class PerksView extends StatelessWidget { children: [ PerksIconSelection( icon: SVGUtils.kShirt, - isSelected: perksModel.name == kFreeShirt, + isSelected: perksModel[selectedIndex].name == kFreeShirt, onTap: () => onChangeName(kFreeShirt), ), PerksIconSelection( icon: SVGUtils.kGift, - isSelected: perksModel.name == kFreeGift, + isSelected: perksModel[selectedIndex].name == kFreeGift, onTap: () => onChangeName(kFreeGift), ), PerksIconSelection( icon: SVGUtils.kDrinks, - isSelected: perksModel.name == kFreeDrink, + isSelected: perksModel[selectedIndex].name == kFreeDrink, onTap: () => onChangeName(kFreeDrink), ), ], @@ -234,7 +247,10 @@ class PerksView extends StatelessWidget { noOfLines: 4, label: LocaleKeys.description_optional.tr(), hint: LocaleKeys.claim_free_drink.tr(), - controller: TextEditingController(text: perksModel.description), + controller: TextEditingController(text: perksModel[selectedIndex].description) + ..selection = TextSelection.fromPosition( + TextPosition(offset: perksModel[selectedIndex].description.length), + ), textCapitalization: TextCapitalization.sentences, ), ), From ce367f7bc39ef3d01dd95ec2561ba5cf9e27abf5 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 13 May 2024 15:53:41 +0500 Subject: [PATCH 071/158] feat: price screen state data collection --- evently/lib/evently_provider.dart | 28 +- evently/lib/models/denom.dart | 2 +- evently/lib/screens/detail_screen.dart | 265 ++++++++------- evently/lib/screens/overview_screen.dart | 209 ++++++------ evently/lib/screens/perks_screen.dart | 22 +- evently/lib/screens/price_screen.dart | 308 +++++++++--------- .../widgets/evently_price_input_field.dart | 45 ++- 7 files changed, 460 insertions(+), 419 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 3afd308232..c00b2cc4c4 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -134,15 +134,39 @@ class EventlyProvider extends ChangeNotifier { notifyListeners(); } + ///* price screen + Denom _selectedDenom = Denom.availableDenoms.first; Denom get selectedDenom => _selectedDenom; List supportedDenomList = Denom.availableDenoms; - TextEditingController priceController = TextEditingController(); + FreeDrop _isFreeDrop = FreeDrop.unselected; + + int _numberOfTickets = 0; + int _price = 0; + + set setNumberOfTickets(int numberOfTickets) { + _numberOfTickets = numberOfTickets; + notifyListeners(); + } + + get numberOfTickets => _numberOfTickets; + + get isFreeDrop => _isFreeDrop; + + set setFreeDrop(FreeDrop freeDrop) { + _isFreeDrop = freeDrop; + notifyListeners(); + } + + set setPrice(int price) { + _price = price; + notifyListeners(); + } - FreeDrop isFreeDrop = FreeDrop.no; + get price => _price; void setSelectedDenom(Denom value) { _selectedDenom = value; diff --git a/evently/lib/models/denom.dart b/evently/lib/models/denom.dart index 1c94ab5551..c35b34ce8a 100644 --- a/evently/lib/models/denom.dart +++ b/evently/lib/models/denom.dart @@ -26,7 +26,7 @@ class Denom { if (symbol == kPylonSymbol) { return AmountFormatter(maxDigits: kMaxPriceLength); } - return AmountFormatter(maxDigits: kMaxPriceLength, isDecimal: true); + return AmountFormatter(maxDigits: kMaxPriceLength, isDecimal: false); } @override diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 31544ba913..8f6cb89e65 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -20,8 +20,6 @@ class DetailsScreen extends StatefulWidget { } class _DetailsScreenState extends State { - final _formKey = GlobalKey(); - @override void initState() { super.initState(); @@ -34,151 +32,148 @@ class _DetailsScreenState extends State { return Scaffold( body: SingleChildScrollView( child: Consumer( - builder: (_, provider, __) => Form( - key: _formKey, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const VerticalSpace(20), - MyStepsIndicator(currentStep: createEventViewModel.currentStep), - StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), - const VerticalSpace(20), - PageAppBar(onPressBack: () { - createEventViewModel.previousPage(); - }), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - children: [ - Expanded( - child: GestureDetector( - onTap: () async { - _showDatePicker(onSelected: (DateTime? val) { - if (val == null) return; - provider.setStartDate = DateFormat("dd-MM-yyyy").format(val); - }); - }, - child: EventlyTextField( - enable: false, - label: LocaleKeys.start_date.tr(), - controller: TextEditingController(text: provider.startDate), - textCapitalization: TextCapitalization.sentences, - ), + builder: (_, provider, __) => Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(20), + PageAppBar(onPressBack: () { + createEventViewModel.previousPage(); + }), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Expanded( + child: GestureDetector( + onTap: () async { + _showDatePicker(onSelected: (DateTime? val) { + if (val == null) return; + provider.setStartDate = DateFormat("dd-MM-yyyy").format(val); + }); + }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.start_date.tr(), + controller: TextEditingController(text: provider.startDate), + textCapitalization: TextCapitalization.sentences, ), ), - HorizontalSpace(20.w), - Expanded( - child: GestureDetector( - onTap: () { - _showDatePicker(onSelected: (DateTime? val) { - if (val == null) return; - provider.setEndDate = DateFormat("dd-MM-yyyy").format(val); - }); + ), + HorizontalSpace(20.w), + Expanded( + child: GestureDetector( + onTap: () { + _showDatePicker(onSelected: (DateTime? val) { + if (val == null) return; + provider.setEndDate = DateFormat("dd-MM-yyyy").format(val); + }); + }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.end_date.tr(), + controller: TextEditingController(text: provider.endDate), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; }, - child: EventlyTextField( - enable: false, - label: LocaleKeys.end_date.tr(), - controller: TextEditingController(text: provider.endDate), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), ), ), - ], - ), - VerticalSpace(20.h), - Row( - children: [ - Expanded( - child: GestureDetector( - onTap: () { - _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { - if (timeOfDay == null) return; - provider.setStartTime = '${timeOfDay.hour}:${timeOfDay.minute}'; - }); + ), + ], + ), + VerticalSpace(20.h), + Row( + children: [ + Expanded( + child: GestureDetector( + onTap: () { + _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { + if (timeOfDay == null) return; + provider.setStartTime = '${timeOfDay.hour}:${timeOfDay.minute}'; + }); + }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.start_time.tr(), + controller: TextEditingController(text: provider.startTime), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; }, - child: EventlyTextField( - enable: false, - label: LocaleKeys.start_time.tr(), - controller: TextEditingController(text: provider.startTime), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), ), ), - HorizontalSpace(20.w), - Expanded( - child: GestureDetector( - onTap: () { - _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { - if (timeOfDay == null) return; - provider.setEndTime = '${timeOfDay.hour}:${timeOfDay.minute}'; - }); + ), + HorizontalSpace(20.w), + Expanded( + child: GestureDetector( + onTap: () { + _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { + if (timeOfDay == null) return; + provider.setEndTime = '${timeOfDay.hour}:${timeOfDay.minute}'; + }); + }, + child: EventlyTextField( + enable: false, + label: LocaleKeys.end_time.tr(), + controller: TextEditingController(text: provider.endTime), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; }, - child: EventlyTextField( - enable: false, - label: LocaleKeys.end_time.tr(), - controller: TextEditingController(text: provider.endTime), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), ), ), - ], - ), - VerticalSpace(20.h), - EventlyTextField( - onChanged: (_) => provider.setLocation = _, - label: LocaleKeys.location.tr(), - hint: LocaleKeys.search_location.tr(), - controller: TextEditingController(text: provider.location) - ..selection = TextSelection.fromPosition( - TextPosition(offset: provider.location.length), - ), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), - VerticalSpace(20.h), - EventlyTextField( - onChanged: (_) => provider.setDescription = _, - label: LocaleKeys.description.tr(), - hint: LocaleKeys.what_event_for.tr(), - controller: TextEditingController(text: provider.description) - ..selection = TextSelection.fromPosition( - TextPosition(offset: provider.description.length), - ), - textCapitalization: TextCapitalization.sentences, - noOfLines: 4, - ), - const VerticalSpace(80), - BottomButtons( - onPressContinue: () { - createEventViewModel.nextPage(); - }, - onPressSaveDraft: () {}, - isContinueEnable: provider.startDate.isNotEmpty && - provider.endDate.isNotEmpty && - provider.startTime.isNotEmpty && - provider.endTime.isNotEmpty && - provider.description.isNotEmpty && - provider.location.isNotEmpty, - ), - ], - ), + ), + ], + ), + VerticalSpace(20.h), + EventlyTextField( + onChanged: (_) => provider.setLocation = _, + label: LocaleKeys.location.tr(), + hint: LocaleKeys.search_location.tr(), + controller: TextEditingController(text: provider.location) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.location.length), + ), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + ), + VerticalSpace(20.h), + EventlyTextField( + onChanged: (_) => provider.setDescription = _, + label: LocaleKeys.description.tr(), + hint: LocaleKeys.what_event_for.tr(), + controller: TextEditingController(text: provider.description) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.description.length), + ), + textCapitalization: TextCapitalization.sentences, + noOfLines: 4, + ), + const VerticalSpace(80), + BottomButtons( + onPressContinue: () { + createEventViewModel.nextPage(); + }, + onPressSaveDraft: () {}, + isContinueEnable: provider.startDate.isNotEmpty && + provider.endDate.isNotEmpty && + provider.startTime.isNotEmpty && + provider.endTime.isNotEmpty && + provider.description.isNotEmpty && + provider.location.isNotEmpty, + ), + ], ), - ], - ), + ), + ], ), )), ); diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index c0d8c037db..1e321ece31 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -24,8 +24,6 @@ class OverViewScreen extends StatefulWidget { } class _OverViewScreenState extends State { - final _formKey = GlobalKey(); - @override void initState() { super.initState(); @@ -38,120 +36,117 @@ class _OverViewScreenState extends State { return Scaffold( body: SingleChildScrollView( child: Consumer( - builder: (_, provider, __) => Form( - key: _formKey, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const VerticalSpace(20), - MyStepsIndicator(currentStep: createEventViewModel.currentStep), - StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), - const VerticalSpace(20), - PageAppBar(onPressBack: () { - Navigator.of(context).pop(); - }), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - EventlyTextField( - controller: TextEditingController(text: provider.eventName) - ..selection = TextSelection.fromPosition( - TextPosition(offset: provider.eventName.length), - ), - onChanged: (_) => provider.setEventName = _, - label: LocaleKeys.event_name.tr(), - hint: LocaleKeys.what_your_event_called.tr(), - textCapitalization: TextCapitalization.sentences, - ), - VerticalSpace(20.h), - EventlyTextField( - controller: TextEditingController(text: provider.hostName) - ..selection = TextSelection.fromPosition( - TextPosition(offset: provider.hostName.length), - ), - onChanged: (String _) => provider.setHostName = _, - label: LocaleKeys.host_name.tr(), - hint: LocaleKeys.who_hosting_it.tr(), - textCapitalization: TextCapitalization.sentences, - ), - VerticalSpace(20.h), - Text( - LocaleKeys.thumbnail.tr(), - textAlign: TextAlign.start, - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), - ), - SizedBox(height: 4.h), - ClipRRect( - borderRadius: BorderRadius.only(topRight: Radius.circular(8.r), topLeft: Radius.circular(8.r)), - child: Center( - child: DottedBorder( - borderType: BorderType.Rect, - dashPattern: const [10, 6], - color: EventlyAppTheme.kTextDarkPurple, - strokeWidth: 3.h, - child: provider.thumbnail != null - ? SizedBox( - height: 180, + builder: (_, provider, __) => Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(20), + PageAppBar(onPressBack: () { + Navigator.of(context).pop(); + }), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + EventlyTextField( + controller: TextEditingController(text: provider.eventName) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.eventName.length), + ), + onChanged: (_) => provider.setEventName = _, + label: LocaleKeys.event_name.tr(), + hint: LocaleKeys.what_your_event_called.tr(), + textCapitalization: TextCapitalization.sentences, + ), + VerticalSpace(20.h), + EventlyTextField( + controller: TextEditingController(text: provider.hostName) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.hostName.length), + ), + onChanged: (String _) => provider.setHostName = _, + label: LocaleKeys.host_name.tr(), + hint: LocaleKeys.who_hosting_it.tr(), + textCapitalization: TextCapitalization.sentences, + ), + VerticalSpace(20.h), + Text( + LocaleKeys.thumbnail.tr(), + textAlign: TextAlign.start, + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), + ), + SizedBox(height: 4.h), + ClipRRect( + borderRadius: BorderRadius.only(topRight: Radius.circular(8.r), topLeft: Radius.circular(8.r)), + child: Center( + child: DottedBorder( + borderType: BorderType.Rect, + dashPattern: const [10, 6], + color: EventlyAppTheme.kTextDarkPurple, + strokeWidth: 3.h, + child: provider.thumbnail != null + ? SizedBox( + height: 180, + width: double.infinity, + child: Stack( + alignment: Alignment.center, + children: [ + Image.file( + provider.thumbnail!, + fit: BoxFit.cover, + height: 176, + width: double.infinity, + ), + GestureDetector( + onTap: () => provider.pickThumbnail(), + child: SvgPicture.asset( + SVGUtils.kSvgUpload, + colorFilter: const ColorFilter.mode(EventlyAppTheme.kWhite, BlendMode.srcIn), + )), + ], + ), + ) + : GestureDetector( + onTap: () => provider.pickThumbnail(), + child: Container( width: double.infinity, - child: Stack( - alignment: Alignment.center, + height: 180, + padding: EdgeInsets.symmetric(vertical: 20.w), + child: Column( children: [ - Image.file( - provider.thumbnail!, - fit: BoxFit.cover, - height: 176, - width: double.infinity, + Text( + LocaleKeys.tap_select.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kTextDarkPurple), + ), + VerticalSpace(10.h), + SvgPicture.asset(SVGUtils.kSvgUpload), + VerticalSpace(10.h), + Text( + LocaleKeys.mb_limit.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kTextDarkPurple), ), - GestureDetector( - onTap: () => provider.pickThumbnail(), - child: SvgPicture.asset( - SVGUtils.kSvgUpload, - colorFilter: const ColorFilter.mode(EventlyAppTheme.kWhite, BlendMode.srcIn), - )), ], ), - ) - : GestureDetector( - onTap: () => provider.pickThumbnail(), - child: Container( - width: double.infinity, - height: 180, - padding: EdgeInsets.symmetric(vertical: 20.w), - child: Column( - children: [ - Text( - LocaleKeys.tap_select.tr(), - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kTextDarkPurple), - ), - VerticalSpace(10.h), - SvgPicture.asset(SVGUtils.kSvgUpload), - VerticalSpace(10.h), - Text( - LocaleKeys.mb_limit.tr(), - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kTextDarkPurple), - ), - ], - ), - ), ), - ), + ), ), ), - const VerticalSpace(80), - BottomButtons( - onPressContinue: () { - createEventViewModel.nextPage(); - }, - onPressSaveDraft: () {}, - isContinueEnable: provider.isOverviewEnable, - ) - ], - ), + ), + const VerticalSpace(80), + BottomButtons( + onPressContinue: () { + createEventViewModel.nextPage(); + }, + onPressSaveDraft: () {}, + isContinueEnable: provider.isOverviewEnable, + ) + ], ), - ], - ), + ), + ], ), )), ); diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index dfffa389b3..fc9efab293 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -25,21 +25,17 @@ class PerksScreen extends StatefulWidget { } class _PerksScreenState extends State { - final _formKey = GlobalKey(); - @override Widget build(BuildContext context) { final createEventViewModel = context.watch(); return Scaffold( - body: LayoutBuilder( - builder: (BuildContext context, BoxConstraints constraints) => SingleChildScrollView( - child: ConstrainedBox( - constraints: BoxConstraints(minHeight: constraints.maxHeight), - child: Consumer( - builder: (_, provider, __) => Form( - key: _formKey, - child: Column( + body: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) => SingleChildScrollView( + child: ConstrainedBox( + constraints: BoxConstraints(minHeight: constraints.maxHeight), + child: Consumer( + builder: (_, provider, __) => Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ @@ -115,7 +111,9 @@ class _PerksScreenState extends State { Padding( padding: const EdgeInsets.symmetric(horizontal: 20), child: BottomButtons( - onPressContinue: () {}, + onPressContinue: () { + createEventViewModel.nextPage(); + }, onPressSaveDraft: () {}, isContinueEnable: true, ), @@ -126,7 +124,7 @@ class _PerksScreenState extends State { ), ), ), - )); + ); } } diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 97adf14b48..0631f29f4b 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -26,12 +26,10 @@ class PriceScreen extends StatefulWidget { } class _PriceScreenState extends State { - final _formKey = GlobalKey(); final ValueNotifier _numberOfTicketsFieldError = ValueNotifier(""); @override void dispose() { - _formKey.currentState?.dispose(); super.dispose(); } @@ -45,164 +43,180 @@ class _PriceScreenState extends State { final homeViewModel = context.watch(); return Scaffold( - body: SingleChildScrollView( - child: Consumer(builder: (_, provider, __) { - return Form( - key: _formKey, - child: Column( + body: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) => SingleChildScrollView( + child: ConstrainedBox( + constraints: BoxConstraints(minHeight: constraints.maxHeight), + child: Consumer(builder: (_, provider, __) { + return Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const VerticalSpace(20), - MyStepsIndicator(currentStep: homeViewModel.currentStep), - const VerticalSpace(5), - StepLabels(currentPage: homeViewModel.currentPage, currentStep: homeViewModel.currentStep), - const VerticalSpace(10), - const VerticalSpace(20), - PageAppBar( - onPressBack: () { - ScaffoldMessenger.of(context).hideCurrentSnackBar(); - homeViewModel.previousPage(); - }, - ), - ScreenResponsive( - mobileScreen: (context) => const VerticalSpace(6), - tabletScreen: (context) => const VerticalSpace(30), - ), - VerticalSpace(10.h), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - LocaleKeys.is_free_drop.tr(), - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), - ), - SizedBox( - height: 10.h, - ), - Row(children: [ - InkWell( - onTap: () { - // provider.updateIsFreeDropStatus(FreeDrop.yes); - }, - child: Container( - width: 140.w, - height: 30.h, - decoration: BoxDecoration( - color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kBlue : EventlyAppTheme.kTransparent, - border: Border.all(color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kBlue : EventlyAppTheme.kBlack, width: 2.w), - ), - child: Center( - child: Text( - LocaleKeys.yes.tr(), - style: TextStyle( - color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kWhite : EventlyAppTheme.kBlack, + Column( + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: homeViewModel.currentStep), + const VerticalSpace(5), + StepLabels(currentPage: homeViewModel.currentPage, currentStep: homeViewModel.currentStep), + const VerticalSpace(10), + const VerticalSpace(20), + PageAppBar( + onPressBack: () { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + homeViewModel.previousPage(); + }, + ), + ScreenResponsive( + mobileScreen: (context) => const VerticalSpace(6), + tabletScreen: (context) => const VerticalSpace(30), + ), + VerticalSpace(10.h), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + LocaleKeys.is_free_drop.tr(), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w700), + ), + SizedBox(height: 10.h), + Row(children: [ + InkWell( + onTap: () => provider.setFreeDrop = FreeDrop.yes, + child: Container( + width: 140.w, + height: 30.h, + decoration: BoxDecoration( + color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kBlue : EventlyAppTheme.kTransparent, + border: Border.all(color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kBlue : EventlyAppTheme.kBlack, width: 2.w), + ), + child: Center( + child: Text( + LocaleKeys.yes.tr(), + style: TextStyle( + color: provider.isFreeDrop == FreeDrop.yes ? EventlyAppTheme.kWhite : EventlyAppTheme.kBlack, + ), + ), ), ), ), - ), - ), - SizedBox( - width: 30.w, - ), - InkWell( - onTap: () {}, - child: Container( - width: 140.w, - height: 30.h, - decoration: BoxDecoration( - color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kBlue : EventlyAppTheme.kTransparent, - border: Border.all(color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kBlue : EventlyAppTheme.kBlack, width: 2.w), + SizedBox( + width: 30.w, ), - child: Center( - child: Text( - LocaleKeys.no.tr(), - style: TextStyle( - color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kWhite : EventlyAppTheme.kBlack, + InkWell( + onTap: () => provider.setFreeDrop = FreeDrop.no, + child: Container( + width: 140.w, + height: 30.h, + decoration: BoxDecoration( + color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kBlue : EventlyAppTheme.kTransparent, + border: Border.all(color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kBlue : EventlyAppTheme.kBlack, width: 2.w), + ), + child: Center( + child: Text( + LocaleKeys.no.tr(), + style: TextStyle( + color: provider.isFreeDrop == FreeDrop.no ? EventlyAppTheme.kWhite : EventlyAppTheme.kBlack, + ), + ), ), ), ), - ), - ), - ]), - if (provider.isFreeDrop != FreeDrop.unselected) - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - if (provider.isFreeDrop == FreeDrop.no) - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - VerticalSpace(20.h), - EventlyPriceInputField( - key: ValueKey("${provider.selectedDenom.name}-amount"), - inputFormatters: [FilteringTextInputFormatter.digitsOnly, LengthLimitingTextInputFormatter(kMaxPriceLength), provider.selectedDenom.getFormatter()], - controller: provider.priceController, - validator: (value) { - return null; - }, - ), - Text( - LocaleKeys.network_fee_listed_price_occur_on_chain.tr(), - style: TextStyle(color: EventlyAppTheme.kTextDarkPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), - ), - VerticalSpace(20.h), - EventlyTextField( - label: LocaleKeys.number_tickets.tr(), - controller: TextEditingController(), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), - ValueListenableBuilder( - valueListenable: _numberOfTicketsFieldError, - builder: (_, String artNameFieldError, __) { - if (artNameFieldError.isEmpty) { - return const SizedBox.shrink(); - } - return Padding( - padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), - child: Text( - artNameFieldError, - style: TextStyle( - fontSize: 12.sp, - color: Colors.red, + ]), + if (provider.isFreeDrop != FreeDrop.unselected) + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: provider.isFreeDrop == FreeDrop.no + ? [ + VerticalSpace(20.h), + EventlyPriceInputField( + key: ValueKey("${provider.selectedDenom.name}-amount"), + inputFormatters: [FilteringTextInputFormatter.digitsOnly, LengthLimitingTextInputFormatter(kMaxPriceLength), provider.selectedDenom.getFormatter()], + onChange: (_) => provider.setPrice = int.parse(_), + controller: TextEditingController(text: provider.price.toString()) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.price.toString().length), ), + ), + Text( + LocaleKeys.network_fee_listed_price_occur_on_chain.tr(), + style: TextStyle(color: EventlyAppTheme.kTextDarkPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), + ), + VerticalSpace(20.h), + EventlyTextField( + keyboardType: TextInputType.number, + label: LocaleKeys.number_tickets.tr(), + controller: TextEditingController(text: provider.numberOfTickets.toString()) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.numberOfTickets.toString().length), + ), + textCapitalization: TextCapitalization.sentences, + onChanged: (_) => _.isEmpty ? provider.setNumberOfTickets = 0 : provider.setNumberOfTickets = int.parse(_), + ), + ValueListenableBuilder( + valueListenable: _numberOfTicketsFieldError, + builder: (_, String artNameFieldError, __) { + if (artNameFieldError.isEmpty) { + return const SizedBox.shrink(); + } + return Padding( + padding: EdgeInsets.only(left: 10.w, right: 10.w, top: 2.h), + child: Text( + artNameFieldError, + style: TextStyle( + fontSize: 12.sp, + color: Colors.red, + ), + ), + ); + }, + ), + Align( + alignment: Alignment.centerRight, + child: Text( + LocaleKeys.maximum_1000.tr(), + style: TextStyle(color: EventlyAppTheme.kTextDarkPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), + textAlign: TextAlign.right, ), - ); - }, - ), - Align( - alignment: Alignment.centerRight, - child: Text( - LocaleKeys.maximum_1000.tr(), - style: TextStyle(color: EventlyAppTheme.kTextDarkPurple, fontSize: 14.sp, fontWeight: FontWeight.w800), - textAlign: TextAlign.right, - ), - ), - ], - ), - ], - ), - ScreenResponsive( - mobileScreen: (_) => VerticalSpace(0.1.sh), - tabletScreen: (_) => VerticalSpace(0.05.sh), + ), + ] + : [ + VerticalSpace(20.h), + EventlyTextField( + keyboardType: TextInputType.number, + label: LocaleKeys.number_tickets.tr(), + controller: TextEditingController(text: provider.numberOfTickets.toString()) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.numberOfTickets.toString().length), + ), + textCapitalization: TextCapitalization.sentences, + onChanged: (_) => _.isEmpty ? provider.setNumberOfTickets = 0 : provider.setNumberOfTickets = int.parse(_), + ), + ], + ), + ], ), - VerticalSpace(20.h), - BottomButtons( - onPressContinue: () {}, - onPressSaveDraft: () {}, - isContinueEnable: false, - ) - ], - ), + ), + ], ), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: BottomButtons( + onPressContinue: () {}, + onPressSaveDraft: () {}, + isContinueEnable: provider.isFreeDrop == FreeDrop.unselected + ? false + : provider.isFreeDrop == FreeDrop.yes + ? provider.numberOfTickets > 0 + : provider.numberOfTickets > 0 && provider.price > 0, + ), + ) ], - ), - ); - }), + ); + }), + ), ), - ); + )); } } diff --git a/evently/lib/widgets/evently_price_input_field.dart b/evently/lib/widgets/evently_price_input_field.dart index 636a07a14c..d6843671f8 100644 --- a/evently/lib/widgets/evently_price_input_field.dart +++ b/evently/lib/widgets/evently_price_input_field.dart @@ -11,11 +11,18 @@ import '../main.dart'; import '../models/denom.dart'; class EventlyPriceInputField extends StatelessWidget { - const EventlyPriceInputField({super.key, this.controller, this.validator, this.inputFormatters = const []}); + const EventlyPriceInputField({ + super.key, + this.controller, + this.validator, + this.inputFormatters = const [], + required this.onChange, + }); final TextEditingController? controller; final String? Function(String?)? validator; final List inputFormatters; + final ValueChanged onChange; @override Widget build(BuildContext context) { @@ -37,19 +44,28 @@ class EventlyPriceInputField extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Expanded( - child: TextFormField( - style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kTextGrey), - controller: controller, - validator: validator, - minLines: 1, - keyboardType: TextInputType.number, - inputFormatters: inputFormatters, - decoration: InputDecoration( - hintText: "\$21.99", - hintStyle: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kTextGrey), - border: const OutlineInputBorder(borderSide: BorderSide.none), - floatingLabelBehavior: FloatingLabelBehavior.always, - contentPadding: EdgeInsets.fromLTRB(10.w, 0.h, 10.w, 0.h)))), + child: TextFormField( + onChanged: (_) => onChange(_), + style: TextStyle(fontSize: 18.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kTextGrey), + controller: controller, + validator: validator, + minLines: 1, + keyboardType: TextInputType.number, + inputFormatters: inputFormatters, + decoration: InputDecoration( + hintText: "\$21.99", + hintStyle: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kTextGrey), + border: const OutlineInputBorder(borderSide: BorderSide.none), + floatingLabelBehavior: FloatingLabelBehavior.always, + contentPadding: EdgeInsets.fromLTRB( + 10.w, + 0.h, + 10.w, + 0.h, + ), + ), + ), + ), const _CurrencyDropDown() ], ), @@ -87,7 +103,6 @@ class _CurrencyDropDown extends StatelessWidget { onChanged: (String? data) { if (data != null) { final value = provider.supportedDenomList.firstWhere((denom) => denom.symbol == data); - provider.priceController.clear(); provider.setSelectedDenom(value); } }, From d18f6a0e75398b5ab79e6ba813a08294456642af Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 13 May 2024 16:25:54 +0500 Subject: [PATCH 072/158] feat: host view preview screen --- .../lib/screens/host_view_ticket_preview.dart | 344 +++++++++--------- evently/lib/screens/price_screen.dart | 4 +- 2 files changed, 176 insertions(+), 172 deletions(-) diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 08fb71519d..0cc58835c3 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -39,189 +39,191 @@ class _HostTicketPreviewState extends State { ), ), body: SingleChildScrollView( - child: ClipRRect( - borderRadius: BorderRadius.circular(10.r), - child: Container( - margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w), - decoration: BoxDecoration( - image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight), - borderRadius: BorderRadius.circular(10.r), - ), - child: Column( - children: [ - Padding( - padding: const EdgeInsets.only(), - child: ClipRRect( - borderRadius: const BorderRadius.only( - topRight: Radius.circular(14), - topLeft: Radius.circular(14), - ), - child: Stack( - alignment: Alignment.bottomLeft, - children: [ - Image.asset( - PngUtils.kPhantom, - fit: BoxFit.cover, - ), - Padding( - padding: EdgeInsets.only(bottom: 10.h, left: 10.w), - child: Text( - 'The Phantom of the Opera', - style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), - ), - ) - ], - ), - ), - ), - VerticalSpace(10.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'DATE', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Text( - 'Jul 04, 2022', - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - ], + child: Consumer( + builder: (_, provider, __) => ClipRRect( + borderRadius: BorderRadius.circular(10.r), + child: Container( + margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w), + decoration: BoxDecoration( + image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight), + borderRadius: BorderRadius.circular(10.r), + ), + child: Column( + children: [ + Padding( + padding: const EdgeInsets.only(), + child: ClipRRect( + borderRadius: const BorderRadius.only( + topRight: Radius.circular(14), + topLeft: Radius.circular(14), ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, + child: Stack( + alignment: Alignment.bottomLeft, children: [ - Text( - 'Time', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Text( - '7:15 PM', - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + Image.asset( + PngUtils.kPhantom, + fit: BoxFit.cover, ), + Padding( + padding: EdgeInsets.only(bottom: 10.h, left: 10.w), + child: Text( + provider.eventName, + style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), + ), + ) ], ), - ], + ), ), - ), - VerticalSpace(20.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'LOCATION', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - ConstrainedBox( - constraints: BoxConstraints(maxWidth: 1.sw / 2.4), - child: Text( - '245 W 44th St New York, NY 10036', + VerticalSpace(10.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'DATE', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + provider.startDate, style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - maxLines: 2, ), - ), - ], - ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'SEAT', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - '6A', - style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - Text( - 'Room 3', - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ) - ], - ), - ], - ), - ], + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'Time', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + provider.startTime, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], + ), + ], + ), ), - ), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'PERKS', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Row( - children: [ - SvgPicture.asset(SVGUtils.kDiamond), - SizedBox(width: 5.w), - Text( - 'x 3', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'LOCATION', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + ConstrainedBox( + constraints: BoxConstraints(maxWidth: 1.sw / 2.4), + child: Text( + provider.location, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + maxLines: 2, ), - SizedBox(width: 5.w), - Text( - 'Redeem', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kGreenText, fontWeight: FontWeight.bold), - ) - ], - ) - ], - ), - ], + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'SEAT', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '6A', + style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + Text( + 'Room 3', + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ) + ], + ), + ], + ), + ], + ), + ), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'PERKS', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Row( + children: [ + SvgPicture.asset(SVGUtils.kDiamond), + SizedBox(width: 5.w), + Text( + 'x ${provider.perks.length}', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), + ), + SizedBox(width: 5.w), + Text( + 'Redeem', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kGreenText, fontWeight: FontWeight.bold), + ) + ], + ) + ], + ), + ], + ), + ), + VerticalSpace(16.h), + Image.asset(PngUtils.kDottedLine), + VerticalSpace(40.h), + Text( + 'Scan QR to enter', + style: TextStyle( + color: EventlyAppTheme.kWhite, + fontWeight: FontWeight.bold, + fontSize: 15.sp, + ), ), - ), - VerticalSpace(16.h), - Image.asset(PngUtils.kDottedLine), - VerticalSpace(40.h), - Text( - 'Scan QR to enter', - style: TextStyle( - color: EventlyAppTheme.kWhite, - fontWeight: FontWeight.bold, - fontSize: 15.sp, + VerticalSpace(10.h), + Container( + decoration: const BoxDecoration(color: EventlyAppTheme.kBlack), + width: 338, + height: 338, ), - ), - VerticalSpace(10.h), - Container( - decoration: const BoxDecoration(color: EventlyAppTheme.kBlack), - width: 338, - height: 338, - ), - SizedBox(height: 20.h), - ], + SizedBox(height: 20.h), + ], + ), ), ), ), diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 0631f29f4b..3db25b2b1d 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -203,7 +203,9 @@ class _PriceScreenState extends State { Padding( padding: EdgeInsets.symmetric(horizontal: 20.w), child: BottomButtons( - onPressContinue: () {}, + onPressContinue: () { + homeViewModel.nextPage(); + }, onPressSaveDraft: () {}, isContinueEnable: provider.isFreeDrop == FreeDrop.unselected ? false From 84ae254125779e10795bf9babf5ec8d52844ffbf Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 13 May 2024 16:30:26 +0500 Subject: [PATCH 073/158] feat: publish button enable --- evently/i18n/de.json | 3 ++- evently/i18n/en-US.json | 3 ++- evently/i18n/es.json | 3 ++- evently/i18n/ru-RU.json | 3 ++- evently/lib/generated/locale_keys.g.dart | 2 ++ .../screens/custom_widgets/bottom_buttons.dart | 4 +++- evently/lib/screens/host_view_ticket_preview.dart | 15 +++++++++++---- 7 files changed, 24 insertions(+), 9 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 756503c09a..f02d08ce0c 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -56,5 +56,6 @@ "start": "Anfang", "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", - "free_drink": "1 free drink" + "free_drink": "1 free drink", + "publish" : "Publish" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 6cef40ae5f..9c6a3d4733 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -56,5 +56,6 @@ "start": "Start", "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", - "free_drink": "1 free drink" + "free_drink": "1 free drink", + "publish" : "Publish" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 56fb8558b1..4a4084f507 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -56,5 +56,6 @@ "start": "Comienzo", "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", - "free_drink": "1 free drink" + "free_drink": "1 free drink", + "publish" : "Publish" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 0cfb75ca3d..e584dea16b 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -56,5 +56,6 @@ "start": "Начинать", "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", - "free_drink": "1 free drink" + "free_drink": "1 free drink", + "publish" : "Publish" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 6f4dadf90c..03d9acb19a 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -56,5 +56,7 @@ abstract class LocaleKeys { static const open_pylons_app = 'open_pylons_app'; static const create_stripe_description = 'create_stripe_description'; static const start = 'start'; + static const free_gift = 'free_gift'; + static const free_drink = 'free_drink'; } diff --git a/evently/lib/screens/custom_widgets/bottom_buttons.dart b/evently/lib/screens/custom_widgets/bottom_buttons.dart index ef09ff97f8..6c8809be16 100644 --- a/evently/lib/screens/custom_widgets/bottom_buttons.dart +++ b/evently/lib/screens/custom_widgets/bottom_buttons.dart @@ -12,18 +12,20 @@ class BottomButtons extends StatelessWidget { required this.onPressContinue, required this.onPressSaveDraft, required this.isContinueEnable, + this.clipBtnTxt, }); final VoidCallback onPressContinue; final VoidCallback onPressSaveDraft; final bool isContinueEnable; + final String? clipBtnTxt; @override Widget build(BuildContext context) { return Column( children: [ ClippedButton( - title: LocaleKeys.continue_key.tr(), + title: clipBtnTxt ?? LocaleKeys.continue_key.tr(), bgColor: isContinueEnable ? EventlyAppTheme.kBlue : EventlyAppTheme.kGery03, textColor: EventlyAppTheme.kWhite, onPressed: () { diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 0cc58835c3..65dc35e0cd 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -32,10 +32,17 @@ class _HostTicketPreviewState extends State { bottomNavigationBar: Container( padding: EdgeInsets.symmetric(horizontal: 30.w), height: 110.h, - child: BottomButtons( - onPressContinue: () {}, - onPressSaveDraft: () {}, - isContinueEnable: false, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + BottomButtons( + onPressContinue: () {}, + onPressSaveDraft: () {}, + isContinueEnable: true, + clipBtnTxt: LocaleKeys.publish.tr(), + ), + ], ), ), body: SingleChildScrollView( From 7654d271298bd4d9f356cb76a20177959d38c214 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 13 May 2024 17:17:36 +0500 Subject: [PATCH 074/158] feat: publish button --- evently/lib/screens/host_view_ticket_preview.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 65dc35e0cd..e2ccd8e32d 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -37,7 +37,9 @@ class _HostTicketPreviewState extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ BottomButtons( - onPressContinue: () {}, + onPressContinue: () { + onPublishPressed(); + }, onPressSaveDraft: () {}, isContinueEnable: true, clipBtnTxt: LocaleKeys.publish.tr(), From 3b1780635eab291eed4134a83b9287e065084cba Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 14 May 2024 15:30:05 +0500 Subject: [PATCH 075/158] feat: dart sdk from ../dart_sdk --- .../lib/screens/host_view_ticket_preview.dart | 1 - evently/lib/screens/overview_screen.dart | 11 +-- evently/pubspec.lock | 77 +++++++------------ evently/pubspec.yaml | 10 ++- 4 files changed, 38 insertions(+), 61 deletions(-) diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index e2ccd8e32d..c5e25ad33a 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -7,7 +7,6 @@ import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; -import 'package:evently/widgets/pylon_loading_animation.dart'; import 'package:evently/widgets/show_wallet_install_dialog.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 1e321ece31..0a1d3e8b55 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -101,11 +101,12 @@ class _OverViewScreenState extends State { width: double.infinity, ), GestureDetector( - onTap: () => provider.pickThumbnail(), - child: SvgPicture.asset( - SVGUtils.kSvgUpload, - colorFilter: const ColorFilter.mode(EventlyAppTheme.kWhite, BlendMode.srcIn), - )), + onTap: () => provider.pickThumbnail(), + child: SvgPicture.asset( + SVGUtils.kSvgUpload, + color: EventlyAppTheme.kWhite, + ), + ), ], ), ) diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 09c999facf..9d93b09ee9 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -33,14 +33,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.11.0" - bitstream: - dependency: transitive - description: - name: bitstream - sha256: "19a6b9f2d148010ae0c4149294cb1ad89cc212af961956dc4d2e931e0eadf963" - url: "https://pub.dev" - source: hosted - version: "1.1.0" boolean_selector: dependency: transitive description: @@ -311,10 +303,18 @@ packages: dependency: "direct main" description: name: flutter_svg - sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2" + sha256: "6ff9fa12892ae074092de2fa6a9938fb21dbabfdaa2ff57dc697ff912fc8d4b2" + url: "https://pub.dev" + source: hosted + version: "1.1.6" + flutter_svg_provider: + dependency: "direct main" + description: + name: flutter_svg_provider + sha256: cbb2d02fd9feb70fc30221fc36a7ee5347f1cceae6b0c99ab4fa011bbd9f1f7f url: "https://pub.dev" source: hosted - version: "2.0.10+1" + version: "1.0.3" flutter_test: dependency: "direct dev" description: flutter @@ -353,10 +353,10 @@ packages: dependency: "direct main" description: name: google_fonts - sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82 + sha256: "6b6f10f0ce3c42f6552d1c70d2c28d764cf22bb487f50f66cca31dcd5194f4d6" url: "https://pub.dev" source: hosted - version: "6.2.1" + version: "4.0.4" graphs: dependency: transitive description: @@ -369,10 +369,10 @@ packages: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "0.13.6" http_multi_server: dependency: transitive description: @@ -393,26 +393,26 @@ packages: dependency: "direct main" description: name: image_cropper - sha256: db779a8b620cd509874cb0e2a8bdc8649177f8f5ca46c13273ceaffe071e3f4a + sha256: "542c3453109d16bcc388e43ae2276044d2cd6a6d20c68bdcff2c94ab9363ea15" url: "https://pub.dev" source: hosted - version: "6.0.0" + version: "4.0.1" image_cropper_for_web: dependency: transitive description: name: image_cropper_for_web - sha256: ba67de40a98b3294084eed0b025b557cb594356e1171c9a830b340527dbd5e5f + sha256: "89c936aa772a35b69ca67b78049ae9fa163a4fb8da2f6dee3893db8883fb49d2" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "2.0.0" image_cropper_platform_interface: dependency: transitive description: name: image_cropper_platform_interface - sha256: ee160d686422272aa306125f3b6fb1c1894d9b87a5e20ed33fa008e7285da11e + sha256: b232175c132b2f7ede3e1f101652bcd635cb4079a77c6dded8e6d32e6578d685 url: "https://pub.dev" source: hosted - version: "5.0.0" + version: "4.0.0" injectable: dependency: "direct main" description: @@ -449,10 +449,10 @@ packages: dependency: transitive description: name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 url: "https://pub.dev" source: hosted - version: "0.7.1" + version: "0.6.7" json_annotation: dependency: transitive description: @@ -688,10 +688,9 @@ packages: pylons_sdk: dependency: "direct main" description: - name: pylons_sdk - sha256: "448b4a88a7ac578918f856e283a34c8cfdb14709e626a5ae3f6c2fddab2d8c3b" - url: "https://pub.dev" - source: hosted + path: "../dart_sdk" + relative: true + source: path version: "0.1.4" rational: dependency: transitive @@ -962,30 +961,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.1" - vector_graphics: - dependency: transitive - description: - name: vector_graphics - sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3" - url: "https://pub.dev" - source: hosted - version: "1.1.11+1" - vector_graphics_codec: - dependency: transitive - description: - name: vector_graphics_codec - sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da - url: "https://pub.dev" - source: hosted - version: "1.1.11+1" - vector_graphics_compiler: - dependency: transitive - description: - name: vector_graphics_compiler - sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81" - url: "https://pub.dev" - source: hosted - version: "1.1.11+1" vector_math: dependency: transitive description: @@ -1060,4 +1035,4 @@ packages: version: "3.1.2" sdks: dart: ">=3.3.4 <4.0.0" - flutter: ">=3.19.2" + flutter: ">=3.19.0" diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index 557eef9e4d..b91c6f749d 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -37,8 +37,10 @@ dependencies: cupertino_icons: ^1.0.6 easy_localization: ^3.0.6 flutter_screenutil: ^5.9.0 - google_fonts: ^6.2.1 - flutter_svg: ^2.0.10+1 + google_fonts: ^4.0.3 + image_cropper: ^4.0.1 + flutter_svg: ^1.0.3 + flutter_svg_provider: ^1.0.3 get_it: ^7.7.0 injectable_generator: ^2.6.1 build_runner: ^2.4.9 @@ -47,10 +49,10 @@ dependencies: steps_indicator: ^1.3.0 dotted_border: ^2.1.0 file_picker: ^5.0.1 - image_cropper: ^6.0.0 equatable: ^2.0.5 dartz: ^0.10.1 - pylons_sdk: ^0.1.4 + pylons_sdk: + path: ../dart_sdk shared_preferences: ^2.2.3 dev_dependencies: From f97b64a1522e8e31f5267ab4f65f4794115a2b7b Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 14 May 2024 15:43:35 +0500 Subject: [PATCH 076/158] feat: get profile using local dart_sdk --- wallet/lib/ipc/handler/handlers/get_profile_handler.dart | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/wallet/lib/ipc/handler/handlers/get_profile_handler.dart b/wallet/lib/ipc/handler/handlers/get_profile_handler.dart index 36628b2e9b..6047110b79 100644 --- a/wallet/lib/ipc/handler/handlers/get_profile_handler.dart +++ b/wallet/lib/ipc/handler/handlers/get_profile_handler.dart @@ -8,7 +8,6 @@ import 'package:pylons_wallet/model/balance.dart'; import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/client/pylons/item.pb.dart'; import 'package:pylons_wallet/stores/wallet_store.dart'; - class GetProfileHandler implements BaseHandler { @override SdkIpcMessage sdkIpcMessage; @@ -38,13 +37,7 @@ class Profile { final List items; final List supportedCoins; - Profile( - {required this.address, - required this.username, - required this.coins, - required this.stripeExists, - required this.items, - required this.supportedCoins}); + Profile({required this.address, required this.username, required this.coins, required this.stripeExists, required this.items, required this.supportedCoins}); Map toJson() => { "address": address, From f0be14fa4febfcd90e31a97fd5b4d548c763ba99 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 14 May 2024 15:44:14 +0500 Subject: [PATCH 077/158] feat: get profile using loacal dart sdk --- evently/lib/screens/host_view_ticket_preview.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index c5e25ad33a..30b79c033e 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -270,14 +270,14 @@ class _HostTicketPreviewState extends State { return; } - final bool isRecipeCreated = await viewModel.createRecipe(event: viewModel.event); - pylonsLoadingAnimation.hide(); - if (!isRecipeCreated) { - return; - } + // final bool isRecipeCreated = await viewModel.createRecipe(event: viewModel.event); + // pylonsLoadingAnimation.hide(); + // if (!isRecipeCreated) { + // return; + // } navigator.popUntil((route) { - return route.settings.name == RouteUtil.kCreateEvent; + return route.settings.name == RouteUtil.kRouteEventHub; }); } From 1431fb1ad83cbc311faa69642429f0a77b947743 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Wed, 15 May 2024 10:21:33 +0500 Subject: [PATCH 078/158] feat: receipe creation --- evently/lib/evently_provider.dart | 4 - evently/lib/models/events.dart | 114 +++++++++++++++++- .../lib/screens/host_view_ticket_preview.dart | 10 +- evently/lib/utils/constants.dart | 20 +++ 4 files changed, 137 insertions(+), 11 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index c00b2cc4c4..416b96935f 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -227,10 +227,6 @@ class EventlyProvider extends ChangeNotifier { final isCookBookCreated = await createCookbook(); if (isCookBookCreated) { - // this delay is added to wait the transaction is settle - // on the blockchain - Future.delayed(const Duration(milliseconds: 800)); - // get device cookbook id _cookbookId = repository.getCookbookId(); notifyListeners(); } else { diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 9b1d884f74..4a57fd6e05 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,8 +1,15 @@ + + +import 'package:evently/evently_provider.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:pylons_sdk/low_level.dart'; +import 'package:fixnum/fixnum.dart'; + class Event { Event({ required this.eventName, required this.hostName, - required this.url, + required this.thumbnail, required this.startDate, required this.endDate, required this.startTime, @@ -19,7 +26,7 @@ class Event { final String hostName; - final String url; + final String thumbnail; final String startDate; @@ -40,4 +47,107 @@ class Event { final String price; final List listOfPerks; + + +} + + + +extension CreateRecipe on Event { + Recipe createRecipe({ + required String cookbookId, + required String recipeId, + required FreeDrop isFreeDrop, + required String symbol, + required List hashtagsList, + required String tradePercentage, + required String price, + }) { + return Recipe( + cookbookId: cookbookId, + id: recipeId, + nodeVersion: Int64(1), + name: eventName.trim(), + description: description.trim(), + version: kVersion, + coinInputs: [ + if (isFreeDrop == FreeDrop.yes) + CoinInput() + else + CoinInput( + coins: [Coin(amount: price, denom: symbol)], + ) + ], + itemInputs: [], + costPerBlock: Coin(denom: kUpylon, amount: costPerBlock), + entries: EntriesList( + coinOutputs: [], + itemOutputs: [ + ItemOutput( + id: kEventlyEvent, + doubles: [ + DoubleParam( + key: kResidual, + weightRanges: [ + DoubleWeightRange( + lower: tradePercentage, + upper: tradePercentage, + weight: Int64(1), + ) + ], + ) + ], + longs: [ + LongParam( + key: kQuantity, + weightRanges: [ + IntWeightRange( + lower: Int64(int.parse(numberOfTickets.replaceAll(",", "").trim())), + upper: Int64(int.parse(numberOfTickets.replaceAll(",", "").trim())), + weight: Int64(1), + ) + ], + ), + LongParam(key: kWidth, weightRanges: [_buildIntWeightRange(upperRange: width, lowerRange: width)]), + LongParam(key: kHeight, weightRanges: [_buildIntWeightRange(upperRange: height, lowerRange: height)]), + LongParam( + key: kDuration, weightRanges: [_buildIntWeightRange(upperRange: duration, lowerRange: duration)]), + ], + strings: [ + StringParam(key: kName, value: name.trim()), + StringParam(key: kAppType, value: kEasel), + StringParam(key: kDescription, value: description.trim()), + StringParam( + key: kHashtags, + value: hashtagsList.join(kHashtagSymbol), + ), + StringParam(key: kNFTFormat, value: assetType), + StringParam(key: kNFTURL, value: url), + StringParam(key: kThumbnailUrl, value: thumbnailUrl), + StringParam(key: kCreator, value: creator.trim()), + StringParam(key: kFileExtension, value: fileExtension.trim()), + StringParam(key: kCID, value: cid), + StringParam(key: kFileSize, value: fileSize), + StringParam(key: kRealWorld, value: "false"), + ], + mutableStrings: [], + transferFee: [Coin(denom: kPylonSymbol, amount: transferFeeAmount)], + tradePercentage: tradePercentage, + tradeable: true, + amountMinted: Int64(), + quantity: Int64(int.parse(quantity.replaceAll(",", "").trim())), + ), + ], + itemModifyOutputs: [], + ), + outputs: [ + WeightedOutputs(entryIds: [kEaselNFT], weight: Int64(1)) + ], + blockInterval: Int64(), + enabled: true, + // extraInfo: kExtraInfo, + ); + } + + } diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 30b79c033e..348f15846b 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -270,11 +270,11 @@ class _HostTicketPreviewState extends State { return; } - // final bool isRecipeCreated = await viewModel.createRecipe(event: viewModel.event); - // pylonsLoadingAnimation.hide(); - // if (!isRecipeCreated) { - // return; - // } + final bool isRecipeCreated = await viewModel.createRecipe(event: viewModel.event); + pylonsLoadingAnimation.hide(); + if (!isRecipeCreated) { + return; + } navigator.popUntil((route) { return route.settings.name == RouteUtil.kRouteEventHub; diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 956c4119e4..37c2a70a02 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -51,6 +51,26 @@ const kFreeShirt = "free_shirt"; const kFreeGift = "free_gift"; const kFreeDrink = "free_drink"; +const kVersion = "v0.2.0"; +const kUpylon = "upylon"; +const String costPerBlock = '0'; +const kEventlyEvent = "Evently_Event"; +const kResidual = "Residual"; +const kQuantity = "Quantity"; +const String transferFeeAmount = '1'; +const kEaselNFT = "Easel_NFT"; + +/// Event String keys +const kEventName = ""; +const kEventHostName = ""; +const kThumbnail = ""; +const kStartDate = ""; +const kEndDate = ""; +const kStartTime = ""; +const kEndTime = ""; + + + /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; From 05196847d3c0050b11b1078ac47ab5e02347f670 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 15 May 2024 10:46:34 +0500 Subject: [PATCH 079/158] feat: placing every data in Item input list of strings --- evently/lib/evently_provider.dart | 8 ++++ evently/lib/models/events.dart | 73 +++++++------------------------ evently/lib/utils/constants.dart | 23 +++++----- 3 files changed, 36 insertions(+), 68 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 416b96935f..af05e9aea4 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -235,6 +235,14 @@ class EventlyProvider extends ChangeNotifier { } _recipeId = repository.autoGenerateEventlyId(); + event.createRecipe( + cookbookId: _cookbookId!, + recipeId: _recipeId, + isFreeDrop: isFreeDrop, + symbol: selectedDenom.symbol, + hashtagsList: perks, + price: price, + ); return Future.value(true); } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 4a57fd6e05..fc9e0290d7 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,6 +1,5 @@ - - import 'package:evently/evently_provider.dart'; +import 'package:evently/models/perks_model.dart'; import 'package:evently/utils/constants.dart'; import 'package:pylons_sdk/low_level.dart'; import 'package:fixnum/fixnum.dart'; @@ -47,20 +46,15 @@ class Event { final String price; final List listOfPerks; - - } - - extension CreateRecipe on Event { Recipe createRecipe({ required String cookbookId, required String recipeId, required FreeDrop isFreeDrop, required String symbol, - required List hashtagsList, - required String tradePercentage, + required List hashtagsList, required String price, }) { return Recipe( @@ -85,69 +79,34 @@ extension CreateRecipe on Event { itemOutputs: [ ItemOutput( id: kEventlyEvent, - doubles: [ - DoubleParam( - key: kResidual, - weightRanges: [ - DoubleWeightRange( - lower: tradePercentage, - upper: tradePercentage, - weight: Int64(1), - ) - ], - ) - ], - longs: [ - LongParam( - key: kQuantity, - weightRanges: [ - IntWeightRange( - lower: Int64(int.parse(numberOfTickets.replaceAll(",", "").trim())), - upper: Int64(int.parse(numberOfTickets.replaceAll(",", "").trim())), - weight: Int64(1), - ) - ], - ), - LongParam(key: kWidth, weightRanges: [_buildIntWeightRange(upperRange: width, lowerRange: width)]), - LongParam(key: kHeight, weightRanges: [_buildIntWeightRange(upperRange: height, lowerRange: height)]), - LongParam( - key: kDuration, weightRanges: [_buildIntWeightRange(upperRange: duration, lowerRange: duration)]), - ], + doubles: [], + longs: [], strings: [ - StringParam(key: kName, value: name.trim()), - StringParam(key: kAppType, value: kEasel), + StringParam(key: kEventName, value: eventName.trim()), + StringParam(key: kEventHostName, value: hostName.trim()), + StringParam(key: kEventHostName, value: thumbnail.trim()), + StringParam(key: kStartDate, value: startDate.trim()), + StringParam(key: kEndDate, value: endDate.trim()), + StringParam(key: kStartTime, value: startTime.trim()), + StringParam(key: kEndTime, value: endTime.trim()), + StringParam(key: kLocation, value: location.trim()), StringParam(key: kDescription, value: description.trim()), - StringParam( - key: kHashtags, - value: hashtagsList.join(kHashtagSymbol), - ), - StringParam(key: kNFTFormat, value: assetType), - StringParam(key: kNFTURL, value: url), - StringParam(key: kThumbnailUrl, value: thumbnailUrl), - StringParam(key: kCreator, value: creator.trim()), - StringParam(key: kFileExtension, value: fileExtension.trim()), - StringParam(key: kCID, value: cid), - StringParam(key: kFileSize, value: fileSize), - StringParam(key: kRealWorld, value: "false"), + StringParam(key: kPerks, value: kPerks.trim()), + StringParam(key: kNumberOfTickets, value: numberOfTickets.trim()), + StringParam(key: kPrice, value: price.trim()), ], mutableStrings: [], transferFee: [Coin(denom: kPylonSymbol, amount: transferFeeAmount)], - tradePercentage: tradePercentage, tradeable: true, amountMinted: Int64(), - quantity: Int64(int.parse(quantity.replaceAll(",", "").trim())), ), ], itemModifyOutputs: [], ), - outputs: [ - WeightedOutputs(entryIds: [kEaselNFT], weight: Int64(1)) - ], + outputs: [], blockInterval: Int64(), enabled: true, // extraInfo: kExtraInfo, ); } - - } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 37c2a70a02..72a691d8c5 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -45,7 +45,6 @@ const kCookbookId = 'cookbook_id'; const kUsername = 'username'; const kHostName = 'artistName'; - ///perks const kFreeShirt = "free_shirt"; const kFreeGift = "free_gift"; @@ -58,18 +57,20 @@ const kEventlyEvent = "Evently_Event"; const kResidual = "Residual"; const kQuantity = "Quantity"; const String transferFeeAmount = '1'; -const kEaselNFT = "Easel_NFT"; /// Event String keys -const kEventName = ""; -const kEventHostName = ""; -const kThumbnail = ""; -const kStartDate = ""; -const kEndDate = ""; -const kStartTime = ""; -const kEndTime = ""; - - +const kEventName = "kEventName"; +const kEventHostName = "kEventHostName"; +const kThumbnail = "kThumbnail"; +const kStartDate = "kStartDate"; +const kEndDate = "kEndDate"; +const kStartTime = "kStartTime"; +const kEndTime = "kEndTime"; +const kLocation = "kLocation"; +const kDescription = "kDescription"; +const kPerks = "kPerks"; +const kNumberOfTickets = "kNumberOfTickets"; +const kPrice = "kPrice"; /// ```SVG assets class SVGUtils { From f20be2f636c259c6609b5994a0bed8be9d5cf719 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 15 May 2024 11:45:10 +0500 Subject: [PATCH 080/158] feat: toString --- evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/evently_provider.dart | 38 ++++++++++++++++--- evently/lib/generated/locale_keys.g.dart | 1 + evently/lib/models/events.dart | 2 +- evently/lib/models/perks_model.dart | 5 +++ .../lib/screens/host_view_ticket_preview.dart | 2 +- evently/lib/utils/constants.dart | 3 ++ 10 files changed, 51 insertions(+), 12 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index f02d08ce0c..b140eac4eb 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -57,5 +57,6 @@ "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", "free_drink": "1 free drink", - "publish" : "Publish" + "publish" : "Publish", + "recipe_created": "Recipe созданный" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 9c6a3d4733..53e3d3bd59 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -57,5 +57,6 @@ "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", "free_drink": "1 free drink", - "publish" : "Publish" + "publish" : "Publish", + "recipe_created": "Recipe created" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 4a4084f507..a539f4f67c 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -57,5 +57,6 @@ "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", "free_drink": "1 free drink", - "publish" : "Publish" + "publish" : "Publish", + "recipe_created": "Recipe creada" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index e584dea16b..706db0ce31 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -57,5 +57,6 @@ "free_shirt": "1 free t-shirt", "free_gift": "Free Gift", "free_drink": "1 free drink", - "publish" : "Publish" + "publish" : "Publish", + "recipe_created": "Recipe созданный" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index af05e9aea4..eae5102946 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -190,7 +190,7 @@ class EventlyProvider extends ChangeNotifier { String currentUserName = ""; bool stripeAccountExists = false; - late Event event; + String? _cookbookId; String _recipeId = ""; @@ -215,8 +215,8 @@ class EventlyProvider extends ChangeNotifier { return sdkResponse; } - Future createRecipe({required Event event}) async { - final scaffoldMessengerState = navigatorKey.getState(); + Future createRecipe() async { + // final scaffoldMessengerState = navigatorKey.getState(); _cookbookId = repository.getCookbookId(); @@ -235,16 +235,42 @@ class EventlyProvider extends ChangeNotifier { } _recipeId = repository.autoGenerateEventlyId(); - event.createRecipe( + + final event = Event( + eventName: eventName, + hostName: hostName, + thumbnail: thumbnail!.path, + startDate: startDate, + endDate: endDate, + startTime: startTime, + endTime: endTime, + location: location, + description: description, + isFreeDrop: isFreeDrop, + numberOfTickets: numberOfTickets, + price: price, + listOfPerks: perks.map((e) => e.toString()).toList()); + + final recipe = event.createRecipe( cookbookId: _cookbookId!, recipeId: _recipeId, isFreeDrop: isFreeDrop, symbol: selectedDenom.symbol, - hashtagsList: perks, + perksList: perks, price: price, ); - return Future.value(true); + final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); + + if (!response.success) { + // scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); + return false; + } + // scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); + // final nftFromRecipe = NFT.fromRecipe(recipe); + // GetIt.I.get<>().updatePublishedNFTList(nft: nftFromRecipe); + // deleteNft(nft.id); + return false; } /// send createCookBook tx message to the wallet app diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 03d9acb19a..a79682b06a 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -58,5 +58,6 @@ abstract class LocaleKeys { static const start = 'start'; static const free_gift = 'free_gift'; static const free_drink = 'free_drink'; + static const recipe_created = 'recipe_created'; } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index fc9e0290d7..c092c61c8b 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -54,7 +54,7 @@ extension CreateRecipe on Event { required String recipeId, required FreeDrop isFreeDrop, required String symbol, - required List hashtagsList, + required List perksList, required String price, }) { return Recipe( diff --git a/evently/lib/models/perks_model.dart b/evently/lib/models/perks_model.dart index ef148513e7..bc9d10c233 100644 --- a/evently/lib/models/perks_model.dart +++ b/evently/lib/models/perks_model.dart @@ -13,4 +13,9 @@ class PerksModel { name: perksModel.name, description: description, ); + + @override + String toString() { + return 'PerksModel{name: $name, description: $description}'; + } } diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 348f15846b..8ac54606b0 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -270,7 +270,7 @@ class _HostTicketPreviewState extends State { return; } - final bool isRecipeCreated = await viewModel.createRecipe(event: viewModel.event); + final bool isRecipeCreated = await viewModel.createRecipe(); pylonsLoadingAnimation.hide(); if (!isRecipeCreated) { return; diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 72a691d8c5..c30adf8dd3 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -72,6 +72,9 @@ const kPerks = "kPerks"; const kNumberOfTickets = "kNumberOfTickets"; const kPrice = "kPrice"; +const kErrRecipe = 'Recipe error :'; + + /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; From 407981ca5686ed670c4954972c5b8ad35b144301 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 15 May 2024 15:19:30 +0500 Subject: [PATCH 081/158] feat: quick node for thumbnail uploading --- evently/.gitignore | 2 + .../third_party_services/quick_node.dart | 131 ++++++++++++++++++ evently/lib/utils/di/register_modules.dart | 4 + evently/pubspec.lock | 8 ++ evently/pubspec.yaml | 1 + 5 files changed, 146 insertions(+) create mode 100644 evently/lib/services/third_party_services/quick_node.dart diff --git a/evently/.gitignore b/evently/.gitignore index 29a3a5017f..392bfbbe7a 100644 --- a/evently/.gitignore +++ b/evently/.gitignore @@ -41,3 +41,5 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release + +lib/env.dart diff --git a/evently/lib/services/third_party_services/quick_node.dart b/evently/lib/services/third_party_services/quick_node.dart new file mode 100644 index 0000000000..d4739795dd --- /dev/null +++ b/evently/lib/services/third_party_services/quick_node.dart @@ -0,0 +1,131 @@ +import 'dart:async'; + +import 'package:dio/dio.dart'; +import 'package:evently/env.dart'; +import 'package:injectable/injectable.dart'; + +typedef OnUploadProgressCallback = void Function(UploadProgress uploadProgress); + +class UploadProgress { + int totalSize; + int sendSize; + double uploadedProgressData; + + UploadProgress({ + required this.totalSize, + required this.sendSize, + required this.uploadedProgressData, + }); +} + +abstract class QuickNode { + /// Upload a new object to IPFS and pins it for permanent storage on the network. + /// [UploadIPFSInput] as an input + /// [UploadIPFSOutput] as an output + Future uploadNewObjectToIPFS({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}); + + /// these are the list of extension required + static List listOfQuickNodeAllowedExtension() => ['jpg', 'png', 'heif', 'jpeg', 'gif']; + + /// this method is used to get the content type while making request input to quick node + static String getContentType(String fileExtension) { + final dict = { + ///* images + "jpg": "image/jpg", + "png": "image/png", + 'heif': "image/heif", + 'jpeg': "image/jpeg", + 'gif': "image/gif", + }; + return dict[fileExtension]!; + } +} + +@LazySingleton(as: QuickNode) +class QuickNodeImpl extends QuickNode { + QuickNodeImpl({required this.httpClient}); + + final Dio httpClient; + + @override + Future uploadNewObjectToIPFS({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}) async { + try { + httpClient.options.headers['x-api-key'] = xApiKey; + + final response = await httpClient.post( + 'https://api.quicknode.com/ipfs/rest/v1/s3/put-object', + data: FormData.fromMap({ + 'Body': await MultipartFile.fromFile(uploadIPFSInput.filePath), + 'Key': uploadIPFSInput.fileName, + 'ContentType': uploadIPFSInput.contentType, + }), + onSendProgress: (uploaded, total) { + final double uploadedPercentage = uploaded / total; + onUploadProgressCallback( + UploadProgress(totalSize: total, sendSize: uploaded, uploadedProgressData: uploadedPercentage), + ); + }, + ); + + final uploadIPFSOutput = UploadIPFSOutput.fromJson(response.data as Map); + + // return //StorageResponseModel.fromQuickNode(uploadIPFSOutput: uploadIPFSOutput); + } catch (e) { + throw Exception('Failed to upload file: $e'); + } + } +} + +class UploadIPFSInput { + final String fileName; + final String filePath; + final String contentType; + + UploadIPFSInput({ + required this.fileName, + required this.filePath, + required this.contentType, + }); +} + +class UploadIPFSOutput { + final String? requestId; + final String? status; + final String? created; + final Pin? pin; + final Info? info; + final List? delegates; + + UploadIPFSOutput({this.requestId, this.status, this.created, this.pin, this.info, this.delegates}); + + factory UploadIPFSOutput.fromJson(Map json) { + return UploadIPFSOutput( + requestId: json['requestid'] as String?, + status: json['status'] as String?, + created: json['created'] as String?, + pin: Pin.fromJson(json['pin'] as Map), + info: Info.fromJson(json['info'] as Map), + delegates: [], + ); + } +} + +class Pin { + String? cid; + String? name; + + Pin({this.cid, this.name}); + + factory Pin.fromJson(Map json) => Pin( + cid: json['cid'] as String?, + name: json['name'] as String?, + ); +} + +class Info { + final String? size; + + Info({this.size}); + + factory Info.fromJson(Map json) => Info(size: json['size'] as String?); +} diff --git a/evently/lib/utils/di/register_modules.dart b/evently/lib/utils/di/register_modules.dart index 7eafd2668e..43af19d53a 100644 --- a/evently/lib/utils/di/register_modules.dart +++ b/evently/lib/utils/di/register_modules.dart @@ -3,6 +3,7 @@ // Injectable is a convenient code generator for get_it. // All you have to do now is annotate your injectable classes with @injectable and let the generator do the work. // This class is use to generate code to register objects on app start +import 'package:dio/dio.dart'; import 'package:file_picker/file_picker.dart'; import 'package:image_cropper/image_cropper.dart'; import 'package:injectable/injectable.dart'; @@ -14,4 +15,7 @@ abstract class RegisterModule { @LazySingleton() FilePicker get filePicker => FilePicker.platform; + + @LazySingleton() + Dio get dio => Dio(); } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 9d93b09ee9..a27085d01f 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -193,6 +193,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.3" + dio: + dependency: "direct main" + description: + name: dio + sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5" + url: "https://pub.dev" + source: hosted + version: "5.4.3+1" dotted_border: dependency: "direct main" description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index b91c6f749d..68e089ac9f 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -54,6 +54,7 @@ dependencies: pylons_sdk: path: ../dart_sdk shared_preferences: ^2.2.3 + dio: ^5.4.3+1 dev_dependencies: flutter_test: From 0ce678dae191a01225df9ca8790e1875d26a8695 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 15 May 2024 16:09:55 +0500 Subject: [PATCH 082/158] feat: repositoty and remote data sources for the uploading thumbnail --- evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/generated/locale_keys.g.dart | 1 + .../lib/models/storage_response_model.dart | 111 ++++++++++++++++++ evently/lib/repository/repository.dart | 22 +++- .../datasources/remote_datasource.dart | 23 ++++ .../third_party_services/quick_node.dart | 10 +- evently/lib/utils/di/di.config.dart | 39 +++--- evently/lib/utils/failure/failure.dart | 7 ++ 11 files changed, 199 insertions(+), 26 deletions(-) create mode 100644 evently/lib/models/storage_response_model.dart create mode 100644 evently/lib/services/datasources/remote_datasource.dart diff --git a/evently/i18n/de.json b/evently/i18n/de.json index b140eac4eb..7429990434 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -58,5 +58,6 @@ "free_gift": "Free Gift", "free_drink": "1 free drink", "publish" : "Publish", - "recipe_created": "Recipe созданный" + "recipe_created": "Recipe созданный", + "update_failed": "Upload Fehlgeschlagen" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 53e3d3bd59..6e7cda9719 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -58,5 +58,6 @@ "free_gift": "Free Gift", "free_drink": "1 free drink", "publish" : "Publish", - "recipe_created": "Recipe created" + "recipe_created": "Recipe created", + "update_failed": "Upload Failed" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index a539f4f67c..4d4f7ac878 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -58,5 +58,6 @@ "free_gift": "Free Gift", "free_drink": "1 free drink", "publish" : "Publish", - "recipe_created": "Recipe creada" + "recipe_created": "Recipe creada", + "update_failed": "Subida ha fallado" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 706db0ce31..5699723f32 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -58,5 +58,6 @@ "free_gift": "Free Gift", "free_drink": "1 free drink", "publish" : "Publish", - "recipe_created": "Recipe созданный" + "recipe_created": "Recipe созданный", + "update_failed": "Загрузка не удалась" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index a79682b06a..561dcc6fd1 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -59,5 +59,6 @@ abstract class LocaleKeys { static const free_gift = 'free_gift'; static const free_drink = 'free_drink'; static const recipe_created = 'recipe_created'; + static const update_failed = 'update_failed'; } diff --git a/evently/lib/models/storage_response_model.dart b/evently/lib/models/storage_response_model.dart new file mode 100644 index 0000000000..8b0b760cd0 --- /dev/null +++ b/evently/lib/models/storage_response_model.dart @@ -0,0 +1,111 @@ +import 'package:evently/services/third_party_services/quick_node.dart'; + +class StorageResponseModel { + bool? ok; + Value? value; + + StorageResponseModel({this.ok, this.value}); + + StorageResponseModel.fromJson(Map json) { + ok = json['ok'] as bool?; + value = json['value'] != null ? Value.fromJson(json['value'] as Map) : null; + } + + Map toJson() { + final map = {}; + map['ok'] = ok; + if (value != null) { + map['value'] = value?.toJson(); + } + return map; + } + + factory StorageResponseModel.initial() { + return StorageResponseModel(); + } + + factory StorageResponseModel.fromQuickNode({required UploadIPFSOutput uploadIPFSOutput}) { + return StorageResponseModel( + ok: true, + value: Value( + cid: uploadIPFSOutput.pin?.cid, + created: uploadIPFSOutput.created, + size: int.parse( + uploadIPFSOutput.info?.size ?? '0', + ), + pin: Pin( + cid: uploadIPFSOutput.pin?.cid, + created: uploadIPFSOutput.created, + size: int.parse( + uploadIPFSOutput.info?.size ?? '0', + ), + status: uploadIPFSOutput.status, + )), + ); + } +} + +class Value { + String? cid; + String? created; + String? type; + String? scope; + int? size; + Pin? pin; + + Value({ + this.cid, + this.created, + this.type, + this.scope, + this.size, + this.pin, + }); + + Value.fromJson(Map json) { + cid = json['cid'] as String?; + created = json['created'] as String?; + type = json['type'] as String?; + scope = json['scope'] as String?; + size = json['size'] as int?; + pin = json['pin'] != null ? Pin.fromJson(json['pin'] as Map) : null; + } + + Map toJson() { + final map = {}; + map['cid'] = cid; + map['created'] = created; + map['type'] = type; + map['scope'] = scope; + map['size'] = size; + if (pin != null) { + map['pin'] = pin?.toJson(); + } + return map; + } +} + +class Pin { + String? cid; + String? created; + int? size; + String? status; + + Pin({this.cid, this.created, this.size, this.status}); + + Pin.fromJson(Map json) { + cid = json['cid'] as String?; + created = json['created'] as String?; + size = json['size'] as int?; + status = json['status'] as String?; + } + + Map toJson() { + final map = {}; + map['cid'] = cid; + map['created'] = created; + map['size'] = size; + map['status'] = status; + return map; + } +} diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 2706d8d076..8cafb3c8aa 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -2,11 +2,15 @@ import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/models/picked_file_model.dart'; +import 'package:evently/models/storage_response_model.dart'; import 'package:evently/services/datasources/local_datasource.dart'; -import 'package:evently/utils/failure/failure.dart'; +import 'package:evently/services/datasources/remote_datasource.dart'; +import 'package:evently/services/third_party_services/quick_node.dart'; import 'package:evently/utils/file_utils_helper.dart'; import 'package:injectable/injectable.dart'; +import '../utils/failure/failure.dart'; + abstract class Repository { /// This function picks a file from device storage /// Input: [format] it is the file format which needs to be picked from local storage @@ -33,6 +37,11 @@ abstract class Repository { /// This method will generate easel Id for the NFT /// Output: [String] the id of the NFT that is going to be added in the recipe String autoGenerateEventlyId(); + + /// This method is used uploading provided file to the server using [QuickNode] + /// Input : [UploadIPFSInput] which needs to be uploaded + /// Output : [ApiResponse] the ApiResponse which can contain [success] or [error] response + Future> uploadFileUsingQuickNode({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}); } @LazySingleton(as: Repository) @@ -40,10 +49,12 @@ class RepositoryImp implements Repository { RepositoryImp({ required this.fileUtilsHelper, required this.localDataSource, + required this.remoteDataSource, }); final FileUtilsHelper fileUtilsHelper; final LocalDataSource localDataSource; + final RemoteDataSource remoteDataSource; @override Future> pickFile() async { @@ -79,4 +90,13 @@ class RepositoryImp implements Repository { return localDataSource.autoGenerateEventlyId(); } + @override + Future> uploadFileUsingQuickNode({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}) async { + try { + final storageResponseModel = await remoteDataSource.uploadFileUsingQuickNode(uploadIPFSInput: uploadIPFSInput, onUploadProgressCallback: onUploadProgressCallback); + return Right(storageResponseModel); + } on Exception catch (_) { + return Left(CacheFailure(LocaleKeys.update_failed.tr())); + } + } } diff --git a/evently/lib/services/datasources/remote_datasource.dart b/evently/lib/services/datasources/remote_datasource.dart new file mode 100644 index 0000000000..b82bdd55e7 --- /dev/null +++ b/evently/lib/services/datasources/remote_datasource.dart @@ -0,0 +1,23 @@ +import 'package:evently/models/storage_response_model.dart'; +import 'package:evently/services/third_party_services/quick_node.dart'; +import 'package:injectable/injectable.dart'; + +abstract class RemoteDataSource { + /// This method is used uploading provided file to the server using [QuickNode] + /// Input : [UploadIPFSInput] which needs to be uploaded + /// Output : [Future>] the ApiResponse which can contain [success] or [error] response + Future uploadFileUsingQuickNode({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}); +} + +@LazySingleton(as: RemoteDataSource) +class RemoteDataSourceImpl extends RemoteDataSource { + RemoteDataSourceImpl({required this.quickNode}); + + final QuickNode quickNode; + + @override + Future uploadFileUsingQuickNode({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}) async { + final response = await quickNode.uploadNewObjectToIPFS(uploadIPFSInput: uploadIPFSInput, onUploadProgressCallback: onUploadProgressCallback); + return response; + } +} diff --git a/evently/lib/services/third_party_services/quick_node.dart b/evently/lib/services/third_party_services/quick_node.dart index d4739795dd..4707240201 100644 --- a/evently/lib/services/third_party_services/quick_node.dart +++ b/evently/lib/services/third_party_services/quick_node.dart @@ -1,7 +1,7 @@ import 'dart:async'; - import 'package:dio/dio.dart'; import 'package:evently/env.dart'; +import 'package:evently/models/storage_response_model.dart'; import 'package:injectable/injectable.dart'; typedef OnUploadProgressCallback = void Function(UploadProgress uploadProgress); @@ -22,7 +22,7 @@ abstract class QuickNode { /// Upload a new object to IPFS and pins it for permanent storage on the network. /// [UploadIPFSInput] as an input /// [UploadIPFSOutput] as an output - Future uploadNewObjectToIPFS({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}); + Future uploadNewObjectToIPFS({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}); /// these are the list of extension required static List listOfQuickNodeAllowedExtension() => ['jpg', 'png', 'heif', 'jpeg', 'gif']; @@ -30,7 +30,6 @@ abstract class QuickNode { /// this method is used to get the content type while making request input to quick node static String getContentType(String fileExtension) { final dict = { - ///* images "jpg": "image/jpg", "png": "image/png", 'heif': "image/heif", @@ -48,7 +47,7 @@ class QuickNodeImpl extends QuickNode { final Dio httpClient; @override - Future uploadNewObjectToIPFS({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}) async { + Future uploadNewObjectToIPFS({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}) async { try { httpClient.options.headers['x-api-key'] = xApiKey; @@ -68,8 +67,7 @@ class QuickNodeImpl extends QuickNode { ); final uploadIPFSOutput = UploadIPFSOutput.fromJson(response.data as Map); - - // return //StorageResponseModel.fromQuickNode(uploadIPFSOutput: uploadIPFSOutput); + return StorageResponseModel.fromQuickNode(uploadIPFSOutput: uploadIPFSOutput); } catch (e) { throw Exception('Failed to upload file: $e'); } diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index aa017fe664..84941fbb75 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -8,17 +8,20 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:evently/evently_provider.dart' as _i10; -import 'package:evently/repository/repository.dart' as _i9; -import 'package:evently/services/datasources/local_datasource.dart' as _i6; -import 'package:evently/utils/di/register_modules.dart' as _i11; -import 'package:evently/utils/file_utils_helper.dart' as _i8; +import 'package:dio/dio.dart' as _i6; +import 'package:evently/evently_provider.dart' as _i13; +import 'package:evently/repository/repository.dart' as _i12; +import 'package:evently/services/datasources/local_datasource.dart' as _i7; +import 'package:evently/services/datasources/remote_datasource.dart' as _i11; +import 'package:evently/services/third_party_services/quick_node.dart' as _i10; +import 'package:evently/utils/di/register_modules.dart' as _i14; +import 'package:evently/utils/file_utils_helper.dart' as _i9; import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; import 'package:file_picker/file_picker.dart' as _i5; import 'package:get_it/get_it.dart' as _i1; import 'package:image_cropper/image_cropper.dart' as _i4; import 'package:injectable/injectable.dart' as _i2; -import 'package:shared_preferences/shared_preferences.dart' as _i7; +import 'package:shared_preferences/shared_preferences.dart' as _i8; extension GetItInjectableX on _i1.GetIt { // initializes the registration of main-scope dependencies inside of GetIt @@ -36,20 +39,26 @@ extension GetItInjectableX on _i1.GetIt { () => _i3.CreateEventViewModel()); gh.lazySingleton<_i4.ImageCropper>(() => registerModule.imageCropper); gh.lazySingleton<_i5.FilePicker>(() => registerModule.filePicker); - gh.lazySingleton<_i6.LocalDataSource>(() => _i6.LocalDataSourceImpl( - sharedPreferences: gh<_i7.SharedPreferences>())); - gh.lazySingleton<_i8.FileUtilsHelper>(() => _i8.FileUtilsHelperImpl( + gh.lazySingleton<_i6.Dio>(() => registerModule.dio); + gh.lazySingleton<_i7.LocalDataSource>(() => _i7.LocalDataSourceImpl( + sharedPreferences: gh<_i8.SharedPreferences>())); + gh.lazySingleton<_i9.FileUtilsHelper>(() => _i9.FileUtilsHelperImpl( imageCropper: gh<_i4.ImageCropper>(), filePicker: gh<_i5.FilePicker>(), )); - gh.lazySingleton<_i9.Repository>(() => _i9.RepositoryImp( - fileUtilsHelper: gh<_i8.FileUtilsHelper>(), - localDataSource: gh<_i6.LocalDataSource>(), + gh.lazySingleton<_i10.QuickNode>( + () => _i10.QuickNodeImpl(httpClient: gh<_i6.Dio>())); + gh.lazySingleton<_i11.RemoteDataSource>( + () => _i11.RemoteDataSourceImpl(quickNode: gh<_i10.QuickNode>())); + gh.lazySingleton<_i12.Repository>(() => _i12.RepositoryImp( + fileUtilsHelper: gh<_i9.FileUtilsHelper>(), + localDataSource: gh<_i7.LocalDataSource>(), + remoteDataSource: gh<_i11.RemoteDataSource>(), )); - gh.lazySingleton<_i10.EventlyProvider>( - () => _i10.EventlyProvider(repository: gh<_i9.Repository>())); + gh.lazySingleton<_i13.EventlyProvider>( + () => _i13.EventlyProvider(repository: gh<_i12.Repository>())); return this; } } -class _$RegisterModule extends _i11.RegisterModule {} +class _$RegisterModule extends _i14.RegisterModule {} diff --git a/evently/lib/utils/failure/failure.dart b/evently/lib/utils/failure/failure.dart index 31034608d1..c6cdf1afe5 100644 --- a/evently/lib/utils/failure/failure.dart +++ b/evently/lib/utils/failure/failure.dart @@ -12,3 +12,10 @@ class PickingFileFailure extends Failure { @override List get props => [message]; } + +class CacheFailure extends Failure { + const CacheFailure(super.message); + + @override + List get props => [message]; +} From 91ca3d207a4dc55ff4618d68f270e49c996df087 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Wed, 15 May 2024 17:22:47 +0500 Subject: [PATCH 083/158] feat: image uploading completed --- evently/assets/images/gifs/loading.gif | Bin 0 -> 107900 bytes evently/i18n/de.json | 4 +- evently/i18n/en-US.json | 4 +- evently/i18n/es.json | 4 +- evently/i18n/ru-RU.json | 4 +- evently/lib/evently_provider.dart | 43 ++++++-- evently/lib/generated/locale_keys.g.dart | 2 + evently/lib/screens/overview_screen.dart | 14 ++- evently/lib/utils/constants.dart | 2 + evently/lib/utils/extension_util.dart | 14 +++ evently/lib/utils/image_util.dart | 7 ++ .../lib/widgets/loading_with_progress.dart | 42 ++++++++ .../Flutter/GeneratedPluginRegistrant.swift | 2 + evently/pubspec.lock | 96 ++++++++++++++++++ evently/pubspec.yaml | 3 + 15 files changed, 226 insertions(+), 15 deletions(-) create mode 100644 evently/assets/images/gifs/loading.gif create mode 100644 evently/lib/utils/image_util.dart create mode 100644 evently/lib/widgets/loading_with_progress.dart diff --git a/evently/assets/images/gifs/loading.gif b/evently/assets/images/gifs/loading.gif new file mode 100644 index 0000000000000000000000000000000000000000..adc3a7d6d794d334bed14f61ce5f297a05f934df GIT binary patch literal 107900 zcmeFYS2SD!YwU64c>!XQBsVbq9ThLA{fQ4&N1QD?>|(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i18n/de.json @@ -59,5 +59,7 @@ "free_drink": "1 free drink", "publish" : "Publish", "recipe_created": "Recipe созданный", - "update_failed": "Upload Fehlgeschlagen" + "update_failed": "Upload Fehlgeschlagen", + "uploading": "Hochladen ...", + "something_wrong_while_uploading": "Beim Hochladen ist etwas schief gelaufen. Bitte versuche es erneut." } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 6e7cda9719..25487d1b89 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -59,5 +59,7 @@ "free_drink": "1 free drink", "publish" : "Publish", "recipe_created": "Recipe created", - "update_failed": "Upload Failed" + "update_failed": "Upload Failed", + "uploading": "Uploading ...", + "something_wrong_while_uploading": "Something went wrong while uploading. Please try again." } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 4d4f7ac878..281c7ee53a 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -59,5 +59,7 @@ "free_drink": "1 free drink", "publish" : "Publish", "recipe_created": "Recipe creada", - "update_failed": "Subida ha fallado" + "update_failed": "Subida ha fallado", + "uploading": "Subiendo...", + "something_wrong_while_uploading": "Algo salió mal durante la carga. Inténtalo de nuevo." } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 5699723f32..20ed93a46b 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -59,5 +59,7 @@ "free_drink": "1 free drink", "publish" : "Publish", "recipe_created": "Recipe созданный", - "update_failed": "Загрузка не удалась" + "update_failed": "Загрузка не удалась", + "uploading": "Загрузка...", + "something_wrong_while_uploading": "Что-то пошло не так во время загрузки. Пожалуйста, попробуйте еще раз." } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index eae5102946..c72724d465 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -1,18 +1,26 @@ -import 'dart:io'; +import 'dart:async'; +import 'package:dartz/dartz.dart'; +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/main.dart'; import 'package:evently/models/denom.dart'; import 'package:evently/models/events.dart'; import 'package:evently/models/perks_model.dart'; import 'package:evently/models/picked_file_model.dart'; +import 'package:evently/models/storage_response_model.dart'; import 'package:evently/repository/repository.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/extension_util.dart'; +import 'package:evently/utils/failure/failure.dart'; +import 'package:evently/widgets/loading_with_progress.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/low_level.dart'; +import 'services/third_party_services/quick_node.dart'; + enum FreeDrop { yes, no, unselected } @LazySingleton() @@ -26,10 +34,10 @@ class EventlyProvider extends ChangeNotifier { ///* overview screen variable String _eventName = ''; String _hostName = ''; - File? _thumbnail; + String? _thumbnail; bool _isOverviewEnable = false; - File? get thumbnail => _thumbnail; + String? get thumbnail => _thumbnail; String get eventName => _eventName; String get hostName => _hostName; bool get isOverviewEnable => _isOverviewEnable; @@ -46,7 +54,7 @@ class EventlyProvider extends ChangeNotifier { notifyListeners(); } - set setThumbnail(File? file) { + set setThumbnail(String? file) { _thumbnail = file; checkIsOverEnable(); notifyListeners(); @@ -173,6 +181,10 @@ class EventlyProvider extends ChangeNotifier { notifyListeners(); } + final StreamController _uploadProgressController = StreamController.broadcast(); + + Stream get uploadProgressStream => _uploadProgressController.stream; + void pickThumbnail() async { final pickedFile = await repository.pickFile(); @@ -185,7 +197,26 @@ class EventlyProvider extends ChangeNotifier { ); if (result.path.isEmpty) return; - setThumbnail = File(result.path); + + final loading = LoadingProgress()..showLoadingWithProgress(message: LocaleKeys.uploading.tr()); + + Either response; + response = await repository.uploadFileUsingQuickNode( + uploadIPFSInput: UploadIPFSInput(fileName: result.fileName, filePath: result!.path, contentType: QuickNode.getContentType(result.extension)), + onUploadProgressCallback: (value) { + _uploadProgressController.sink.add(value); + }, + ); + + if (response.isLeft()) { + loading.dismiss(); + LocaleKeys.something_wrong_while_uploading.tr().show(); + return; + } + final fileUploadResponse = response.getOrElse(() => StorageResponseModel.initial()); + loading.dismiss(); + + setThumbnail = "$ipfsDomain/${fileUploadResponse.value?.cid}"; } String currentUserName = ""; @@ -239,7 +270,7 @@ class EventlyProvider extends ChangeNotifier { final event = Event( eventName: eventName, hostName: hostName, - thumbnail: thumbnail!.path, + thumbnail: thumbnail!, startDate: startDate, endDate: endDate, startTime: startTime, diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 561dcc6fd1..a55f453afc 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -60,5 +60,7 @@ abstract class LocaleKeys { static const free_drink = 'free_drink'; static const recipe_created = 'recipe_created'; static const update_failed = 'update_failed'; + static const uploading = 'uploading'; + static const something_wrong_while_uploading = 'something_wrong_while_uploading'; } diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 0a1d3e8b55..d8df77987a 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -1,3 +1,4 @@ +import 'package:cached_network_image/cached_network_image.dart'; import 'package:dotted_border/dotted_border.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; @@ -15,6 +16,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; +import 'package:shimmer_animation/shimmer_animation.dart'; class OverViewScreen extends StatefulWidget { const OverViewScreen({super.key}); @@ -94,11 +96,13 @@ class _OverViewScreenState extends State { child: Stack( alignment: Alignment.center, children: [ - Image.file( - provider.thumbnail!, - fit: BoxFit.cover, - height: 176, - width: double.infinity, + CachedNetworkImage( + fit: BoxFit.fill, + imageUrl: provider.thumbnail!, + errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), + progressIndicatorBuilder: (context, _, progress) { + return Shimmer(color: EventlyAppTheme.kGrey04, child: const SizedBox.expand()); + }, ), GestureDetector( onTap: () => provider.pickThumbnail(), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index c30adf8dd3..a8a8884c12 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -74,6 +74,8 @@ const kPrice = "kPrice"; const kErrRecipe = 'Recipe error :'; +/// ```URL constants +const ipfsDomain = 'https://ipfs.io/ipfs'; /// ```SVG assets class SVGUtils { diff --git a/evently/lib/utils/extension_util.dart b/evently/lib/utils/extension_util.dart index 1039c40ed5..0a8b41ad0c 100644 --- a/evently/lib/utils/extension_util.dart +++ b/evently/lib/utils/extension_util.dart @@ -32,3 +32,17 @@ extension ScaffoldMessengerKeyHelper on GlobalKey { return ScaffoldMessenger.maybeOf(navigatorKey.currentState!.overlay!.context); } } + +extension MyStringSnackBar on String { + void show({BuildContext? context}) { + ScaffoldMessenger.of(context ?? navigatorKey.currentState!.overlay!.context).showSnackBar( + SnackBar( + content: Text( + this, + ), + duration: const Duration(seconds: 3), + ), + ); + } +} + diff --git a/evently/lib/utils/image_util.dart b/evently/lib/utils/image_util.dart new file mode 100644 index 0000000000..b288e2b05b --- /dev/null +++ b/evently/lib/utils/image_util.dart @@ -0,0 +1,7 @@ +// ignore_for_file: non_constant_identifier_names + +class ImageUtil { + ImageUtil(); + + static String LOADING_GIF = 'assets/images/gifs/loading.gif'; +} diff --git a/evently/lib/widgets/loading_with_progress.dart b/evently/lib/widgets/loading_with_progress.dart new file mode 100644 index 0000000000..5ed272e31a --- /dev/null +++ b/evently/lib/widgets/loading_with_progress.dart @@ -0,0 +1,42 @@ +import 'dart:async'; + +import 'package:evently/evently_provider.dart'; +import 'package:evently/main.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/image_util.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:get_it/get_it.dart'; + +class LoadingProgress { + LoadingProgress(); + + void dismiss() { + navigatorKey.currentState?.pop(); + } + + final EventlyProvider easelProvider = GetIt.I.get(); + + Future showLoadingWithProgress({String? message}) { + if (navigatorKey.currentState?.overlay == null) { + return Completer() + .future; // return a fake future if state is screwy - this only ever happens during testing. todo: eliminate this hack + } + return showDialog( + context: navigatorKey.currentState!.overlay!.context, + barrierDismissible: true, + builder: (ctx) => PopScope( + canPop: false, + child: AlertDialog( + elevation: 0, + backgroundColor: EventlyAppTheme.kTransparent, + content: SizedBox( + width: 100.w, + height: 100.h, + child: Image.asset(ImageUtil.LOADING_GIF), + ), + ), + ), + ); + } +} diff --git a/evently/macos/Flutter/GeneratedPluginRegistrant.swift b/evently/macos/Flutter/GeneratedPluginRegistrant.swift index b19945c53d..63ad0d132c 100644 --- a/evently/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/evently/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,10 +7,12 @@ import Foundation import path_provider_foundation import shared_preferences_foundation +import sqflite import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) + SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index a27085d01f..c088c17954 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -105,6 +105,30 @@ packages: url: "https://pub.dev" source: hosted version: "8.9.2" + cached_network_image: + dependency: "direct main" + description: + name: cached_network_image + sha256: "28ea9690a8207179c319965c13cd8df184d5ee721ae2ce60f398ced1219cea1f" + url: "https://pub.dev" + source: hosted + version: "3.3.1" + cached_network_image_platform_interface: + dependency: transitive + description: + name: cached_network_image_platform_interface + sha256: "9e90e78ae72caa874a323d78fa6301b3fb8fa7ea76a8f96dc5b5bf79f283bf2f" + url: "https://pub.dev" + source: hosted + version: "4.0.0" + cached_network_image_web: + dependency: transitive + description: + name: cached_network_image_web + sha256: "205d6a9f1862de34b93184f22b9d2d94586b2f05c581d546695e3d8f6a805cd7" + url: "https://pub.dev" + source: hosted + version: "1.2.0" characters: dependency: transitive description: @@ -278,6 +302,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_cache_manager: + dependency: transitive + description: + name: flutter_cache_manager + sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba" + url: "https://pub.dev" + source: hosted + version: "3.3.1" flutter_lints: dependency: "direct dev" description: @@ -549,6 +581,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" + octo_image: + dependency: transitive + description: + name: octo_image + sha256: "45b40f99622f11901238e18d48f5f12ea36426d8eced9f4cbf58479c7aa2430d" + url: "https://pub.dev" + source: hosted + version: "2.0.0" package_config: dependency: transitive description: @@ -716,6 +756,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.1.0" + rxdart: + dependency: transitive + description: + name: rxdart + sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb" + url: "https://pub.dev" + source: hosted + version: "0.27.7" shared_preferences: dependency: "direct main" description: @@ -788,6 +836,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.4" + shimmer_animation: + dependency: "direct main" + description: + name: shimmer_animation + sha256: "1f12d0f3fc20acbf2dcf8438b79f4268c523d55b2f3de55cf49e5bd3acbc5719" + url: "https://pub.dev" + source: hosted + version: "2.1.0+1" sky_engine: dependency: transitive description: flutter @@ -809,6 +865,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.10.0" + sprintf: + dependency: transitive + description: + name: sprintf + sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + sqflite: + dependency: transitive + description: + name: sqflite + sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d + url: "https://pub.dev" + source: hosted + version: "2.3.3+1" + sqflite_common: + dependency: transitive + description: + name: sqflite_common + sha256: "3da423ce7baf868be70e2c0976c28a1bb2f73644268b7ffa7d2e08eab71f16a4" + url: "https://pub.dev" + source: hosted + version: "2.5.4" stack_trace: dependency: transitive description: @@ -849,6 +929,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.0" + synchronized: + dependency: transitive + description: + name: synchronized + sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" + url: "https://pub.dev" + source: hosted + version: "3.1.0+1" term_glyph: dependency: transitive description: @@ -969,6 +1057,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.1" + uuid: + dependency: transitive + description: + name: uuid + sha256: "814e9e88f21a176ae1359149021870e87f7cddaf633ab678a5d2b0bff7fd1ba8" + url: "https://pub.dev" + source: hosted + version: "4.4.0" vector_math: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index 68e089ac9f..d1e4e4fa9e 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -55,6 +55,8 @@ dependencies: path: ../dart_sdk shared_preferences: ^2.2.3 dio: ^5.4.3+1 + cached_network_image: ^3.3.1 + shimmer_animation: 2.1.0+1 dev_dependencies: flutter_test: @@ -87,6 +89,7 @@ flutter: - i18n/es.json - assets/images/svg/ - assets/images/ + - assets/images/gifs/ fonts: - family: UniversalSans From d1f8ecf8196aab0949936d469f26e4fb5071e9a9 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 10:43:47 +0500 Subject: [PATCH 084/158] feat: cookbook logic --- evently/lib/evently_provider.dart | 22 ++++---- evently/lib/models/events.dart | 56 ++++++++++++++++++- evently/lib/utils/extension_util.dart | 16 ++++++ .../viewmodels/create_event_viewmodel.dart | 2 + 4 files changed, 83 insertions(+), 13 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index c72724d465..753360ad16 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -202,7 +202,7 @@ class EventlyProvider extends ChangeNotifier { Either response; response = await repository.uploadFileUsingQuickNode( - uploadIPFSInput: UploadIPFSInput(fileName: result.fileName, filePath: result!.path, contentType: QuickNode.getContentType(result.extension)), + uploadIPFSInput: UploadIPFSInput(fileName: result.fileName, filePath: result.path, contentType: QuickNode.getContentType(result.extension)), onUploadProgressCallback: (value) { _uploadProgressController.sink.add(value); }, @@ -225,6 +225,8 @@ class EventlyProvider extends ChangeNotifier { String? _cookbookId; String _recipeId = ""; + String? get cookbookId => _cookbookId; + bool showStripeDialog() => !stripeAccountExists && _selectedDenom.symbol == kUsdSymbol && isFreeDrop == FreeDrop.no; ///* this method is used to get the profile @@ -247,7 +249,7 @@ class EventlyProvider extends ChangeNotifier { } Future createRecipe() async { - // final scaffoldMessengerState = navigatorKey.getState(); + final scaffoldMessengerState = navigatorKey.getState(); _cookbookId = repository.getCookbookId(); @@ -277,9 +279,9 @@ class EventlyProvider extends ChangeNotifier { endTime: endTime, location: location, description: description, - isFreeDrop: isFreeDrop, - numberOfTickets: numberOfTickets, - price: price, + isFreeDrop: "isFreeDrop", + numberOfTickets: numberOfTickets.toString(), + price: price.toString(), listOfPerks: perks.map((e) => e.toString()).toList()); final recipe = event.createRecipe( @@ -294,11 +296,11 @@ class EventlyProvider extends ChangeNotifier { final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); if (!response.success) { - // scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); + scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); return false; } - // scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - // final nftFromRecipe = NFT.fromRecipe(recipe); + scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); + // final nftFromRecipe = Event.fromRecipe(recipe); // GetIt.I.get<>().updatePublishedNFTList(nft: nftFromRecipe); // deleteNft(nft.id); return false; @@ -307,7 +309,7 @@ class EventlyProvider extends ChangeNotifier { /// send createCookBook tx message to the wallet app /// return true or false depending on the response from the wallet app Future createCookbook() async { - _cookbookId = repository.autoGenerateCookbookId(); + _cookbookId = await repository.autoGenerateCookbookId(); final cookBook1 = Cookbook( creator: "", id: _cookbookId, @@ -321,7 +323,7 @@ class EventlyProvider extends ChangeNotifier { final response = await PylonsWallet.instance.txCreateCookbook(cookBook1); if (response.success) { - repository.saveCookBookGeneratorUsername(currentUserName); + repository.saveCookBookGeneratorUsername(currentUsername); return true; } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index c092c61c8b..442755d644 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,11 +1,12 @@ +import 'package:equatable/equatable.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/models/perks_model.dart'; import 'package:evently/utils/constants.dart'; import 'package:pylons_sdk/low_level.dart'; import 'package:fixnum/fixnum.dart'; -class Event { - Event({ +class Event extends Equatable { + const Event({ required this.eventName, required this.hostName, required this.thumbnail, @@ -46,6 +47,55 @@ class Event { final String price; final List listOfPerks; + + @override + List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, isFreeDrop, numberOfTickets, price]; + + static Map _extractAttributeValues(List attributes) { + final Map attributeValues = {}; + for (final attribute in attributes) { + switch (attribute.key) { + case kEventName: + case kEventHostName: + case kThumbnail: + case kStartDate: + case kEndDate: + case kStartTime: + case kEndTime: + case kLocation: + case kDescription: + case kPerks: + case kNumberOfTickets: + case kPrice: + attributeValues[attribute.key] = attribute.value; + break; + default: + continue; + } + } + + return attributeValues; + } + + factory Event.fromRecipe(Recipe recipe) { + Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + + return Event( + eventName: map[kEventName]!, + hostName: map[kEventHostName]!, + thumbnail: map[kThumbnail]!, + startDate: map[kStartDate]!, + endDate: map[kEndDate]!, + startTime: map[kStartTime]!, + endTime: map[kEndTime]!, + location: map[kLocation]!, + description: map[kDescription]!, + isFreeDrop: '', + numberOfTickets: map[kNumberOfTickets]!, + price: map[kPrice]!, + listOfPerks: [], + ); + } } extension CreateRecipe on Event { @@ -84,7 +134,7 @@ extension CreateRecipe on Event { strings: [ StringParam(key: kEventName, value: eventName.trim()), StringParam(key: kEventHostName, value: hostName.trim()), - StringParam(key: kEventHostName, value: thumbnail.trim()), + StringParam(key: kThumbnail, value: thumbnail.trim()), StringParam(key: kStartDate, value: startDate.trim()), StringParam(key: kEndDate, value: endDate.trim()), StringParam(key: kStartTime, value: startTime.trim()), diff --git a/evently/lib/utils/extension_util.dart b/evently/lib/utils/extension_util.dart index 0a8b41ad0c..ef67399174 100644 --- a/evently/lib/utils/extension_util.dart +++ b/evently/lib/utils/extension_util.dart @@ -46,3 +46,19 @@ extension MyStringSnackBar on String { } } +extension ScaffoldStateHelper on ScaffoldMessengerState { + void show({required String message}) { + this + ..hideCurrentSnackBar() + ..showSnackBar(SnackBar( + content: Text( + message, + textAlign: TextAlign.start, + style: TextStyle( + fontSize: 14.sp, + ), + ), + duration: const Duration(seconds: 2), + )); + } +} diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index 85a277e351..e213efb59b 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -41,4 +41,6 @@ class CreateEventViewModel extends ChangeNotifier { void disposeControllers() { pageController.dispose(); } + + } From 01bb6db6d7d37efbee115c68507af46e69ebf205 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 10:48:00 +0500 Subject: [PATCH 085/158] feat: cookbook creation --- evently/lib/evently_provider.dart | 7 ++++--- evently/lib/repository/repository.dart | 10 ++++++---- .../lib/services/datasources/local_datasource.dart | 13 ++++++++----- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 753360ad16..4cb670d428 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -222,9 +222,9 @@ class EventlyProvider extends ChangeNotifier { String currentUserName = ""; bool stripeAccountExists = false; - String? _cookbookId; - String _recipeId = ""; + + String? _cookbookId; String? get cookbookId => _cookbookId; bool showStripeDialog() => !stripeAccountExists && _selectedDenom.symbol == kUsdSymbol && isFreeDrop == FreeDrop.no; @@ -315,7 +315,7 @@ class EventlyProvider extends ChangeNotifier { id: _cookbookId, name: cookbookName, description: cookbookDesc, - developer: hostName, + developer: artistNameController.text, version: kVersionCookboox, supportEmail: supportedEmail, enabled: true, @@ -331,5 +331,6 @@ class EventlyProvider extends ChangeNotifier { return false; } + bool isDifferentUserName(String savedUserName) => currentUserName.isNotEmpty && savedUserName != currentUserName; } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 8cafb3c8aa..46ded6fd78 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -17,9 +17,9 @@ abstract class Repository { /// returns [PickedFileModel] the selected file or [Failure] if aborted Future> pickFile(); - /// This method will generate evently Id for the event - /// Output: [String] the id of the Event that is going to be added in the recipe - String autoGenerateCookbookId(); + /// This method will generate the cookbook id for the easel app + /// Output: [String] the id of the cookbook which will contains all the NFTs. + Future autoGenerateCookbookId(); /// This method will save the username of the cookbook generator /// Input: [username] the username of the user who created the cookbook @@ -68,7 +68,9 @@ class RepositoryImp implements Repository { } @override - String autoGenerateCookbookId() => localDataSource.autoGenerateCookbookId(); + Future autoGenerateCookbookId() async { + return localDataSource.autoGenerateCookbookId(); + } @override Future saveCookBookGeneratorUsername(String username) { diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 6bc64cef88..0d670eb215 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -4,9 +4,9 @@ import 'package:injectable/injectable.dart'; import 'package:shared_preferences/shared_preferences.dart'; abstract class LocalDataSource { - /// This method will generate Evently Id for the Event - /// Output: [String] the id of the Event that is going to be added in the recipe - String autoGenerateCookbookId(); + /// This method will generate the cookbook id for the easel app + /// Output: [String] the id of the cookbook which will contains all the NFTs. + Future autoGenerateCookbookId(); /// This method will save the username of the cookbook generator /// Input: [username] the username of the user who created the cookbook @@ -32,9 +32,12 @@ class LocalDataSourceImpl extends LocalDataSource { final SharedPreferences sharedPreferences; + /// auto generates cookbookID string and saves into local storage + /// returns cookbookId @override - String autoGenerateCookbookId() { - final String cookbookId = "Evently_CookBook_auto_cookbook_${getFullDateTime()}"; + Future autoGenerateCookbookId() async { + final String cookbookId = "Easel_CookBook_auto_cookbook_${getFullDateTime()}"; + await sharedPreferences.setString(kCookbookId, cookbookId); return cookbookId; } From 46cce4a7370c580493b064a39c8332678c784072 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 11:01:04 +0500 Subject: [PATCH 086/158] coobbok creation like in easel --- evently/lib/evently_provider.dart | 85 +++++++++++-------- evently/lib/repository/repository.dart | 9 ++ .../datasources/local_datasource.dart | 20 +++++ 3 files changed, 77 insertions(+), 37 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 4cb670d428..96cd3e83c2 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -222,8 +222,6 @@ class EventlyProvider extends ChangeNotifier { String currentUserName = ""; bool stripeAccountExists = false; - - String? _cookbookId; String? get cookbookId => _cookbookId; @@ -267,55 +265,69 @@ class EventlyProvider extends ChangeNotifier { } } - _recipeId = repository.autoGenerateEventlyId(); - - final event = Event( - eventName: eventName, - hostName: hostName, - thumbnail: thumbnail!, - startDate: startDate, - endDate: endDate, - startTime: startTime, - endTime: endTime, - location: location, - description: description, - isFreeDrop: "isFreeDrop", - numberOfTickets: numberOfTickets.toString(), - price: price.toString(), - listOfPerks: perks.map((e) => e.toString()).toList()); - - final recipe = event.createRecipe( - cookbookId: _cookbookId!, - recipeId: _recipeId, - isFreeDrop: isFreeDrop, - symbol: selectedDenom.symbol, - perksList: perks, - price: price, - ); - - final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); - - if (!response.success) { - scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); - return false; - } - scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); + // _recipeId = repository.autoGenerateEventlyId(); + // + // final event = Event( + // eventName: eventName, + // hostName: hostName, + // thumbnail: thumbnail!, + // startDate: startDate, + // endDate: endDate, + // startTime: startTime, + // endTime: endTime, + // location: location, + // description: description, + // isFreeDrop: "isFreeDrop", + // numberOfTickets: numberOfTickets.toString(), + // price: price.toString(), + // listOfPerks: perks.map((e) => e.toString()).toList()); + // + // final recipe = event.createRecipe( + // cookbookId: _cookbookId!, + // recipeId: _recipeId, + // isFreeDrop: isFreeDrop, + // symbol: selectedDenom.symbol, + // perksList: perks, + // price: price, + // ); + // + // final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); + // + // if (!response.success) { + // scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); + // return false; + // } + // scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); // final nftFromRecipe = Event.fromRecipe(recipe); // GetIt.I.get<>().updatePublishedNFTList(nft: nftFromRecipe); // deleteNft(nft.id); return false; } + String currentUsername = ''; + bool isPylonsInstalled = false; + + Future populateUserName() async { + isPylonsInstalled = await PylonsWallet.instance.exists(); + if (currentUsername.isEmpty) { + final String savedHostName = repository.getHostName(); + + currentUsername = savedHostName; + } + notifyListeners(); + } + /// send createCookBook tx message to the wallet app /// return true or false depending on the response from the wallet app Future createCookbook() async { _cookbookId = await repository.autoGenerateCookbookId(); + final cookBook1 = Cookbook( creator: "", id: _cookbookId, name: cookbookName, description: cookbookDesc, - developer: artistNameController.text, + developer: hostName, version: kVersionCookboox, supportEmail: supportedEmail, enabled: true, @@ -331,6 +343,5 @@ class EventlyProvider extends ChangeNotifier { return false; } - bool isDifferentUserName(String savedUserName) => currentUserName.isNotEmpty && savedUserName != currentUserName; } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 46ded6fd78..071eac59cc 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -42,6 +42,10 @@ abstract class Repository { /// Input : [UploadIPFSInput] which needs to be uploaded /// Output : [ApiResponse] the ApiResponse which can contain [success] or [error] response Future> uploadFileUsingQuickNode({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}); + + /// This method will get the artist name + /// Output: [String] returns whether the operation is successful or not + String getHostName(); } @LazySingleton(as: Repository) @@ -101,4 +105,9 @@ class RepositoryImp implements Repository { return Left(CacheFailure(LocaleKeys.update_failed.tr())); } } + + @override + String getHostName() { + return localDataSource.getHostName(); + } } diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 0d670eb215..824c64bf07 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -24,6 +24,15 @@ abstract class LocalDataSource { /// This method will generate easel Id for the NFT /// Output: [String] the id of the NFT that is going to be added in the recipe String autoGenerateEventlyId(); + + /// This method will get the artist name + /// Output: [String] returns whether the operation is successful or not + String getHostName(); + + /// This method will save the artist name + /// Input: [name] the name of the artist which the user want to save + /// Output: [bool] returns whether the operation is successful or not + Future saveHostName(String name); } @LazySingleton(as: LocalDataSource) @@ -66,4 +75,15 @@ class LocalDataSourceImpl extends LocalDataSource { final String cookbookId = "Evently_Recipe_auto_recipe_${getFullDateTime()}"; return cookbookId; } + + @override + String getHostName() { + return sharedPreferences.getString(kHostName) ?? ''; + } + + @override + Future saveHostName(String name) async { + await sharedPreferences.setString(kHostName, name); + return true; + } } From c7276297f37a332c01a262a17e9f71eea3e54b11 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 11:30:01 +0500 Subject: [PATCH 087/158] feat: weighted output --- evently/lib/evently_provider.dart | 112 ++++++++++++------------------ evently/lib/models/events.dart | 6 +- evently/lib/utils/constants.dart | 1 + 3 files changed, 50 insertions(+), 69 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 96cd3e83c2..b9485e5f24 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -160,9 +160,9 @@ class EventlyProvider extends ChangeNotifier { notifyListeners(); } - get numberOfTickets => _numberOfTickets; + int get numberOfTickets => _numberOfTickets; - get isFreeDrop => _isFreeDrop; + FreeDrop get isFreeDrop => _isFreeDrop; set setFreeDrop(FreeDrop freeDrop) { _isFreeDrop = freeDrop; @@ -174,7 +174,7 @@ class EventlyProvider extends ChangeNotifier { notifyListeners(); } - get price => _price; + int get price => _price; void setSelectedDenom(Denom value) { _selectedDenom = value; @@ -246,77 +246,58 @@ class EventlyProvider extends ChangeNotifier { return sdkResponse; } + String _recipeId = ""; + String get recipeId => _recipeId; + Future createRecipe() async { final scaffoldMessengerState = navigatorKey.getState(); - _cookbookId = repository.getCookbookId(); - - final String savedUserName = repository.getCookBookGeneratorUsername(); - - if (_cookbookId == null || isDifferentUserName(savedUserName)) { - // create cookbook - final isCookBookCreated = await createCookbook(); - - if (isCookBookCreated) { - _cookbookId = repository.getCookbookId(); - notifyListeners(); - } else { + final isCookBookCreated = await createCookbook(); + + if (isCookBookCreated) { + _recipeId = repository.autoGenerateEventlyId(); + + final event = Event( + eventName: eventName, + hostName: hostName, + thumbnail: thumbnail!, + startDate: startDate, + endDate: endDate, + startTime: startTime, + endTime: endTime, + location: location, + description: description, + isFreeDrop: "isFreeDrop", + numberOfTickets: numberOfTickets.toString(), + price: price.toString(), + listOfPerks: perks.map((e) => e.toString()).toList(), + ); + + final recipe = event.createRecipe( + cookbookId: _cookbookId!, + recipeId: _recipeId, + isFreeDrop: isFreeDrop, + symbol: selectedDenom.symbol, + perksList: perks, + price: price.toString(), + ); + + final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); + + if (!response.success) { + scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); return false; } + scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); + // final nftFromRecipe = Event.fromRecipe(recipe); + // GetIt.I.get<>().updatePublishedNFTList(nft: nftFromRecipe); + // deleteNft(nft.id); + return true; } - // _recipeId = repository.autoGenerateEventlyId(); - // - // final event = Event( - // eventName: eventName, - // hostName: hostName, - // thumbnail: thumbnail!, - // startDate: startDate, - // endDate: endDate, - // startTime: startTime, - // endTime: endTime, - // location: location, - // description: description, - // isFreeDrop: "isFreeDrop", - // numberOfTickets: numberOfTickets.toString(), - // price: price.toString(), - // listOfPerks: perks.map((e) => e.toString()).toList()); - // - // final recipe = event.createRecipe( - // cookbookId: _cookbookId!, - // recipeId: _recipeId, - // isFreeDrop: isFreeDrop, - // symbol: selectedDenom.symbol, - // perksList: perks, - // price: price, - // ); - // - // final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); - // - // if (!response.success) { - // scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); - // return false; - // } - // scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - // final nftFromRecipe = Event.fromRecipe(recipe); - // GetIt.I.get<>().updatePublishedNFTList(nft: nftFromRecipe); - // deleteNft(nft.id); return false; } - String currentUsername = ''; - bool isPylonsInstalled = false; - - Future populateUserName() async { - isPylonsInstalled = await PylonsWallet.instance.exists(); - if (currentUsername.isEmpty) { - final String savedHostName = repository.getHostName(); - - currentUsername = savedHostName; - } - notifyListeners(); - } - /// send createCookBook tx message to the wallet app /// return true or false depending on the response from the wallet app Future createCookbook() async { @@ -335,13 +316,10 @@ class EventlyProvider extends ChangeNotifier { final response = await PylonsWallet.instance.txCreateCookbook(cookBook1); if (response.success) { - repository.saveCookBookGeneratorUsername(currentUsername); return true; } navigatorKey.showMsg(message: response.error); return false; } - - bool isDifferentUserName(String savedUserName) => currentUserName.isNotEmpty && savedUserName != currentUserName; } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 442755d644..78d10cdc78 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -153,10 +153,12 @@ extension CreateRecipe on Event { ], itemModifyOutputs: [], ), - outputs: [], + outputs: [ + WeightedOutputs(entryIds: [kEventlyEvent], weight: Int64(1)) + ], blockInterval: Int64(), enabled: true, - // extraInfo: kExtraInfo, + extraInfo: kExtraInfo, ); } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index a8a8884c12..17b1221a18 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -73,6 +73,7 @@ const kNumberOfTickets = "kNumberOfTickets"; const kPrice = "kPrice"; const kErrRecipe = 'Recipe error :'; +const kExtraInfo = "extraInfo"; /// ```URL constants const ipfsDomain = 'https://ipfs.io/ipfs'; From d3bca2a98a515bf43f1401f479fe927c8e30e05b Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 11:53:11 +0500 Subject: [PATCH 088/158] feat: event view integration at pylons apps --- .../handlers/create_recipe_handler.dart | 16 ++- wallet/lib/model/event.dart | 109 ++++++++++++++++++ wallet/lib/model/nft.dart | 14 +++ wallet/lib/utils/constants.dart | 40 +++---- wallet/lib/utils/route_util.dart | 7 +- 5 files changed, 159 insertions(+), 27 deletions(-) create mode 100644 wallet/lib/model/event.dart diff --git a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart index 360047341f..661ff9e213 100644 --- a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart +++ b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart @@ -6,6 +6,7 @@ import 'package:pylons_wallet/components/loading.dart'; import 'package:pylons_wallet/ipc/handler/base_handler.dart'; import 'package:pylons_wallet/ipc/models/sdk_ipc_message.dart'; import 'package:pylons_wallet/ipc/models/sdk_ipc_response.dart'; +import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/pages/home/home_provider.dart'; import 'package:pylons_wallet/providers/collections_tab_provider.dart'; import 'package:pylons_wallet/pylons_app.dart'; @@ -36,11 +37,16 @@ class CreateRecipeHandler implements BaseHandler { if (response.success) { if (shouldShowNFTPreview()) { final msgObj = pylons.MsgCreateRecipe.create()..mergeFromProto3Json(jsonMap); - - final nft = await NFT.fromRecipeId(msgObj.cookbookId, msgObj.id); - - if (nft != null) { - await navigatorKey.currentState!.pushNamed(Routes.ownerView.name, arguments: nft); + if (msgObj.cookbookId.contains('Evently')) { + final events = Events.fromRecipeId(msgObj.cookbookId, msgObj.id); + if (events != null) { + await navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); + } + } else { + final nft = await NFT.fromRecipeId(msgObj.cookbookId, msgObj.id); + if (nft != null) { + await navigatorKey.currentState!.pushNamed(Routes.ownerView.name, arguments: nft); + } } GetIt.I.get().changeTabs(0); diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart new file mode 100644 index 0000000000..eaf8a36929 --- /dev/null +++ b/wallet/lib/model/event.dart @@ -0,0 +1,109 @@ +import 'package:equatable/equatable.dart'; +import 'package:get_it/get_it.dart'; +import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/client/pylons/recipe.pb.dart'; +import 'package:pylons_wallet/stores/wallet_store.dart'; +import 'package:pylons_wallet/utils/constants.dart'; + +class Events extends Equatable { + const Events({ + required this.eventName, + required this.hostName, + required this.thumbnail, + required this.startDate, + required this.endDate, + required this.startTime, + required this.endTime, + required this.location, + required this.description, + required this.isFreeDrop, + required this.numberOfTickets, + required this.price, + required this.listOfPerks, + }); + + final String eventName; + + final String hostName; + + final String thumbnail; + + final String startDate; + + final String endDate; + + final String startTime; + + final String endTime; + + final String location; + + final String description; + + final String isFreeDrop; + + final String numberOfTickets; + + final String price; + + final List listOfPerks; + + @override + List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, isFreeDrop, numberOfTickets, price]; + + static Map _extractAttributeValues(List attributes) { + final Map attributeValues = {}; + for (final attribute in attributes) { + switch (attribute.key) { + case kEventName: + case kEventHostName: + case kThumbnail: + case kStartDate: + case kEndDate: + case kStartTime: + case kEndTime: + case kLocation: + case kDescription: + case kPerks: + case kNumberOfTickets: + case kPrice: + attributeValues[attribute.key] = attribute.value; + break; + default: + continue; + } + } + + return attributeValues; + } + + factory Events.fromRecipe(Recipe recipe) { + final Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + + return Events( + eventName: map[kEventName]!, + hostName: map[kEventHostName]!, + thumbnail: map[kThumbnail]!, + startDate: map[kStartDate]!, + endDate: map[kEndDate]!, + startTime: map[kStartTime]!, + endTime: map[kEndTime]!, + location: map[kLocation]!, + description: map[kDescription]!, + isFreeDrop: '', + numberOfTickets: map[kNumberOfTickets]!, + price: map[kPrice]!, + listOfPerks: [], + ); + } + + static Future fromRecipeId(String cookbookId, String recipeId) async { + final walletsStore = GetIt.I.get(); + final recipeEither = await walletsStore.getRecipe(cookbookId, recipeId); + + if (recipeEither.isLeft()) { + return null; + } + + return Events.fromRecipe(recipeEither.toOption().toNullable()!); + } +} diff --git a/wallet/lib/model/nft.dart b/wallet/lib/model/nft.dart index bd78386e10..1d0e7f153f 100644 --- a/wallet/lib/model/nft.dart +++ b/wallet/lib/model/nft.dart @@ -349,6 +349,20 @@ class NFT extends Equatable { return NFT.fromRecipe(recipeEither.toOption().toNullable()!); } + + static Future eventFromRecipeId(String cookbookId, String recipeId) async { + final walletsStore = GetIt.I.get(); + final recipeEither = await walletsStore.getRecipe(cookbookId, recipeId); + + if (recipeEither.isLeft()) { + return null; + } + + return NFT.fromRecipe(recipeEither.toOption().toNullable()!); + } + + + factory NFT.fromJson(Map json) { return NFT( name: json['name'].toString(), diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index d143ff4159..5305120a6d 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -106,13 +106,7 @@ const int kDenomInitial = 1; const int kDenomFinal = 4; const Map kCoinDenom = { - 'upylon': { - "name": "Pylon", - "denom": "upylon", - "short": "pylon", - "icon": "assets/images/icons/pylons_logo_24x24.png", - "faucet": true - }, + 'upylon': {"name": "Pylon", "denom": "upylon", "short": "pylon", "icon": "assets/images/icons/pylons_logo_24x24.png", "faucet": true}, 'BTC': { "name": "Bitcoin", "denom": "BTC", @@ -199,13 +193,7 @@ const IOS_VERSION = '1.0.8+3'; const kCurrencyDecimalLength = 2; const kMaxPriceLength = 14; -List colorList = [ - AppColors.kYellow, - AppColors.kBlue, - AppColors.kDarkPurple, - AppColors.kDarkRed, - AppColors.kDarkGreen -]; +List colorList = [AppColors.kYellow, AppColors.kBlue, AppColors.kDarkPurple, AppColors.kDarkRed, AppColors.kDarkGreen]; List colorListForPracticeTest = [ AppColors.kYellow, AppColors.kDarkPurple, @@ -290,8 +278,7 @@ List> languagesSupported = [ ///review your nft -const String kPylonsFeeMsg = - "The Pylons fee is the network fee assessed on all transactions which is equal to 10% of the listed price."; +const String kPylonsFeeMsg = "The Pylons fee is the network fee assessed on all transactions which is equal to 10% of the listed price."; const String kStripeAccountNotCreatedIdentifier = "onboarding"; const String kNftFormat = "NFT_Format"; const String kDuration = "Duration"; @@ -447,11 +434,7 @@ const kCheckoutDialogKey = "checkout_dialog_key"; const kPurchaseItemBottomSheetKey = "purchase_item_bottom_sheet"; const kCloseBottomSheetKey = "close_bottom_sheet_key"; -Map denomColors = { - 'upylon': const Color(0xFF5252d5), - 'ustripeusd': const Color(0xFF85bb65), - 'uusd': const Color(0xFF85bb65) -}; +Map denomColors = {'upylon': const Color(0xFF5252d5), 'ustripeusd': const Color(0xFF85bb65), 'uusd': const Color(0xFF85bb65)}; const String kNftName = "nftName"; const String kNftPrice = "nftPrice"; @@ -515,3 +498,18 @@ const String drawerKey = "drawer_key"; const String kRemaining = 'remaining'; const kTotal = 'total'; const kFileExtension = "file_extension"; + +///* Event String +/// Event String keys +const kEventName = "kEventName"; +const kEventHostName = "kEventHostName"; +const kThumbnail = "kThumbnail"; +const kStartDate = "kStartDate"; +const kEndDate = "kEndDate"; +const kStartTime = "kStartTime"; +const kEndTime = "kEndTime"; +const kLocation = "kLocation"; +const kPerks = "kPerks"; +const kNumberOfTickets = "kNumberOfTickets"; +const kPrice = "kPrice"; +const kErrRecipe = 'Recipe error :'; diff --git a/wallet/lib/utils/route_util.dart b/wallet/lib/utils/route_util.dart index 5083937cd8..0f7ccf9cf2 100644 --- a/wallet/lib/utils/route_util.dart +++ b/wallet/lib/utils/route_util.dart @@ -111,6 +111,8 @@ class RouteUtil { return createRoute(const SizedBox()); case Routes.transactionHistory: return createRoute(const TransactionHistoryScreen()); + case Routes.eventView: + return createRoute(const Placeholder()); } return null; @@ -146,7 +148,8 @@ enum Routes { purchaseView, transactionHistory, acceptPolicy, - fallback; + fallback, + eventView; static Routes getAppRouteFromString(String routeName) { switch (routeName) { @@ -198,6 +201,8 @@ enum Routes { return localTransactionDetails; case 'transactionHistory': return transactionHistory; + case 'eventView': + return eventView; default: return fallback; } From f1b8c1fb5aedca5059467db81284aac35843a15d Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 12:27:34 +0500 Subject: [PATCH 089/158] feat: route for publishing view --- .../datasources/local_datasource.dart | 2 +- wallet/lib/pages/events/events_screen.dart | 24 +++++++++++++++++++ wallet/lib/utils/route_util.dart | 11 ++++++++- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 wallet/lib/pages/events/events_screen.dart diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 824c64bf07..07b8b19e5c 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -45,7 +45,7 @@ class LocalDataSourceImpl extends LocalDataSource { /// returns cookbookId @override Future autoGenerateCookbookId() async { - final String cookbookId = "Easel_CookBook_auto_cookbook_${getFullDateTime()}"; + final String cookbookId = "Evently_CookBook_auto_cookbook_${getFullDateTime()}"; await sharedPreferences.setString(kCookbookId, cookbookId); return cookbookId; } diff --git a/wallet/lib/pages/events/events_screen.dart b/wallet/lib/pages/events/events_screen.dart new file mode 100644 index 0000000000..b62aa5579a --- /dev/null +++ b/wallet/lib/pages/events/events_screen.dart @@ -0,0 +1,24 @@ +import 'package:flutter/material.dart'; + +import '../../model/event.dart'; + +class EventPassViewScreen extends StatefulWidget { + const EventPassViewScreen({super.key, required this.events}); + + final Events events; + + @override + State createState() => _EventPassViewScreenState(); +} + +class _EventPassViewScreenState extends State { + @override + Widget build(BuildContext context) { + return const Scaffold( + backgroundColor: Colors.black, + body: Column( + children: [], + ), + ); + } +} diff --git a/wallet/lib/utils/route_util.dart b/wallet/lib/utils/route_util.dart index 0f7ccf9cf2..e654a5de99 100644 --- a/wallet/lib/utils/route_util.dart +++ b/wallet/lib/utils/route_util.dart @@ -1,9 +1,11 @@ // ignore_for_file: cast_nullable_to_non_nullable import 'package:flutter/material.dart'; +import 'package:pylons_wallet/pages/events/events_screen.dart'; import 'package:pylons_wallet/pages/settings/screens/general_screen/general_screen.dart'; import 'package:pylons_wallet/pages/settings/screens/recovery_screen/recovery_screen.dart'; +import '../model/event.dart'; import '../model/nft.dart'; import '../model/transaction_failure_model.dart'; import '../pages/detailed_asset_view/owner_view.dart'; @@ -112,7 +114,14 @@ class RouteUtil { case Routes.transactionHistory: return createRoute(const TransactionHistoryScreen()); case Routes.eventView: - return createRoute(const Placeholder()); + if (settings.arguments != null && settings.arguments is NFT) { + return createRoute(EventPassViewScreen( + key: ValueKey(settings.arguments), + events: settings.arguments as Events, + )); + } + + return createRoute(const SizedBox()); } return null; From bd8fcd73dddb6dbc3913ba9494eaa9c0596cd7f4 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 12:59:06 +0500 Subject: [PATCH 090/158] feat: event on the pylons app --- wallet/assets/images/svg/share_icon.svg | 3 + .../handlers/create_recipe_handler.dart | 2 + wallet/lib/pages/events/events_screen.dart | 97 ++++++++++++++++++- wallet/lib/utils/constants.dart | 1 + 4 files changed, 99 insertions(+), 4 deletions(-) create mode 100644 wallet/assets/images/svg/share_icon.svg diff --git a/wallet/assets/images/svg/share_icon.svg b/wallet/assets/images/svg/share_icon.svg new file mode 100644 index 0000000000..60360dfeb0 --- /dev/null +++ b/wallet/assets/images/svg/share_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart index 661ff9e213..98d38b1883 100644 --- a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart +++ b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart @@ -37,6 +37,8 @@ class CreateRecipeHandler implements BaseHandler { if (response.success) { if (shouldShowNFTPreview()) { final msgObj = pylons.MsgCreateRecipe.create()..mergeFromProto3Json(jsonMap); + + if (msgObj.cookbookId.contains('Evently')) { final events = Events.fromRecipeId(msgObj.cookbookId, msgObj.id); if (events != null) { diff --git a/wallet/lib/pages/events/events_screen.dart b/wallet/lib/pages/events/events_screen.dart index b62aa5579a..c938c18544 100644 --- a/wallet/lib/pages/events/events_screen.dart +++ b/wallet/lib/pages/events/events_screen.dart @@ -1,4 +1,7 @@ import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:pylons_wallet/utils/constants.dart'; import '../../model/event.dart'; @@ -14,10 +17,96 @@ class EventPassViewScreen extends StatefulWidget { class _EventPassViewScreenState extends State { @override Widget build(BuildContext context) { - return const Scaffold( - backgroundColor: Colors.black, - body: Column( - children: [], + return ColoredBox( + color: AppColors.kBlack87, + child: SafeArea( + child: Scaffold( + backgroundColor: AppColors.kBlack87, + appBar: AppBar( + backgroundColor: Colors.black, + flexibleSpace: Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Icon( + Icons.arrow_back_ios, + color: AppColors.kWhite, + ), + Text( + 'Event Pass', + style: TextStyle( + fontSize: 18.sp, + fontWeight: FontWeight.w700, + color: AppColors.kWhite, + ), + ), + SvgPicture.asset(shareIcon), + ], + ), + ), + ), + body: Column( + children: [ + Container( + decoration: BoxDecoration(color: AppColors.kBlue), + child: Column( + children: [ + Text(widget.events.eventName), + Row( + children: [ + Column( + children: [ + Text('Date'), + Text(widget.events.startDate), + ], + ), + Column( + children: [ + Text('Time'), + Text(widget.events.startDate), + ], + ) + ], + ), + Row( + children: [ + Column( + children: [ + Text('LOCATION'), + Text(widget.events.location), + ], + ), + Column( + children: [ + Text('SEAT'), + Text("no seat"), + ], + ) + ], + ), + Row( + children: [ + Column( + children: [ + Text('Date'), + Text(widget.events.startDate), + ], + ), + Column( + children: [ + Text('Time'), + Text(widget.events.startDate), + ], + ) + ], + ) + ], + ), + ) + ], + ), + ), ), ); } diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index 5305120a6d..04b1c209a3 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -338,6 +338,7 @@ const kUploadErrorIcon = "assets/images/icons/upload_error_background.svg"; const kSvgCloseButton = 'assets/images/svg/close_button.svg'; const email = "support@pylons.tech"; const mailto = "mailto"; +const shareIcon = "assets/images/svg/share_icon.svg"; const String k3DText = "3D"; const String kThreeDText = "ThreeD"; From 96f06f8a3878e1ab26e2653e783337aea1583621 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 14:13:44 +0500 Subject: [PATCH 091/158] feat: publishing event seting on wallet --- wallet/lib/ipc/handler/handlers/create_recipe_handler.dart | 3 +-- wallet/lib/model/event.dart | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart index 98d38b1883..259e03eecb 100644 --- a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart +++ b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart @@ -38,9 +38,8 @@ class CreateRecipeHandler implements BaseHandler { if (shouldShowNFTPreview()) { final msgObj = pylons.MsgCreateRecipe.create()..mergeFromProto3Json(jsonMap); - if (msgObj.cookbookId.contains('Evently')) { - final events = Events.fromRecipeId(msgObj.cookbookId, msgObj.id); + final events = await Events.fromRecipeId(msgObj.cookbookId, msgObj.id); if (events != null) { await navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); } diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index eaf8a36929..f47ea28073 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -77,7 +77,7 @@ class Events extends Equatable { } factory Events.fromRecipe(Recipe recipe) { - final Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + final map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); return Events( eventName: map[kEventName]!, From a0d0676f27e95b73e1988de663f70bccea9db24a Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 14:28:07 +0500 Subject: [PATCH 092/158] event class to be able to create from receipe --- evently/lib/evently_provider.dart | 1 - evently/lib/models/events.dart | 86 ++++++++++++++----------------- 2 files changed, 40 insertions(+), 47 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index b9485e5f24..bbe871c570 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -267,7 +267,6 @@ class EventlyProvider extends ChangeNotifier { endTime: endTime, location: location, description: description, - isFreeDrop: "isFreeDrop", numberOfTickets: numberOfTickets.toString(), price: price.toString(), listOfPerks: perks.map((e) => e.toString()).toList(), diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 78d10cdc78..ebc2ed0a50 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -7,49 +7,60 @@ import 'package:fixnum/fixnum.dart'; class Event extends Equatable { const Event({ - required this.eventName, - required this.hostName, - required this.thumbnail, - required this.startDate, - required this.endDate, - required this.startTime, - required this.endTime, - required this.location, - required this.description, - required this.isFreeDrop, - required this.numberOfTickets, - required this.price, + ///* overview data + this.eventName = '', + this.hostName = '', + this.thumbnail = '', + + ///* details + this.startDate = '', + this.endDate = '', + this.startTime = '', + this.endTime = '', + this.location = '', + this.description = '', + + ///* perks required this.listOfPerks, + + ///* price + this.numberOfTickets = '0', + this.price = '', + this.isFreeDrop = 'unselected', }); final String eventName; - final String hostName; - final String thumbnail; - final String startDate; - final String endDate; - final String startTime; - final String endTime; - final String location; - final String description; - - final String isFreeDrop; - final String numberOfTickets; - final String price; - final List listOfPerks; + final String isFreeDrop; - @override - List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, isFreeDrop, numberOfTickets, price]; + factory Event.fromRecipe(Recipe recipe) { + Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + + return Event( + eventName: map[kEventName]!, + hostName: map[kEventHostName]!, + thumbnail: map[kThumbnail]!, + startDate: map[kStartDate]!, + endDate: map[kEndDate]!, + startTime: map[kStartTime]!, + endTime: map[kEndTime]!, + location: map[kLocation]!, + description: map[kDescription]!, + numberOfTickets: map[kNumberOfTickets]!, + price: map[kPrice]!, + listOfPerks: [], + ); + } static Map _extractAttributeValues(List attributes) { final Map attributeValues = {}; @@ -77,25 +88,8 @@ class Event extends Equatable { return attributeValues; } - factory Event.fromRecipe(Recipe recipe) { - Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); - - return Event( - eventName: map[kEventName]!, - hostName: map[kEventHostName]!, - thumbnail: map[kThumbnail]!, - startDate: map[kStartDate]!, - endDate: map[kEndDate]!, - startTime: map[kStartTime]!, - endTime: map[kEndTime]!, - location: map[kLocation]!, - description: map[kDescription]!, - isFreeDrop: '', - numberOfTickets: map[kNumberOfTickets]!, - price: map[kPrice]!, - listOfPerks: [], - ); - } + @override + List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price]; } extension CreateRecipe on Event { From 47f1472879ba39bea540f369e80eaebea8ce96ad Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 14:44:20 +0500 Subject: [PATCH 093/158] feat: event class necessary parameters to set --- evently/lib/models/denom.dart | 1 + evently/lib/models/events.dart | 53 +++++++++++++++++++++++++++----- evently/lib/utils/constants.dart | 21 +------------ 3 files changed, 47 insertions(+), 28 deletions(-) diff --git a/evently/lib/models/denom.dart b/evently/lib/models/denom.dart index c35b34ce8a..a107ecff18 100644 --- a/evently/lib/models/denom.dart +++ b/evently/lib/models/denom.dart @@ -1,3 +1,4 @@ +import 'package:evently/models/events.dart'; import 'package:evently/utils/amount_formatter.dart'; import 'package:evently/utils/constants.dart'; import 'package:flutter/material.dart'; diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index ebc2ed0a50..1a99c27470 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,7 +1,6 @@ import 'package:equatable/equatable.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/models/perks_model.dart'; -import 'package:evently/utils/constants.dart'; import 'package:pylons_sdk/low_level.dart'; import 'package:fixnum/fixnum.dart'; @@ -21,12 +20,16 @@ class Event extends Equatable { this.description = '', ///* perks - required this.listOfPerks, + this.listOfPerks = '', ///* price this.numberOfTickets = '0', this.price = '', - this.isFreeDrop = 'unselected', + this.isFreeDrops = 'unselected', + + ///* other + this.cookbookID = '', + this.recipeID = '', }); final String eventName; @@ -40,8 +43,10 @@ class Event extends Equatable { final String description; final String numberOfTickets; final String price; - final List listOfPerks; - final String isFreeDrop; + final String listOfPerks; + final String isFreeDrops; + final String cookbookID; + final String recipeID; factory Event.fromRecipe(Recipe recipe) { Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); @@ -58,7 +63,7 @@ class Event extends Equatable { description: map[kDescription]!, numberOfTickets: map[kNumberOfTickets]!, price: map[kPrice]!, - listOfPerks: [], + listOfPerks: map[kPerks]!, ); } @@ -89,7 +94,12 @@ class Event extends Equatable { } @override - List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price]; + List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID]; + + @override + String toString() { + return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, tradePercentage: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID}'; + } } extension CreateRecipe on Event { @@ -135,9 +145,12 @@ extension CreateRecipe on Event { StringParam(key: kEndTime, value: endTime.trim()), StringParam(key: kLocation, value: location.trim()), StringParam(key: kDescription, value: description.trim()), - StringParam(key: kPerks, value: kPerks.trim()), StringParam(key: kNumberOfTickets, value: numberOfTickets.trim()), StringParam(key: kPrice, value: price.trim()), + StringParam(key: kPerks, value: listOfPerks.trim()), + StringParam(key: kFreeDrop, value: isFreeDrops), + StringParam(key: kCookBookId, value: cookbookID), + StringParam(key: kRecipeId, value: recipeID), ], mutableStrings: [], transferFee: [Coin(denom: kPylonSymbol, amount: transferFeeAmount)], @@ -156,3 +169,27 @@ extension CreateRecipe on Event { ); } } + +/// Event String keys +const kEventName = "kEventName"; +const kEventHostName = "kEventHostName"; +const kThumbnail = "kThumbnail"; +const kStartDate = "kStartDate"; +const kEndDate = "kEndDate"; +const kStartTime = "kStartTime"; +const kEndTime = "kEndTime"; +const kLocation = "kLocation"; +const kDescription = "kDescription"; +const kPerks = "kPerks"; +const kNumberOfTickets = "kNumberOfTickets"; +const kPrice = "kPrice"; +const kFreeDrop = "kFreeDrop"; +const kRecipeId = "kRecipeId"; +const kCookBookId = "kCookBookId"; +const kVersion = "v0.2.0"; +const kUpylon = "upylon"; +const kPylonSymbol = 'upylon'; +const String transferFeeAmount = '1'; +const kEventlyEvent = "Evently_Event"; +const kExtraInfo = "extraInfo"; +const String costPerBlock = '0'; diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 17b1221a18..7d9d93c6cf 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -6,7 +6,6 @@ const kDraft = "Draft"; final List stepLabels = ["overview", "detail", "perks", "price"]; -const kPylonSymbol = 'upylon'; const kUsdSymbol = 'ustripeusd'; const kAtomSymbol = 'uatom'; const kEuroSymbol = 'eeur'; @@ -50,30 +49,12 @@ const kFreeShirt = "free_shirt"; const kFreeGift = "free_gift"; const kFreeDrink = "free_drink"; -const kVersion = "v0.2.0"; -const kUpylon = "upylon"; -const String costPerBlock = '0'; -const kEventlyEvent = "Evently_Event"; + const kResidual = "Residual"; const kQuantity = "Quantity"; const String transferFeeAmount = '1'; -/// Event String keys -const kEventName = "kEventName"; -const kEventHostName = "kEventHostName"; -const kThumbnail = "kThumbnail"; -const kStartDate = "kStartDate"; -const kEndDate = "kEndDate"; -const kStartTime = "kStartTime"; -const kEndTime = "kEndTime"; -const kLocation = "kLocation"; -const kDescription = "kDescription"; -const kPerks = "kPerks"; -const kNumberOfTickets = "kNumberOfTickets"; -const kPrice = "kPrice"; - const kErrRecipe = 'Recipe error :'; -const kExtraInfo = "extraInfo"; /// ```URL constants const ipfsDomain = 'https://ipfs.io/ipfs'; From cfb55f244801eec4c34fdfa290513350a5d5e068 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 14:49:37 +0500 Subject: [PATCH 094/158] feat: publishing code cleaning --- evently/lib/evently_provider.dart | 3 +- evently/lib/models/events.dart | 37 ++++- evently/lib/models/perks_model.dart | 21 --- wallet/lib/model/event.dart | 216 ++++++++++++++++++++++------ wallet/lib/utils/constants.dart | 15 -- 5 files changed, 200 insertions(+), 92 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index bbe871c570..fe2e8a1cb2 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -21,7 +21,6 @@ import 'package:pylons_sdk/low_level.dart'; import 'services/third_party_services/quick_node.dart'; -enum FreeDrop { yes, no, unselected } @LazySingleton() class EventlyProvider extends ChangeNotifier { @@ -257,7 +256,7 @@ class EventlyProvider extends ChangeNotifier { if (isCookBookCreated) { _recipeId = repository.autoGenerateEventlyId(); - final event = Event( + final event = Events( eventName: eventName, hostName: hostName, thumbnail: thumbnail!, diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 1a99c27470..34a3b14a55 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,11 +1,11 @@ import 'package:equatable/equatable.dart'; -import 'package:evently/evently_provider.dart'; -import 'package:evently/models/perks_model.dart'; import 'package:pylons_sdk/low_level.dart'; import 'package:fixnum/fixnum.dart'; -class Event extends Equatable { - const Event({ +enum FreeDrop { yes, no, unselected } + +class Events extends Equatable { + const Events({ ///* overview data this.eventName = '', this.hostName = '', @@ -48,10 +48,10 @@ class Event extends Equatable { final String cookbookID; final String recipeID; - factory Event.fromRecipe(Recipe recipe) { + factory Events.fromRecipe(Recipe recipe) { Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); - return Event( + return Events( eventName: map[kEventName]!, hostName: map[kEventHostName]!, thumbnail: map[kThumbnail]!, @@ -102,7 +102,7 @@ class Event extends Equatable { } } -extension CreateRecipe on Event { +extension CreateRecipe on Events { Recipe createRecipe({ required String cookbookId, required String recipeId, @@ -193,3 +193,26 @@ const String transferFeeAmount = '1'; const kEventlyEvent = "Evently_Event"; const kExtraInfo = "extraInfo"; const String costPerBlock = '0'; + + +class PerksModel { + PerksModel({required this.name, required this.description}); + + final String name; + final String description; + + factory PerksModel.updateName({required String name, required PerksModel perksModel}) => PerksModel( + name: name, + description: perksModel.description, + ); + + factory PerksModel.updateDescription({required String description, required PerksModel perksModel}) => PerksModel( + name: perksModel.name, + description: description, + ); + + @override + String toString() { + return 'PerksModel{name: $name, description: $description}'; + } +} diff --git a/evently/lib/models/perks_model.dart b/evently/lib/models/perks_model.dart index bc9d10c233..e69de29bb2 100644 --- a/evently/lib/models/perks_model.dart +++ b/evently/lib/models/perks_model.dart @@ -1,21 +0,0 @@ -class PerksModel { - PerksModel({required this.name, required this.description}); - - final String name; - final String description; - - factory PerksModel.updateName({required String name, required PerksModel perksModel}) => PerksModel( - name: name, - description: perksModel.description, - ); - - factory PerksModel.updateDescription({required String description, required PerksModel perksModel}) => PerksModel( - name: perksModel.name, - description: description, - ); - - @override - String toString() { - return 'PerksModel{name: $name, description: $description}'; - } -} diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index f47ea28073..60d41f4d97 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -1,54 +1,74 @@ import 'package:equatable/equatable.dart'; +import 'package:fixnum/fixnum.dart'; import 'package:get_it/get_it.dart'; -import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/client/pylons/recipe.pb.dart'; import 'package:pylons_wallet/stores/wallet_store.dart'; -import 'package:pylons_wallet/utils/constants.dart'; +import '../modules/Pylonstech.pylons.pylons/module/client/cosmos/base/v1beta1/coin.pb.dart'; +import '../modules/Pylonstech.pylons.pylons/module/client/pylons/recipe.pb.dart'; + +enum FreeDrop { yes, no, unselected } class Events extends Equatable { const Events({ - required this.eventName, - required this.hostName, - required this.thumbnail, - required this.startDate, - required this.endDate, - required this.startTime, - required this.endTime, - required this.location, - required this.description, - required this.isFreeDrop, - required this.numberOfTickets, - required this.price, - required this.listOfPerks, + ///* overview data + this.eventName = '', + this.hostName = '', + this.thumbnail = '', + + ///* details + this.startDate = '', + this.endDate = '', + this.startTime = '', + this.endTime = '', + this.location = '', + this.description = '', + + ///* perks + this.listOfPerks = '', + + ///* price + this.numberOfTickets = '0', + this.price = '', + this.isFreeDrops = 'unselected', + + ///* other + this.cookbookID = '', + this.recipeID = '', }); final String eventName; - final String hostName; - final String thumbnail; - final String startDate; - final String endDate; - final String startTime; - final String endTime; - final String location; - final String description; - - final String isFreeDrop; - final String numberOfTickets; - final String price; + final String listOfPerks; + final String isFreeDrops; + final String cookbookID; + final String recipeID; - final List listOfPerks; + factory Events.fromRecipe(Recipe recipe) { + Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); - @override - List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, isFreeDrop, numberOfTickets, price]; + return Events( + eventName: map[kEventName]!, + hostName: map[kEventHostName]!, + thumbnail: map[kThumbnail]!, + startDate: map[kStartDate]!, + endDate: map[kEndDate]!, + startTime: map[kStartTime]!, + endTime: map[kEndTime]!, + location: map[kLocation]!, + description: map[kDescription]!, + numberOfTickets: map[kNumberOfTickets]!, + price: map[kPrice]!, + listOfPerks: map[kPerks]!, + ); + } static Map _extractAttributeValues(List attributes) { final Map attributeValues = {}; @@ -76,24 +96,12 @@ class Events extends Equatable { return attributeValues; } - factory Events.fromRecipe(Recipe recipe) { - final map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + @override + List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID]; - return Events( - eventName: map[kEventName]!, - hostName: map[kEventHostName]!, - thumbnail: map[kThumbnail]!, - startDate: map[kStartDate]!, - endDate: map[kEndDate]!, - startTime: map[kStartTime]!, - endTime: map[kEndTime]!, - location: map[kLocation]!, - description: map[kDescription]!, - isFreeDrop: '', - numberOfTickets: map[kNumberOfTickets]!, - price: map[kPrice]!, - listOfPerks: [], - ); + @override + String toString() { + return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, tradePercentage: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID}'; } static Future fromRecipeId(String cookbookId, String recipeId) async { @@ -107,3 +115,117 @@ class Events extends Equatable { return Events.fromRecipe(recipeEither.toOption().toNullable()!); } } + +extension CreateRecipe on Events { + Recipe createRecipe({ + required String cookbookId, + required String recipeId, + required FreeDrop isFreeDrop, + required String symbol, + required List perksList, + required String price, + }) { + return Recipe( + cookbookId: cookbookId, + id: recipeId, + nodeVersion: Int64(1), + name: eventName.trim(), + description: description.trim(), + version: kVersion, + coinInputs: [ + if (isFreeDrop == FreeDrop.yes) + CoinInput() + else + CoinInput( + coins: [Coin(amount: price, denom: symbol)], + ) + ], + itemInputs: [], + costPerBlock: Coin(denom: kUpylon, amount: costPerBlock), + entries: EntriesList( + coinOutputs: [], + itemOutputs: [ + ItemOutput( + id: kEventlyEvent, + doubles: [], + longs: [], + strings: [ + StringParam(key: kEventName, value: eventName.trim()), + StringParam(key: kEventHostName, value: hostName.trim()), + StringParam(key: kThumbnail, value: thumbnail.trim()), + StringParam(key: kStartDate, value: startDate.trim()), + StringParam(key: kEndDate, value: endDate.trim()), + StringParam(key: kStartTime, value: startTime.trim()), + StringParam(key: kEndTime, value: endTime.trim()), + StringParam(key: kLocation, value: location.trim()), + StringParam(key: kDescription, value: description.trim()), + StringParam(key: kNumberOfTickets, value: numberOfTickets.trim()), + StringParam(key: kPrice, value: price.trim()), + StringParam(key: kPerks, value: listOfPerks.trim()), + StringParam(key: kFreeDrop, value: isFreeDrops), + StringParam(key: kCookBookId, value: cookbookID), + StringParam(key: kRecipeId, value: recipeID), + ], + mutableStrings: [], + transferFee: [Coin(denom: kPylonSymbol, amount: transferFeeAmount)], + tradeable: true, + amountMinted: Int64(), + ), + ], + itemModifyOutputs: [], + ), + outputs: [ + WeightedOutputs(entryIds: [kEventlyEvent], weight: Int64(1)) + ], + blockInterval: Int64(), + enabled: true, + extraInfo: kExtraInfo, + ); + } +} + +/// Event String keys +const kEventName = "kEventName"; +const kEventHostName = "kEventHostName"; +const kThumbnail = "kThumbnail"; +const kStartDate = "kStartDate"; +const kEndDate = "kEndDate"; +const kStartTime = "kStartTime"; +const kEndTime = "kEndTime"; +const kLocation = "kLocation"; +const kDescription = "kDescription"; +const kPerks = "kPerks"; +const kNumberOfTickets = "kNumberOfTickets"; +const kPrice = "kPrice"; +const kFreeDrop = "kFreeDrop"; +const kRecipeId = "kRecipeId"; +const kCookBookId = "kCookBookId"; +const kVersion = "v0.2.0"; +const kUpylon = "upylon"; +const kPylonSymbol = 'upylon'; +const String transferFeeAmount = '1'; +const kEventlyEvent = "Evently_Event"; +const kExtraInfo = "extraInfo"; +const String costPerBlock = '0'; + +class PerksModel { + PerksModel({required this.name, required this.description}); + + final String name; + final String description; + + factory PerksModel.updateName({required String name, required PerksModel perksModel}) => PerksModel( + name: name, + description: perksModel.description, + ); + + factory PerksModel.updateDescription({required String description, required PerksModel perksModel}) => PerksModel( + name: perksModel.name, + description: description, + ); + + @override + String toString() { + return 'PerksModel{name: $name, description: $description}'; + } +} diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index 04b1c209a3..ecde213025 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -499,18 +499,3 @@ const String drawerKey = "drawer_key"; const String kRemaining = 'remaining'; const kTotal = 'total'; const kFileExtension = "file_extension"; - -///* Event String -/// Event String keys -const kEventName = "kEventName"; -const kEventHostName = "kEventHostName"; -const kThumbnail = "kThumbnail"; -const kStartDate = "kStartDate"; -const kEndDate = "kEndDate"; -const kStartTime = "kStartTime"; -const kEndTime = "kEndTime"; -const kLocation = "kLocation"; -const kPerks = "kPerks"; -const kNumberOfTickets = "kNumberOfTickets"; -const kPrice = "kPrice"; -const kErrRecipe = 'Recipe error :'; From 525b08c3d90647c19b7714e74352639f3cda04ed Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:00:43 +0500 Subject: [PATCH 095/158] feat:fixes on publishing --- evently/lib/evently_provider.dart | 4 +--- evently/lib/models/events.dart | 23 ++++++++++++----------- evently/lib/models/perks_model.dart | 0 evently/lib/screens/perks_screen.dart | 2 +- evently/lib/screens/price_screen.dart | 1 + 5 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 evently/lib/models/perks_model.dart diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index fe2e8a1cb2..55fd917fc0 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -5,7 +5,6 @@ import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/main.dart'; import 'package:evently/models/denom.dart'; import 'package:evently/models/events.dart'; -import 'package:evently/models/perks_model.dart'; import 'package:evently/models/picked_file_model.dart'; import 'package:evently/models/storage_response_model.dart'; import 'package:evently/repository/repository.dart'; @@ -21,7 +20,6 @@ import 'package:pylons_sdk/low_level.dart'; import 'services/third_party_services/quick_node.dart'; - @LazySingleton() class EventlyProvider extends ChangeNotifier { EventlyProvider({ @@ -268,7 +266,7 @@ class EventlyProvider extends ChangeNotifier { description: description, numberOfTickets: numberOfTickets.toString(), price: price.toString(), - listOfPerks: perks.map((e) => e.toString()).toList(), + listOfPerks: perks.join(','), ); final recipe = event.createRecipe( diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 34a3b14a55..579384d132 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -50,7 +50,6 @@ class Events extends Equatable { factory Events.fromRecipe(Recipe recipe) { Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); - return Events( eventName: map[kEventName]!, hostName: map[kEventHostName]!, @@ -80,9 +79,12 @@ class Events extends Equatable { case kEndTime: case kLocation: case kDescription: - case kPerks: case kNumberOfTickets: case kPrice: + case kPerks: + case kFreeDrop: + case kCookBookId: + case kRecipeId: attributeValues[attribute.key] = attribute.value; break; default: @@ -189,11 +191,10 @@ const kCookBookId = "kCookBookId"; const kVersion = "v0.2.0"; const kUpylon = "upylon"; const kPylonSymbol = 'upylon'; -const String transferFeeAmount = '1'; +const transferFeeAmount = '1'; const kEventlyEvent = "Evently_Event"; const kExtraInfo = "extraInfo"; -const String costPerBlock = '0'; - +const costPerBlock = '0'; class PerksModel { PerksModel({required this.name, required this.description}); @@ -202,14 +203,14 @@ class PerksModel { final String description; factory PerksModel.updateName({required String name, required PerksModel perksModel}) => PerksModel( - name: name, - description: perksModel.description, - ); + name: name, + description: perksModel.description, + ); factory PerksModel.updateDescription({required String description, required PerksModel perksModel}) => PerksModel( - name: perksModel.name, - description: description, - ); + name: perksModel.name, + description: description, + ); @override String toString() { diff --git a/evently/lib/models/perks_model.dart b/evently/lib/models/perks_model.dart deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index fc9efab293..097aed9675 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -1,7 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/generated/locale_keys.g.dart'; -import 'package:evently/models/perks_model.dart'; +import 'package:evently/models/events.dart'; import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 3db25b2b1d..9ab2f504ae 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -1,5 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; +import 'package:evently/models/events.dart'; import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; From dee33b440cc4e55fcbf246246e75c6c19561e11f Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:04:55 +0500 Subject: [PATCH 096/158] fix: host name while creating event --- evently/lib/evently_provider.dart | 2 -- 1 file changed, 2 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 55fd917fc0..448a54e4e7 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -238,8 +238,6 @@ class EventlyProvider extends ChangeNotifier { _selectedDenom = supportedDenomList.first; } } - setHostName = currentUserName; - return sdkResponse; } From 0e67eaf09582fbfa1226fe3347e36fce6076c6d4 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:08:57 +0500 Subject: [PATCH 097/158] feat: cookbook id and recepie id in --- evently/lib/evently_provider.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 448a54e4e7..d5a32b9816 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -265,6 +265,8 @@ class EventlyProvider extends ChangeNotifier { numberOfTickets: numberOfTickets.toString(), price: price.toString(), listOfPerks: perks.join(','), + cookbookID: _cookbookId!, + recipeID: _recipeId, ); final recipe = event.createRecipe( From dee7f160eee0fb3066f46ec9f8cb5543f497154b Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:18:20 +0500 Subject: [PATCH 098/158] feat: delete created event from draftr --- evently/lib/evently_provider.dart | 13 ++++++++++--- .../lib/screens/event_hub/event_hub_view_model.dart | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 evently/lib/screens/event_hub/event_hub_view_model.dart diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index d5a32b9816..00fb772465 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -8,6 +8,8 @@ import 'package:evently/models/events.dart'; import 'package:evently/models/picked_file_model.dart'; import 'package:evently/models/storage_response_model.dart'; import 'package:evently/repository/repository.dart'; +import 'package:evently/screens/event_hub/event_hub_screen.dart'; +import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/extension_util.dart'; import 'package:evently/utils/failure/failure.dart'; @@ -15,6 +17,7 @@ import 'package:evently/widgets/loading_with_progress.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; +import 'package:get_it/get_it.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/low_level.dart'; @@ -285,15 +288,19 @@ class EventlyProvider extends ChangeNotifier { return false; } scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - // final nftFromRecipe = Event.fromRecipe(recipe); - // GetIt.I.get<>().updatePublishedNFTList(nft: nftFromRecipe); - // deleteNft(nft.id); + final nftFromRecipe = Events.fromRecipe(recipe); + GetIt.I.get().updatePublishedNFTList(nft: nftFromRecipe); + deleteNft(); return true; } return false; } + Future deleteNft() async { + notifyListeners(); + } + /// send createCookBook tx message to the wallet app /// return true or false depending on the response from the wallet app Future createCookbook() async { diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart new file mode 100644 index 0000000000..9dbcad391e --- /dev/null +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -0,0 +1,10 @@ +import 'package:evently/models/events.dart'; +import 'package:flutter/cupertino.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class EventHubViewModel extends ChangeNotifier { + + + void updatePublishedNFTList({required Events nft}) {} +} From c4a4e158acd89f4228e2e9cb6ff15a0ac093dcd7 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:20:23 +0500 Subject: [PATCH 099/158] feat: update publish events --- evently/lib/evently_provider.dart | 6 +++--- evently/lib/screens/event_hub/event_hub_view_model.dart | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 00fb772465..d08d8b9fb6 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -289,15 +289,15 @@ class EventlyProvider extends ChangeNotifier { } scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); final nftFromRecipe = Events.fromRecipe(recipe); - GetIt.I.get().updatePublishedNFTList(nft: nftFromRecipe); - deleteNft(); + GetIt.I.get().updatePublishedEventList(nft: nftFromRecipe); + deleteEvent(); return true; } return false; } - Future deleteNft() async { + Future deleteEvent() async { notifyListeners(); } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 9dbcad391e..6e5e0d0075 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -4,7 +4,9 @@ import 'package:injectable/injectable.dart'; @lazySingleton class EventHubViewModel extends ChangeNotifier { + final List _eventPublishedList = []; + List get eventPublishedList => _eventPublishedList; - void updatePublishedNFTList({required Events nft}) {} + void updatePublishedEventList({required Events nft}) {} } From 2d144ef7bb0f2267942958cbab8ac58ea30d495b Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:25:30 +0500 Subject: [PATCH 100/158] feat: event sale list on the creator hub --- evently/lib/evently_provider.dart | 4 ++-- .../event_hub/event_hub_view_model.dart | 22 +++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index d08d8b9fb6..e9fd280f46 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -288,8 +288,8 @@ class EventlyProvider extends ChangeNotifier { return false; } scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - final nftFromRecipe = Events.fromRecipe(recipe); - GetIt.I.get().updatePublishedEventList(nft: nftFromRecipe); + final eventsFromRecipe = Events.fromRecipe(recipe); + GetIt.I.get().updatePublishedEventList(events: eventsFromRecipe); deleteEvent(); return true; } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 6e5e0d0075..3a7e7e260e 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -4,9 +4,27 @@ import 'package:injectable/injectable.dart'; @lazySingleton class EventHubViewModel extends ChangeNotifier { - final List _eventPublishedList = []; + List _eventPublishedList = []; List get eventPublishedList => _eventPublishedList; - void updatePublishedEventList({required Events nft}) {} + List _eventForSaleList = []; + + List get eventForSaleList => _eventForSaleList; + + set setEventForSaleList(List nftForSale) { + _eventForSaleList = nftForSale; + notifyListeners(); + } + + set setEventPublishList(List events) { + _eventPublishedList = events; + notifyListeners(); + } + + void updatePublishedEventList({required Events events}) { + _eventPublishedList.add(events); + _eventForSaleList.add(events); + notifyListeners(); + } } From 77f8ae19cfaace5a7b9b879751a6b571d75d7a78 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:37:09 +0500 Subject: [PATCH 101/158] feat: event hub --- evently/lib/evently_provider.dart | 1 - .../event_hub/event_hub_view_model.dart | 23 ++++++++++ evently/lib/utils/di/di.config.dart | 46 ++++++++++--------- 3 files changed, 47 insertions(+), 23 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index e9fd280f46..415dd3b844 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -8,7 +8,6 @@ import 'package:evently/models/events.dart'; import 'package:evently/models/picked_file_model.dart'; import 'package:evently/models/storage_response_model.dart'; import 'package:evently/repository/repository.dart'; -import 'package:evently/screens/event_hub/event_hub_screen.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/extension_util.dart'; diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 3a7e7e260e..481d783fc9 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -2,6 +2,8 @@ import 'package:evently/models/events.dart'; import 'package:flutter/cupertino.dart'; import 'package:injectable/injectable.dart'; +enum CollectionType { draft, forSale, history } + @lazySingleton class EventHubViewModel extends ChangeNotifier { List _eventPublishedList = []; @@ -27,4 +29,25 @@ class EventHubViewModel extends ChangeNotifier { _eventForSaleList.add(events); notifyListeners(); } + + CollectionType selectedCollectionType = CollectionType.draft; + + void changeSelectedCollection(CollectionType collectionType) { + switch (collectionType) { + case CollectionType.draft: + selectedCollectionType = CollectionType.draft; + notifyListeners(); + break; + + case CollectionType.forSale: + selectedCollectionType = CollectionType.forSale; + notifyListeners(); + break; + + case CollectionType.history: + selectedCollectionType = CollectionType.history; + notifyListeners(); + break; + } + } } diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index 84941fbb75..e681b1037a 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -9,19 +9,20 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:dio/dio.dart' as _i6; -import 'package:evently/evently_provider.dart' as _i13; -import 'package:evently/repository/repository.dart' as _i12; -import 'package:evently/services/datasources/local_datasource.dart' as _i7; -import 'package:evently/services/datasources/remote_datasource.dart' as _i11; -import 'package:evently/services/third_party_services/quick_node.dart' as _i10; -import 'package:evently/utils/di/register_modules.dart' as _i14; -import 'package:evently/utils/file_utils_helper.dart' as _i9; +import 'package:evently/evently_provider.dart' as _i14; +import 'package:evently/repository/repository.dart' as _i13; +import 'package:evently/screens/event_hub/event_hub_view_model.dart' as _i7; +import 'package:evently/services/datasources/local_datasource.dart' as _i8; +import 'package:evently/services/datasources/remote_datasource.dart' as _i12; +import 'package:evently/services/third_party_services/quick_node.dart' as _i11; +import 'package:evently/utils/di/register_modules.dart' as _i15; +import 'package:evently/utils/file_utils_helper.dart' as _i10; import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; import 'package:file_picker/file_picker.dart' as _i5; import 'package:get_it/get_it.dart' as _i1; import 'package:image_cropper/image_cropper.dart' as _i4; import 'package:injectable/injectable.dart' as _i2; -import 'package:shared_preferences/shared_preferences.dart' as _i8; +import 'package:shared_preferences/shared_preferences.dart' as _i9; extension GetItInjectableX on _i1.GetIt { // initializes the registration of main-scope dependencies inside of GetIt @@ -40,25 +41,26 @@ extension GetItInjectableX on _i1.GetIt { gh.lazySingleton<_i4.ImageCropper>(() => registerModule.imageCropper); gh.lazySingleton<_i5.FilePicker>(() => registerModule.filePicker); gh.lazySingleton<_i6.Dio>(() => registerModule.dio); - gh.lazySingleton<_i7.LocalDataSource>(() => _i7.LocalDataSourceImpl( - sharedPreferences: gh<_i8.SharedPreferences>())); - gh.lazySingleton<_i9.FileUtilsHelper>(() => _i9.FileUtilsHelperImpl( + gh.lazySingleton<_i7.EventHubViewModel>(() => _i7.EventHubViewModel()); + gh.lazySingleton<_i8.LocalDataSource>(() => _i8.LocalDataSourceImpl( + sharedPreferences: gh<_i9.SharedPreferences>())); + gh.lazySingleton<_i10.FileUtilsHelper>(() => _i10.FileUtilsHelperImpl( imageCropper: gh<_i4.ImageCropper>(), filePicker: gh<_i5.FilePicker>(), )); - gh.lazySingleton<_i10.QuickNode>( - () => _i10.QuickNodeImpl(httpClient: gh<_i6.Dio>())); - gh.lazySingleton<_i11.RemoteDataSource>( - () => _i11.RemoteDataSourceImpl(quickNode: gh<_i10.QuickNode>())); - gh.lazySingleton<_i12.Repository>(() => _i12.RepositoryImp( - fileUtilsHelper: gh<_i9.FileUtilsHelper>(), - localDataSource: gh<_i7.LocalDataSource>(), - remoteDataSource: gh<_i11.RemoteDataSource>(), + gh.lazySingleton<_i11.QuickNode>( + () => _i11.QuickNodeImpl(httpClient: gh<_i6.Dio>())); + gh.lazySingleton<_i12.RemoteDataSource>( + () => _i12.RemoteDataSourceImpl(quickNode: gh<_i11.QuickNode>())); + gh.lazySingleton<_i13.Repository>(() => _i13.RepositoryImp( + fileUtilsHelper: gh<_i10.FileUtilsHelper>(), + localDataSource: gh<_i8.LocalDataSource>(), + remoteDataSource: gh<_i12.RemoteDataSource>(), )); - gh.lazySingleton<_i13.EventlyProvider>( - () => _i13.EventlyProvider(repository: gh<_i12.Repository>())); + gh.lazySingleton<_i14.EventlyProvider>( + () => _i14.EventlyProvider(repository: gh<_i13.Repository>())); return this; } } -class _$RegisterModule extends _i14.RegisterModule {} +class _$RegisterModule extends _i15.RegisterModule {} From 6f0f5aa7928bb04dcca376e0b6ab15e44e4afa21 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 15:44:29 +0500 Subject: [PATCH 102/158] feat: if there is one cook book id then we can get the data on the basis of cook bookl --- evently/lib/evently_provider.dart | 90 +++++++++++++++++-------------- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 415dd3b844..d8f843d012 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -249,51 +249,59 @@ class EventlyProvider extends ChangeNotifier { Future createRecipe() async { final scaffoldMessengerState = navigatorKey.getState(); - final isCookBookCreated = await createCookbook(); - - if (isCookBookCreated) { - _recipeId = repository.autoGenerateEventlyId(); - - final event = Events( - eventName: eventName, - hostName: hostName, - thumbnail: thumbnail!, - startDate: startDate, - endDate: endDate, - startTime: startTime, - endTime: endTime, - location: location, - description: description, - numberOfTickets: numberOfTickets.toString(), - price: price.toString(), - listOfPerks: perks.join(','), - cookbookID: _cookbookId!, - recipeID: _recipeId, - ); - - final recipe = event.createRecipe( - cookbookId: _cookbookId!, - recipeId: _recipeId, - isFreeDrop: isFreeDrop, - symbol: selectedDenom.symbol, - perksList: perks, - price: price.toString(), - ); - - final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); - - if (!response.success) { - scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); + _cookbookId = repository.getCookbookId(); + + if (_cookbookId == null) { + // create cookbook + final isCookBookCreated = await createCookbook(); + + if (isCookBookCreated) { + _cookbookId = repository.getCookbookId(); + notifyListeners(); + } else { return false; } - scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - final eventsFromRecipe = Events.fromRecipe(recipe); - GetIt.I.get().updatePublishedEventList(events: eventsFromRecipe); - deleteEvent(); - return true; } - return false; + _recipeId = repository.autoGenerateEventlyId(); + + final event = Events( + eventName: eventName, + hostName: hostName, + thumbnail: thumbnail!, + startDate: startDate, + endDate: endDate, + startTime: startTime, + endTime: endTime, + location: location, + description: description, + numberOfTickets: numberOfTickets.toString(), + price: price.toString(), + listOfPerks: perks.join(','), + cookbookID: _cookbookId!, + recipeID: _recipeId, + ); + + final recipe = event.createRecipe( + cookbookId: _cookbookId!, + recipeId: _recipeId, + isFreeDrop: isFreeDrop, + symbol: selectedDenom.symbol, + perksList: perks, + price: price.toString(), + ); + + final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); + + if (!response.success) { + scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); + return false; + } + scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); + final eventsFromRecipe = Events.fromRecipe(recipe); + GetIt.I.get().updatePublishedEventList(events: eventsFromRecipe); + deleteEvent(); + return true; } Future deleteEvent() async { From b8912e1173376fb55f88bfa33500486eeed617e7 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 16:09:37 +0500 Subject: [PATCH 103/158] feat: get publish event list --- evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/evently_provider.dart | 1 - evently/lib/generated/locale_keys.g.dart | 1 + evently/lib/repository/repository.dart | 21 ++++++++- .../event_hub/event_hub_view_model.dart | 39 ++++++++++++++++ .../datasources/remote_datasource.dart | 12 +++++ evently/lib/utils/di/di.config.dart | 45 ++++++++++--------- evently/lib/utils/failure/failure.dart | 14 ++++++ .../Flutter/GeneratedPluginRegistrant.swift | 2 + evently/pubspec.lock | 32 +++++++++++++ evently/pubspec.yaml | 1 + 14 files changed, 152 insertions(+), 28 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 9bed4c9030..033e923f1f 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -61,5 +61,6 @@ "recipe_created": "Recipe созданный", "update_failed": "Upload Fehlgeschlagen", "uploading": "Hochladen ...", - "something_wrong_while_uploading": "Beim Hochladen ist etwas schief gelaufen. Bitte versuche es erneut." + "something_wrong_while_uploading": "Beim Hochladen ist etwas schief gelaufen. Bitte versuche es erneut.", + "cookbook_not_found": "Cookbook nicht gefunden" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 25487d1b89..63453ae74e 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -61,5 +61,6 @@ "recipe_created": "Recipe created", "update_failed": "Upload Failed", "uploading": "Uploading ...", - "something_wrong_while_uploading": "Something went wrong while uploading. Please try again." + "something_wrong_while_uploading": "Something went wrong while uploading. Please try again.", + "cookbook_not_found": "Cookbook not found" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 281c7ee53a..ddd61defe1 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -61,5 +61,6 @@ "recipe_created": "Recipe creada", "update_failed": "Subida ha fallado", "uploading": "Subiendo...", - "something_wrong_while_uploading": "Algo salió mal durante la carga. Inténtalo de nuevo." + "something_wrong_while_uploading": "Algo salió mal durante la carga. Inténtalo de nuevo.", + "cookbook_not_found": "Cookbook extraviado" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 20ed93a46b..1940b33798 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -61,5 +61,6 @@ "recipe_created": "Recipe созданный", "update_failed": "Загрузка не удалась", "uploading": "Загрузка...", - "something_wrong_while_uploading": "Что-то пошло не так во время загрузки. Пожалуйста, попробуйте еще раз." + "something_wrong_while_uploading": "Что-то пошло не так во время загрузки. Пожалуйста, попробуйте еще раз.", + "cookbook_not_found": "Cookbook не найден" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index d8f843d012..4e2275e7e8 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -252,7 +252,6 @@ class EventlyProvider extends ChangeNotifier { _cookbookId = repository.getCookbookId(); if (_cookbookId == null) { - // create cookbook final isCookBookCreated = await createCookbook(); if (isCookBookCreated) { diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index a55f453afc..7091981e24 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -62,5 +62,6 @@ abstract class LocaleKeys { static const update_failed = 'update_failed'; static const uploading = 'uploading'; static const something_wrong_while_uploading = 'something_wrong_while_uploading'; + static const cookbook_not_found = 'cookbook_not_found'; } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 071eac59cc..81cc023cd7 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -1,3 +1,4 @@ +import 'dart:developer'; import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; @@ -8,7 +9,7 @@ import 'package:evently/services/datasources/remote_datasource.dart'; import 'package:evently/services/third_party_services/quick_node.dart'; import 'package:evently/utils/file_utils_helper.dart'; import 'package:injectable/injectable.dart'; - +import 'package:pylons_sdk/low_level.dart'; import '../utils/failure/failure.dart'; abstract class Repository { @@ -46,6 +47,12 @@ abstract class Repository { /// This method will get the artist name /// Output: [String] returns whether the operation is successful or not String getHostName(); + + /// This method returns the recipe list + /// Input : [cookBookId] id of the cookbook + /// Output: if successful the output will be the list of [pylons.Recipe] + /// will return error in the form of failure + Future>> getRecipesBasedOnCookBookId({required String cookBookId}); } @LazySingleton(as: Repository) @@ -110,4 +117,16 @@ class RepositoryImp implements Repository { String getHostName() { return localDataSource.getHostName(); } + + @override + Future>> getRecipesBasedOnCookBookId({required String cookBookId}) async { + try { + final sdkResponse = await remoteDataSource.getRecipesByCookbookID(cookBookId); + log(sdkResponse.toString(), name: 'pylons_sdk'); + + return Right(sdkResponse); + } on Exception catch (_) { + return Left(CookBookNotFoundFailure(LocaleKeys.cookbook_not_found.tr())); + } + } } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 481d783fc9..0ef88415b4 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -1,11 +1,17 @@ import 'package:evently/models/events.dart'; +import 'package:evently/repository/repository.dart'; import 'package:flutter/cupertino.dart'; import 'package:injectable/injectable.dart'; +import 'package:pylons_sdk/pylons_sdk.dart'; enum CollectionType { draft, forSale, history } @lazySingleton class EventHubViewModel extends ChangeNotifier { + EventHubViewModel(this.repository); + + final Repository repository; + List _eventPublishedList = []; List get eventPublishedList => _eventPublishedList; @@ -50,4 +56,37 @@ class EventHubViewModel extends ChangeNotifier { break; } } + + String? getCookbookIdFromLocalDatasource() { + return repository.getCookbookId(); + } + + Future getRecipesList() async { + final isPylonsExist = await PylonsWallet.instance.exists(); + + if (!isPylonsExist) { + return; + } + + final cookBookId = getCookbookIdFromLocalDatasource(); + if (cookBookId == null) { + return; + } + + final recipesListEither = await repository.getRecipesBasedOnCookBookId(cookBookId: cookBookId); + + if (recipesListEither.isLeft()) { + return; + } + + final recipesList = recipesListEither.getOrElse(() => []); + + if (recipesList.isEmpty) { + return; + } + for (final recipe in recipesList) { + final nft = Events.fromRecipe(recipe); + _eventPublishedList.add(nft); + } + } } diff --git a/evently/lib/services/datasources/remote_datasource.dart b/evently/lib/services/datasources/remote_datasource.dart index b82bdd55e7..01f938f428 100644 --- a/evently/lib/services/datasources/remote_datasource.dart +++ b/evently/lib/services/datasources/remote_datasource.dart @@ -1,12 +1,18 @@ import 'package:evently/models/storage_response_model.dart'; import 'package:evently/services/third_party_services/quick_node.dart'; import 'package:injectable/injectable.dart'; +import 'package:pylons_sdk/low_level.dart'; abstract class RemoteDataSource { /// This method is used uploading provided file to the server using [QuickNode] /// Input : [UploadIPFSInput] which needs to be uploaded /// Output : [Future>] the ApiResponse which can contain [success] or [error] response Future uploadFileUsingQuickNode({required UploadIPFSInput uploadIPFSInput, required OnUploadProgressCallback onUploadProgressCallback}); + + /// This method is used to getRecipesList based on CookbookID + /// Input : [cookBookID] against which recipes needs to be fetched + /// Output : [Future>] which will be a Future list of Recipes against the given [cookbookID] + Future> getRecipesByCookbookID(String cookBookID); } @LazySingleton(as: RemoteDataSource) @@ -20,4 +26,10 @@ class RemoteDataSourceImpl extends RemoteDataSource { final response = await quickNode.uploadNewObjectToIPFS(uploadIPFSInput: uploadIPFSInput, onUploadProgressCallback: onUploadProgressCallback); return response; } + + @override + Future> getRecipesByCookbookID(String cookBookID) async { + final sdkResponse = await PylonsWallet.instance.getRecipes(cookBookID); + return sdkResponse.data!; + } } diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index e681b1037a..d702697c9d 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -9,20 +9,20 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:dio/dio.dart' as _i6; -import 'package:evently/evently_provider.dart' as _i14; -import 'package:evently/repository/repository.dart' as _i13; -import 'package:evently/screens/event_hub/event_hub_view_model.dart' as _i7; -import 'package:evently/services/datasources/local_datasource.dart' as _i8; -import 'package:evently/services/datasources/remote_datasource.dart' as _i12; -import 'package:evently/services/third_party_services/quick_node.dart' as _i11; +import 'package:evently/evently_provider.dart' as _i13; +import 'package:evently/repository/repository.dart' as _i12; +import 'package:evently/screens/event_hub/event_hub_view_model.dart' as _i14; +import 'package:evently/services/datasources/local_datasource.dart' as _i7; +import 'package:evently/services/datasources/remote_datasource.dart' as _i11; +import 'package:evently/services/third_party_services/quick_node.dart' as _i10; import 'package:evently/utils/di/register_modules.dart' as _i15; -import 'package:evently/utils/file_utils_helper.dart' as _i10; +import 'package:evently/utils/file_utils_helper.dart' as _i9; import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; import 'package:file_picker/file_picker.dart' as _i5; import 'package:get_it/get_it.dart' as _i1; import 'package:image_cropper/image_cropper.dart' as _i4; import 'package:injectable/injectable.dart' as _i2; -import 'package:shared_preferences/shared_preferences.dart' as _i9; +import 'package:shared_preferences/shared_preferences.dart' as _i8; extension GetItInjectableX on _i1.GetIt { // initializes the registration of main-scope dependencies inside of GetIt @@ -41,24 +41,25 @@ extension GetItInjectableX on _i1.GetIt { gh.lazySingleton<_i4.ImageCropper>(() => registerModule.imageCropper); gh.lazySingleton<_i5.FilePicker>(() => registerModule.filePicker); gh.lazySingleton<_i6.Dio>(() => registerModule.dio); - gh.lazySingleton<_i7.EventHubViewModel>(() => _i7.EventHubViewModel()); - gh.lazySingleton<_i8.LocalDataSource>(() => _i8.LocalDataSourceImpl( - sharedPreferences: gh<_i9.SharedPreferences>())); - gh.lazySingleton<_i10.FileUtilsHelper>(() => _i10.FileUtilsHelperImpl( + gh.lazySingleton<_i7.LocalDataSource>(() => _i7.LocalDataSourceImpl( + sharedPreferences: gh<_i8.SharedPreferences>())); + gh.lazySingleton<_i9.FileUtilsHelper>(() => _i9.FileUtilsHelperImpl( imageCropper: gh<_i4.ImageCropper>(), filePicker: gh<_i5.FilePicker>(), )); - gh.lazySingleton<_i11.QuickNode>( - () => _i11.QuickNodeImpl(httpClient: gh<_i6.Dio>())); - gh.lazySingleton<_i12.RemoteDataSource>( - () => _i12.RemoteDataSourceImpl(quickNode: gh<_i11.QuickNode>())); - gh.lazySingleton<_i13.Repository>(() => _i13.RepositoryImp( - fileUtilsHelper: gh<_i10.FileUtilsHelper>(), - localDataSource: gh<_i8.LocalDataSource>(), - remoteDataSource: gh<_i12.RemoteDataSource>(), + gh.lazySingleton<_i10.QuickNode>( + () => _i10.QuickNodeImpl(httpClient: gh<_i6.Dio>())); + gh.lazySingleton<_i11.RemoteDataSource>( + () => _i11.RemoteDataSourceImpl(quickNode: gh<_i10.QuickNode>())); + gh.lazySingleton<_i12.Repository>(() => _i12.RepositoryImp( + fileUtilsHelper: gh<_i9.FileUtilsHelper>(), + localDataSource: gh<_i7.LocalDataSource>(), + remoteDataSource: gh<_i11.RemoteDataSource>(), )); - gh.lazySingleton<_i14.EventlyProvider>( - () => _i14.EventlyProvider(repository: gh<_i13.Repository>())); + gh.lazySingleton<_i13.EventlyProvider>( + () => _i13.EventlyProvider(repository: gh<_i12.Repository>())); + gh.lazySingleton<_i14.EventHubViewModel>( + () => _i14.EventHubViewModel(gh<_i12.Repository>())); return this; } } diff --git a/evently/lib/utils/failure/failure.dart b/evently/lib/utils/failure/failure.dart index c6cdf1afe5..6a688a9c76 100644 --- a/evently/lib/utils/failure/failure.dart +++ b/evently/lib/utils/failure/failure.dart @@ -19,3 +19,17 @@ class CacheFailure extends Failure { @override List get props => [message]; } + +class NoInternetFailure extends Failure { + const NoInternetFailure(super.message); + + @override + List get props => [message]; +} + +class CookBookNotFoundFailure extends Failure { + const CookBookNotFoundFailure(super.message); + + @override + List get props => [message]; +} diff --git a/evently/macos/Flutter/GeneratedPluginRegistrant.swift b/evently/macos/Flutter/GeneratedPluginRegistrant.swift index 63ad0d132c..405f9c1b98 100644 --- a/evently/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/evently/macos/Flutter/GeneratedPluginRegistrant.swift @@ -5,12 +5,14 @@ import FlutterMacOS import Foundation +import network_info_plus import path_provider_foundation import shared_preferences_foundation import sqflite import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + NetworkInfoPlusPlugin.register(with: registry.registrar(forPlugin: "NetworkInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) diff --git a/evently/pubspec.lock b/evently/pubspec.lock index c088c17954..42a83c01b9 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -209,6 +209,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.10.1" + dbus: + dependency: transitive + description: + name: dbus + sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac" + url: "https://pub.dev" + source: hosted + version: "0.7.10" decimal: dependency: transitive description: @@ -581,6 +589,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" + network_info_plus: + dependency: "direct main" + description: + name: network_info_plus + sha256: "5bd4b86e28fed5ed4e6ac7764133c031dfb7d3f46aa2a81b46f55038aa78ecc0" + url: "https://pub.dev" + source: hosted + version: "5.0.3" + network_info_plus_platform_interface: + dependency: transitive + description: + name: network_info_plus_platform_interface + sha256: "2e193d61d3072ac17824638793d3b89c6d581ce90c11604f4ca87311b42f2706" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + nm: + dependency: transitive + description: + name: nm + sha256: "2c9aae4127bdc8993206464fcc063611e0e36e72018696cd9631023a31b24254" + url: "https://pub.dev" + source: hosted + version: "0.5.0" octo_image: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index d1e4e4fa9e..7e6b303c53 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -57,6 +57,7 @@ dependencies: dio: ^5.4.3+1 cached_network_image: ^3.3.1 shimmer_animation: 2.1.0+1 + network_info_plus: ^5.0.3 dev_dependencies: flutter_test: From d3984521103b043d462c8ede26485b9a45b668cc Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 16:22:44 +0500 Subject: [PATCH 104/158] feat: floor database for storing draft data --- evently/i18n/de.json | 4 +- evently/i18n/en-US.json | 4 +- evently/i18n/es.json | 4 +- evently/i18n/ru-RU.json | 4 +- evently/lib/generated/locale_keys.g.dart | 2 + evently/lib/repository/repository.dart | 17 ++++ .../event_hub/event_hub_view_model.dart | 21 +++++ .../datasources/local_datasource.dart | 11 +++ evently/lib/utils/extension_util.dart | 1 + evently/pubspec.lock | 80 +++++++++++++++++++ evently/pubspec.yaml | 1 + 11 files changed, 145 insertions(+), 4 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 033e923f1f..55697d6cdf 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -62,5 +62,7 @@ "update_failed": "Upload Fehlgeschlagen", "uploading": "Hochladen ...", "something_wrong_while_uploading": "Beim Hochladen ist etwas schief gelaufen. Bitte versuche es erneut.", - "cookbook_not_found": "Cookbook nicht gefunden" + "cookbook_not_found": "Cookbook nicht gefunden", + "loading": "Wird geladen ...", + "something_wrong": "Etwas ist schief gelaufen. Bitte versuchen Sie, die Anwendung neu zu starten." } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 63453ae74e..1452511178 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -62,5 +62,7 @@ "update_failed": "Upload Failed", "uploading": "Uploading ...", "something_wrong_while_uploading": "Something went wrong while uploading. Please try again.", - "cookbook_not_found": "Cookbook not found" + "cookbook_not_found": "Cookbook not found", + "loading": "loading ...", + "something_wrong": "Something went wrong. Please try restarting the application." } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index ddd61defe1..09c9039b18 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -62,5 +62,7 @@ "update_failed": "Subida ha fallado", "uploading": "Subiendo...", "something_wrong_while_uploading": "Algo salió mal durante la carga. Inténtalo de nuevo.", - "cookbook_not_found": "Cookbook extraviado" + "cookbook_not_found": "Cookbook extraviado", + "loading": "cargando ...", + "something_wrong": "Algo salió mal. Intenta reiniciar la aplicación." } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 1940b33798..dc5f3b742d 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -62,5 +62,7 @@ "update_failed": "Загрузка не удалась", "uploading": "Загрузка...", "something_wrong_while_uploading": "Что-то пошло не так во время загрузки. Пожалуйста, попробуйте еще раз.", - "cookbook_not_found": "Cookbook не найден" + "cookbook_not_found": "Cookbook не найден", + "loading": "cargando ...", + "something_wrong": "Что-то пошло не так. Попробуйте перезапустить приложение." } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 7091981e24..e405267b99 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -63,5 +63,7 @@ abstract class LocaleKeys { static const uploading = 'uploading'; static const something_wrong_while_uploading = 'something_wrong_while_uploading'; static const cookbook_not_found = 'cookbook_not_found'; + static const loading = 'loading'; + static const something_wrong = 'something_wrong'; } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 81cc023cd7..31bced463f 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -2,6 +2,7 @@ import 'dart:developer'; import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/models/events.dart'; import 'package:evently/models/picked_file_model.dart'; import 'package:evently/models/storage_response_model.dart'; import 'package:evently/services/datasources/local_datasource.dart'; @@ -53,6 +54,10 @@ abstract class Repository { /// Output: if successful the output will be the list of [pylons.Recipe] /// will return error in the form of failure Future>> getRecipesBasedOnCookBookId({required String cookBookId}); + + /// This method will get the drafts List from the local database + /// Output: [List] returns that contains a number of [NFT] + Future>> getEvents(); } @LazySingleton(as: Repository) @@ -129,4 +134,16 @@ class RepositoryImp implements Repository { return Left(CookBookNotFoundFailure(LocaleKeys.cookbook_not_found.tr())); } } + + @override + Future>> getEvents() async { + try { + final response = await localDataSource.getEvents(); + + return Right(response); + } on Exception catch (exception) { + crashlyticsHelper.recordFatalError(error: exception.toString()); + return Left(CacheFailure(LocaleKeys.something_wrong.tr())); + } + } } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 0ef88415b4..20d17b712b 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -1,5 +1,8 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/models/events.dart'; import 'package:evently/repository/repository.dart'; +import 'package:evently/utils/extension_util.dart'; import 'package:flutter/cupertino.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/pylons_sdk.dart'; @@ -89,4 +92,22 @@ class EventHubViewModel extends ChangeNotifier { _eventPublishedList.add(nft); } } + + Future getDraftsList() async { + // final loading = Loading()..showLoading(message: LocaleKeys.loading.tr()); + + final getNftResponse = await repository.getEvents(); + + if (getNftResponse.isLeft()) { + loading.dismiss(); + LocaleKeys.something_wrong.tr().show(); + return; + } + + nftDraftList = getNftResponse.getOrElse(() => []); + + loading.dismiss(); + + notifyListeners(); + } } diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 07b8b19e5c..88dc782fae 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -1,3 +1,4 @@ +import 'package:evently/models/events.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/date_utils.dart'; import 'package:injectable/injectable.dart'; @@ -33,6 +34,10 @@ abstract class LocalDataSource { /// Input: [name] the name of the artist which the user want to save /// Output: [bool] returns whether the operation is successful or not Future saveHostName(String name); + + /// This method will get the drafts List from the local database + /// Output: [List][NFT] returns the List of drafts + Future> getEvents(); } @LazySingleton(as: LocalDataSource) @@ -86,4 +91,10 @@ class LocalDataSourceImpl extends LocalDataSource { await sharedPreferences.setString(kHostName, name); return true; } + + @override + Future> getEvents() { + // TODO: implement getEvents + throw UnimplementedError(); + } } diff --git a/evently/lib/utils/extension_util.dart b/evently/lib/utils/extension_util.dart index ef67399174..5cba9e0363 100644 --- a/evently/lib/utils/extension_util.dart +++ b/evently/lib/utils/extension_util.dart @@ -62,3 +62,4 @@ extension ScaffoldStateHelper on ScaffoldMessengerState { )); } } + diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 42a83c01b9..7dd01b7323 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -137,6 +137,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" + charcode: + dependency: transitive + description: + name: charcode + sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306 + url: "https://pub.dev" + source: hosted + version: "1.3.1" checked_yaml: dependency: transitive description: @@ -225,6 +233,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.3" + dev_build: + dependency: transitive + description: + name: dev_build + sha256: "2fa3bf81b5e92504f8d7a412df2c69b61a24ceca468466e5e777cbb59c30af96" + url: "https://pub.dev" + source: hosted + version: "0.16.5" dio: dependency: "direct main" description: @@ -305,6 +321,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.0" + floor: + dependency: "direct main" + description: + name: floor + sha256: c1b06023912b5b8e49deb6a9d867863c535ae1a232d991c3582bba3ee8687867 + url: "https://pub.dev" + source: hosted + version: "1.5.0" + floor_annotation: + dependency: transitive + description: + name: floor_annotation + sha256: a40949580a7ab0eee572686e2d3b1638fd6bd6a753e661d792ab4236b365b23b + url: "https://pub.dev" + source: hosted + version: "1.5.0" + floor_common: + dependency: transitive + description: + name: floor_common + sha256: "41c9914862f83a821815e1b1ffd47a1e1ae2130c35ff882ba2d000a67713ba64" + url: "https://pub.dev" + source: hosted + version: "1.5.0" flutter: dependency: "direct main" description: flutter @@ -733,6 +773,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" + process_run: + dependency: transitive + description: + name: process_run + sha256: "8d9c6198b98fbbfb511edd42e7364e24d85c163e47398919871b952dc86a423e" + url: "https://pub.dev" + source: hosted + version: "0.14.2" protobuf: dependency: transitive description: @@ -921,6 +969,38 @@ packages: url: "https://pub.dev" source: hosted version: "2.5.4" + sqflite_common_ffi: + dependency: transitive + description: + name: sqflite_common_ffi + sha256: "4d6137c29e930d6e4a8ff373989dd9de7bac12e3bc87bce950f6e844e8ad3bb5" + url: "https://pub.dev" + source: hosted + version: "2.3.3" + sqflite_common_ffi_web: + dependency: transitive + description: + name: sqflite_common_ffi_web + sha256: cfc9d1c61a3e06e5b2e96994a44b11125b4f451fee95b9fad8bd473b4613d592 + url: "https://pub.dev" + source: hosted + version: "0.4.3+1" + sqlite3: + dependency: transitive + description: + name: sqlite3 + sha256: b384f598b813b347c5a7e5ffad82cbaff1bec3d1561af267041e66f6f0899295 + url: "https://pub.dev" + source: hosted + version: "2.4.3" + sqlparser: + dependency: transitive + description: + name: sqlparser + sha256: "7b20045d1ccfb7bc1df7e8f9fee5ae58673fce6ff62cefbb0e0fd7214e90e5a0" + url: "https://pub.dev" + source: hosted + version: "0.34.1" stack_trace: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index 7e6b303c53..a5f78805eb 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -58,6 +58,7 @@ dependencies: cached_network_image: ^3.3.1 shimmer_animation: 2.1.0+1 network_info_plus: ^5.0.3 + floor: ^1.5.0 dev_dependencies: flutter_test: From 32044b596fa06812d863742fe03b2c639892d6ce Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 16:50:10 +0500 Subject: [PATCH 105/158] feat: floor database for events storage --- evently/lib/models/events.dart | 38 ++-- evently/lib/repository/repository.dart | 3 +- .../event_hub/event_hub_view_model.dart | 9 +- .../third_party_services/database.dart | 12 + .../third_party_services/database.g.dart | 205 ++++++++++++++++++ .../third_party_services/event_dao.dart | 17 ++ evently/lib/utils/di/di.dart | 2 + evently/pubspec.lock | 34 ++- evently/pubspec.yaml | 3 +- 9 files changed, 299 insertions(+), 24 deletions(-) create mode 100644 evently/lib/services/third_party_services/database.dart create mode 100644 evently/lib/services/third_party_services/database.g.dart create mode 100644 evently/lib/services/third_party_services/event_dao.dart diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 579384d132..de4ffa4b5b 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,10 +1,31 @@ import 'package:equatable/equatable.dart'; +import 'package:floor/floor.dart'; import 'package:pylons_sdk/low_level.dart'; import 'package:fixnum/fixnum.dart'; enum FreeDrop { yes, no, unselected } +@entity class Events extends Equatable { + @primaryKey + final int? id; + + final String eventName; + final String hostName; + final String thumbnail; + final String startDate; + final String endDate; + final String startTime; + final String endTime; + final String location; + final String description; + final String numberOfTickets; + final String price; + final String listOfPerks; + final String isFreeDrops; + final String cookbookID; + final String recipeID; + const Events({ ///* overview data this.eventName = '', @@ -30,24 +51,9 @@ class Events extends Equatable { ///* other this.cookbookID = '', this.recipeID = '', + this.id, }); - final String eventName; - final String hostName; - final String thumbnail; - final String startDate; - final String endDate; - final String startTime; - final String endTime; - final String location; - final String description; - final String numberOfTickets; - final String price; - final String listOfPerks; - final String isFreeDrops; - final String cookbookID; - final String recipeID; - factory Events.fromRecipe(Recipe recipe) { Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); return Events( diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 31bced463f..e265ad0cf1 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -141,8 +141,7 @@ class RepositoryImp implements Repository { final response = await localDataSource.getEvents(); return Right(response); - } on Exception catch (exception) { - crashlyticsHelper.recordFatalError(error: exception.toString()); + } on Exception catch (_) { return Left(CacheFailure(LocaleKeys.something_wrong.tr())); } } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 20d17b712b..627b48aa34 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -3,6 +3,7 @@ import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/models/events.dart'; import 'package:evently/repository/repository.dart'; import 'package:evently/utils/extension_util.dart'; +import 'package:evently/widgets/loading_with_progress.dart'; import 'package:flutter/cupertino.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/pylons_sdk.dart'; @@ -94,17 +95,17 @@ class EventHubViewModel extends ChangeNotifier { } Future getDraftsList() async { - // final loading = Loading()..showLoading(message: LocaleKeys.loading.tr()); + final loading = LoadingProgress()..showLoadingWithProgress(message: LocaleKeys.loading.tr()); - final getNftResponse = await repository.getEvents(); + final getEventResponse = await repository.getEvents(); - if (getNftResponse.isLeft()) { + if (getEventResponse.isLeft()) { loading.dismiss(); LocaleKeys.something_wrong.tr().show(); return; } - nftDraftList = getNftResponse.getOrElse(() => []); + // nftDraftList = getNftResponse.getOrElse(() => []); loading.dismiss(); diff --git a/evently/lib/services/third_party_services/database.dart b/evently/lib/services/third_party_services/database.dart new file mode 100644 index 0000000000..cda3365232 --- /dev/null +++ b/evently/lib/services/third_party_services/database.dart @@ -0,0 +1,12 @@ +import 'dart:async'; +import 'package:evently/models/events.dart'; +import 'package:evently/services/third_party_services/event_dao.dart'; +import 'package:floor/floor.dart'; +import 'package:sqflite/sqflite.dart' as sqflite; + +part 'database.g.dart'; + +@Database(version: 6, entities: [Events]) +abstract class AppDatabase extends FloorDatabase { + EventsDao get eventsDao; +} diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart new file mode 100644 index 0000000000..e00269f83d --- /dev/null +++ b/evently/lib/services/third_party_services/database.g.dart @@ -0,0 +1,205 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'database.dart'; + +// ************************************************************************** +// FloorGenerator +// ************************************************************************** + +abstract class $AppDatabaseBuilderContract { + /// Adds migrations to the builder. + $AppDatabaseBuilderContract addMigrations(List migrations); + + /// Adds a database [Callback] to the builder. + $AppDatabaseBuilderContract addCallback(Callback callback); + + /// Creates the database and initializes it. + Future build(); +} + +// ignore: avoid_classes_with_only_static_members +class $FloorAppDatabase { + /// Creates a database builder for a persistent database. + /// Once a database is built, you should keep a reference to it and re-use it. + static $AppDatabaseBuilderContract databaseBuilder(String name) => + _$AppDatabaseBuilder(name); + + /// Creates a database builder for an in memory database. + /// Information stored in an in memory database disappears when the process is killed. + /// Once a database is built, you should keep a reference to it and re-use it. + static $AppDatabaseBuilderContract inMemoryDatabaseBuilder() => + _$AppDatabaseBuilder(null); +} + +class _$AppDatabaseBuilder implements $AppDatabaseBuilderContract { + _$AppDatabaseBuilder(this.name); + + final String? name; + + final List _migrations = []; + + Callback? _callback; + + @override + $AppDatabaseBuilderContract addMigrations(List migrations) { + _migrations.addAll(migrations); + return this; + } + + @override + $AppDatabaseBuilderContract addCallback(Callback callback) { + _callback = callback; + return this; + } + + @override + Future build() async { + final path = name != null + ? await sqfliteDatabaseFactory.getDatabasePath(name!) + : ':memory:'; + final database = _$AppDatabase(); + database.database = await database.open( + path, + _migrations, + _callback, + ); + return database; + } +} + +class _$AppDatabase extends AppDatabase { + _$AppDatabase([StreamController? listener]) { + changeListener = listener ?? StreamController.broadcast(); + } + + EventsDao? _eventsDaoInstance; + + Future open( + String path, + List migrations, [ + Callback? callback, + ]) async { + final databaseOptions = sqflite.OpenDatabaseOptions( + version: 6, + onConfigure: (database) async { + await database.execute('PRAGMA foreign_keys = ON'); + await callback?.onConfigure?.call(database); + }, + onOpen: (database) async { + await callback?.onOpen?.call(database); + }, + onUpgrade: (database, startVersion, endVersion) async { + await MigrationAdapter.runMigrations( + database, startVersion, endVersion, migrations); + + await callback?.onUpgrade?.call(database, startVersion, endVersion); + }, + onCreate: (database, version) async { + await database.execute( + 'CREATE TABLE IF NOT EXISTS `Events` (`id` INTEGER, `eventName` TEXT NOT NULL, `hostName` TEXT NOT NULL, `thumbnail` TEXT NOT NULL, `startDate` TEXT NOT NULL, `endDate` TEXT NOT NULL, `startTime` TEXT NOT NULL, `endTime` TEXT NOT NULL, `location` TEXT NOT NULL, `description` TEXT NOT NULL, `numberOfTickets` TEXT NOT NULL, `price` TEXT NOT NULL, `listOfPerks` TEXT NOT NULL, `isFreeDrops` TEXT NOT NULL, `cookbookID` TEXT NOT NULL, `recipeID` TEXT NOT NULL, PRIMARY KEY (`id`))'); + + await callback?.onCreate?.call(database, version); + }, + ); + return sqfliteDatabaseFactory.openDatabase(path, options: databaseOptions); + } + + @override + EventsDao get eventsDao { + return _eventsDaoInstance ??= _$EventsDao(database, changeListener); + } +} + +class _$EventsDao extends EventsDao { + _$EventsDao( + this.database, + this.changeListener, + ) : _queryAdapter = QueryAdapter(database), + _eventsInsertionAdapter = InsertionAdapter( + database, + 'Events', + (Events item) => { + 'id': item.id, + 'eventName': item.eventName, + 'hostName': item.hostName, + 'thumbnail': item.thumbnail, + 'startDate': item.startDate, + 'endDate': item.endDate, + 'startTime': item.startTime, + 'endTime': item.endTime, + 'location': item.location, + 'description': item.description, + 'numberOfTickets': item.numberOfTickets, + 'price': item.price, + 'listOfPerks': item.listOfPerks, + 'isFreeDrops': item.isFreeDrops, + 'cookbookID': item.cookbookID, + 'recipeID': item.recipeID + }); + + final sqflite.DatabaseExecutor database; + + final StreamController changeListener; + + final QueryAdapter _queryAdapter; + + final InsertionAdapter _eventsInsertionAdapter; + + @override + Future> findAllEvents() async { + return _queryAdapter.queryList( + 'SELECT * FROM events ORDER BY dateTime DESC', + mapper: (Map row) => Events( + eventName: row['eventName'] as String, + hostName: row['hostName'] as String, + thumbnail: row['thumbnail'] as String, + startDate: row['startDate'] as String, + endDate: row['endDate'] as String, + startTime: row['startTime'] as String, + endTime: row['endTime'] as String, + location: row['location'] as String, + description: row['description'] as String, + listOfPerks: row['listOfPerks'] as String, + numberOfTickets: row['numberOfTickets'] as String, + price: row['price'] as String, + isFreeDrops: row['isFreeDrops'] as String, + cookbookID: row['cookbookID'] as String, + recipeID: row['recipeID'] as String, + id: row['id'] as int?)); + } + + @override + Future findEventsById(int id) async { + return _queryAdapter.query('SELECT * FROM events WHERE id = ?1', + mapper: (Map row) => Events( + eventName: row['eventName'] as String, + hostName: row['hostName'] as String, + thumbnail: row['thumbnail'] as String, + startDate: row['startDate'] as String, + endDate: row['endDate'] as String, + startTime: row['startTime'] as String, + endTime: row['endTime'] as String, + location: row['location'] as String, + description: row['description'] as String, + listOfPerks: row['listOfPerks'] as String, + numberOfTickets: row['numberOfTickets'] as String, + price: row['price'] as String, + isFreeDrops: row['isFreeDrops'] as String, + cookbookID: row['cookbookID'] as String, + recipeID: row['recipeID'] as String, + id: row['id'] as int?), + arguments: [id]); + } + + @override + Future delete(int id) async { + await _queryAdapter + .queryNoReturn('DELETE FROM events WHERE id = ?1', arguments: [id]); + } + + @override + Future insertEvents(Events events) { + return _eventsInsertionAdapter.insertAndReturnId( + events, OnConflictStrategy.abort); + } +} diff --git a/evently/lib/services/third_party_services/event_dao.dart b/evently/lib/services/third_party_services/event_dao.dart new file mode 100644 index 0000000000..93e6f60b68 --- /dev/null +++ b/evently/lib/services/third_party_services/event_dao.dart @@ -0,0 +1,17 @@ +import 'package:evently/models/events.dart'; +import 'package:floor/floor.dart'; + +@dao +abstract class EventsDao { + @Query('SELECT * FROM events ORDER BY dateTime DESC') + Future> findAllEvents(); + + @Query('SELECT * FROM events WHERE id = :id') + Future findEventsById(int id); + + @insert + Future insertEvents(Events events); + + @Query('DELETE FROM events WHERE id = :id') + Future delete(int id); +} diff --git a/evently/lib/utils/di/di.dart b/evently/lib/utils/di/di.dart index 62d8189d3a..7e4d6d57fa 100644 --- a/evently/lib/utils/di/di.dart +++ b/evently/lib/utils/di/di.dart @@ -1,6 +1,7 @@ // coverage: false // coverage:ignore-file +import 'package:evently/services/third_party_services/database.dart'; import 'package:evently/utils/di/di.config.dart'; import 'package:get_it/get_it.dart'; import 'package:injectable/injectable.dart'; @@ -13,5 +14,6 @@ final sl = GetIt.I; @InjectableInit() void configureDependencies() { sl.registerSingletonAsync(() => SharedPreferences.getInstance()); + sl.registerSingletonAsync(() => $FloorAppDatabase.databaseBuilder('app_database.db').build()); sl.init(); } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 7dd01b7323..3e54b6d1c0 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -74,7 +74,7 @@ packages: source: hosted version: "2.4.2" build_runner: - dependency: "direct main" + dependency: "direct dev" description: name: build_runner sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22" @@ -345,6 +345,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.0" + floor_generator: + dependency: "direct dev" + description: + name: floor_generator + sha256: "1499b3ab878a807e6fbe6f140dc014124845cd1df3090a113aae5fa7577a1e77" + url: "https://pub.dev" + source: hosted + version: "1.5.0" flutter: dependency: "direct main" description: flutter @@ -581,6 +589,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.0" + lists: + dependency: transitive + description: + name: lists + sha256: "4ca5c19ae4350de036a7e996cdd1ee39c93ac0a2b840f4915459b7d0a7d4ab27" + url: "https://pub.dev" + source: hosted + version: "1.0.1" logging: dependency: transitive description: @@ -1041,6 +1057,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.0" + strings: + dependency: transitive + description: + name: strings + sha256: b33f40c4dd3e597bf6d9e7f4f4dc282dad0f19b07d9f320cb5c2183859cbccf5 + url: "https://pub.dev" + source: hosted + version: "3.1.1" synchronized: dependency: transitive description: @@ -1105,6 +1129,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.1.0" + unicode: + dependency: transitive + description: + name: unicode + sha256: "0f69e46593d65245774d4f17125c6084d2c20b4e473a983f6e21b7d7762218f1" + url: "https://pub.dev" + source: hosted + version: "0.3.1" url_launcher: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index a5f78805eb..763477446b 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -43,7 +43,6 @@ dependencies: flutter_svg_provider: ^1.0.3 get_it: ^7.7.0 injectable_generator: ^2.6.1 - build_runner: ^2.4.9 injectable: ^2.4.1 provider: ^6.1.2 steps_indicator: ^1.3.0 @@ -63,6 +62,8 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter + floor_generator: ^1.4.2 + build_runner: ^2.4.9 # The "flutter_lints" package below contains a set of recommended lints to # encourage good coding practices. The lint set provided by the package is From cd077b467979f24a67e1c9b046a2c413dd2fba15 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 16 May 2024 16:58:26 +0500 Subject: [PATCH 106/158] feat: draft list --- evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/generated/locale_keys.g.dart | 1 + .../event_hub/event_hub_view_model.dart | 13 ++--- .../datasources/local_datasource.dart | 19 +++++-- evently/lib/utils/di/di.config.dart | 53 ++++++++++--------- 8 files changed, 59 insertions(+), 39 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 55697d6cdf..f97e482361 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -64,5 +64,6 @@ "something_wrong_while_uploading": "Beim Hochladen ist etwas schief gelaufen. Bitte versuche es erneut.", "cookbook_not_found": "Cookbook nicht gefunden", "loading": "Wird geladen ...", - "something_wrong": "Etwas ist schief gelaufen. Bitte versuchen Sie, die Anwendung neu zu starten." + "something_wrong": "Etwas ist schief gelaufen. Bitte versuchen Sie, die Anwendung neu zu starten.", + "get_error": "Entwurf konnte nicht abgerufen werden" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 1452511178..973207bd10 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -64,5 +64,6 @@ "something_wrong_while_uploading": "Something went wrong while uploading. Please try again.", "cookbook_not_found": "Cookbook not found", "loading": "loading ...", - "something_wrong": "Something went wrong. Please try restarting the application." + "something_wrong": "Something went wrong. Please try restarting the application.", + "get_error": "Failed to get draft" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 09c9039b18..0a9e319a8c 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -64,5 +64,6 @@ "something_wrong_while_uploading": "Algo salió mal durante la carga. Inténtalo de nuevo.", "cookbook_not_found": "Cookbook extraviado", "loading": "cargando ...", - "something_wrong": "Algo salió mal. Intenta reiniciar la aplicación." + "something_wrong": "Algo salió mal. Intenta reiniciar la aplicación.", + "get_error": "No se pudo obtener el Plan Preliminar" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index dc5f3b742d..24d581e1bc 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -64,5 +64,6 @@ "something_wrong_while_uploading": "Что-то пошло не так во время загрузки. Пожалуйста, попробуйте еще раз.", "cookbook_not_found": "Cookbook не найден", "loading": "cargando ...", - "something_wrong": "Что-то пошло не так. Попробуйте перезапустить приложение." + "something_wrong": "Что-то пошло не так. Попробуйте перезапустить приложение.", + "get_error": "Не удалось получить черновик" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index e405267b99..51700b00fe 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -65,5 +65,6 @@ abstract class LocaleKeys { static const cookbook_not_found = 'cookbook_not_found'; static const loading = 'loading'; static const something_wrong = 'something_wrong'; + static const get_error = 'get_error'; } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 627b48aa34..b35b17d1ee 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -20,12 +20,12 @@ class EventHubViewModel extends ChangeNotifier { List get eventPublishedList => _eventPublishedList; - List _eventForSaleList = []; + List _eventForDraftList = []; - List get eventForSaleList => _eventForSaleList; + List get eventForSaleList => _eventForDraftList; - set setEventForSaleList(List nftForSale) { - _eventForSaleList = nftForSale; + set setEventForDraftList(List nftForSale) { + _eventForDraftList = nftForSale; notifyListeners(); } @@ -36,7 +36,7 @@ class EventHubViewModel extends ChangeNotifier { void updatePublishedEventList({required Events events}) { _eventPublishedList.add(events); - _eventForSaleList.add(events); + _eventForDraftList.add(events); notifyListeners(); } @@ -105,7 +105,8 @@ class EventHubViewModel extends ChangeNotifier { return; } - // nftDraftList = getNftResponse.getOrElse(() => []); + List draftEvent = getEventResponse.getOrElse(() => []); + setEventForDraftList = draftEvent; loading.dismiss(); diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 88dc782fae..0ba1334087 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -1,6 +1,10 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/models/events.dart'; +import 'package:evently/services/third_party_services/database.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/date_utils.dart'; +import 'package:evently/utils/failure/failure.dart'; import 'package:injectable/injectable.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -42,9 +46,13 @@ abstract class LocalDataSource { @LazySingleton(as: LocalDataSource) class LocalDataSourceImpl extends LocalDataSource { - LocalDataSourceImpl({required this.sharedPreferences}); + LocalDataSourceImpl({ + required this.sharedPreferences, + required this.database, + }); final SharedPreferences sharedPreferences; + final AppDatabase database; /// auto generates cookbookID string and saves into local storage /// returns cookbookId @@ -93,8 +101,11 @@ class LocalDataSourceImpl extends LocalDataSource { } @override - Future> getEvents() { - // TODO: implement getEvents - throw UnimplementedError(); + Future> getEvents() async { + try { + return await database.eventsDao.findAllEvents(); + } catch (e) { + throw CacheFailure(LocaleKeys.get_error.tr()); + } } } diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index d702697c9d..c987c79dd8 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -9,20 +9,21 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:dio/dio.dart' as _i6; -import 'package:evently/evently_provider.dart' as _i13; -import 'package:evently/repository/repository.dart' as _i12; -import 'package:evently/screens/event_hub/event_hub_view_model.dart' as _i14; -import 'package:evently/services/datasources/local_datasource.dart' as _i7; -import 'package:evently/services/datasources/remote_datasource.dart' as _i11; -import 'package:evently/services/third_party_services/quick_node.dart' as _i10; -import 'package:evently/utils/di/register_modules.dart' as _i15; -import 'package:evently/utils/file_utils_helper.dart' as _i9; +import 'package:evently/evently_provider.dart' as _i14; +import 'package:evently/repository/repository.dart' as _i13; +import 'package:evently/screens/event_hub/event_hub_view_model.dart' as _i15; +import 'package:evently/services/datasources/local_datasource.dart' as _i9; +import 'package:evently/services/datasources/remote_datasource.dart' as _i12; +import 'package:evently/services/third_party_services/database.dart' as _i11; +import 'package:evently/services/third_party_services/quick_node.dart' as _i8; +import 'package:evently/utils/di/register_modules.dart' as _i16; +import 'package:evently/utils/file_utils_helper.dart' as _i7; import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; import 'package:file_picker/file_picker.dart' as _i5; import 'package:get_it/get_it.dart' as _i1; import 'package:image_cropper/image_cropper.dart' as _i4; import 'package:injectable/injectable.dart' as _i2; -import 'package:shared_preferences/shared_preferences.dart' as _i8; +import 'package:shared_preferences/shared_preferences.dart' as _i10; extension GetItInjectableX on _i1.GetIt { // initializes the registration of main-scope dependencies inside of GetIt @@ -41,27 +42,29 @@ extension GetItInjectableX on _i1.GetIt { gh.lazySingleton<_i4.ImageCropper>(() => registerModule.imageCropper); gh.lazySingleton<_i5.FilePicker>(() => registerModule.filePicker); gh.lazySingleton<_i6.Dio>(() => registerModule.dio); - gh.lazySingleton<_i7.LocalDataSource>(() => _i7.LocalDataSourceImpl( - sharedPreferences: gh<_i8.SharedPreferences>())); - gh.lazySingleton<_i9.FileUtilsHelper>(() => _i9.FileUtilsHelperImpl( + gh.lazySingleton<_i7.FileUtilsHelper>(() => _i7.FileUtilsHelperImpl( imageCropper: gh<_i4.ImageCropper>(), filePicker: gh<_i5.FilePicker>(), )); - gh.lazySingleton<_i10.QuickNode>( - () => _i10.QuickNodeImpl(httpClient: gh<_i6.Dio>())); - gh.lazySingleton<_i11.RemoteDataSource>( - () => _i11.RemoteDataSourceImpl(quickNode: gh<_i10.QuickNode>())); - gh.lazySingleton<_i12.Repository>(() => _i12.RepositoryImp( - fileUtilsHelper: gh<_i9.FileUtilsHelper>(), - localDataSource: gh<_i7.LocalDataSource>(), - remoteDataSource: gh<_i11.RemoteDataSource>(), + gh.lazySingleton<_i8.QuickNode>( + () => _i8.QuickNodeImpl(httpClient: gh<_i6.Dio>())); + gh.lazySingleton<_i9.LocalDataSource>(() => _i9.LocalDataSourceImpl( + sharedPreferences: gh<_i10.SharedPreferences>(), + database: gh<_i11.AppDatabase>(), )); - gh.lazySingleton<_i13.EventlyProvider>( - () => _i13.EventlyProvider(repository: gh<_i12.Repository>())); - gh.lazySingleton<_i14.EventHubViewModel>( - () => _i14.EventHubViewModel(gh<_i12.Repository>())); + gh.lazySingleton<_i12.RemoteDataSource>( + () => _i12.RemoteDataSourceImpl(quickNode: gh<_i8.QuickNode>())); + gh.lazySingleton<_i13.Repository>(() => _i13.RepositoryImp( + fileUtilsHelper: gh<_i7.FileUtilsHelper>(), + localDataSource: gh<_i9.LocalDataSource>(), + remoteDataSource: gh<_i12.RemoteDataSource>(), + )); + gh.lazySingleton<_i14.EventlyProvider>( + () => _i14.EventlyProvider(repository: gh<_i13.Repository>())); + gh.lazySingleton<_i15.EventHubViewModel>( + () => _i15.EventHubViewModel(gh<_i13.Repository>())); return this; } } -class _$RegisterModule extends _i15.RegisterModule {} +class _$RegisterModule extends _i16.RegisterModule {} From 059a90d2f54990627a122ebb5d9c5a3ba60c8ce8 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Fri, 17 May 2024 17:15:49 +0500 Subject: [PATCH 107/158] feat: database operation needed to work in app for draft and publish list --- evently/i18n/de.json | 5 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 4 +- evently/i18n/ru-RU.json | 4 +- evently/lib/evently_provider.dart | 27 +++++++-- evently/lib/generated/locale_keys.g.dart | 2 + evently/lib/models/events.dart | 9 ++- evently/lib/repository/repository.dart | 7 +-- evently/lib/screens/create_event.dart | 5 ++ .../event_hub/event_hub_view_model.dart | 2 +- .../datasources/local_datasource.dart | 34 ++++++++++- .../third_party_services/database.g.dart | 59 +++++++++++++++++-- .../third_party_services/event_dao.dart | 27 ++++++++- evently/lib/utils/enums.dart | 1 + 14 files changed, 164 insertions(+), 25 deletions(-) create mode 100644 evently/lib/utils/enums.dart diff --git a/evently/i18n/de.json b/evently/i18n/de.json index f97e482361..42dceb774f 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -65,5 +65,8 @@ "cookbook_not_found": "Cookbook nicht gefunden", "loading": "Wird geladen ...", "something_wrong": "Etwas ist schief gelaufen. Bitte versuchen Sie, die Anwendung neu zu starten.", - "get_error": "Entwurf konnte nicht abgerufen werden" + "get_error": "Entwurf konnte nicht abgerufen werden", + "delete_error": "Entwurf konnte nicht gelöscht werden", + "save_error": "Entwurf konnte nicht gespeichert werden", + "save_error": "Failed to save draft" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 973207bd10..40c0782be3 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -65,5 +65,6 @@ "cookbook_not_found": "Cookbook not found", "loading": "loading ...", "something_wrong": "Something went wrong. Please try restarting the application.", - "get_error": "Failed to get draft" + "get_error": "Failed to get draft", + "delete_error": "Failed to delete draft" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 0a9e319a8c..d8a8ead539 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -65,5 +65,7 @@ "cookbook_not_found": "Cookbook extraviado", "loading": "cargando ...", "something_wrong": "Algo salió mal. Intenta reiniciar la aplicación.", - "get_error": "No se pudo obtener el Plan Preliminar" + "get_error": "No se pudo obtener el Plan Preliminar", + "delete_error": "No se pudo eliminar el Plan Preliminar", + "save_error": "No se pudo guardar el Plan Preliminar" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 24d581e1bc..0128535959 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -65,5 +65,7 @@ "cookbook_not_found": "Cookbook не найден", "loading": "cargando ...", "something_wrong": "Что-то пошло не так. Попробуйте перезапустить приложение.", - "get_error": "Не удалось получить черновик" + "get_error": "Не удалось получить черновик", + "delete_error": "Не удалось удалить черновик", + "save_error": "Не удалось сохранить черновик" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 4e2275e7e8..f9b30d491f 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -19,7 +19,6 @@ import 'package:flutter/widgets.dart'; import 'package:get_it/get_it.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/low_level.dart'; - import 'services/third_party_services/quick_node.dart'; @LazySingleton() @@ -218,7 +217,6 @@ class EventlyProvider extends ChangeNotifier { setThumbnail = "$ipfsDomain/${fileUploadResponse.value?.cid}"; } - String currentUserName = ""; bool stripeAccountExists = false; String? _cookbookId; @@ -231,7 +229,6 @@ class EventlyProvider extends ChangeNotifier { final sdkResponse = await PylonsWallet.instance.getProfile(); if (sdkResponse.success) { - currentUserName = sdkResponse.data!.username; stripeAccountExists = sdkResponse.data!.stripeExists; supportedDenomList = Denom.availableDenoms.where((Denom e) => sdkResponse.data!.supportedCoins.contains(e.symbol)).toList(); @@ -278,7 +275,7 @@ class EventlyProvider extends ChangeNotifier { price: price.toString(), listOfPerks: perks.join(','), cookbookID: _cookbookId!, - recipeID: _recipeId, + recipeID: _recipeId, step: '', ); final recipe = event.createRecipe( @@ -331,4 +328,26 @@ class EventlyProvider extends ChangeNotifier { navigatorKey.showMsg(message: response.error); return false; } + + void initStore() { + _eventName = ""; + _hostName = ""; + _thumbnail = ""; + _isOverviewEnable = false; + + _startDate = ""; + _endDate = ""; + _startTime = ""; + _endTime = ""; + _location = ""; + _description = ""; + _selectedDenom = Denom.availableDenoms.first; + + _isFreeDrop = FreeDrop.unselected; + _numberOfTickets = 0; + _price = 0; + _cookbookId = ''; + + notifyListeners(); + } } diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 51700b00fe..1abafc579b 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -66,5 +66,7 @@ abstract class LocaleKeys { static const loading = 'loading'; static const something_wrong = 'something_wrong'; static const get_error = 'get_error'; + static const delete_error = 'delete_error'; + static const save_error = 'save_error'; } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index de4ffa4b5b..e4bf31cd73 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -9,7 +9,7 @@ enum FreeDrop { yes, no, unselected } class Events extends Equatable { @primaryKey final int? id; - + final String recipeID; final String eventName; final String hostName; final String thumbnail; @@ -24,9 +24,11 @@ class Events extends Equatable { final String listOfPerks; final String isFreeDrops; final String cookbookID; - final String recipeID; + final String step; const Events({ + this.id, + ///* overview data this.eventName = '', this.hostName = '', @@ -51,7 +53,7 @@ class Events extends Equatable { ///* other this.cookbookID = '', this.recipeID = '', - this.id, + required this.step, }); factory Events.fromRecipe(Recipe recipe) { @@ -69,6 +71,7 @@ class Events extends Equatable { numberOfTickets: map[kNumberOfTickets]!, price: map[kPrice]!, listOfPerks: map[kPerks]!, + step: '', ); } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index e265ad0cf1..1105c8d17d 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -57,7 +57,7 @@ abstract class Repository { /// This method will get the drafts List from the local database /// Output: [List] returns that contains a number of [NFT] - Future>> getEvents(); + Future>> getAllEvents(); } @LazySingleton(as: Repository) @@ -136,10 +136,9 @@ class RepositoryImp implements Repository { } @override - Future>> getEvents() async { + Future>> getAllEvents() async { try { - final response = await localDataSource.getEvents(); - + final response = await localDataSource.getAllEvents(); return Right(response); } on Exception catch (_) { return Left(CacheFailure(LocaleKeys.something_wrong.tr())); diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 6ec350472d..f0b9a1d812 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,3 +1,4 @@ +import 'package:evently/evently_provider.dart'; import 'package:evently/screens/detail_screen.dart'; import 'package:evently/screens/host_view_ticket_preview.dart'; import 'package:evently/screens/overview_screen.dart'; @@ -23,6 +24,10 @@ class _CreateEventState extends State { void initState() { super.initState(); + WidgetsBinding.instance.addPostFrameCallback((timeStamp) { + context.read().initStore(); + }); + createEventViewModel.init(); } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index b35b17d1ee..2979e8a422 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -97,7 +97,7 @@ class EventHubViewModel extends ChangeNotifier { Future getDraftsList() async { final loading = LoadingProgress()..showLoadingWithProgress(message: LocaleKeys.loading.tr()); - final getEventResponse = await repository.getEvents(); + final getEventResponse = await repository.getAllEvents(); if (getEventResponse.isLeft()) { loading.dismiss(); diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 0ba1334087..0cbbf985f1 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -41,7 +41,17 @@ abstract class LocalDataSource { /// This method will get the drafts List from the local database /// Output: [List][NFT] returns the List of drafts - Future> getEvents(); + Future> getAllEvents(); + + /// This method will delete draft from the local database + /// Input: [recipeID] the id of the draft which the user wants to delete + /// Output: [bool] returns whether the operation is successful or not + Future deleteEvents(int id); + + /// This method will save the draft of the NFT + /// Input: [Events] the draft that will will be saved in database + /// Output: [int] returns id of the inserted document + Future saveEvents(Events events); } @LazySingleton(as: LocalDataSource) @@ -101,11 +111,31 @@ class LocalDataSourceImpl extends LocalDataSource { } @override - Future> getEvents() async { + Future> getAllEvents() async { try { return await database.eventsDao.findAllEvents(); } catch (e) { throw CacheFailure(LocaleKeys.get_error.tr()); } } + + @override + Future deleteEvents(int id) async { + try { + await database.eventsDao.delete(id); + return true; + } catch (e) { + throw CacheFailure(LocaleKeys.delete_error.tr()); + } + } + + @override + Future saveEvents(Events events) async { + try { + final result = await database.eventsDao.insertEvents(events); + return result; + } catch (e) { + throw LocaleKeys.save_error.tr(); + } + } } diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart index e00269f83d..8cecdbea4f 100644 --- a/evently/lib/services/third_party_services/database.g.dart +++ b/evently/lib/services/third_party_services/database.g.dart @@ -96,7 +96,7 @@ class _$AppDatabase extends AppDatabase { }, onCreate: (database, version) async { await database.execute( - 'CREATE TABLE IF NOT EXISTS `Events` (`id` INTEGER, `eventName` TEXT NOT NULL, `hostName` TEXT NOT NULL, `thumbnail` TEXT NOT NULL, `startDate` TEXT NOT NULL, `endDate` TEXT NOT NULL, `startTime` TEXT NOT NULL, `endTime` TEXT NOT NULL, `location` TEXT NOT NULL, `description` TEXT NOT NULL, `numberOfTickets` TEXT NOT NULL, `price` TEXT NOT NULL, `listOfPerks` TEXT NOT NULL, `isFreeDrops` TEXT NOT NULL, `cookbookID` TEXT NOT NULL, `recipeID` TEXT NOT NULL, PRIMARY KEY (`id`))'); + 'CREATE TABLE IF NOT EXISTS `Events` (`id` INTEGER, `recipeID` TEXT NOT NULL, `eventName` TEXT NOT NULL, `hostName` TEXT NOT NULL, `thumbnail` TEXT NOT NULL, `startDate` TEXT NOT NULL, `endDate` TEXT NOT NULL, `startTime` TEXT NOT NULL, `endTime` TEXT NOT NULL, `location` TEXT NOT NULL, `description` TEXT NOT NULL, `numberOfTickets` TEXT NOT NULL, `price` TEXT NOT NULL, `listOfPerks` TEXT NOT NULL, `isFreeDrops` TEXT NOT NULL, `cookbookID` TEXT NOT NULL, `step` TEXT NOT NULL, PRIMARY KEY (`id`))'); await callback?.onCreate?.call(database, version); }, @@ -120,6 +120,7 @@ class _$EventsDao extends EventsDao { 'Events', (Events item) => { 'id': item.id, + 'recipeID': item.recipeID, 'eventName': item.eventName, 'hostName': item.hostName, 'thumbnail': item.thumbnail, @@ -134,7 +135,7 @@ class _$EventsDao extends EventsDao { 'listOfPerks': item.listOfPerks, 'isFreeDrops': item.isFreeDrops, 'cookbookID': item.cookbookID, - 'recipeID': item.recipeID + 'step': item.step }); final sqflite.DatabaseExecutor database; @@ -147,9 +148,9 @@ class _$EventsDao extends EventsDao { @override Future> findAllEvents() async { - return _queryAdapter.queryList( - 'SELECT * FROM events ORDER BY dateTime DESC', + return _queryAdapter.queryList('SELECT * FROM events', mapper: (Map row) => Events( + id: row['id'] as int?, eventName: row['eventName'] as String, hostName: row['hostName'] as String, thumbnail: row['thumbnail'] as String, @@ -165,13 +166,14 @@ class _$EventsDao extends EventsDao { isFreeDrops: row['isFreeDrops'] as String, cookbookID: row['cookbookID'] as String, recipeID: row['recipeID'] as String, - id: row['id'] as int?)); + step: row['step'] as String)); } @override Future findEventsById(int id) async { return _queryAdapter.query('SELECT * FROM events WHERE id = ?1', mapper: (Map row) => Events( + id: row['id'] as int?, eventName: row['eventName'] as String, hostName: row['hostName'] as String, thumbnail: row['thumbnail'] as String, @@ -187,7 +189,7 @@ class _$EventsDao extends EventsDao { isFreeDrops: row['isFreeDrops'] as String, cookbookID: row['cookbookID'] as String, recipeID: row['recipeID'] as String, - id: row['id'] as int?), + step: row['step'] as String), arguments: [id]); } @@ -197,6 +199,51 @@ class _$EventsDao extends EventsDao { .queryNoReturn('DELETE FROM events WHERE id = ?1', arguments: [id]); } + @override + Future updateNFTFromDetail( + String startDate, + String endDate, + String startTime, + String endTime, + String location, + String description, + int id, + ) async { + await _queryAdapter.queryNoReturn( + 'UPDATE events SET startDate = ?1, endDate= ?2, startTime = ?3, endTime = ?4,location = ?5, description = ?6 WHERE id = ?7', + arguments: [ + startDate, + endDate, + startTime, + endTime, + location, + description, + id + ]); + } + + @override + Future updateNFTFromPerks( + String listOfPerks, + int id, + ) async { + await _queryAdapter.queryNoReturn( + 'UPDATE events SET listOfPerks = ?1 WHERE id = ?2', + arguments: [listOfPerks, id]); + } + + @override + Future updateNFTFromPrice( + int id, + String numberOfTickets, + String price, + String isFreeDrops, + ) async { + await _queryAdapter.queryNoReturn( + 'UPDATE events SET numberOfTickets = ?2, price = ?3, isFreeDrops = ?4 WHERE id = ?1', + arguments: [id, numberOfTickets, price, isFreeDrops]); + } + @override Future insertEvents(Events events) { return _eventsInsertionAdapter.insertAndReturnId( diff --git a/evently/lib/services/third_party_services/event_dao.dart b/evently/lib/services/third_party_services/event_dao.dart index 93e6f60b68..95bbcfe26e 100644 --- a/evently/lib/services/third_party_services/event_dao.dart +++ b/evently/lib/services/third_party_services/event_dao.dart @@ -3,7 +3,7 @@ import 'package:floor/floor.dart'; @dao abstract class EventsDao { - @Query('SELECT * FROM events ORDER BY dateTime DESC') + @Query('SELECT * FROM events') Future> findAllEvents(); @Query('SELECT * FROM events WHERE id = :id') @@ -14,4 +14,29 @@ abstract class EventsDao { @Query('DELETE FROM events WHERE id = :id') Future delete(int id); + + @Query('UPDATE events SET startDate = :startDate, endDate= :endDate, startTime = :startTime, endTime = :endTime,location = :location, description = :description WHERE id = :id') + Future updateNFTFromDetail( + String startDate, + String endDate, + String startTime, + String endTime, + String location, + String description, + int id, + ); + + @Query('UPDATE events SET listOfPerks = :listOfPerks WHERE id = :id') + Future updateNFTFromPerks( + String listOfPerks, + int id, + ); + + @Query('UPDATE events SET numberOfTickets = :numberOfTickets, price = :price, isFreeDrops = :isFreeDrops WHERE id = :id') + Future updateNFTFromPrice( + int id, + String numberOfTickets, + String price, + String isFreeDrops, + ); } diff --git a/evently/lib/utils/enums.dart b/evently/lib/utils/enums.dart new file mode 100644 index 0000000000..15f439515d --- /dev/null +++ b/evently/lib/utils/enums.dart @@ -0,0 +1 @@ +enum UploadStep { overView, detail, perks, price } From 912e40b17cde3007bc494620f48e5246a9ab5d92 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 09:43:05 +0500 Subject: [PATCH 108/158] feat: event hub --- .../screens/event_hub/event_hub_screen.dart | 123 ++++++++++-------- .../event_hub/event_hub_view_model.dart | 6 + 2 files changed, 75 insertions(+), 54 deletions(-) diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 0f4ca9ed5e..5f9cad9b8c 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -1,12 +1,15 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/main.dart'; +import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:evently/widgets/clipped_button.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:provider/provider.dart'; class EventHubScreen extends StatefulWidget { const EventHubScreen({super.key}); @@ -42,68 +45,80 @@ class _EventHubScreenState extends State { fontFamily: kUniversalFontFamily, ); + EventHubViewModel get eventHubViewModel => sl(); + + @override + void initState() { + eventHubViewModel.getPublishAndDraftData(); + + super.initState(); + } + @override Widget build(BuildContext context) { - return ColoredBox( - color: EventlyAppTheme.kBlack, - child: SafeArea( - child: Scaffold( - backgroundColor: EventlyAppTheme.kBlack, - body: Padding( - padding: const EdgeInsets.only(top: 20), - child: Column( - children: [ - Padding( - padding: const EdgeInsets.only(right: 20), - child: Align( - alignment: Alignment.topRight, - child: InkWell( - onTap: () => Navigator.of(context).pushNamed(RouteUtil.kCreateEvent), - child: const DecoratedBox( - decoration: BoxDecoration(color: EventlyAppTheme.kTextLightBlue), - child: Icon(Icons.add, size: 21, color: EventlyAppTheme.kWhite), + return ChangeNotifierProvider.value( + value: eventHubViewModel, + child: ColoredBox( + color: EventlyAppTheme.kBlack, + child: SafeArea( + child: Scaffold( + backgroundColor: EventlyAppTheme.kBlack, + body: Padding( + padding: const EdgeInsets.only(top: 20), + child: Column( + children: [ + Padding( + padding: const EdgeInsets.only(right: 20), + child: Align( + alignment: Alignment.topRight, + child: InkWell( + onTap: () => Navigator.of(context).pushNamed(RouteUtil.kCreateEvent), + child: const DecoratedBox( + decoration: BoxDecoration(color: EventlyAppTheme.kTextLightBlue), + child: Icon(Icons.add, size: 21, color: EventlyAppTheme.kWhite), + ), ), ), ), - ), - Text( - LocaleKeys.eventhub.tr(), - style: headingStyle, - textAlign: TextAlign.center, - ), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 30), - child: Text( - LocaleKeys.welcome_event.tr(), - style: titleStyle, + Text( + LocaleKeys.eventhub.tr(), + style: headingStyle, textAlign: TextAlign.center, ), - ), - const SizedBox(height: 40), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 50), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - getButton(title: LocaleKeys.draft), - getButton(title: LocaleKeys.for_sale), - getButton(title: LocaleKeys.history), - ], + Padding( + padding: const EdgeInsets.symmetric(horizontal: 30), + child: Text( + LocaleKeys.welcome_event.tr(), + style: titleStyle, + textAlign: TextAlign.center, + ), + ), + const SizedBox(height: 40), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 50), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + getButton(title: LocaleKeys.draft), + getButton(title: LocaleKeys.for_sale), + getButton(title: LocaleKeys.history), + ], + ), + ), + const SizedBox(height: 40), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Align( + alignment: Alignment.centerLeft, + child: Text( + LocaleKeys.no_nft_created.tr(), + style: subTitleStyle, + )), ), - ), - const SizedBox(height: 40), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Align( - alignment: Alignment.centerLeft, - child: Text( - LocaleKeys.no_nft_created.tr(), - style: subTitleStyle, - )), - ), - const Spacer(), - Padding(padding: EdgeInsets.symmetric(horizontal: 20.w), child: getCreateEventWidget()), - ], + const Spacer(), + Padding(padding: EdgeInsets.symmetric(horizontal: 20.w), child: getCreateEventWidget()), + ], + ), ), ), ), diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 2979e8a422..3d20c33684 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -112,4 +112,10 @@ class EventHubViewModel extends ChangeNotifier { notifyListeners(); } + + Future getPublishAndDraftData() async { + await getRecipesList(); + await getDraftsList(); + notifyListeners(); + } } From dd4cbb021eeba31ae2a3092325ef99dac71ef17a Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 09:53:08 +0500 Subject: [PATCH 109/158] feat: save event from overview --- evently/lib/models/save_event.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 evently/lib/models/save_event.dart diff --git a/evently/lib/models/save_event.dart b/evently/lib/models/save_event.dart new file mode 100644 index 0000000000..829d6409b4 --- /dev/null +++ b/evently/lib/models/save_event.dart @@ -0,0 +1,16 @@ +class SaveEvent { + final int? id; + final String? nftName; + final String? hostName; + final String? thumbnail; + + final String? step; + + SaveEvent( + this.id, + this.nftName, + this.hostName, + this.thumbnail, + this.step, + ); +} From 2589150bc18556a6d58c182b1a7cf3cfc1f054fc Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 10:08:11 +0500 Subject: [PATCH 110/158] feat: overviewScreen save draft --- evently/lib/evently_provider.dart | 12 +++++++++++- evently/lib/screens/overview_screen.dart | 10 +++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index f9b30d491f..26bcf3f70f 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -10,6 +10,7 @@ import 'package:evently/models/storage_response_model.dart'; import 'package:evently/repository/repository.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/enums.dart'; import 'package:evently/utils/extension_util.dart'; import 'package:evently/utils/failure/failure.dart'; import 'package:evently/widgets/loading_with_progress.dart'; @@ -211,6 +212,7 @@ class EventlyProvider extends ChangeNotifier { LocaleKeys.something_wrong_while_uploading.tr().show(); return; } + final fileUploadResponse = response.getOrElse(() => StorageResponseModel.initial()); loading.dismiss(); @@ -275,7 +277,8 @@ class EventlyProvider extends ChangeNotifier { price: price.toString(), listOfPerks: perks.join(','), cookbookID: _cookbookId!, - recipeID: _recipeId, step: '', + recipeID: _recipeId, + step: '', ); final recipe = event.createRecipe( @@ -350,4 +353,11 @@ class EventlyProvider extends ChangeNotifier { notifyListeners(); } + + saveAsDraft({ + required VoidCallback onCompleted, + required UploadStep uploadStep, + }) { + onCompleted(); + } } diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index d8df77987a..76fd3280f7 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -8,7 +8,9 @@ import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/enums.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/evently_text_field.dart'; @@ -145,7 +147,13 @@ class _OverViewScreenState extends State { onPressContinue: () { createEventViewModel.nextPage(); }, - onPressSaveDraft: () {}, + onPressSaveDraft: () { + final navigator = Navigator.of(context); + provider.saveAsDraft( + onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), + uploadStep: UploadStep.overView, + ); + }, isContinueEnable: provider.isOverviewEnable, ) ], From 0c33e60ee09b944578e35abb182ed05dce46a195 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 10:39:29 +0500 Subject: [PATCH 111/158] feat: save from overview and show the list of draft and then open from price screen --- evently/lib/evently_provider.dart | 4 +++- evently/lib/repository/repository.dart | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 26bcf3f70f..f2e50087a2 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -357,7 +357,9 @@ class EventlyProvider extends ChangeNotifier { saveAsDraft({ required VoidCallback onCompleted, required UploadStep uploadStep, - }) { + }) async { + final id = await repository.saveEvents(Events(step: uploadStep.toString(), eventName: eventName, hostName: hostName, thumbnail: thumbnail!)); + onCompleted(); } } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 1105c8d17d..4dfe2861e9 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -58,6 +58,10 @@ abstract class Repository { /// This method will get the drafts List from the local database /// Output: [List] returns that contains a number of [NFT] Future>> getAllEvents(); + + /// This method will save event + /// Output: [int] returns that id of [Event] + Future> saveEvents(Events events); } @LazySingleton(as: Repository) @@ -144,4 +148,14 @@ class RepositoryImp implements Repository { return Left(CacheFailure(LocaleKeys.something_wrong.tr())); } } + + @override + Future> saveEvents(Events events) async { + try { + int id = await localDataSource.saveEvents(events); + return Right(id); + } on Exception catch (_) { + return Left(CacheFailure(LocaleKeys.save_error.tr())); + } + } } From 28f4f560e4384e7bb26ba9cb0a7fa77a93cc85cc Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 12:51:06 +0500 Subject: [PATCH 112/158] feat: delete add and ui view for event hub --- evently/assets/images/ipfs_logo.png | Bin 0 -> 1331 bytes evently/assets/images/svg/delete.svg | 4 + evently/assets/images/svg/grid.svg | 11 + evently/assets/images/svg/list.svg | 5 + evently/assets/images/svg/more_options.svg | 5 + evently/assets/images/svg/publish.svg | 3 + evently/i18n/de.json | 4 +- evently/i18n/en-US.json | 4 +- evently/i18n/es.json | 4 +- evently/i18n/ru-RU.json | 4 +- evently/lib/evently_provider.dart | 1 - evently/lib/generated/locale_keys.g.dart | 1 + evently/lib/models/events.dart | 3 + evently/lib/repository/repository.dart | 16 + .../screens/event_hub/event_hub_screen.dart | 502 +++++++++++++++--- .../event_hub/event_hub_view_model.dart | 32 +- .../widgets/delete_confirmation_dialog.dart | 113 ++++ .../widgets/drafts_more_bottomsheet.dart | 153 ++++++ .../event_hub/widgets/nfts_grid_view.dart | 212 ++++++++ .../datasources/local_datasource.dart | 15 + evently/lib/utils/constants.dart | 9 +- evently/lib/utils/evently_app_theme.dart | 1 + .../clippers/bottom_sheet_clipper.dart | 49 ++ evently/pubspec.lock | 24 + evently/pubspec.yaml | 2 + 25 files changed, 1100 insertions(+), 77 deletions(-) create mode 100644 evently/assets/images/ipfs_logo.png create mode 100644 evently/assets/images/svg/delete.svg create mode 100644 evently/assets/images/svg/grid.svg create mode 100644 evently/assets/images/svg/list.svg create mode 100644 evently/assets/images/svg/more_options.svg create mode 100644 evently/assets/images/svg/publish.svg create mode 100644 evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart create mode 100644 evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart create mode 100644 evently/lib/screens/event_hub/widgets/nfts_grid_view.dart create mode 100644 evently/lib/widgets/clippers/bottom_sheet_clipper.dart diff --git a/evently/assets/images/ipfs_logo.png b/evently/assets/images/ipfs_logo.png new file mode 100644 index 0000000000000000000000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-QP9WD9Hl z?Culsl#zNVJA+=&Cr}G-p02CAn#x{AH+)7e$jV{Tc@-m`Ihc>jQfO~SgZ0;R?PNq6 p0p0jFa|*XrQlY-nYCVDs@h|236}=fNBS8QF002ovPDHLkV1m~bc&z{c literal 0 HcmV?d00001 diff --git a/evently/assets/images/svg/delete.svg b/evently/assets/images/svg/delete.svg new file mode 100644 index 0000000000..8848d56905 --- /dev/null +++ b/evently/assets/images/svg/delete.svg @@ -0,0 +1,4 @@ + + + + diff --git a/evently/assets/images/svg/grid.svg b/evently/assets/images/svg/grid.svg new file mode 100644 index 0000000000..7863c25fe6 --- /dev/null +++ b/evently/assets/images/svg/grid.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/evently/assets/images/svg/list.svg b/evently/assets/images/svg/list.svg new file mode 100644 index 0000000000..32fa01075a --- /dev/null +++ b/evently/assets/images/svg/list.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/evently/assets/images/svg/more_options.svg b/evently/assets/images/svg/more_options.svg new file mode 100644 index 0000000000..653364018c --- /dev/null +++ b/evently/assets/images/svg/more_options.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/evently/assets/images/svg/publish.svg b/evently/assets/images/svg/publish.svg new file mode 100644 index 0000000000..4dca606d37 --- /dev/null +++ b/evently/assets/images/svg/publish.svg @@ -0,0 +1,3 @@ + + + diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 42dceb774f..6c5ad47a7f 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -68,5 +68,7 @@ "get_error": "Entwurf konnte nicht abgerufen werden", "delete_error": "Entwurf konnte nicht gelöscht werden", "save_error": "Entwurf konnte nicht gespeichert werden", - "save_error": "Failed to save draft" + "save_error": "Failed to save draft", + "event_name" : "Event Name", + "are_you_sure_you_want_to_delete": "Möchten Sie diesen Entwurf wirklich löschen?" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 40c0782be3..d382d5e13e 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -66,5 +66,7 @@ "loading": "loading ...", "something_wrong": "Something went wrong. Please try restarting the application.", "get_error": "Failed to get draft", - "delete_error": "Failed to delete draft" + "delete_error": "Failed to delete draft", + "event_name" : "Event Name", + "are_you_sure_you_want_to_delete": "Are you sure you want to delete this draft?" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index d8a8ead539..d851a4fa0e 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -67,5 +67,7 @@ "something_wrong": "Algo salió mal. Intenta reiniciar la aplicación.", "get_error": "No se pudo obtener el Plan Preliminar", "delete_error": "No se pudo eliminar el Plan Preliminar", - "save_error": "No se pudo guardar el Plan Preliminar" + "save_error": "No se pudo guardar el Plan Preliminar", + "event_name" : "Event Name", + "are_you_sure_you_want_to_delete": "¿Seguro que quieres eliminar este Plan Preliminar?" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 0128535959..3dcfd108a5 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -67,5 +67,7 @@ "something_wrong": "Что-то пошло не так. Попробуйте перезапустить приложение.", "get_error": "Не удалось получить черновик", "delete_error": "Не удалось удалить черновик", - "save_error": "Не удалось сохранить черновик" + "save_error": "Не удалось сохранить черновик", + "event_name" : "Event Name", + "are_you_sure_you_want_to_delete": "Вы уверены, что хотите удалить этот черновик?" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index f2e50087a2..1f674f5ab1 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -359,7 +359,6 @@ class EventlyProvider extends ChangeNotifier { required UploadStep uploadStep, }) async { final id = await repository.saveEvents(Events(step: uploadStep.toString(), eventName: eventName, hostName: hostName, thumbnail: thumbnail!)); - onCompleted(); } } diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 1abafc579b..a7c4637f10 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -68,5 +68,6 @@ abstract class LocaleKeys { static const get_error = 'get_error'; static const delete_error = 'delete_error'; static const save_error = 'save_error'; + static const are_you_sure_you_want_to_delete = 'are_you_sure_you_want_to_delete'; } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index e4bf31cd73..a12ee9ab0a 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -25,6 +25,7 @@ class Events extends Equatable { final String isFreeDrops; final String cookbookID; final String step; + final String denom; const Events({ this.id, @@ -49,11 +50,13 @@ class Events extends Equatable { this.numberOfTickets = '0', this.price = '', this.isFreeDrops = 'unselected', + this.denom = '', ///* other this.cookbookID = '', this.recipeID = '', required this.step, + }); factory Events.fromRecipe(Recipe recipe) { diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 4dfe2861e9..a8d3bf9fc5 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -62,6 +62,11 @@ abstract class Repository { /// This method will save event /// Output: [int] returns that id of [Event] Future> saveEvents(Events events); + + /// This method will delete draft from the local database + /// Input: [id] the id of the nft which the user wants to delete + /// Output: [bool] returns whether the operation is successful or not + Future> deleteNft(int id); } @LazySingleton(as: Repository) @@ -158,4 +163,15 @@ class RepositoryImp implements Repository { return Left(CacheFailure(LocaleKeys.save_error.tr())); } } + + @override + Future> deleteNft(int id) async { + try { + final bool result = await localDataSource.deleteNft(id); + return Right(result); + } on Exception catch (exception) { + + return Left(CacheFailure(LocaleKeys.something_wrong.tr())); + } + } } diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 5f9cad9b8c..b4021a9490 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -1,7 +1,10 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/main.dart'; +import 'package:evently/models/events.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; +import 'package:evently/screens/event_hub/widgets/delete_confirmation_dialog.dart'; +import 'package:evently/screens/event_hub/widgets/drafts_more_bottomsheet.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; @@ -9,6 +12,9 @@ import 'package:evently/utils/route_util.dart'; import 'package:evently/widgets/clipped_button.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_slidable/flutter_slidable.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:focus_detector/focus_detector.dart'; import 'package:provider/provider.dart'; class EventHubScreen extends StatefulWidget { @@ -19,6 +25,36 @@ class EventHubScreen extends StatefulWidget { } class _EventHubScreenState extends State { + EventHubViewModel get eventHubViewModel => sl(); + + @override + void initState() { + eventHubViewModel.getPublishAndDraftData(); + super.initState(); + } + + @override + Widget build(BuildContext context) { + return ChangeNotifierProvider.value( + value: eventHubViewModel, + child: FocusDetector( + onFocusGained: () { + eventHubViewModel.getPublishAndDraftData(); + }, + child: const EventHubContent(), + ), + ); + } +} + +class EventHubContent extends StatefulWidget { + const EventHubContent({super.key}); + + @override + State createState() => _EventHubContentState(); +} + +class _EventHubContentState extends State { TextStyle headingStyle = TextStyle( fontSize: isTablet ? 20.sp : 25, fontWeight: FontWeight.bold, @@ -45,68 +81,99 @@ class _EventHubScreenState extends State { fontFamily: kUniversalFontFamily, ); - EventHubViewModel get eventHubViewModel => sl(); - - @override - void initState() { - eventHubViewModel.getPublishAndDraftData(); - - super.initState(); - } - @override Widget build(BuildContext context) { - return ChangeNotifierProvider.value( - value: eventHubViewModel, - child: ColoredBox( - color: EventlyAppTheme.kBlack, - child: SafeArea( - child: Scaffold( - backgroundColor: EventlyAppTheme.kBlack, - body: Padding( - padding: const EdgeInsets.only(top: 20), - child: Column( - children: [ - Padding( - padding: const EdgeInsets.only(right: 20), - child: Align( - alignment: Alignment.topRight, - child: InkWell( - onTap: () => Navigator.of(context).pushNamed(RouteUtil.kCreateEvent), - child: const DecoratedBox( - decoration: BoxDecoration(color: EventlyAppTheme.kTextLightBlue), - child: Icon(Icons.add, size: 21, color: EventlyAppTheme.kWhite), - ), + final viewModel = context.watch(); + return ColoredBox( + color: EventlyAppTheme.kBlack, + child: SafeArea( + child: Scaffold( + backgroundColor: EventlyAppTheme.kBlack, + body: Padding( + padding: const EdgeInsets.only(top: 20), + child: Column( + children: [ + Padding( + padding: const EdgeInsets.only(right: 20), + child: Align( + alignment: Alignment.topRight, + child: InkWell( + onTap: () => Navigator.of(context).pushNamed(RouteUtil.kCreateEvent), + child: const DecoratedBox( + decoration: BoxDecoration(color: EventlyAppTheme.kTextLightBlue), + child: Icon(Icons.add, size: 21, color: EventlyAppTheme.kWhite), ), ), ), - Text( - LocaleKeys.eventhub.tr(), - style: headingStyle, + ), + Text( + LocaleKeys.eventhub.tr(), + style: headingStyle, + textAlign: TextAlign.center, + ), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 30), + child: Text( + LocaleKeys.welcome_event.tr(), + style: titleStyle, textAlign: TextAlign.center, ), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 30), - child: Text( - LocaleKeys.welcome_event.tr(), - style: titleStyle, - textAlign: TextAlign.center, - ), + ), + const SizedBox(height: 40), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 50), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + getButton( + title: LocaleKeys.draft, + onTap: () => viewModel.changeSelectedCollection(CollectionType.draft), + isSelected: viewModel.selectedCollectionType == CollectionType.draft, + ), + getButton( + title: LocaleKeys.for_sale, + onTap: () => viewModel.changeSelectedCollection(CollectionType.forSale), + isSelected: viewModel.selectedCollectionType == CollectionType.forSale, + ), + getButton( + title: LocaleKeys.history, + onTap: () => viewModel.changeSelectedCollection(CollectionType.history), + isSelected: viewModel.selectedCollectionType == CollectionType.history, + ), + ], ), - const SizedBox(height: 40), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 50), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - getButton(title: LocaleKeys.draft), - getButton(title: LocaleKeys.for_sale), - getButton(title: LocaleKeys.history), - ], - ), + ), + const SizedBox(height: 40), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + SizedBox(width: 16.w), + InkWell( + onTap: () => viewModel.updateViewType(ViewType.viewGrid), + child: SvgPicture.asset( + SVGUtils.kGridIcon, + height: 18.h, + color: getButtonColor(isSelected: viewModel.viewType == ViewType.viewGrid), + ), + ), + SizedBox(width: 14.w), + InkWell( + onTap: () => viewModel.updateViewType(ViewType.viewList), + child: SvgPicture.asset( + SVGUtils.kListIcon, + height: 18.h, + color: getButtonColor(isSelected: viewModel.viewType == ViewType.viewList), + ), + ), + ], ), - const SizedBox(height: 40), - Padding( + ), + const SizedBox(height: 10), + BuildListView( + eventsList: viewModel.eventForDraftList, + onEmptyList: (BuildContext context) => Padding( padding: EdgeInsets.symmetric(horizontal: 20.w), child: Align( alignment: Alignment.centerLeft, @@ -115,10 +182,10 @@ class _EventHubScreenState extends State { style: subTitleStyle, )), ), - const Spacer(), - Padding(padding: EdgeInsets.symmetric(horizontal: 20.w), child: getCreateEventWidget()), - ], - ), + ), + const Spacer(), + Padding(padding: EdgeInsets.symmetric(horizontal: 20.w), child: getCreateEventWidget()), + ], ), ), ), @@ -126,17 +193,28 @@ class _EventHubScreenState extends State { ); } - Widget getButton({required String title}) { + Color getButtonColor({required bool isSelected}) { + if (isSelected) { + return EventlyAppTheme.kBlue; + } else { + return EventlyAppTheme.kWhite; + } + } + + Widget getButton({required String title, required VoidCallback onTap, required bool isSelected}) { return Expanded( - child: Container( - alignment: Alignment.center, - margin: EdgeInsets.symmetric(horizontal: 8.w), - decoration: BoxDecoration(border: Border.all(color: EventlyAppTheme.kWhite)), - padding: EdgeInsets.symmetric(vertical: 5.h, horizontal: 10.w), - child: Text( - title.tr(), - style: btnTxtStyle, - textAlign: TextAlign.center, + child: GestureDetector( + onTap: () => onTap(), + child: Container( + alignment: Alignment.center, + margin: EdgeInsets.symmetric(horizontal: 8.w), + decoration: BoxDecoration(border: Border.all(color: isSelected ? EventlyAppTheme.kBlue : EventlyAppTheme.kWhite)), + padding: EdgeInsets.symmetric(vertical: 5.h, horizontal: 10.w), + child: Text( + title.tr(), + style: btnTxtStyle, + textAlign: TextAlign.center, + ), ), ), ); @@ -161,3 +239,293 @@ class _EventHubScreenState extends State { ); } } + +class BuildListView extends StatelessWidget { + final List eventsList; + final WidgetBuilder onEmptyList; + + const BuildListView({super.key, required this.eventsList, required this.onEmptyList}); + + EventHubViewModel get viewModel => sl(); + + @override + Widget build(BuildContext context) { + if (eventsList.isEmpty) { + return onEmptyList(context); + } + return ListView.builder( + shrinkWrap: true, + itemCount: eventsList.length, + itemBuilder: (context, index) { + final events = eventsList[index]; + if (viewModel.selectedCollectionType == CollectionType.draft) { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: DraftListTile(events: events, viewModel: viewModel), + ); + } else { + return const Placeholder(); + } + }, + ); + } +} + +class DraftListTile extends StatefulWidget { + final Events events; + final EventHubViewModel viewModel; + + const DraftListTile({super.key, required this.events, required this.viewModel}); + + @override + State createState() => _DraftListTileState(); +} + +class _DraftListTileState extends State { + Widget getPlaceHolder() { + return Container( + margin: EdgeInsets.symmetric(vertical: 5.h, horizontal: 3.w), + decoration: BoxDecoration( + color: EventlyAppTheme.kGery03, + boxShadow: [ + BoxShadow( + color: Colors.black.withOpacity(0.3), + offset: const Offset(0.0, 1.0), + blurRadius: 4.0, + ), + ], + ), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h), + child: Row( + children: [ + Container( + width: 50.0.w, + height: 50.0.w, + decoration: const BoxDecoration( + color: EventlyAppTheme.kGery03, + ), + ), + SizedBox( + width: 10.w, + ), + Expanded( + child: ListView.separated( + shrinkWrap: true, + itemBuilder: (context, index) { + return Container( + width: 30.0.w, + height: 9.0.h, + color: EventlyAppTheme.kGery03, + ); + }, + separatorBuilder: (context, index) { + return SizedBox( + height: 8.0.h, + ); + }, + itemCount: 3, + ), + ), + SizedBox( + width: 10.w, + ), + Padding( + padding: EdgeInsets.all(4.0.w), + child: SvgPicture.asset( + SVGUtils.kSvgMoreOption, + color: EventlyAppTheme.kGery03, + ), + ) + ], + ), + ), + ); + } + + Widget getDraftCard() { + return DecoratedBox( + decoration: BoxDecoration( + color: Colors.white, + boxShadow: [ + BoxShadow( + color: Colors.black.withOpacity(0.3), + offset: const Offset(0.0, 1.0), + blurRadius: 4.0, + ), + ], + ), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h), + child: Row( + children: [ + SizedBox( + width: 10.w, + ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + // "event_name".tr(args: [if (widget.events.eventName.isNotEmpty) widget.nft.name else 'Event Name']), + (widget.events.eventName.isNotEmpty) ? widget.events.eventName : 'Event Name', + style: titleStyle.copyWith(fontSize: isTablet ? 13.sp : 18.sp), + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + SizedBox( + height: 6.h, + ), + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(1.h), + color: EventlyAppTheme.kLightRed, + ), + padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h), + child: Text( + LocaleKeys.draft.tr(), + style: EventlyAppTheme.titleStyle.copyWith(color: EventlyAppTheme.kWhite, fontSize: isTablet ? 8.sp : 11.sp), + ), + ), + ], + ), + ), + SizedBox( + width: 10.w, + ), + InkWell( + onTap: () {}, + child: Padding( + padding: EdgeInsets.all(4.0.w), + child: SvgPicture.asset(SVGUtils.kSvgMoreOption), + ), + ), + SizedBox( + width: 10.w, + ), + ], + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + Slidable( + key: ValueKey(widget.events.id), + closeOnScroll: false, + endActionPane: ActionPane( + extentRatio: 0.3, + motion: const ScrollMotion(), + children: [ + buildSlidableAction( + context, + callback: () { + final DeleteDialog deleteDialog = DeleteDialog(contextt: context, events: widget.events); + deleteDialog.show(); + }, + icon: SVGUtils.kSvgDelete, + ), + ], + ), + child: (widget.events.price.isNotEmpty && double.parse(widget.events.price) > 0) + ? Card( + elevation: 5, + margin: EdgeInsets.zero, + child: ClipRRect( + child: Banner( + color: EventlyAppTheme.kDarkGreen, + location: BannerLocation.topEnd, + message: "\$ ${widget.events.price}", + child: getDraftCard(), + ), + ), + ) + : getDraftCard(), + ), + // IgnorePointer( + // child: SizedBox( + // height: 85.0.h, + // width: double.infinity, + // child: CachedNetworkImage( + // imageUrl: widget.events.thumbnail, + // fit: BoxFit.fill, + // color: EventlyAppTheme.kTransparent, + // colorBlendMode: BlendMode.clear, + // placeholder: (context, _) => getPlaceHolder(), + // errorWidget: (context, _, __) { + // return const IgnorePointer(child: SizedBox()); + // }, + // ), + // ), + // ) + ], + ); + } + + Widget buildSlidableAction(BuildContext context, {required VoidCallback callback, required String icon, bool isSvg = true}) { + return Expanded( + child: InkWell( + onTap: callback, + child: isSvg ? SvgPicture.asset(icon) : Image.asset(icon), + ), + ); + } +} + +class BuildGridView extends StatelessWidget { + final List eventsList; + final WidgetBuilder onEmptyList; + final String Function({ + required String price, + required String currency, + }) calculateBannerPrice; + + const BuildGridView({ + super.key, + required this.eventsList, + required this.onEmptyList, + required this.calculateBannerPrice, + }); + + @override + Widget build(BuildContext context) { + if (eventsList.isEmpty) { + return onEmptyList(context); + } + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: GridView.builder( + itemCount: eventsList.length, + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + childAspectRatio: 0.5, + crossAxisSpacing: 15.w, + mainAxisSpacing: 15.h, + crossAxisCount: 3, + ), + itemBuilder: (context, index) { + final events = eventsList[index]; + if (events.price.isNotEmpty && double.parse(events.price) > 0) { + return ClipRRect( + child: Banner( + + color: EventlyAppTheme.kDarkGreen, + location: BannerLocation.topEnd, + message: calculateBannerPrice(price: events.price, currency: events.denom), + child: NftGridViewItem( + nft: nft, + ), + ), + ); + } else { + return NftGridViewItem( + nft: nft, + ); + } + }, + ), + ); + } +} diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 3d20c33684..234159f8c2 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -10,6 +10,8 @@ import 'package:pylons_sdk/pylons_sdk.dart'; enum CollectionType { draft, forSale, history } +enum ViewType { viewGrid, viewList } + @lazySingleton class EventHubViewModel extends ChangeNotifier { EventHubViewModel(this.repository); @@ -22,6 +24,15 @@ class EventHubViewModel extends ChangeNotifier { List _eventForDraftList = []; + ViewType viewType = ViewType.viewGrid; + + void updateViewType(ViewType selectedViewType) { + viewType = selectedViewType; + notifyListeners(); + } + + List get eventForDraftList => _eventForDraftList; + List get eventForSaleList => _eventForDraftList; set setEventForDraftList(List nftForSale) { @@ -40,22 +51,24 @@ class EventHubViewModel extends ChangeNotifier { notifyListeners(); } - CollectionType selectedCollectionType = CollectionType.draft; + CollectionType _selectedCollectionType = CollectionType.draft; + + CollectionType get selectedCollectionType => _selectedCollectionType; void changeSelectedCollection(CollectionType collectionType) { switch (collectionType) { case CollectionType.draft: - selectedCollectionType = CollectionType.draft; + _selectedCollectionType = CollectionType.draft; notifyListeners(); break; case CollectionType.forSale: - selectedCollectionType = CollectionType.forSale; + _selectedCollectionType = CollectionType.forSale; notifyListeners(); break; case CollectionType.history: - selectedCollectionType = CollectionType.history; + _selectedCollectionType = CollectionType.history; notifyListeners(); break; } @@ -118,4 +131,15 @@ class EventHubViewModel extends ChangeNotifier { await getDraftsList(); notifyListeners(); } + + Future deleteNft(int? id) async { + final deleteNftResponse = await repository.deleteNft(id!); + + if (deleteNftResponse.isLeft()) { + LocaleKeys.delete_error.tr().show(); + return; + } + eventForDraftList.removeWhere((element) => element.id == id); + notifyListeners(); + } } diff --git a/evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart b/evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart new file mode 100644 index 0000000000..4873cde777 --- /dev/null +++ b/evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart @@ -0,0 +1,113 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/main.dart'; +import 'package:evently/models/events.dart'; +import 'package:evently/screens/event_hub/event_hub_view_model.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/di/di.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/widgets/clipped_button.dart'; +import 'package:evently/widgets/dialog_clipper.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; + +import '../../../generated/locale_keys.g.dart'; + +class DeleteDialog { + final BuildContext contextt; + final Events events; + + DeleteDialog({required this.contextt, required this.events}); + + EventHubViewModel get creatorHubViewModel => sl(); + + Future show() async { + return showDialog( + barrierColor: Colors.black38, + barrierDismissible: false, + context: contextt, + builder: (context) { + return Dialog( + elevation: 0, + insetPadding: EdgeInsets.symmetric(horizontal: isTablet ? 45.w : 15.w), + backgroundColor: EventlyAppTheme.kTransparent, + child: ClipPath( + clipper: DialogClipper(), + child: Container( + color: EventlyAppTheme.kLightRed, + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + SizedBox( + height: 20.h, + ), + Align( + child: SvgPicture.asset( + SVGUtils.kAlertIcon, + height: 40.h, + fit: BoxFit.cover, + ), + ), + SizedBox( + height: 35.h, + ), + Text( + LocaleKeys.are_you_sure_you_want_to_delete.tr(), + textAlign: TextAlign.center, + style: EventlyAppTheme.kDeleteHeaderTextStyle, + ), + SizedBox( + height: 30.h, + ), + Container( + margin: EdgeInsets.symmetric(horizontal: 20.w), + height: 40.h, + child: Row( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Expanded( + child: ClippedButton( + title: LocaleKeys.yes.tr(), + bgColor: EventlyAppTheme.kTextDarkPurple, + textColor: EventlyAppTheme.kWhite, + fontWeight: FontWeight.w300, + clipperType: ClipperType.bottomLeftTopRight, + onPressed: () async { + Navigator.of(context).pop(); + creatorHubViewModel.deleteNft(events.id); + }, + cuttingHeight: 12.h, + ), + ), + SizedBox( + width: 15.w, + ), + Expanded( + child: ClippedButton( + title: LocaleKeys.no.tr(), + bgColor: EventlyAppTheme.kWhite.withOpacity(0.3), + textColor: EventlyAppTheme.kWhite, + onPressed: () { + Navigator.of(context).pop(); + }, + cuttingHeight: 12.h, + fontWeight: FontWeight.w300, + clipperType: ClipperType.bottomLeftTopRight, + ), + ), + ], + ), + ), + SizedBox( + height: 30.h, + ), + ], + ), + ), + ), + ); + }); + } +} diff --git a/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart b/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart new file mode 100644 index 0000000000..208d44930c --- /dev/null +++ b/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart @@ -0,0 +1,153 @@ +import 'package:evently/evently_provider.dart'; +import 'package:evently/main.dart'; +import 'package:evently/models/events.dart'; +import 'package:evently/screens/event_hub/event_hub_view_model.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/di/di.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/widgets/clippers/bottom_sheet_clipper.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:provider/provider.dart'; + +import '../../../generated/locale_keys.g.dart'; + +TextStyle titleStyle = TextStyle(fontSize: isTablet ? 13.sp : 16.sp, fontWeight: FontWeight.w800, fontFamily: kUniversalFontFamily, color: EventlyAppTheme.kBlack); + +class DraftsBottomSheet { + final BuildContext buildContext; + final Events events; + + EventHubViewModel get creatorHubViewModel => sl(); + + DraftsBottomSheet({required this.buildContext, required this.events}); + + Future show() async { + return showModalBottomSheet( + backgroundColor: EventlyAppTheme.kTransparent, + context: buildContext, + builder: (_) { + return ChangeNotifierProvider.value( + value: creatorHubViewModel, + child: DraftsMoreBottomSheet( + events: events, + ), + ); + }, + ); + } +} + +class DraftsMoreBottomSheet extends StatelessWidget { + const DraftsMoreBottomSheet({super.key, required this.events}); + + final Events events; + + EventlyProvider get easelProvider => sl(); + + Future onViewOnIPFSPressed({required BuildContext context, required Events events}) async { + // final easelProvider = Provider.of(context, listen: false); + // await easelProvider.repository.launchMyUrl(url: nft.url.changeDomain()); + } + + @override + Widget build(BuildContext context) { + final viewModel = context.watch(); + return ClipPath( + clipper: BottomSheetClipper(), + child: Container( + color: EventlyAppTheme.kGrey02, + padding: EdgeInsets.symmetric(horizontal: 30.w, vertical: 30.h), + child: Wrap( + children: [ + moreOptionTile( + title: "publish", + image: SVGUtils.kSvgPublish, + onPressed: () { + viewModel.saveNFT(nft: nft); + Navigator.of(context).pop(); + Navigator.of(context).pushNamed(RouteUtil.kRouteHome); + }), + const Divider( + color: EaselAppTheme.kGrey, + ), + moreOptionTile( + title: "delete", + image: SVGUtils.kSvgDelete, + onPressed: () { + Navigator.of(context).pop(); + + final DeleteDialog deleteDialog = DeleteDialog(contextt: context, nft: nft); + + deleteDialog.show(); + }), + const Divider( + color: EaselAppTheme.kGrey, + ), + CidOrIpfs( + viewCid: (context) { + return moreOptionTile( + onPressed: () async { + final state = ScaffoldMessenger.of(context); + Navigator.of(context).pop(); + await Clipboard.setData(ClipboardData(text: nft.cid)); + state + ..hideCurrentSnackBar() + ..showSnackBar( + SnackBar(content: Text(LocaleKeys.copied_to_clipboard.tr())), + ); + }, + title: LocaleKeys.copy_cid.tr(), + image: PngUtils.kSvgIpfsLogo, + isSvg: false, + ); + }, + viewIpfs: (context) { + return moreOptionTile( + onPressed: () async { + Navigator.of(context).pop(); + onViewOnIPFSPressed(nft: nft, context: context); + }, + title: LocaleKeys.view.tr(), + image: PngUtils.kSvgIpfsLogo, + isSvg: false, + ); + }, + type: nft.assetType) + ], + ), + ), + ); + } + + void navigateToPreviewScreen({required BuildContext context, required NFT nft}) { + easelProvider.setPublishedNFTClicked(nft); + easelProvider.setPublishedNFTDuration(nft.duration); + Navigator.of(context).pushReplacementNamed(RouteUtil.kRoutePreviewNFTFullScreen); + } +} + +Widget moreOptionTile({required String title, required String image, required VoidCallback onPressed, bool isSvg = true}) { + final TextStyle titleStyle = TextStyle(fontSize: isTablet ? 13.sp : 16.sp, fontWeight: FontWeight.w800, fontFamily: kUniversalFontFamily, color: EaselAppTheme.kBlack); + + return Padding( + padding: EdgeInsets.symmetric(vertical: 8.h), + child: InkWell( + onTap: onPressed, + child: Row( + children: [ + if (isSvg) SvgPicture.asset(image) else Image.asset(image), + SizedBox( + width: 30.w, + ), + Text( + title, + style: titleStyle.copyWith(fontSize: 16.sp), + ) + ], + ), + ), + ); +} diff --git a/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart new file mode 100644 index 0000000000..3786203d03 --- /dev/null +++ b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart @@ -0,0 +1,212 @@ +import 'package:cached_network_image/cached_network_image.dart'; +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/evently_provider.dart'; +import 'package:evently/models/events.dart'; +import 'package:evently/screens/event_hub/event_hub_view_model.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/svg.dart'; +import 'package:get_it/get_it.dart'; +import 'package:provider/provider.dart'; +import 'package:shimmer_animation/shimmer_animation.dart'; + +import '../../../generated/locale_keys.g.dart'; +import '../../../main.dart'; + +List gradientBlackToTransparent = [ + Colors.black87, + Colors.black54, + Colors.black45, + Colors.black38, + Colors.black26, + Colors.black12, + EventlyAppTheme.kTransparent, +]; + +List gradientTransparentToBlack = [ + EventlyAppTheme.kTransparent, + Colors.black12, + Colors.black26, + Colors.black38, + Colors.black45, + Colors.black54, + Colors.black87, +]; + +class NftGridViewItem extends StatelessWidget { + const NftGridViewItem({ + super.key, + required this.events, + }); + final Events events; + + EventlyProvider get _easelProvider => GetIt.I.get(); + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + SizedBox( + height: 200.h, + width: 150.w, + child: InkWell( + + onTap: () { + if (context.read().selectedCollectionType == CollectionType.draft) { + final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( + buildContext: context, + nft: nft, + ); + draftsBottomSheet.show(); + return; + } + buildBottomSheet(context: context); + }, + child: NftTypeBuilder( + onImage: (context) => buildNFTPreview(url: nft.url.changeDomain()), + onVideo: (context) => buildNFTPreview(url: nft.thumbnailUrl.changeDomain()), + onAudio: (context) => buildNFTPreview(url: nft.thumbnailUrl.changeDomain()), + onPdf: (context) => buildNFTPreview(url: nft.thumbnailUrl.changeDomain()), + on3D: (context) => IgnorePointer( + child: ModelViewer( + src: nft.url.changeDomain(), + ar: false, + autoRotate: false, + backgroundColor: EaselAppTheme.kWhite, + cameraControls: false, + ), + ), + assetType: nft.assetType.toAssetTypeEnum(), + ), + ), + ), + Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Container( + alignment: Alignment.bottomLeft, + decoration: BoxDecoration( + gradient: LinearGradient( + colors: gradientBlackToTransparent, + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + ), + ), + child: Padding( + padding: EdgeInsets.only(left: 8.w, top: 10.0.h), + child: SvgPicture.asset( + getNFTIcon(), + key: Key(getNFTIconKey()), + color: Colors.white, + width: 14, + height: 14, + ), + ), + ), + Container( + alignment: Alignment.bottomLeft, + decoration: BoxDecoration( + gradient: LinearGradient( + colors: gradientTransparentToBlack, + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + ), + ), + child: Row( + children: [ + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(1.h), + color: context.read().selectedCollectionType == CollectionType.draft + ? EaselAppTheme.kLightRed + : EaselAppTheme.kDarkGreen, + ), + padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h), + margin: EdgeInsets.symmetric(horizontal: 6.w, vertical: 6.h), + child: Text( + context.read().selectedCollectionType == CollectionType.draft + ? LocaleKeys.draft.tr() + : LocaleKeys.published.tr(), + style: EaselAppTheme.titleStyle.copyWith( + color: EaselAppTheme.kWhite, + fontSize: isTablet ? 8.sp : 11.sp, + ), + ), + ), + const Spacer(), + InkWell( + key: const Key(kGridViewTileMoreOptionKey), + onTap: () { + if (context.read().selectedCollectionType == CollectionType.draft) { + final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( + buildContext: context, + nft: nft, + ); + draftsBottomSheet.show(); + return; + } + buildBottomSheet(context: context); + }, + child: Padding( + padding: EdgeInsets.all(4.0.w), + child: SvgPicture.asset(SVGUtils.kSvgMoreOption, color: Colors.white), + ), + ), + const SizedBox( + width: 5, + ) + ], + ), + ), + ], + ) + ], + ); + } + + CachedNetworkImage buildNFTPreview({required String url}) { + return CachedNetworkImage( + fit: BoxFit.fitHeight, + imageUrl: url, + errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), + placeholder: (context, url) => Shimmer(color: EaselAppTheme.cardBackground, child: const SizedBox.expand()), + ); + } + + void buildBottomSheet({required BuildContext context}) { + final bottomSheet = BuildPublishedNFTsBottomSheet(context: context, nft: nft, easelProvider: _easelProvider); + + bottomSheet.show(); + } + + String getNFTIcon() { + switch (nft.assetType) { + case kVideoText: + return SVGUtils.kSvgNftFormatVideo; + case kAudioText: + return SVGUtils.kSvgNftFormatAudio; + case kPdfText: + return SVGUtils.kSvgNftFormatPDF; + case k3dText: + return SVGUtils.kSvgNftFormat3d; + default: + return SVGUtils.kFileTypeImageIcon; + } + } + + String getNFTIconKey() { + switch (nft.assetType) { + case kVideoText: + return kNFTTypeVideoIconKey; + case kAudioText: + return kNFTTypeAudioIconKey; + case kPdfText: + return kNFTTypePdfIconKey; + case k3dText: + return kNFTType3dModelIconKey; + default: + return kNFTTypeImageIconKey; + } + } +} diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 0cbbf985f1..0c17fe2eca 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -52,6 +52,11 @@ abstract class LocalDataSource { /// Input: [Events] the draft that will will be saved in database /// Output: [int] returns id of the inserted document Future saveEvents(Events events); + + /// This method will delete draft from the local database + /// Input: [id] the id of the draft which the user wants to delete + /// Output: [bool] returns whether the operation is successful or not + Future deleteNft(int id); } @LazySingleton(as: LocalDataSource) @@ -138,4 +143,14 @@ class LocalDataSourceImpl extends LocalDataSource { throw LocaleKeys.save_error.tr(); } } + + @override + Future deleteNft(int id) async { + try { + await database.eventsDao.delete(id); + return true; + } catch (e) { + throw CacheFailure(LocaleKeys.delete_error.tr()); + } + } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index 7d9d93c6cf..f5173ec7e3 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -49,7 +49,6 @@ const kFreeShirt = "free_shirt"; const kFreeGift = "free_gift"; const kFreeDrink = "free_drink"; - const kResidual = "Residual"; const kQuantity = "Quantity"; const String transferFeeAmount = '1'; @@ -70,6 +69,13 @@ class SVGUtils { static const kDiamond = "assets/images/svg/diamond.svg"; static const kCamera = "assets/images/svg/camera.svg"; static const kAlertIcon = 'assets/images/svg/i_icon.svg'; + static const kSvgMoreOption = 'assets/images/svg/more_options.svg'; + static const kSvgDelete = 'assets/images/svg/delete.svg'; + static const kGridIcon = 'assets/images/svg/grid.svg'; + static const kListIcon = 'assets/images/svg/list.svg'; + static const kSvgPublish = 'assets/images/svg/publish.svg'; + + } /// ```PNG assets @@ -82,6 +88,7 @@ class PngUtils { static const kIconDenomUsd = 'assets/images/denom_usd.png'; static const kIconDenomPylon = 'assets/images/denom_pylon.png'; static const kHostPreview = "assets/images/host_preview.png"; + static const kSvgIpfsLogo = 'assets/images/ipfs_logo.png'; /// will remove this variable for ui dev /// i need this variable to be used diff --git a/evently/lib/utils/evently_app_theme.dart b/evently/lib/utils/evently_app_theme.dart index ecccef6fd6..e5020bf64a 100644 --- a/evently/lib/utils/evently_app_theme.dart +++ b/evently/lib/utils/evently_app_theme.dart @@ -25,6 +25,7 @@ class EventlyAppTheme { static const Color kGreen = Color(0xFF0CAF59); static const Color kLightRed = Color(0xFFEF4421); + static const Color kDarkGreen = Color(0xFF3A8977); static const String universalSansFamily = "UniversalSans"; diff --git a/evently/lib/widgets/clippers/bottom_sheet_clipper.dart b/evently/lib/widgets/clippers/bottom_sheet_clipper.dart new file mode 100644 index 0000000000..af5ff24708 --- /dev/null +++ b/evently/lib/widgets/clippers/bottom_sheet_clipper.dart @@ -0,0 +1,49 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +class BottomSheetClipperDialog extends CustomClipper { + BottomSheetClipperDialog(); + + @override + Path getClip(Size size) { + final path = Path(); + path.moveTo(0, size.height); + path.lineTo(0, size.height * 0.08.h); + path.lineTo(size.width * 0.045.w, 0); + path.lineTo(size.width * 0.88.w, 0); + path.lineTo(size.width, size.height * 0.08.h); + path.lineTo(size.width, size.height); + path.lineTo(0, size.height); + + return path; + } + + @override + bool shouldReclip(covariant CustomClipper oldClipper) { + return false; + } +} + +class BottomSheetClipper extends CustomClipper { + BottomSheetClipper(); + + @override + Path getClip(Size size) { + final Path path0 = Path(); + path0.moveTo(0, size.height); + path0.lineTo(0, size.height * 0.1241250); + path0.lineTo(size.width * 0.0753750, 0); + path0.lineTo(size.width * 0.9253000, 0); + path0.lineTo(size.width, size.height * 0.1236000); + path0.lineTo(size.width, size.height); + path0.lineTo(0, size.height); + path0.close(); + + return path0; + } + + @override + bool shouldReclip(covariant CustomClipper oldClipper) { + return false; + } +} diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 3e54b6d1c0..ce96ed57ce 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -395,6 +395,14 @@ packages: url: "https://pub.dev" source: hosted version: "5.9.0" + flutter_slidable: + dependency: "direct main" + description: + name: flutter_slidable + sha256: "673403d2eeef1f9e8483bd6d8d92aae73b1d8bd71f382bc3930f699c731bc27c" + url: "https://pub.dev" + source: hosted + version: "3.1.0" flutter_svg: dependency: "direct main" description: @@ -421,6 +429,14 @@ packages: description: flutter source: sdk version: "0.0.0" + focus_detector: + dependency: "direct main" + description: + name: focus_detector + sha256: "05e32d9dd378cd54f1a3f9ce813c05156f28eb83f8e68f5bf1a37e9cdb21af1c" + url: "https://pub.dev" + source: hosted + version: "2.0.1" frontend_server_client: dependency: transitive description: @@ -1217,6 +1233,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + visibility_detector: + dependency: transitive + description: + name: visibility_detector + sha256: ec932527913f32f65aa01d3a393504240b9e9021ecc77123f017755605e48832 + url: "https://pub.dev" + source: hosted + version: "0.2.2" vm_service: dependency: transitive description: diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index 763477446b..6b94dee83d 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -58,6 +58,8 @@ dependencies: shimmer_animation: 2.1.0+1 network_info_plus: ^5.0.3 floor: ^1.5.0 + focus_detector: ^2.0.1 + flutter_slidable: ^3.1.0 dev_dependencies: flutter_test: From 112e8261d4e43fb8b2ebb2733ed75e15cce70345 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 13:02:30 +0500 Subject: [PATCH 113/158] feat: list view and grid view of the events on event hub screen --- evently/assets/images/svg/file_type_image.svg | 3 + evently/i18n/de.json | 3 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/generated/locale_keys.g.dart | 1 + .../screens/event_hub/event_hub_screen.dart | 5 +- .../widgets/drafts_more_bottomsheet.dart | 56 ++----------- .../event_hub/widgets/nfts_grid_view.dart | 83 +++++-------------- evently/lib/utils/constants.dart | 1 + 10 files changed, 44 insertions(+), 117 deletions(-) create mode 100644 evently/assets/images/svg/file_type_image.svg diff --git a/evently/assets/images/svg/file_type_image.svg b/evently/assets/images/svg/file_type_image.svg new file mode 100644 index 0000000000..ee05e35217 --- /dev/null +++ b/evently/assets/images/svg/file_type_image.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 6c5ad47a7f..3fed743e92 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -70,5 +70,6 @@ "save_error": "Entwurf konnte nicht gespeichert werden", "save_error": "Failed to save draft", "event_name" : "Event Name", - "are_you_sure_you_want_to_delete": "Möchten Sie diesen Entwurf wirklich löschen?" + "are_you_sure_you_want_to_delete": "Möchten Sie diesen Entwurf wirklich löschen?", + "published": "Veröffentlicht" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index d382d5e13e..cf23ed0c46 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -68,5 +68,6 @@ "get_error": "Failed to get draft", "delete_error": "Failed to delete draft", "event_name" : "Event Name", - "are_you_sure_you_want_to_delete": "Are you sure you want to delete this draft?" + "are_you_sure_you_want_to_delete": "Are you sure you want to delete this draft?", + "published": "Published" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index d851a4fa0e..02c7a04d8a 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -69,5 +69,6 @@ "delete_error": "No se pudo eliminar el Plan Preliminar", "save_error": "No se pudo guardar el Plan Preliminar", "event_name" : "Event Name", - "are_you_sure_you_want_to_delete": "¿Seguro que quieres eliminar este Plan Preliminar?" + "are_you_sure_you_want_to_delete": "¿Seguro que quieres eliminar este Plan Preliminar?", + "published": "Publicado" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 3dcfd108a5..7a757cef60 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -69,5 +69,6 @@ "delete_error": "Не удалось удалить черновик", "save_error": "Не удалось сохранить черновик", "event_name" : "Event Name", - "are_you_sure_you_want_to_delete": "Вы уверены, что хотите удалить этот черновик?" + "are_you_sure_you_want_to_delete": "Вы уверены, что хотите удалить этот черновик?", + "published": "изданный" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index a7c4637f10..4813e6b851 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -69,5 +69,6 @@ abstract class LocaleKeys { static const delete_error = 'delete_error'; static const save_error = 'save_error'; static const are_you_sure_you_want_to_delete = 'are_you_sure_you_want_to_delete'; + static const published = 'published'; } diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index b4021a9490..31962dcc2b 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -5,6 +5,7 @@ import 'package:evently/models/events.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/screens/event_hub/widgets/delete_confirmation_dialog.dart'; import 'package:evently/screens/event_hub/widgets/drafts_more_bottomsheet.dart'; +import 'package:evently/screens/event_hub/widgets/nfts_grid_view.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; @@ -515,13 +516,13 @@ class BuildGridView extends StatelessWidget { location: BannerLocation.topEnd, message: calculateBannerPrice(price: events.price, currency: events.denom), child: NftGridViewItem( - nft: nft, + events: events, ), ), ); } else { return NftGridViewItem( - nft: nft, + events: events, ); } }, diff --git a/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart b/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart index 208d44930c..099c96b8cf 100644 --- a/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart +++ b/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart @@ -2,18 +2,16 @@ import 'package:evently/evently_provider.dart'; import 'package:evently/main.dart'; import 'package:evently/models/events.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; +import 'package:evently/screens/event_hub/widgets/delete_confirmation_dialog.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/widgets/clippers/bottom_sheet_clipper.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; -import '../../../generated/locale_keys.g.dart'; - TextStyle titleStyle = TextStyle(fontSize: isTablet ? 13.sp : 16.sp, fontWeight: FontWeight.w800, fontFamily: kUniversalFontFamily, color: EventlyAppTheme.kBlack); class DraftsBottomSheet { @@ -54,7 +52,7 @@ class DraftsMoreBottomSheet extends StatelessWidget { @override Widget build(BuildContext context) { - final viewModel = context.watch(); + // final viewModel = context.watch(); return ClipPath( clipper: BottomSheetClipper(), child: Container( @@ -66,12 +64,12 @@ class DraftsMoreBottomSheet extends StatelessWidget { title: "publish", image: SVGUtils.kSvgPublish, onPressed: () { - viewModel.saveNFT(nft: nft); - Navigator.of(context).pop(); - Navigator.of(context).pushNamed(RouteUtil.kRouteHome); + // viewModel.saveNFT(nft: nft); + // Navigator.of(context).pop(); + // Navigator.of(context).pushNamed(RouteUtil.kRouteHome); }), const Divider( - color: EaselAppTheme.kGrey, + color: EventlyAppTheme.kGrey01, ), moreOptionTile( title: "delete", @@ -79,58 +77,22 @@ class DraftsMoreBottomSheet extends StatelessWidget { onPressed: () { Navigator.of(context).pop(); - final DeleteDialog deleteDialog = DeleteDialog(contextt: context, nft: nft); + final DeleteDialog deleteDialog = DeleteDialog(contextt: context, events: events); deleteDialog.show(); }), const Divider( - color: EaselAppTheme.kGrey, + color: EventlyAppTheme.kGrey01, ), - CidOrIpfs( - viewCid: (context) { - return moreOptionTile( - onPressed: () async { - final state = ScaffoldMessenger.of(context); - Navigator.of(context).pop(); - await Clipboard.setData(ClipboardData(text: nft.cid)); - state - ..hideCurrentSnackBar() - ..showSnackBar( - SnackBar(content: Text(LocaleKeys.copied_to_clipboard.tr())), - ); - }, - title: LocaleKeys.copy_cid.tr(), - image: PngUtils.kSvgIpfsLogo, - isSvg: false, - ); - }, - viewIpfs: (context) { - return moreOptionTile( - onPressed: () async { - Navigator.of(context).pop(); - onViewOnIPFSPressed(nft: nft, context: context); - }, - title: LocaleKeys.view.tr(), - image: PngUtils.kSvgIpfsLogo, - isSvg: false, - ); - }, - type: nft.assetType) ], ), ), ); } - - void navigateToPreviewScreen({required BuildContext context, required NFT nft}) { - easelProvider.setPublishedNFTClicked(nft); - easelProvider.setPublishedNFTDuration(nft.duration); - Navigator.of(context).pushReplacementNamed(RouteUtil.kRoutePreviewNFTFullScreen); - } } Widget moreOptionTile({required String title, required String image, required VoidCallback onPressed, bool isSvg = true}) { - final TextStyle titleStyle = TextStyle(fontSize: isTablet ? 13.sp : 16.sp, fontWeight: FontWeight.w800, fontFamily: kUniversalFontFamily, color: EaselAppTheme.kBlack); + final TextStyle titleStyle = TextStyle(fontSize: isTablet ? 13.sp : 16.sp, fontWeight: FontWeight.w800, fontFamily: kUniversalFontFamily, color: EventlyAppTheme.kBlack); return Padding( padding: EdgeInsets.symmetric(vertical: 8.h), diff --git a/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart index 3786203d03..1cc98f3383 100644 --- a/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart +++ b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart @@ -3,6 +3,8 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/models/events.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; +import 'package:evently/screens/event_hub/widgets/drafts_more_bottomsheet.dart'; +import 'package:evently/utils/constants.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -51,33 +53,22 @@ class NftGridViewItem extends StatelessWidget { height: 200.h, width: 150.w, child: InkWell( - onTap: () { if (context.read().selectedCollectionType == CollectionType.draft) { final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( buildContext: context, - nft: nft, + events: events, ); draftsBottomSheet.show(); return; } buildBottomSheet(context: context); }, - child: NftTypeBuilder( - onImage: (context) => buildNFTPreview(url: nft.url.changeDomain()), - onVideo: (context) => buildNFTPreview(url: nft.thumbnailUrl.changeDomain()), - onAudio: (context) => buildNFTPreview(url: nft.thumbnailUrl.changeDomain()), - onPdf: (context) => buildNFTPreview(url: nft.thumbnailUrl.changeDomain()), - on3D: (context) => IgnorePointer( - child: ModelViewer( - src: nft.url.changeDomain(), - ar: false, - autoRotate: false, - backgroundColor: EaselAppTheme.kWhite, - cameraControls: false, - ), - ), - assetType: nft.assetType.toAssetTypeEnum(), + child: CachedNetworkImage( + fit: BoxFit.fitHeight, + imageUrl: events.thumbnail, + errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), + placeholder: (context, url) => Shimmer(color: EventlyAppTheme.kGery03, child: const SizedBox.expand()), ), ), ), @@ -96,8 +87,7 @@ class NftGridViewItem extends StatelessWidget { child: Padding( padding: EdgeInsets.only(left: 8.w, top: 10.0.h), child: SvgPicture.asset( - getNFTIcon(), - key: Key(getNFTIconKey()), + SVGUtils.kFileTypeImageIcon, color: Colors.white, width: 14, height: 14, @@ -118,30 +108,25 @@ class NftGridViewItem extends StatelessWidget { Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(1.h), - color: context.read().selectedCollectionType == CollectionType.draft - ? EaselAppTheme.kLightRed - : EaselAppTheme.kDarkGreen, + color: context.read().selectedCollectionType == CollectionType.draft ? EventlyAppTheme.kLightRed : EventlyAppTheme.kDarkGreen, ), padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h), margin: EdgeInsets.symmetric(horizontal: 6.w, vertical: 6.h), child: Text( - context.read().selectedCollectionType == CollectionType.draft - ? LocaleKeys.draft.tr() - : LocaleKeys.published.tr(), - style: EaselAppTheme.titleStyle.copyWith( - color: EaselAppTheme.kWhite, + context.read().selectedCollectionType == CollectionType.draft ? LocaleKeys.draft.tr() : LocaleKeys.published.tr(), + style: EventlyAppTheme.titleStyle.copyWith( + color: EventlyAppTheme.kWhite, fontSize: isTablet ? 8.sp : 11.sp, ), ), ), const Spacer(), InkWell( - key: const Key(kGridViewTileMoreOptionKey), onTap: () { - if (context.read().selectedCollectionType == CollectionType.draft) { + if (context.read().selectedCollectionType == CollectionType.draft) { final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( buildContext: context, - nft: nft, + events: events, ); draftsBottomSheet.show(); return; @@ -170,43 +155,13 @@ class NftGridViewItem extends StatelessWidget { fit: BoxFit.fitHeight, imageUrl: url, errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), - placeholder: (context, url) => Shimmer(color: EaselAppTheme.cardBackground, child: const SizedBox.expand()), + placeholder: (context, url) => Shimmer(color: EventlyAppTheme.kGrey01, child: const SizedBox.expand()), ); } void buildBottomSheet({required BuildContext context}) { - final bottomSheet = BuildPublishedNFTsBottomSheet(context: context, nft: nft, easelProvider: _easelProvider); - - bottomSheet.show(); - } - - String getNFTIcon() { - switch (nft.assetType) { - case kVideoText: - return SVGUtils.kSvgNftFormatVideo; - case kAudioText: - return SVGUtils.kSvgNftFormatAudio; - case kPdfText: - return SVGUtils.kSvgNftFormatPDF; - case k3dText: - return SVGUtils.kSvgNftFormat3d; - default: - return SVGUtils.kFileTypeImageIcon; - } - } - - String getNFTIconKey() { - switch (nft.assetType) { - case kVideoText: - return kNFTTypeVideoIconKey; - case kAudioText: - return kNFTTypeAudioIconKey; - case kPdfText: - return kNFTTypePdfIconKey; - case k3dText: - return kNFTType3dModelIconKey; - default: - return kNFTTypeImageIconKey; - } + // final bottomSheet = BuildPublishedNFTsBottomSheet(context: context, nft: nft, easelProvider: _easelProvider); + // + // bottomSheet.show(); } } diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index f5173ec7e3..ccfed0884b 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -74,6 +74,7 @@ class SVGUtils { static const kGridIcon = 'assets/images/svg/grid.svg'; static const kListIcon = 'assets/images/svg/list.svg'; static const kSvgPublish = 'assets/images/svg/publish.svg'; + static const kFileTypeImageIcon = 'assets/images/svg/file_type_image.svg'; } From 73b6d96d0c0adc9d1b6ff08a3b4cc66536509205 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 14:40:35 +0500 Subject: [PATCH 114/158] feat: implement evently --- .../screens/event_hub/event_hub_screen.dart | 156 +++++------------- .../event_hub/widgets/nfts_grid_view.dart | 6 +- 2 files changed, 44 insertions(+), 118 deletions(-) diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 31962dcc2b..ff5f2f3979 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -1,3 +1,4 @@ +import 'package:cached_network_image/cached_network_image.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/main.dart'; @@ -17,6 +18,7 @@ import 'package:flutter_slidable/flutter_slidable.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:focus_detector/focus_detector.dart'; import 'package:provider/provider.dart'; +import 'package:shimmer_animation/shimmer_animation.dart'; class EventHubScreen extends StatefulWidget { const EventHubScreen({super.key}); @@ -172,18 +174,38 @@ class _EventHubContentState extends State { ), ), const SizedBox(height: 10), - BuildListView( - eventsList: viewModel.eventForDraftList, - onEmptyList: (BuildContext context) => Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Align( - alignment: Alignment.centerLeft, - child: Text( - LocaleKeys.no_nft_created.tr(), - style: subTitleStyle, - )), - ), - ), + viewModel.viewType == ViewType.viewGrid + ? Expanded( + child: BuildGridView( + eventsList: viewModel.eventForDraftList, + onEmptyList: (BuildContext context) => Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Align( + alignment: Alignment.centerLeft, + child: Text( + LocaleKeys.no_nft_created.tr(), + style: subTitleStyle, + )), + ), + calculateBannerPrice: ({required String currency, required String price}) { + return ''; + }, + ), + ) + : Expanded( + child: BuildListView( + eventsList: viewModel.eventForDraftList, + onEmptyList: (BuildContext context) => Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Align( + alignment: Alignment.centerLeft, + child: Text( + LocaleKeys.no_nft_created.tr(), + style: subTitleStyle, + )), + ), + ), + ), const Spacer(), Padding(padding: EdgeInsets.symmetric(horizontal: 20.w), child: getCreateEventWidget()), ], @@ -283,67 +305,6 @@ class DraftListTile extends StatefulWidget { } class _DraftListTileState extends State { - Widget getPlaceHolder() { - return Container( - margin: EdgeInsets.symmetric(vertical: 5.h, horizontal: 3.w), - decoration: BoxDecoration( - color: EventlyAppTheme.kGery03, - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.3), - offset: const Offset(0.0, 1.0), - blurRadius: 4.0, - ), - ], - ), - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h), - child: Row( - children: [ - Container( - width: 50.0.w, - height: 50.0.w, - decoration: const BoxDecoration( - color: EventlyAppTheme.kGery03, - ), - ), - SizedBox( - width: 10.w, - ), - Expanded( - child: ListView.separated( - shrinkWrap: true, - itemBuilder: (context, index) { - return Container( - width: 30.0.w, - height: 9.0.h, - color: EventlyAppTheme.kGery03, - ); - }, - separatorBuilder: (context, index) { - return SizedBox( - height: 8.0.h, - ); - }, - itemCount: 3, - ), - ), - SizedBox( - width: 10.w, - ), - Padding( - padding: EdgeInsets.all(4.0.w), - child: SvgPicture.asset( - SVGUtils.kSvgMoreOption, - color: EventlyAppTheme.kGery03, - ), - ) - ], - ), - ), - ); - } - Widget getDraftCard() { return DecoratedBox( decoration: BoxDecoration( @@ -360,15 +321,20 @@ class _DraftListTileState extends State { padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h), child: Row( children: [ - SizedBox( - width: 10.w, + CachedNetworkImage( + width: 90.w, + fit: BoxFit.contain, + imageUrl: widget.events.thumbnail, + errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), + progressIndicatorBuilder: (context, _, progress) { + return Shimmer(color: EventlyAppTheme.kGrey04, child: const SizedBox.expand()); + }, ), Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - // "event_name".tr(args: [if (widget.events.eventName.isNotEmpty) widget.nft.name else 'Event Name']), (widget.events.eventName.isNotEmpty) ? widget.events.eventName : 'Event Name', style: titleStyle.copyWith(fontSize: isTablet ? 13.sp : 18.sp), maxLines: 1, @@ -391,9 +357,6 @@ class _DraftListTileState extends State { ], ), ), - SizedBox( - width: 10.w, - ), InkWell( onTap: () {}, child: Padding( @@ -401,9 +364,6 @@ class _DraftListTileState extends State { child: SvgPicture.asset(SVGUtils.kSvgMoreOption), ), ), - SizedBox( - width: 10.w, - ), ], ), ), @@ -431,37 +391,8 @@ class _DraftListTileState extends State { ), ], ), - child: (widget.events.price.isNotEmpty && double.parse(widget.events.price) > 0) - ? Card( - elevation: 5, - margin: EdgeInsets.zero, - child: ClipRRect( - child: Banner( - color: EventlyAppTheme.kDarkGreen, - location: BannerLocation.topEnd, - message: "\$ ${widget.events.price}", - child: getDraftCard(), - ), - ), - ) - : getDraftCard(), + child: getDraftCard(), ), - // IgnorePointer( - // child: SizedBox( - // height: 85.0.h, - // width: double.infinity, - // child: CachedNetworkImage( - // imageUrl: widget.events.thumbnail, - // fit: BoxFit.fill, - // color: EventlyAppTheme.kTransparent, - // colorBlendMode: BlendMode.clear, - // placeholder: (context, _) => getPlaceHolder(), - // errorWidget: (context, _, __) { - // return const IgnorePointer(child: SizedBox()); - // }, - // ), - // ), - // ) ], ); } @@ -511,7 +442,6 @@ class BuildGridView extends StatelessWidget { if (events.price.isNotEmpty && double.parse(events.price) > 0) { return ClipRRect( child: Banner( - color: EventlyAppTheme.kDarkGreen, location: BannerLocation.topEnd, message: calculateBannerPrice(price: events.price, currency: events.denom), diff --git a/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart index 1cc98f3383..3dcacd6d20 100644 --- a/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart +++ b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart @@ -159,9 +159,5 @@ class NftGridViewItem extends StatelessWidget { ); } - void buildBottomSheet({required BuildContext context}) { - // final bottomSheet = BuildPublishedNFTsBottomSheet(context: context, nft: nft, easelProvider: _easelProvider); - // - // bottomSheet.show(); - } + void buildBottomSheet({required BuildContext context}) {} } From 49cc3f8085aae2b786e6f4a654cd00ce90a8d573 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 15:49:59 +0500 Subject: [PATCH 115/158] feat: pylon events publisher --- evently/i18n/de.json | 4 +- evently/i18n/en-US.json | 3 +- evently/i18n/es.json | 3 +- evently/i18n/ru-RU.json | 3 +- evently/lib/evently_provider.dart | 2 +- evently/lib/generated/locale_keys.g.dart | 1 + evently/lib/repository/repository.dart | 51 ++++++- evently/lib/screens/create_event.dart | 2 +- .../screens/event_hub/event_hub_screen.dart | 137 +++++++++--------- .../event_hub/event_hub_view_model.dart | 6 + .../widgets/drafts_more_bottomsheet.dart | 19 +-- .../event_hub/widgets/nfts_grid_view.dart | 18 +-- .../services/datasources/cache_manager.dart | 80 ++++++++++ .../datasources/local_datasource.dart | 61 ++++++++ .../third_party_services/database.g.dart | 7 +- evently/lib/utils/constants.dart | 5 +- evently/lib/utils/di/di.config.dart | 37 ++--- evently/lib/utils/enums.dart | 10 +- .../viewmodels/create_event_viewmodel.dart | 67 ++++++++- 19 files changed, 386 insertions(+), 130 deletions(-) create mode 100644 evently/lib/services/datasources/cache_manager.dart diff --git a/evently/i18n/de.json b/evently/i18n/de.json index 3fed743e92..c1082e519e 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -61,6 +61,7 @@ "recipe_created": "Recipe созданный", "update_failed": "Upload Fehlgeschlagen", "uploading": "Hochladen ...", + "uploading": "Hochladen ...", "something_wrong_while_uploading": "Beim Hochladen ist etwas schief gelaufen. Bitte versuche es erneut.", "cookbook_not_found": "Cookbook nicht gefunden", "loading": "Wird geladen ...", @@ -71,5 +72,6 @@ "save_error": "Failed to save draft", "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "Möchten Sie diesen Entwurf wirklich löschen?", - "published": "Veröffentlicht" + "published": "Veröffentlicht", + "delete": "Löschen" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index cf23ed0c46..777c9749cf 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -69,5 +69,6 @@ "delete_error": "Failed to delete draft", "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "Are you sure you want to delete this draft?", - "published": "Published" + "published": "Published", + "delete": "Delete" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index 02c7a04d8a..ecbd2db646 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -70,5 +70,6 @@ "save_error": "No se pudo guardar el Plan Preliminar", "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "¿Seguro que quieres eliminar este Plan Preliminar?", - "published": "Publicado" + "published": "Publicado", + "delete": "Borrar" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 7a757cef60..1c347bb983 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -70,5 +70,6 @@ "save_error": "Не удалось сохранить черновик", "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "Вы уверены, что хотите удалить этот черновик?", - "published": "изданный" + "published": "изданный", + "delete": "удалять" } \ No newline at end of file diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 1f674f5ab1..d8267b6ccc 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -358,7 +358,7 @@ class EventlyProvider extends ChangeNotifier { required VoidCallback onCompleted, required UploadStep uploadStep, }) async { - final id = await repository.saveEvents(Events(step: uploadStep.toString(), eventName: eventName, hostName: hostName, thumbnail: thumbnail!)); + await repository.saveEvents(Events(step: uploadStep.toString(), eventName: eventName, hostName: hostName, thumbnail: thumbnail!)); onCompleted(); } } diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 4813e6b851..48bceccb94 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -70,5 +70,6 @@ abstract class LocaleKeys { static const save_error = 'save_error'; static const are_you_sure_you_want_to_delete = 'are_you_sure_you_want_to_delete'; static const published = 'published'; + static const delete = 'delete'; } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index a8d3bf9fc5..ef71a3076f 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -67,6 +67,29 @@ abstract class Repository { /// Input: [id] the id of the nft which the user wants to delete /// Output: [bool] returns whether the operation is successful or not Future> deleteNft(int id); + + /// This method will set the input in the cache + /// Input: [key] the key against which the value is to be set, [value] the value that is to be set. + bool setCacheDynamicType({required String key, required dynamic value}); + + /// This method will set the input in the cache + /// Input: [key] the key against which the value is to be set, [value] the value that is to be set. + void setCacheString({required String key, required String value}); + + /// This method will return the saved String if exists + /// Input: [key] the key of the value + /// Output: [String] the value of the key + String getCacheString({required String key}); + + /// This method will delete the value from the cache + /// Input: [key] the key of the value + /// Output: [value] will return the value that is just removed + String deleteCacheString({required String key}); + + /// This method will return the saved String if exists + /// Input: [key] the key of the value + /// Output: [String] the value of the key + dynamic getCacheDynamicType({required String key}); } @LazySingleton(as: Repository) @@ -169,9 +192,33 @@ class RepositoryImp implements Repository { try { final bool result = await localDataSource.deleteNft(id); return Right(result); - } on Exception catch (exception) { - + } on Exception catch (_) { return Left(CacheFailure(LocaleKeys.something_wrong.tr())); } } + + @override + bool setCacheDynamicType({required String key, required dynamic value}) { + return localDataSource.setCacheDynamicType(key: key, value: value); + } + + @override + void setCacheString({required String key, required String value}) { + localDataSource.setCacheString(key: key, value: value); + } + + @override + String getCacheString({required String key}) { + return localDataSource.getCacheString(key: key); + } + + @override + String deleteCacheString({required String key}) { + return localDataSource.deleteCacheString(key: key); + } + + @override + dynamic getCacheDynamicType({required String key}) { + return localDataSource.getCacheDynamicType(key: key); + } } diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index f0b9a1d812..2d88f8b73f 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -28,7 +28,7 @@ class _CreateEventState extends State { context.read().initStore(); }); - createEventViewModel.init(); + createEventViewModel.init(setTextField: () {}); } @override diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index ff5f2f3979..4e78b08d59 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -306,65 +306,77 @@ class DraftListTile extends StatefulWidget { class _DraftListTileState extends State { Widget getDraftCard() { - return DecoratedBox( - decoration: BoxDecoration( - color: Colors.white, - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.3), - offset: const Offset(0.0, 1.0), - blurRadius: 4.0, - ), - ], - ), - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h), - child: Row( - children: [ - CachedNetworkImage( - width: 90.w, - fit: BoxFit.contain, - imageUrl: widget.events.thumbnail, - errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), - progressIndicatorBuilder: (context, _, progress) { - return Shimmer(color: EventlyAppTheme.kGrey04, child: const SizedBox.expand()); - }, + return InkWell( + onTap: (){ + + final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( + buildContext: context, + events: widget.events, + ); + draftsBottomSheet.show(); + return; + + }, + child: DecoratedBox( + decoration: BoxDecoration( + color: Colors.white, + boxShadow: [ + BoxShadow( + color: Colors.black.withOpacity(0.3), + offset: const Offset(0.0, 1.0), + blurRadius: 4.0, ), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - (widget.events.eventName.isNotEmpty) ? widget.events.eventName : 'Event Name', - style: titleStyle.copyWith(fontSize: isTablet ? 13.sp : 18.sp), - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - SizedBox( - height: 6.h, - ), - Container( - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(1.h), - color: EventlyAppTheme.kLightRed, + ], + ), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h), + child: Row( + children: [ + CachedNetworkImage( + width: 90.w, + fit: BoxFit.contain, + imageUrl: widget.events.thumbnail, + errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), + progressIndicatorBuilder: (context, _, progress) { + return Shimmer(color: EventlyAppTheme.kGrey04, child: const SizedBox.expand()); + }, + ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + (widget.events.eventName.isNotEmpty) ? widget.events.eventName : 'Event Name', + style: titleStyle.copyWith(fontSize: isTablet ? 13.sp : 18.sp), + maxLines: 1, + overflow: TextOverflow.ellipsis, ), - padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h), - child: Text( - LocaleKeys.draft.tr(), - style: EventlyAppTheme.titleStyle.copyWith(color: EventlyAppTheme.kWhite, fontSize: isTablet ? 8.sp : 11.sp), + SizedBox( + height: 6.h, ), - ), - ], + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(1.h), + color: EventlyAppTheme.kLightRed, + ), + padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h), + child: Text( + LocaleKeys.draft.tr(), + style: EventlyAppTheme.titleStyle.copyWith(color: EventlyAppTheme.kWhite, fontSize: isTablet ? 8.sp : 11.sp), + ), + ), + ], + ), ), - ), - InkWell( - onTap: () {}, - child: Padding( - padding: EdgeInsets.all(4.0.w), - child: SvgPicture.asset(SVGUtils.kSvgMoreOption), + InkWell( + onTap: () {}, + child: Padding( + padding: EdgeInsets.all(4.0.w), + child: SvgPicture.asset(SVGUtils.kSvgMoreOption), + ), ), - ), - ], + ], + ), ), ), ); @@ -439,22 +451,7 @@ class BuildGridView extends StatelessWidget { ), itemBuilder: (context, index) { final events = eventsList[index]; - if (events.price.isNotEmpty && double.parse(events.price) > 0) { - return ClipRRect( - child: Banner( - color: EventlyAppTheme.kDarkGreen, - location: BannerLocation.topEnd, - message: calculateBannerPrice(price: events.price, currency: events.denom), - child: NftGridViewItem( - events: events, - ), - ), - ); - } else { - return NftGridViewItem( - events: events, - ); - } + return NftGridViewItem(events: events); }, ), ); diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 234159f8c2..7142851f18 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -2,6 +2,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/models/events.dart'; import 'package:evently/repository/repository.dart'; +import 'package:evently/utils/constants.dart'; import 'package:evently/utils/extension_util.dart'; import 'package:evently/widgets/loading_with_progress.dart'; import 'package:flutter/cupertino.dart'; @@ -142,4 +143,9 @@ class EventHubViewModel extends ChangeNotifier { eventForDraftList.removeWhere((element) => element.id == id); notifyListeners(); } + + void saveEvent({required Events events}) { + repository.setCacheDynamicType(key: eventKey, value: events); + repository.setCacheString(key: fromKey, value: kDraft); + } } diff --git a/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart b/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart index 099c96b8cf..2d47992eb7 100644 --- a/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart +++ b/evently/lib/screens/event_hub/widgets/drafts_more_bottomsheet.dart @@ -1,3 +1,4 @@ +import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/main.dart'; import 'package:evently/models/events.dart'; @@ -6,6 +7,7 @@ import 'package:evently/screens/event_hub/widgets/delete_confirmation_dialog.dar import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/widgets/clippers/bottom_sheet_clipper.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -45,18 +47,13 @@ class DraftsMoreBottomSheet extends StatelessWidget { EventlyProvider get easelProvider => sl(); - Future onViewOnIPFSPressed({required BuildContext context, required Events events}) async { - // final easelProvider = Provider.of(context, listen: false); - // await easelProvider.repository.launchMyUrl(url: nft.url.changeDomain()); - } - @override Widget build(BuildContext context) { - // final viewModel = context.watch(); + final viewModel = context.watch(); return ClipPath( clipper: BottomSheetClipper(), child: Container( - color: EventlyAppTheme.kGrey02, + color: EventlyAppTheme.kGery03, padding: EdgeInsets.symmetric(horizontal: 30.w, vertical: 30.h), child: Wrap( children: [ @@ -64,9 +61,9 @@ class DraftsMoreBottomSheet extends StatelessWidget { title: "publish", image: SVGUtils.kSvgPublish, onPressed: () { - // viewModel.saveNFT(nft: nft); - // Navigator.of(context).pop(); - // Navigator.of(context).pushNamed(RouteUtil.kRouteHome); + viewModel.saveEvent(events: events); + Navigator.of(context).pop(); + Navigator.of(context).pushNamed(RouteUtil.kCreateEvent); }), const Divider( color: EventlyAppTheme.kGrey01, @@ -105,7 +102,7 @@ Widget moreOptionTile({required String title, required String image, required Vo width: 30.w, ), Text( - title, + title.tr(), style: titleStyle.copyWith(fontSize: 16.sp), ) ], diff --git a/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart index 3dcacd6d20..60392f70e7 100644 --- a/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart +++ b/evently/lib/screens/event_hub/widgets/nfts_grid_view.dart @@ -54,15 +54,12 @@ class NftGridViewItem extends StatelessWidget { width: 150.w, child: InkWell( onTap: () { - if (context.read().selectedCollectionType == CollectionType.draft) { - final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( - buildContext: context, - events: events, - ); - draftsBottomSheet.show(); - return; - } - buildBottomSheet(context: context); + final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( + buildContext: context, + events: events, + ); + draftsBottomSheet.show(); + return; }, child: CachedNetworkImage( fit: BoxFit.fitHeight, @@ -131,7 +128,6 @@ class NftGridViewItem extends StatelessWidget { draftsBottomSheet.show(); return; } - buildBottomSheet(context: context); }, child: Padding( padding: EdgeInsets.all(4.0.w), @@ -158,6 +154,4 @@ class NftGridViewItem extends StatelessWidget { placeholder: (context, url) => Shimmer(color: EventlyAppTheme.kGrey01, child: const SizedBox.expand()), ); } - - void buildBottomSheet({required BuildContext context}) {} } diff --git a/evently/lib/services/datasources/cache_manager.dart b/evently/lib/services/datasources/cache_manager.dart new file mode 100644 index 0000000000..152a51f36b --- /dev/null +++ b/evently/lib/services/datasources/cache_manager.dart @@ -0,0 +1,80 @@ +import 'package:injectable/injectable.dart'; + +abstract class CacheManager { + /// This method will return the saved String if exists + /// Input: [key] the key of the value + /// Output: [String] return the value of the key + String getString({required String key}); + + /// This method will delete the value from the cache + /// Input: [key] the key of the value + /// Output: [String] will return which value is just removed + String deleteString({required String key}); + + /// This method will set the input in the cache + /// Input: [key] the key against which the value is to be set, [value] the value that is to be set. + void setString({required String key, required String value}); + + /// This method will set the input in the cache + /// Input: [key] the key against which the value is to be set, [value] the value that is to be set. + /// Output: [bool] will tell whether its set or not. + bool setDynamicType({required String key, required dynamic value}); + + /// This method will delete the value from the cache + /// Input: [key] the key of the value + /// Output: [bool] will tell whether its removed or not. + bool deleteCacheDynamic({required String key}); + + /// This method will return the saved String if exists + /// Input: [key] the key of the value + /// Output: [String] the value of the key + dynamic getDynamicType({required String key}); +} + +@LazySingleton(as: CacheManager) +class CacheManagerImp extends CacheManager { + Map cache = {}; + + @override + String deleteString({required String key}) { + if (cache.containsKey(key)) { + return cache.remove(key) as String; + } + return ''; + } + + @override + bool deleteCacheDynamic({required String key}) { + if (cache.containsKey(key)) { + cache.remove(key); + return true; + } + return false; + } + + @override + dynamic getDynamicType({required String key}) { + if (cache.containsKey(key)) { + return cache[key]; + } + } + + @override + String getString({required String key}) { + if (cache.containsKey(key)) { + return cache[key] as String; + } + return ''; + } + + @override + bool setDynamicType({required String key, required dynamic value}) { + cache[key] = value; + return true; + } + + @override + void setString({required String key, required String value}) { + cache[key] = value; + } +} diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 0c17fe2eca..87fb13ad79 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -1,6 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/models/events.dart'; +import 'package:evently/services/datasources/cache_manager.dart'; import 'package:evently/services/third_party_services/database.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/date_utils.dart'; @@ -57,6 +58,34 @@ abstract class LocalDataSource { /// Input: [id] the id of the draft which the user wants to delete /// Output: [bool] returns whether the operation is successful or not Future deleteNft(int id); + + /// This method will delete the value from the cache + /// Input: [key] the key of the value + /// Output: [value] will return the value that is just removed + String deleteCacheString({required String key}); + + /// This method will set the input in the cache + /// Input: [key] the key against which the value is to be set, [value] the value that is to be set. + void setCacheString({required String key, required String value}); + + /// This method will set the input in the cache + /// Input: [key] the key against which the value is to be set, [value] the value that is to be set. + bool setCacheDynamicType({required String key, required dynamic value}); + + /// This method will return the saved String if exists + /// Input: [key] the key of the value + /// Output: [String] the value of the key + dynamic getCacheDynamicType({required String key}); + + /// This method will delete the value from the cache + /// Input: [key] the key of the value + /// Output: [value] will return the value that is just removed + dynamic deleteCacheDynamic({required String key}); + + /// This method will return the saved String if exists + /// Input: [key] the key of the value + /// Output: [String] the value of the key + String getCacheString({required String key}); } @LazySingleton(as: LocalDataSource) @@ -64,10 +93,12 @@ class LocalDataSourceImpl extends LocalDataSource { LocalDataSourceImpl({ required this.sharedPreferences, required this.database, + required this.cacheManager, }); final SharedPreferences sharedPreferences; final AppDatabase database; + final CacheManager cacheManager; /// auto generates cookbookID string and saves into local storage /// returns cookbookId @@ -153,4 +184,34 @@ class LocalDataSourceImpl extends LocalDataSource { throw CacheFailure(LocaleKeys.delete_error.tr()); } } + + @override + String deleteCacheString({required String key}) { + return cacheManager.deleteString(key: key); + } + + @override + dynamic getCacheDynamicType({required String key}) { + return cacheManager.getDynamicType(key: key); + } + + @override + String getCacheString({required String key}) { + return cacheManager.getString(key: key); + } + + @override + bool setCacheDynamicType({required String key, required dynamic value}) { + return cacheManager.setDynamicType(key: key, value: value); + } + + @override + void setCacheString({required String key, required String value}) { + cacheManager.setString(key: key, value: value); + } + + @override + void deleteCacheDynamic({required String key}) { + cacheManager.deleteCacheDynamic(key: key); + } } diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart index 8cecdbea4f..d4a454e287 100644 --- a/evently/lib/services/third_party_services/database.g.dart +++ b/evently/lib/services/third_party_services/database.g.dart @@ -96,7 +96,7 @@ class _$AppDatabase extends AppDatabase { }, onCreate: (database, version) async { await database.execute( - 'CREATE TABLE IF NOT EXISTS `Events` (`id` INTEGER, `recipeID` TEXT NOT NULL, `eventName` TEXT NOT NULL, `hostName` TEXT NOT NULL, `thumbnail` TEXT NOT NULL, `startDate` TEXT NOT NULL, `endDate` TEXT NOT NULL, `startTime` TEXT NOT NULL, `endTime` TEXT NOT NULL, `location` TEXT NOT NULL, `description` TEXT NOT NULL, `numberOfTickets` TEXT NOT NULL, `price` TEXT NOT NULL, `listOfPerks` TEXT NOT NULL, `isFreeDrops` TEXT NOT NULL, `cookbookID` TEXT NOT NULL, `step` TEXT NOT NULL, PRIMARY KEY (`id`))'); + 'CREATE TABLE IF NOT EXISTS `Events` (`id` INTEGER, `recipeID` TEXT NOT NULL, `eventName` TEXT NOT NULL, `hostName` TEXT NOT NULL, `thumbnail` TEXT NOT NULL, `startDate` TEXT NOT NULL, `endDate` TEXT NOT NULL, `startTime` TEXT NOT NULL, `endTime` TEXT NOT NULL, `location` TEXT NOT NULL, `description` TEXT NOT NULL, `numberOfTickets` TEXT NOT NULL, `price` TEXT NOT NULL, `listOfPerks` TEXT NOT NULL, `isFreeDrops` TEXT NOT NULL, `cookbookID` TEXT NOT NULL, `step` TEXT NOT NULL, `denom` TEXT NOT NULL, PRIMARY KEY (`id`))'); await callback?.onCreate?.call(database, version); }, @@ -135,7 +135,8 @@ class _$EventsDao extends EventsDao { 'listOfPerks': item.listOfPerks, 'isFreeDrops': item.isFreeDrops, 'cookbookID': item.cookbookID, - 'step': item.step + 'step': item.step, + 'denom': item.denom }); final sqflite.DatabaseExecutor database; @@ -164,6 +165,7 @@ class _$EventsDao extends EventsDao { numberOfTickets: row['numberOfTickets'] as String, price: row['price'] as String, isFreeDrops: row['isFreeDrops'] as String, + denom: row['denom'] as String, cookbookID: row['cookbookID'] as String, recipeID: row['recipeID'] as String, step: row['step'] as String)); @@ -187,6 +189,7 @@ class _$EventsDao extends EventsDao { numberOfTickets: row['numberOfTickets'] as String, price: row['price'] as String, isFreeDrops: row['isFreeDrops'] as String, + denom: row['denom'] as String, cookbookID: row['cookbookID'] as String, recipeID: row['recipeID'] as String, step: row['step'] as String), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index ccfed0884b..eec19a237c 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -58,6 +58,9 @@ const kErrRecipe = 'Recipe error :'; /// ```URL constants const ipfsDomain = 'https://ipfs.io/ipfs'; +const String fromKey = 'from'; +const String eventKey = 'event'; + /// ```SVG assets class SVGUtils { static const kSvgSplash = 'assets/images/svg/splash.svg'; @@ -75,8 +78,6 @@ class SVGUtils { static const kListIcon = 'assets/images/svg/list.svg'; static const kSvgPublish = 'assets/images/svg/publish.svg'; static const kFileTypeImageIcon = 'assets/images/svg/file_type_image.svg'; - - } /// ```PNG assets diff --git a/evently/lib/utils/di/di.config.dart b/evently/lib/utils/di/di.config.dart index c987c79dd8..78bf584ff1 100644 --- a/evently/lib/utils/di/di.config.dart +++ b/evently/lib/utils/di/di.config.dart @@ -8,20 +8,21 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:dio/dio.dart' as _i6; +import 'package:dio/dio.dart' as _i5; import 'package:evently/evently_provider.dart' as _i14; import 'package:evently/repository/repository.dart' as _i13; -import 'package:evently/screens/event_hub/event_hub_view_model.dart' as _i15; +import 'package:evently/screens/event_hub/event_hub_view_model.dart' as _i16; +import 'package:evently/services/datasources/cache_manager.dart' as _i6; import 'package:evently/services/datasources/local_datasource.dart' as _i9; import 'package:evently/services/datasources/remote_datasource.dart' as _i12; import 'package:evently/services/third_party_services/database.dart' as _i11; import 'package:evently/services/third_party_services/quick_node.dart' as _i8; -import 'package:evently/utils/di/register_modules.dart' as _i16; +import 'package:evently/utils/di/register_modules.dart' as _i17; import 'package:evently/utils/file_utils_helper.dart' as _i7; -import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i3; -import 'package:file_picker/file_picker.dart' as _i5; +import 'package:evently/viewmodels/create_event_viewmodel.dart' as _i15; +import 'package:file_picker/file_picker.dart' as _i4; import 'package:get_it/get_it.dart' as _i1; -import 'package:image_cropper/image_cropper.dart' as _i4; +import 'package:image_cropper/image_cropper.dart' as _i3; import 'package:injectable/injectable.dart' as _i2; import 'package:shared_preferences/shared_preferences.dart' as _i10; @@ -37,20 +38,20 @@ extension GetItInjectableX on _i1.GetIt { environmentFilter, ); final registerModule = _$RegisterModule(); - gh.lazySingleton<_i3.CreateEventViewModel>( - () => _i3.CreateEventViewModel()); - gh.lazySingleton<_i4.ImageCropper>(() => registerModule.imageCropper); - gh.lazySingleton<_i5.FilePicker>(() => registerModule.filePicker); - gh.lazySingleton<_i6.Dio>(() => registerModule.dio); + gh.lazySingleton<_i3.ImageCropper>(() => registerModule.imageCropper); + gh.lazySingleton<_i4.FilePicker>(() => registerModule.filePicker); + gh.lazySingleton<_i5.Dio>(() => registerModule.dio); + gh.lazySingleton<_i6.CacheManager>(() => _i6.CacheManagerImp()); gh.lazySingleton<_i7.FileUtilsHelper>(() => _i7.FileUtilsHelperImpl( - imageCropper: gh<_i4.ImageCropper>(), - filePicker: gh<_i5.FilePicker>(), + imageCropper: gh<_i3.ImageCropper>(), + filePicker: gh<_i4.FilePicker>(), )); gh.lazySingleton<_i8.QuickNode>( - () => _i8.QuickNodeImpl(httpClient: gh<_i6.Dio>())); + () => _i8.QuickNodeImpl(httpClient: gh<_i5.Dio>())); gh.lazySingleton<_i9.LocalDataSource>(() => _i9.LocalDataSourceImpl( sharedPreferences: gh<_i10.SharedPreferences>(), database: gh<_i11.AppDatabase>(), + cacheManager: gh<_i6.CacheManager>(), )); gh.lazySingleton<_i12.RemoteDataSource>( () => _i12.RemoteDataSourceImpl(quickNode: gh<_i8.QuickNode>())); @@ -61,10 +62,12 @@ extension GetItInjectableX on _i1.GetIt { )); gh.lazySingleton<_i14.EventlyProvider>( () => _i14.EventlyProvider(repository: gh<_i13.Repository>())); - gh.lazySingleton<_i15.EventHubViewModel>( - () => _i15.EventHubViewModel(gh<_i13.Repository>())); + gh.lazySingleton<_i15.CreateEventViewModel>( + () => _i15.CreateEventViewModel(gh<_i13.Repository>())); + gh.lazySingleton<_i16.EventHubViewModel>( + () => _i16.EventHubViewModel(gh<_i13.Repository>())); return this; } } -class _$RegisterModule extends _i16.RegisterModule {} +class _$RegisterModule extends _i17.RegisterModule {} diff --git a/evently/lib/utils/enums.dart b/evently/lib/utils/enums.dart index 15f439515d..0ac17bcff8 100644 --- a/evently/lib/utils/enums.dart +++ b/evently/lib/utils/enums.dart @@ -1 +1,9 @@ -enum UploadStep { overView, detail, perks, price } +enum UploadStep { overView, detail, perks, price, none } + +extension ToUploadStepPar on String { + UploadStep toUploadStepEnum() { + return UploadStep.values.firstWhere((e) { + return e.toString().toLowerCase() == 'UploadStep.$this'.toLowerCase(); + }, orElse: () => UploadStep.none); //return null if not found + } +} diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index e213efb59b..2c72670e02 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -1,12 +1,17 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; +import 'package:evently/models/events.dart'; +import 'package:evently/repository/repository.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/enums.dart'; import 'package:flutter/material.dart'; import 'package:injectable/injectable.dart'; @lazySingleton class CreateEventViewModel extends ChangeNotifier { - CreateEventViewModel(); + final Repository repository; + + CreateEventViewModel(this.repository); late ValueNotifier currentPage; late ValueNotifier currentStep; @@ -20,10 +25,60 @@ class CreateEventViewModel extends ChangeNotifier { LocaleKeys.price.tr(), ]; - void init() { - currentPage = ValueNotifier(0); - currentStep = ValueNotifier(0); - pageController = PageController(); + Events? events; + + void init({required VoidCallback setTextField}) { + from = repository.getCacheString(key: fromKey); + repository.deleteCacheString(key: fromKey); + + if (from == kDraft) { + events = repository.getCacheDynamicType(key: eventKey) as Events; + + Future.delayed(const Duration(milliseconds: 1), () { + setTextField.call(); + }); + + Future.delayed(const Duration(milliseconds: 1), () { + setTextField.call(); + }); + + final uploadStep = events!.step.toUploadStepEnum(); + + switch (uploadStep) { + case UploadStep.overView: + currentPage = ValueNotifier(1); + currentStep = ValueNotifier(1); + pageController = PageController(initialPage: 1); + return; + case UploadStep.detail: + currentPage = ValueNotifier(2); + currentStep = ValueNotifier(2); + pageController = PageController(initialPage: 2); + return; + + case UploadStep.perks: + currentPage = ValueNotifier(3); + currentStep = ValueNotifier(3); + pageController = PageController(initialPage: 3); + return; + + case UploadStep.price: + currentPage = ValueNotifier(3); + currentStep = ValueNotifier(3); + pageController = PageController(initialPage: 3); + return; + + case UploadStep.none: + currentPage = ValueNotifier(0); + currentStep = ValueNotifier(0); + pageController = PageController(initialPage: 0); + return; + } + } else { + currentPage = ValueNotifier(0); + currentStep = ValueNotifier(0); + pageController = PageController(); + } } Future nextPage() async { @@ -41,6 +96,4 @@ class CreateEventViewModel extends ChangeNotifier { void disposeControllers() { pageController.dispose(); } - - } From 04cda0d4db5857fa6761c4e6353c9c7c61b9b5d9 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 16:15:14 +0500 Subject: [PATCH 116/158] feat: database is not registered error --- evently/lib/main.dart | 4 +++- evently/lib/screens/event_hub/event_hub_screen.dart | 4 +--- evently/lib/screens/event_hub/event_hub_view_model.dart | 4 ++-- evently/lib/utils/di/di.dart | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 55b0e9ac72..2d9ea8ad0b 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -4,14 +4,15 @@ import 'package:evently/evently_provider.dart'; import 'package:evently/screens/buyer_status_screen.dart'; import 'package:evently/screens/create_event.dart'; import 'package:evently/screens/event_hub/event_hub_screen.dart'; -import 'package:evently/screens/host_view_ticket_preview.dart'; import 'package:evently/screens/splash_screen.dart'; +import 'package:evently/services/third_party_services/database.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:get_it/get_it.dart'; import 'package:provider/provider.dart'; import 'package:pylons_sdk/pylons_sdk.dart'; @@ -25,6 +26,7 @@ void main() async { await EasyLocalization.ensureInitialized(); configureDependencies(); + await GetIt.I.isReady(); isTablet = _getIsCurrentDeviceTablet(); diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 4e78b08d59..33151b8124 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -307,15 +307,13 @@ class DraftListTile extends StatefulWidget { class _DraftListTileState extends State { Widget getDraftCard() { return InkWell( - onTap: (){ - + onTap: () { final DraftsBottomSheet draftsBottomSheet = DraftsBottomSheet( buildContext: context, events: widget.events, ); draftsBottomSheet.show(); return; - }, child: DecoratedBox( decoration: BoxDecoration( diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 7142851f18..3073068c6d 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -36,8 +36,8 @@ class EventHubViewModel extends ChangeNotifier { List get eventForSaleList => _eventForDraftList; - set setEventForDraftList(List nftForSale) { - _eventForDraftList = nftForSale; + set setEventForDraftList(List eventDraftList) { + _eventForDraftList = eventDraftList; notifyListeners(); } diff --git a/evently/lib/utils/di/di.dart b/evently/lib/utils/di/di.dart index 7e4d6d57fa..b44750f727 100644 --- a/evently/lib/utils/di/di.dart +++ b/evently/lib/utils/di/di.dart @@ -13,7 +13,7 @@ final sl = GetIt.I; // initialization of Service locator @InjectableInit() void configureDependencies() { - sl.registerSingletonAsync(() => SharedPreferences.getInstance()); - sl.registerSingletonAsync(() => $FloorAppDatabase.databaseBuilder('app_database.db').build()); - sl.init(); + GetIt.I.registerSingletonAsync(() => SharedPreferences.getInstance()); + GetIt.I.registerSingletonAsync(() => $FloorAppDatabase.databaseBuilder('app_database.db').build()); + GetIt.I.init(); } From 5fc2275bbe14bfebe7d03f6a819f0a70e53570ef Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 16:45:58 +0500 Subject: [PATCH 117/158] feat: set draft values --- evently/lib/models/events.dart | 8 ++-- evently/lib/screens/create_event.dart | 9 ++++- .../screens/event_hub/event_hub_screen.dart | 10 ++--- .../third_party_services/database.g.dart | 40 +++++-------------- evently/lib/utils/enums.dart | 2 +- .../viewmodels/create_event_viewmodel.dart | 3 -- 6 files changed, 28 insertions(+), 44 deletions(-) diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index a12ee9ab0a..20b82aa7cb 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -55,8 +55,9 @@ class Events extends Equatable { ///* other this.cookbookID = '', this.recipeID = '', - required this.step, + ///* for tracking where its save as draft + this.step = '', }); factory Events.fromRecipe(Recipe recipe) { @@ -108,11 +109,12 @@ class Events extends Equatable { } @override - List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID]; + List get props => + [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID, step]; @override String toString() { - return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, tradePercentage: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID}'; + return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, tradePercentage: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID, step: $step}'; } } diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 2d88f8b73f..4c13785a05 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -28,7 +28,14 @@ class _CreateEventState extends State { context.read().initStore(); }); - createEventViewModel.init(setTextField: () {}); + createEventViewModel.init(setTextField: () { + + + + + + + }); } @override diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 33151b8124..57c68d93d3 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -197,12 +197,10 @@ class _EventHubContentState extends State { eventsList: viewModel.eventForDraftList, onEmptyList: (BuildContext context) => Padding( padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Align( - alignment: Alignment.centerLeft, - child: Text( - LocaleKeys.no_nft_created.tr(), - style: subTitleStyle, - )), + child: Text( + LocaleKeys.no_nft_created.tr(), + style: subTitleStyle, + ), ), ), ), diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart index d4a454e287..3ae7cff4fa 100644 --- a/evently/lib/services/third_party_services/database.g.dart +++ b/evently/lib/services/third_party_services/database.g.dart @@ -21,14 +21,12 @@ abstract class $AppDatabaseBuilderContract { class $FloorAppDatabase { /// Creates a database builder for a persistent database. /// Once a database is built, you should keep a reference to it and re-use it. - static $AppDatabaseBuilderContract databaseBuilder(String name) => - _$AppDatabaseBuilder(name); + static $AppDatabaseBuilderContract databaseBuilder(String name) => _$AppDatabaseBuilder(name); /// Creates a database builder for an in memory database. /// Information stored in an in memory database disappears when the process is killed. /// Once a database is built, you should keep a reference to it and re-use it. - static $AppDatabaseBuilderContract inMemoryDatabaseBuilder() => - _$AppDatabaseBuilder(null); + static $AppDatabaseBuilderContract inMemoryDatabaseBuilder() => _$AppDatabaseBuilder(null); } class _$AppDatabaseBuilder implements $AppDatabaseBuilderContract { @@ -54,9 +52,7 @@ class _$AppDatabaseBuilder implements $AppDatabaseBuilderContract { @override Future build() async { - final path = name != null - ? await sqfliteDatabaseFactory.getDatabasePath(name!) - : ':memory:'; + final path = name != null ? await sqfliteDatabaseFactory.getDatabasePath(name!) : ':memory:'; final database = _$AppDatabase(); database.database = await database.open( path, @@ -89,8 +85,7 @@ class _$AppDatabase extends AppDatabase { await callback?.onOpen?.call(database); }, onUpgrade: (database, startVersion, endVersion) async { - await MigrationAdapter.runMigrations( - database, startVersion, endVersion, migrations); + await MigrationAdapter.runMigrations(database, startVersion, endVersion, migrations); await callback?.onUpgrade?.call(database, startVersion, endVersion); }, @@ -198,8 +193,7 @@ class _$EventsDao extends EventsDao { @override Future delete(int id) async { - await _queryAdapter - .queryNoReturn('DELETE FROM events WHERE id = ?1', arguments: [id]); + await _queryAdapter.queryNoReturn('DELETE FROM events WHERE id = ?1', arguments: [id]); } @override @@ -212,17 +206,8 @@ class _$EventsDao extends EventsDao { String description, int id, ) async { - await _queryAdapter.queryNoReturn( - 'UPDATE events SET startDate = ?1, endDate= ?2, startTime = ?3, endTime = ?4,location = ?5, description = ?6 WHERE id = ?7', - arguments: [ - startDate, - endDate, - startTime, - endTime, - location, - description, - id - ]); + await _queryAdapter.queryNoReturn('UPDATE events SET startDate = ?1, endDate= ?2, startTime = ?3, endTime = ?4,location = ?5, description = ?6 WHERE id = ?7', + arguments: [startDate, endDate, startTime, endTime, location, description, id]); } @override @@ -230,9 +215,7 @@ class _$EventsDao extends EventsDao { String listOfPerks, int id, ) async { - await _queryAdapter.queryNoReturn( - 'UPDATE events SET listOfPerks = ?1 WHERE id = ?2', - arguments: [listOfPerks, id]); + await _queryAdapter.queryNoReturn('UPDATE events SET listOfPerks = ?1 WHERE id = ?2', arguments: [listOfPerks, id]); } @override @@ -242,14 +225,11 @@ class _$EventsDao extends EventsDao { String price, String isFreeDrops, ) async { - await _queryAdapter.queryNoReturn( - 'UPDATE events SET numberOfTickets = ?2, price = ?3, isFreeDrops = ?4 WHERE id = ?1', - arguments: [id, numberOfTickets, price, isFreeDrops]); + await _queryAdapter.queryNoReturn('UPDATE events SET numberOfTickets = ?2, price = ?3, isFreeDrops = ?4 WHERE id = ?1', arguments: [id, numberOfTickets, price, isFreeDrops]); } @override Future insertEvents(Events events) { - return _eventsInsertionAdapter.insertAndReturnId( - events, OnConflictStrategy.abort); + return _eventsInsertionAdapter.insertAndReturnId(events, OnConflictStrategy.abort); } } diff --git a/evently/lib/utils/enums.dart b/evently/lib/utils/enums.dart index 0ac17bcff8..255631625c 100644 --- a/evently/lib/utils/enums.dart +++ b/evently/lib/utils/enums.dart @@ -3,7 +3,7 @@ enum UploadStep { overView, detail, perks, price, none } extension ToUploadStepPar on String { UploadStep toUploadStepEnum() { return UploadStep.values.firstWhere((e) { - return e.toString().toLowerCase() == 'UploadStep.$this'.toLowerCase(); + return e.toString().toLowerCase() == toLowerCase(); }, orElse: () => UploadStep.none); //return null if not found } } diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index 2c72670e02..3f4e3d4f43 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -34,9 +34,6 @@ class CreateEventViewModel extends ChangeNotifier { if (from == kDraft) { events = repository.getCacheDynamicType(key: eventKey) as Events; - Future.delayed(const Duration(milliseconds: 1), () { - setTextField.call(); - }); Future.delayed(const Duration(milliseconds: 1), () { setTextField.call(); From 758d42865d72e74a6e5dbb3ca0cb859fe3d556b6 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 16:51:46 +0500 Subject: [PATCH 118/158] feat: create event with overView screen data --- evently/lib/screens/create_event.dart | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 4c13785a05..b50f5fc41e 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -18,10 +18,12 @@ class CreateEvent extends StatefulWidget { } class _CreateEventState extends State { + late EventlyProvider eventlyProvider; CreateEventViewModel createEventViewModel = sl(); @override void initState() { + eventlyProvider = Provider.of(context, listen: false); super.initState(); WidgetsBinding.instance.addPostFrameCallback((timeStamp) { @@ -29,12 +31,9 @@ class _CreateEventState extends State { }); createEventViewModel.init(setTextField: () { - - - - - - + eventlyProvider.setEventName = createEventViewModel.events!.eventName; + eventlyProvider.setHostName = createEventViewModel.events!.hostName; + eventlyProvider.setThumbnail = createEventViewModel.events!.thumbnail; }); } From 928763b2c5d35457c86f821e5b98fcbc181e6d84 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 17:53:02 +0500 Subject: [PATCH 119/158] feat: save draft functionality upto details --- evently/lib/evently_provider.dart | 35 +++++++++++++++- evently/lib/repository/repository.dart | 15 +++++++ evently/lib/screens/create_event.dart | 6 +++ evently/lib/screens/detail_screen.dart | 10 ++++- .../datasources/local_datasource.dart | 22 ++++++++++ .../third_party_services/database.g.dart | 42 ++++++++++++++----- .../third_party_services/event_dao.dart | 3 +- 7 files changed, 120 insertions(+), 13 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index d8267b6ccc..0dcec1ace6 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -83,6 +83,13 @@ class EventlyProvider extends ChangeNotifier { String get location => _location; String get description => _description; + int? _id; + set setId(int id) { + _id = id; + } + + get id => _id; + set setStartDate(String value) { _startDate = value; notifyListeners(); @@ -358,7 +365,33 @@ class EventlyProvider extends ChangeNotifier { required VoidCallback onCompleted, required UploadStep uploadStep, }) async { - await repository.saveEvents(Events(step: uploadStep.toString(), eventName: eventName, hostName: hostName, thumbnail: thumbnail!)); + switch (uploadStep) { + case UploadStep.overView: + await repository.saveEvents(Events(step: uploadStep.toString(), eventName: eventName, hostName: hostName, thumbnail: thumbnail!)); + break; + case UploadStep.detail: + await repository.saveFromDetail(Events( + id: 1, + step: uploadStep.toString(), + eventName: eventName, + hostName: hostName, + thumbnail: thumbnail!, + startDate: startDate, + endDate: endDate, + startTime: startTime, + endTime: endTime, + location: location, + description: description, + )); + break; + case UploadStep.perks: + // TODO: Handle this case. + case UploadStep.price: + // TODO: Handle this case. + case UploadStep.none: + // TODO: Handle this case. + } + onCompleted(); } } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index ef71a3076f..214dfbe9f9 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -90,6 +90,8 @@ abstract class Repository { /// Input: [key] the key of the value /// Output: [String] the value of the key dynamic getCacheDynamicType({required String key}); + + Future> saveFromDetail(Events events); } @LazySingleton(as: Repository) @@ -221,4 +223,17 @@ class RepositoryImp implements Repository { dynamic getCacheDynamicType({required String key}) { return localDataSource.getCacheDynamicType(key: key); } + + @override + Future> saveFromDetail(Events events) async { + try { + final bool result = await localDataSource.saveEventFromDetail(events: events); + if (!result) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + return Right(result); + } on Exception catch (_) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + } } diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index b50f5fc41e..0a95327c00 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -34,6 +34,12 @@ class _CreateEventState extends State { eventlyProvider.setEventName = createEventViewModel.events!.eventName; eventlyProvider.setHostName = createEventViewModel.events!.hostName; eventlyProvider.setThumbnail = createEventViewModel.events!.thumbnail; + eventlyProvider.setStartDate = createEventViewModel.events!.startDate; + eventlyProvider.setEndDate = createEventViewModel.events!.endDate; + eventlyProvider.setStartTime = createEventViewModel.events!.startTime; + eventlyProvider.setEndTime = createEventViewModel.events!.endTime; + eventlyProvider.setLocation = createEventViewModel.events!.location; + eventlyProvider.setDescription = createEventViewModel.events!.description; }); } diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 8f6cb89e65..60a3631eb7 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -5,6 +5,8 @@ import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; +import 'package:evently/utils/enums.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/evently_text_field.dart'; @@ -162,7 +164,13 @@ class _DetailsScreenState extends State { onPressContinue: () { createEventViewModel.nextPage(); }, - onPressSaveDraft: () {}, + onPressSaveDraft: () { + final navigator = Navigator.of(context); + provider.saveAsDraft( + onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), + uploadStep: UploadStep.detail, + ); + }, isContinueEnable: provider.startDate.isNotEmpty && provider.endDate.isNotEmpty && provider.startTime.isNotEmpty && diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 87fb13ad79..16c1f7576b 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -86,6 +86,9 @@ abstract class LocalDataSource { /// Input: [key] the key of the value /// Output: [String] the value of the key String getCacheString({required String key}); + + /// this method is used to save draft from + Future saveEventFromDetail({required Events events}); } @LazySingleton(as: LocalDataSource) @@ -214,4 +217,23 @@ class LocalDataSourceImpl extends LocalDataSource { void deleteCacheDynamic({required String key}) { cacheManager.deleteCacheDynamic(key: key); } + + @override + Future saveEventFromDetail({required Events events}) async { + try { + await database.eventsDao.updateNFTFromDetail( + events.startDate, + events.endDate, + events.startTime, + events.endTime, + events.location, + events.description, + events.id!, + events.step, + ); + return true; + } catch (e) { + throw CacheFailure(LocaleKeys.get_error.tr()); + } + } } diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart index 3ae7cff4fa..6a349f3fe3 100644 --- a/evently/lib/services/third_party_services/database.g.dart +++ b/evently/lib/services/third_party_services/database.g.dart @@ -21,12 +21,14 @@ abstract class $AppDatabaseBuilderContract { class $FloorAppDatabase { /// Creates a database builder for a persistent database. /// Once a database is built, you should keep a reference to it and re-use it. - static $AppDatabaseBuilderContract databaseBuilder(String name) => _$AppDatabaseBuilder(name); + static $AppDatabaseBuilderContract databaseBuilder(String name) => + _$AppDatabaseBuilder(name); /// Creates a database builder for an in memory database. /// Information stored in an in memory database disappears when the process is killed. /// Once a database is built, you should keep a reference to it and re-use it. - static $AppDatabaseBuilderContract inMemoryDatabaseBuilder() => _$AppDatabaseBuilder(null); + static $AppDatabaseBuilderContract inMemoryDatabaseBuilder() => + _$AppDatabaseBuilder(null); } class _$AppDatabaseBuilder implements $AppDatabaseBuilderContract { @@ -52,7 +54,9 @@ class _$AppDatabaseBuilder implements $AppDatabaseBuilderContract { @override Future build() async { - final path = name != null ? await sqfliteDatabaseFactory.getDatabasePath(name!) : ':memory:'; + final path = name != null + ? await sqfliteDatabaseFactory.getDatabasePath(name!) + : ':memory:'; final database = _$AppDatabase(); database.database = await database.open( path, @@ -85,7 +89,8 @@ class _$AppDatabase extends AppDatabase { await callback?.onOpen?.call(database); }, onUpgrade: (database, startVersion, endVersion) async { - await MigrationAdapter.runMigrations(database, startVersion, endVersion, migrations); + await MigrationAdapter.runMigrations( + database, startVersion, endVersion, migrations); await callback?.onUpgrade?.call(database, startVersion, endVersion); }, @@ -193,7 +198,8 @@ class _$EventsDao extends EventsDao { @override Future delete(int id) async { - await _queryAdapter.queryNoReturn('DELETE FROM events WHERE id = ?1', arguments: [id]); + await _queryAdapter + .queryNoReturn('DELETE FROM events WHERE id = ?1', arguments: [id]); } @override @@ -205,9 +211,20 @@ class _$EventsDao extends EventsDao { String location, String description, int id, + String step, ) async { - await _queryAdapter.queryNoReturn('UPDATE events SET startDate = ?1, endDate= ?2, startTime = ?3, endTime = ?4,location = ?5, description = ?6 WHERE id = ?7', - arguments: [startDate, endDate, startTime, endTime, location, description, id]); + await _queryAdapter.queryNoReturn( + 'UPDATE events SET startDate = ?1, endDate= ?2, startTime = ?3, endTime = ?4,location = ?5, description = ?6, step = ?8 WHERE id = ?7', + arguments: [ + startDate, + endDate, + startTime, + endTime, + location, + description, + id, + step + ]); } @override @@ -215,7 +232,9 @@ class _$EventsDao extends EventsDao { String listOfPerks, int id, ) async { - await _queryAdapter.queryNoReturn('UPDATE events SET listOfPerks = ?1 WHERE id = ?2', arguments: [listOfPerks, id]); + await _queryAdapter.queryNoReturn( + 'UPDATE events SET listOfPerks = ?1 WHERE id = ?2', + arguments: [listOfPerks, id]); } @override @@ -225,11 +244,14 @@ class _$EventsDao extends EventsDao { String price, String isFreeDrops, ) async { - await _queryAdapter.queryNoReturn('UPDATE events SET numberOfTickets = ?2, price = ?3, isFreeDrops = ?4 WHERE id = ?1', arguments: [id, numberOfTickets, price, isFreeDrops]); + await _queryAdapter.queryNoReturn( + 'UPDATE events SET numberOfTickets = ?2, price = ?3, isFreeDrops = ?4 WHERE id = ?1', + arguments: [id, numberOfTickets, price, isFreeDrops]); } @override Future insertEvents(Events events) { - return _eventsInsertionAdapter.insertAndReturnId(events, OnConflictStrategy.abort); + return _eventsInsertionAdapter.insertAndReturnId( + events, OnConflictStrategy.abort); } } diff --git a/evently/lib/services/third_party_services/event_dao.dart b/evently/lib/services/third_party_services/event_dao.dart index 95bbcfe26e..33f424672b 100644 --- a/evently/lib/services/third_party_services/event_dao.dart +++ b/evently/lib/services/third_party_services/event_dao.dart @@ -15,7 +15,7 @@ abstract class EventsDao { @Query('DELETE FROM events WHERE id = :id') Future delete(int id); - @Query('UPDATE events SET startDate = :startDate, endDate= :endDate, startTime = :startTime, endTime = :endTime,location = :location, description = :description WHERE id = :id') + @Query('UPDATE events SET startDate = :startDate, endDate= :endDate, startTime = :startTime, endTime = :endTime,location = :location, description = :description, step = :step WHERE id = :id') Future updateNFTFromDetail( String startDate, String endDate, @@ -24,6 +24,7 @@ abstract class EventsDao { String location, String description, int id, + String step, ); @Query('UPDATE events SET listOfPerks = :listOfPerks WHERE id = :id') From 95f1e0ef6226ed88836ef19e7b885c0491b2357e Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 17:53:13 +0500 Subject: [PATCH 120/158] feat: save draft functionality upto details --- evently/lib/evently_provider.dart | 2 +- evently/lib/screens/create_event.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 0dcec1ace6..6794425810 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -371,7 +371,7 @@ class EventlyProvider extends ChangeNotifier { break; case UploadStep.detail: await repository.saveFromDetail(Events( - id: 1, + id: id, step: uploadStep.toString(), eventName: eventName, hostName: hostName, diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 0a95327c00..12a2212557 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -40,6 +40,7 @@ class _CreateEventState extends State { eventlyProvider.setEndTime = createEventViewModel.events!.endTime; eventlyProvider.setLocation = createEventViewModel.events!.location; eventlyProvider.setDescription = createEventViewModel.events!.description; + eventlyProvider.setId = createEventViewModel.events!.id!; }); } From 807a047428b182c030a94ad461fab652a336365f Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 21 May 2024 12:02:41 +0500 Subject: [PATCH 121/158] feat: draft functional upto price --- evently/lib/evently_provider.dart | 26 +++++++++---------- evently/lib/repository/repository.dart | 15 +++++++++++ evently/lib/screens/perks_screen.dart | 10 ++++++- .../datasources/local_datasource.dart | 15 ++++++++++- .../third_party_services/database.g.dart | 5 ++-- .../third_party_services/event_dao.dart | 3 ++- .../viewmodels/create_event_viewmodel.dart | 7 +++-- 7 files changed, 59 insertions(+), 22 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 6794425810..7fdf072753 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -371,21 +371,21 @@ class EventlyProvider extends ChangeNotifier { break; case UploadStep.detail: await repository.saveFromDetail(Events( - id: id, - step: uploadStep.toString(), - eventName: eventName, - hostName: hostName, - thumbnail: thumbnail!, - startDate: startDate, - endDate: endDate, - startTime: startTime, - endTime: endTime, - location: location, - description: description, - )); + id: id, + step: uploadStep.toString(), + eventName: eventName, + hostName: hostName, + thumbnail: thumbnail!, + startDate: startDate, + endDate: endDate, + startTime: startTime, + endTime: endTime, + location: location, + description: description)); break; case UploadStep.perks: - // TODO: Handle this case. + await repository.saveFromPerks(Events(id: id, listOfPerks: perks.join(','), step: uploadStep.toString())); + break; case UploadStep.price: // TODO: Handle this case. case UploadStep.none: diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 214dfbe9f9..22d1553296 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -92,6 +92,8 @@ abstract class Repository { dynamic getCacheDynamicType({required String key}); Future> saveFromDetail(Events events); + + Future> saveFromPerks(Events events); } @LazySingleton(as: Repository) @@ -236,4 +238,17 @@ class RepositoryImp implements Repository { return Left(CacheFailure(LocaleKeys.get_error.tr())); } } + + @override + Future> saveFromPerks(Events events) async { + try { + final bool result = await localDataSource.saveEventFromPerks(events: events); + if (!result) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + return Right(result); + } on Exception catch (_) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + } } diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 097aed9675..03f14088de 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -7,7 +7,9 @@ import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/enums.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; @@ -114,7 +116,13 @@ class _PerksScreenState extends State { onPressContinue: () { createEventViewModel.nextPage(); }, - onPressSaveDraft: () {}, + onPressSaveDraft: () { + final navigator = Navigator.of(context); + provider.saveAsDraft( + onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), + uploadStep: UploadStep.perks, + ); + }, isContinueEnable: true, ), ) diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 16c1f7576b..d0346a6ccc 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -87,8 +87,11 @@ abstract class LocalDataSource { /// Output: [String] the value of the key String getCacheString({required String key}); - /// this method is used to save draft from + /// this method is used to save draft from details screen Future saveEventFromDetail({required Events events}); + + /// this method is used to save draft from details screen + Future saveEventFromPerks({required Events events}); } @LazySingleton(as: LocalDataSource) @@ -236,4 +239,14 @@ class LocalDataSourceImpl extends LocalDataSource { throw CacheFailure(LocaleKeys.get_error.tr()); } } + + @override + Future saveEventFromPerks({required Events events}) async { + try { + await database.eventsDao.updateNFTFromPerks(events.listOfPerks, events.id!, events.step); + return true; + } catch (_) { + throw CacheFailure(LocaleKeys.get_error.tr()); + } + } } diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart index 6a349f3fe3..3e1308b38b 100644 --- a/evently/lib/services/third_party_services/database.g.dart +++ b/evently/lib/services/third_party_services/database.g.dart @@ -231,10 +231,11 @@ class _$EventsDao extends EventsDao { Future updateNFTFromPerks( String listOfPerks, int id, + String step, ) async { await _queryAdapter.queryNoReturn( - 'UPDATE events SET listOfPerks = ?1 WHERE id = ?2', - arguments: [listOfPerks, id]); + 'UPDATE events SET listOfPerks = ?1, step = ?3 WHERE id = ?2', + arguments: [listOfPerks, id, step]); } @override diff --git a/evently/lib/services/third_party_services/event_dao.dart b/evently/lib/services/third_party_services/event_dao.dart index 33f424672b..ca56a30dc2 100644 --- a/evently/lib/services/third_party_services/event_dao.dart +++ b/evently/lib/services/third_party_services/event_dao.dart @@ -27,10 +27,11 @@ abstract class EventsDao { String step, ); - @Query('UPDATE events SET listOfPerks = :listOfPerks WHERE id = :id') + @Query('UPDATE events SET listOfPerks = :listOfPerks, step = :step WHERE id = :id') Future updateNFTFromPerks( String listOfPerks, int id, + String step, ); @Query('UPDATE events SET numberOfTickets = :numberOfTickets, price = :price, isFreeDrops = :isFreeDrops WHERE id = :id') diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index 3f4e3d4f43..b898ed55f3 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -34,7 +34,6 @@ class CreateEventViewModel extends ChangeNotifier { if (from == kDraft) { events = repository.getCacheDynamicType(key: eventKey) as Events; - Future.delayed(const Duration(milliseconds: 1), () { setTextField.call(); }); @@ -60,9 +59,9 @@ class CreateEventViewModel extends ChangeNotifier { return; case UploadStep.price: - currentPage = ValueNotifier(3); - currentStep = ValueNotifier(3); - pageController = PageController(initialPage: 3); + currentPage = ValueNotifier(4); + currentStep = ValueNotifier(4); + pageController = PageController(initialPage: 4); return; case UploadStep.none: From 5e0a7b749b4e37ef4839ad99b5bca018d84dd711 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 21 May 2024 14:26:23 +0500 Subject: [PATCH 122/158] feat: draft upto price screen --- evently/lib/evently_provider.dart | 45 ++++++++++++++++++--------- evently/lib/models/denom.dart | 2 +- evently/lib/models/events.dart | 12 ++++++- evently/lib/screens/create_event.dart | 9 ++++++ 4 files changed, 52 insertions(+), 16 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 7fdf072753..43bb446c23 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'dart:convert'; import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; @@ -365,26 +366,41 @@ class EventlyProvider extends ChangeNotifier { required VoidCallback onCompleted, required UploadStep uploadStep, }) async { + final saveEvent = Events( + id: id, + step: uploadStep.toString(), + eventName: eventName, + hostName: hostName, + thumbnail: thumbnail!, + startDate: startDate, + endDate: endDate, + startTime: startTime, + endTime: endTime, + location: location, + description: description, + listOfPerks: perks.map((e) => jsonEncode(e)).toList().toString(), + isFreeDrops: isFreeDrop.toString(), + denom: selectedDenom.toString(), + numberOfTickets: numberOfTickets.toString(), + price: price.toString(), + ); + + /// this check is for when no event is save as draft + if (saveEvent.id == null) { + await repository.saveEvents(saveEvent); + onCompleted(); + return; + } + switch (uploadStep) { case UploadStep.overView: - await repository.saveEvents(Events(step: uploadStep.toString(), eventName: eventName, hostName: hostName, thumbnail: thumbnail!)); + await repository.saveEvents(saveEvent); break; case UploadStep.detail: - await repository.saveFromDetail(Events( - id: id, - step: uploadStep.toString(), - eventName: eventName, - hostName: hostName, - thumbnail: thumbnail!, - startDate: startDate, - endDate: endDate, - startTime: startTime, - endTime: endTime, - location: location, - description: description)); + await repository.saveFromDetail(saveEvent); break; case UploadStep.perks: - await repository.saveFromPerks(Events(id: id, listOfPerks: perks.join(','), step: uploadStep.toString())); + await repository.saveFromPerks(saveEvent); break; case UploadStep.price: // TODO: Handle this case. @@ -394,4 +410,5 @@ class EventlyProvider extends ChangeNotifier { onCompleted(); } + } diff --git a/evently/lib/models/denom.dart b/evently/lib/models/denom.dart index a107ecff18..6930b067f1 100644 --- a/evently/lib/models/denom.dart +++ b/evently/lib/models/denom.dart @@ -32,7 +32,7 @@ class Denom { @override String toString() { - return 'Denom{name: $name, symbol: $symbol, icon: $icon}'; + return '{name: $name, symbol: $symbol, icon: $icon}'; } Widget getIconWidget() { diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 20b82aa7cb..4cb47372b5 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -114,7 +114,7 @@ class Events extends Equatable { @override String toString() { - return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, tradePercentage: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID, step: $step}'; + return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, listOfPerks: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID, step: $step}'; } } @@ -226,6 +226,16 @@ class PerksModel { description: description, ); + factory PerksModel.fromJson(Map map) => PerksModel(name: map['name'] ?? '', description: map['description'] ?? ''); + + Map toJson() { + Map map = {}; + map['name'] = name; + map['description'] = description; + + return map; + } + @override String toString() { return 'PerksModel{name: $name, description: $description}'; diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 12a2212557..64f67bb57e 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,4 +1,7 @@ +import 'dart:convert'; + import 'package:evently/evently_provider.dart'; +import 'package:evently/models/events.dart'; import 'package:evently/screens/detail_screen.dart'; import 'package:evently/screens/host_view_ticket_preview.dart'; import 'package:evently/screens/overview_screen.dart'; @@ -41,6 +44,12 @@ class _CreateEventState extends State { eventlyProvider.setLocation = createEventViewModel.events!.location; eventlyProvider.setDescription = createEventViewModel.events!.description; eventlyProvider.setId = createEventViewModel.events!.id!; + + final listOfPerkJson = jsonDecode(createEventViewModel.events!.listOfPerks); + + for (var perksJson in listOfPerkJson) { + eventlyProvider.setPerks = PerksModel.fromJson(perksJson); + } }); } From f1323e82e41a2be55d234500b292cbb87d9d8be7 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 21 May 2024 15:54:26 +0500 Subject: [PATCH 123/158] feat: upto preview screen --- evently/devtools_options.yaml | 1 + evently/lib/evently_provider.dart | 6 +++--- evently/lib/models/denom.dart | 14 +++++++++++++ evently/lib/models/events.dart | 3 +-- evently/lib/repository/repository.dart | 15 +++++++++++++ evently/lib/screens/create_event.dart | 21 +++++++++++++------ evently/lib/screens/price_screen.dart | 10 ++++++++- .../datasources/local_datasource.dart | 13 ++++++++++++ .../third_party_services/database.g.dart | 6 ++++-- .../third_party_services/event_dao.dart | 4 +++- evently/lib/utils/enums.dart | 10 +++++++++ 11 files changed, 88 insertions(+), 15 deletions(-) create mode 100644 evently/devtools_options.yaml diff --git a/evently/devtools_options.yaml b/evently/devtools_options.yaml new file mode 100644 index 0000000000..7e7e7f67de --- /dev/null +++ b/evently/devtools_options.yaml @@ -0,0 +1 @@ +extensions: diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 43bb446c23..67466ccdc1 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -380,7 +380,7 @@ class EventlyProvider extends ChangeNotifier { description: description, listOfPerks: perks.map((e) => jsonEncode(e)).toList().toString(), isFreeDrops: isFreeDrop.toString(), - denom: selectedDenom.toString(), + denom: jsonEncode(selectedDenom), numberOfTickets: numberOfTickets.toString(), price: price.toString(), ); @@ -403,12 +403,12 @@ class EventlyProvider extends ChangeNotifier { await repository.saveFromPerks(saveEvent); break; case UploadStep.price: - // TODO: Handle this case. + await repository.saveEventFromPrice(saveEvent); + break; case UploadStep.none: // TODO: Handle this case. } onCompleted(); } - } diff --git a/evently/lib/models/denom.dart b/evently/lib/models/denom.dart index 6930b067f1..1f4cb66b36 100644 --- a/evently/lib/models/denom.dart +++ b/evently/lib/models/denom.dart @@ -82,4 +82,18 @@ class Denom { return (double.parse(price.replaceAll(",", "").trim()) * kBigIntBase).toStringAsFixed(0); } } + + Map toJson() { + Map map = {}; + map['name'] = name; + map['symbol'] = symbol; + map['icon'] = icon; + return map; + } + + factory Denom.fromJson(Map json) => Denom( + name: json['name']!, + symbol: json['symbol']!, + icon: json['icon']!, + ); } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 4cb47372b5..e4d9572878 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,10 +1,9 @@ import 'package:equatable/equatable.dart'; +import 'package:evently/utils/enums.dart'; import 'package:floor/floor.dart'; import 'package:pylons_sdk/low_level.dart'; import 'package:fixnum/fixnum.dart'; -enum FreeDrop { yes, no, unselected } - @entity class Events extends Equatable { @primaryKey diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 22d1553296..7855273e53 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -94,6 +94,8 @@ abstract class Repository { Future> saveFromDetail(Events events); Future> saveFromPerks(Events events); + + Future> saveEventFromPrice(Events events); } @LazySingleton(as: Repository) @@ -251,4 +253,17 @@ class RepositoryImp implements Repository { return Left(CacheFailure(LocaleKeys.get_error.tr())); } } + + @override + Future> saveEventFromPrice(Events events) async { + try { + final bool result = await localDataSource.saveEventFromPrice(events: events); + if (!result) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + return Right(result); + } on Exception catch (_) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + } } diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 64f67bb57e..6e4766abbe 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -1,6 +1,7 @@ import 'dart:convert'; import 'package:evently/evently_provider.dart'; +import 'package:evently/models/denom.dart'; import 'package:evently/models/events.dart'; import 'package:evently/screens/detail_screen.dart'; import 'package:evently/screens/host_view_ticket_preview.dart'; @@ -8,6 +9,7 @@ import 'package:evently/screens/overview_screen.dart'; import 'package:evently/screens/perks_screen.dart'; import 'package:evently/screens/price_screen.dart'; import 'package:evently/utils/di/di.dart'; +import 'package:evently/utils/enums.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:flutter/material.dart'; @@ -50,17 +52,24 @@ class _CreateEventState extends State { for (var perksJson in listOfPerkJson) { eventlyProvider.setPerks = PerksModel.fromJson(perksJson); } + + eventlyProvider.setFreeDrop = createEventViewModel.events!.isFreeDrops.toFreeDrop(); + eventlyProvider.setPrice = int.parse(createEventViewModel.events!.price); + eventlyProvider.setNumberOfTickets = int.parse(createEventViewModel.events!.numberOfTickets); + eventlyProvider.setSelectedDenom(Denom.fromJson(jsonDecode(createEventViewModel.events!.denom))); }); } @override Widget build(BuildContext context) { - return ColoredBox( - color: EventlyAppTheme.kWhite, - child: SafeArea( - bottom: false, - child: Scaffold( - body: ChangeNotifierProvider.value(value: createEventViewModel, child: const CreateEventContent()), + return PopScope( + child: ColoredBox( + color: EventlyAppTheme.kWhite, + child: SafeArea( + bottom: false, + child: Scaffold( + body: ChangeNotifierProvider.value(value: createEventViewModel, child: const CreateEventContent()), + ), ), ), ); diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 9ab2f504ae..659efec014 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -6,7 +6,9 @@ import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/enums.dart'; import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/screen_responsive.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; @@ -207,7 +209,13 @@ class _PriceScreenState extends State { onPressContinue: () { homeViewModel.nextPage(); }, - onPressSaveDraft: () {}, + onPressSaveDraft: () { + final navigator = Navigator.of(context); + provider.saveAsDraft( + onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), + uploadStep: UploadStep.price, + ); + }, isContinueEnable: provider.isFreeDrop == FreeDrop.unselected ? false : provider.isFreeDrop == FreeDrop.yes diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index d0346a6ccc..8f60346477 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -92,6 +92,9 @@ abstract class LocalDataSource { /// this method is used to save draft from details screen Future saveEventFromPerks({required Events events}); + + /// this method is used to save draft from details screen + Future saveEventFromPrice({required Events events}); } @LazySingleton(as: LocalDataSource) @@ -249,4 +252,14 @@ class LocalDataSourceImpl extends LocalDataSource { throw CacheFailure(LocaleKeys.get_error.tr()); } } + + @override + Future saveEventFromPrice({required Events events}) async { + try { + await database.eventsDao.updateNFTFromPrice(events.id!, events.numberOfTickets, events.price, events.isFreeDrops, events.denom, events.step); + return true; + } catch (_) { + throw CacheFailure(LocaleKeys.get_error.tr()); + } + } } diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart index 3e1308b38b..ac1d0a0403 100644 --- a/evently/lib/services/third_party_services/database.g.dart +++ b/evently/lib/services/third_party_services/database.g.dart @@ -244,10 +244,12 @@ class _$EventsDao extends EventsDao { String numberOfTickets, String price, String isFreeDrops, + String denom, + String step, ) async { await _queryAdapter.queryNoReturn( - 'UPDATE events SET numberOfTickets = ?2, price = ?3, isFreeDrops = ?4 WHERE id = ?1', - arguments: [id, numberOfTickets, price, isFreeDrops]); + 'UPDATE events SET numberOfTickets = ?2, price = ?3, isFreeDrops = ?4, denom = ?5, step = ?6 WHERE id = ?1', + arguments: [id, numberOfTickets, price, isFreeDrops, denom, step]); } @override diff --git a/evently/lib/services/third_party_services/event_dao.dart b/evently/lib/services/third_party_services/event_dao.dart index ca56a30dc2..de4d997d99 100644 --- a/evently/lib/services/third_party_services/event_dao.dart +++ b/evently/lib/services/third_party_services/event_dao.dart @@ -34,11 +34,13 @@ abstract class EventsDao { String step, ); - @Query('UPDATE events SET numberOfTickets = :numberOfTickets, price = :price, isFreeDrops = :isFreeDrops WHERE id = :id') + @Query('UPDATE events SET numberOfTickets = :numberOfTickets, price = :price, isFreeDrops = :isFreeDrops, denom = :denom, step = :step WHERE id = :id') Future updateNFTFromPrice( int id, String numberOfTickets, String price, String isFreeDrops, + String denom, + String step, ); } diff --git a/evently/lib/utils/enums.dart b/evently/lib/utils/enums.dart index 255631625c..94a62d15ba 100644 --- a/evently/lib/utils/enums.dart +++ b/evently/lib/utils/enums.dart @@ -7,3 +7,13 @@ extension ToUploadStepPar on String { }, orElse: () => UploadStep.none); //return null if not found } } + +enum FreeDrop { yes, no, unselected } + +extension ToFreeDrop on String { + FreeDrop toFreeDrop() { + return FreeDrop.values.firstWhere((e) { + return e.toString().toLowerCase() == toLowerCase(); + }, orElse: () => FreeDrop.unselected); //return null if not found + } +} From f6a526d324dd37c2f42a028df1c04c451fab8260 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 21 May 2024 16:55:54 +0500 Subject: [PATCH 124/158] feat: on continue save missing data --- evently/lib/evently_provider.dart | 6 +++--- evently/lib/screens/create_event.dart | 11 +++++----- evently/lib/screens/detail_screen.dart | 26 +++++++++++++++++++----- evently/lib/screens/overview_screen.dart | 10 ++++++--- evently/lib/screens/perks_screen.dart | 4 ++++ evently/lib/screens/price_screen.dart | 5 ++++- evently/lib/utils/constants.dart | 3 --- 7 files changed, 45 insertions(+), 20 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 67466ccdc1..6a5af201d6 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -34,7 +34,7 @@ class EventlyProvider extends ChangeNotifier { ///* overview screen variable String _eventName = ''; String _hostName = ''; - String? _thumbnail; + String _thumbnail = ''; bool _isOverviewEnable = false; String? get thumbnail => _thumbnail; @@ -55,7 +55,7 @@ class EventlyProvider extends ChangeNotifier { } set setThumbnail(String? file) { - _thumbnail = file; + _thumbnail = file!; checkIsOverEnable(); notifyListeners(); } @@ -66,7 +66,7 @@ class EventlyProvider extends ChangeNotifier { } checkIsOverEnable() { - setOverviewEnable = thumbnail != null && eventName.length >= kMinEventName && hostName.length >= kMinHostName; + setOverviewEnable = thumbnail!.isNotEmpty && eventName.isNotEmpty && hostName.isNotEmpty; } ///* detail screen diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 6e4766abbe..745fc78971 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -62,11 +62,12 @@ class _CreateEventState extends State { @override Widget build(BuildContext context) { - return PopScope( - child: ColoredBox( - color: EventlyAppTheme.kWhite, - child: SafeArea( - bottom: false, + return ColoredBox( + color: EventlyAppTheme.kWhite, + child: SafeArea( + bottom: false, + child: PopScope( + canPop: false, child: Scaffold( body: ChangeNotifierProvider.value(value: createEventViewModel, child: const CreateEventContent()), ), diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 60a3631eb7..3764607252 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -56,7 +56,7 @@ class _DetailsScreenState extends State { onTap: () async { _showDatePicker(onSelected: (DateTime? val) { if (val == null) return; - provider.setStartDate = DateFormat("dd-MM-yyyy").format(val); + provider.setStartDate = _dateFormatter(val); }); }, child: EventlyTextField( @@ -73,7 +73,7 @@ class _DetailsScreenState extends State { onTap: () { _showDatePicker(onSelected: (DateTime? val) { if (val == null) return; - provider.setEndDate = DateFormat("dd-MM-yyyy").format(val); + provider.setEndDate = _dateFormatter(val); }); }, child: EventlyTextField( @@ -97,7 +97,9 @@ class _DetailsScreenState extends State { onTap: () { _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { if (timeOfDay == null) return; - provider.setStartTime = '${timeOfDay.hour}:${timeOfDay.minute}'; + final currentTime = DateTime.now(); + final time = currentTime.copyWith(hour: timeOfDay.hour, minute: timeOfDay.minute); + provider.setStartTime = _timerFormatter(time); }); }, child: EventlyTextField( @@ -117,7 +119,9 @@ class _DetailsScreenState extends State { onTap: () { _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { if (timeOfDay == null) return; - provider.setEndTime = '${timeOfDay.hour}:${timeOfDay.minute}'; + final currentTime = DateTime.now(); + final time = currentTime.copyWith(hour: timeOfDay.hour, minute: timeOfDay.minute); + provider.setEndTime = _timerFormatter(time); }); }, child: EventlyTextField( @@ -162,6 +166,10 @@ class _DetailsScreenState extends State { const VerticalSpace(80), BottomButtons( onPressContinue: () { + provider.saveAsDraft( + onCompleted: () => {}, + uploadStep: UploadStep.price, + ); createEventViewModel.nextPage(); }, onPressSaveDraft: () { @@ -198,7 +206,15 @@ class _DetailsScreenState extends State { showDatePicker( context: context, firstDate: DateTime.now(), - lastDate: DateTime.now(), + lastDate: DateTime(2099, 12), ).then((value) => onSelected(value!)); } + + _timerFormatter(DateTime dateTime) { + return DateFormat('hh:mm a').format(dateTime); + } + + _dateFormatter(DateTime dateTime) { + return DateFormat.yMMMMd('en_US').format(dateTime); + } } diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 76fd3280f7..b22957d460 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -91,7 +91,7 @@ class _OverViewScreenState extends State { dashPattern: const [10, 6], color: EventlyAppTheme.kTextDarkPurple, strokeWidth: 3.h, - child: provider.thumbnail != null + child: provider.thumbnail!.isNotEmpty ? SizedBox( height: 180, width: double.infinity, @@ -99,7 +99,7 @@ class _OverViewScreenState extends State { alignment: Alignment.center, children: [ CachedNetworkImage( - fit: BoxFit.fill, + fit: BoxFit.contain, imageUrl: provider.thumbnail!, errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), progressIndicatorBuilder: (context, _, progress) { @@ -110,7 +110,7 @@ class _OverViewScreenState extends State { onTap: () => provider.pickThumbnail(), child: SvgPicture.asset( SVGUtils.kSvgUpload, - color: EventlyAppTheme.kWhite, + color: Colors.white, ), ), ], @@ -145,6 +145,10 @@ class _OverViewScreenState extends State { const VerticalSpace(80), BottomButtons( onPressContinue: () { + provider.saveAsDraft( + onCompleted: () => {}, + uploadStep: UploadStep.overView, + ); createEventViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 03f14088de..52f3cd9b00 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -114,6 +114,10 @@ class _PerksScreenState extends State { padding: const EdgeInsets.symmetric(horizontal: 20), child: BottomButtons( onPressContinue: () { + provider.saveAsDraft( + onCompleted: () => {}, + uploadStep: UploadStep.perks, + ); createEventViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 659efec014..3769de13a6 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -1,6 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; -import 'package:evently/models/events.dart'; import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; @@ -207,6 +206,10 @@ class _PriceScreenState extends State { padding: EdgeInsets.symmetric(horizontal: 20.w), child: BottomButtons( onPressContinue: () { + provider.saveAsDraft( + onCompleted: () => {}, + uploadStep: UploadStep.price, + ); homeViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index eec19a237c..b6946f8251 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -28,9 +28,6 @@ const int kEthIntBase = 1000000000000000000; final List imageAllowedExts = ["png", "jpg", "jpeg", "heif"]; const kPylons = "Pylons"; -///number constant -const kMinEventName = 9; -const kMinHostName = 9; const kErrProfileNotExist = 'profileDoesNotExist'; From 8023451e3d944b8e90ed441f62ce406cd57603c7 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 21 May 2024 17:02:14 +0500 Subject: [PATCH 125/158] fix: causing duplication --- evently/lib/screens/detail_screen.dart | 5 +---- evently/lib/screens/overview_screen.dart | 4 ---- evently/lib/screens/perks_screen.dart | 5 +---- evently/lib/screens/price_screen.dart | 5 +---- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 3764607252..2a199fe9b4 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -166,10 +166,7 @@ class _DetailsScreenState extends State { const VerticalSpace(80), BottomButtons( onPressContinue: () { - provider.saveAsDraft( - onCompleted: () => {}, - uploadStep: UploadStep.price, - ); + createEventViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index b22957d460..0ad9e1ce37 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -145,10 +145,6 @@ class _OverViewScreenState extends State { const VerticalSpace(80), BottomButtons( onPressContinue: () { - provider.saveAsDraft( - onCompleted: () => {}, - uploadStep: UploadStep.overView, - ); createEventViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 52f3cd9b00..06d3bc60bf 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -114,10 +114,7 @@ class _PerksScreenState extends State { padding: const EdgeInsets.symmetric(horizontal: 20), child: BottomButtons( onPressContinue: () { - provider.saveAsDraft( - onCompleted: () => {}, - uploadStep: UploadStep.perks, - ); + createEventViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 3769de13a6..b77db24b91 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -206,10 +206,7 @@ class _PriceScreenState extends State { padding: EdgeInsets.symmetric(horizontal: 20.w), child: BottomButtons( onPressContinue: () { - provider.saveAsDraft( - onCompleted: () => {}, - uploadStep: UploadStep.price, - ); + homeViewModel.nextPage(); }, onPressSaveDraft: () { From 5bdcd92cc9fff19c42ed9fd45c15ff78512c1185 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 21 May 2024 17:13:57 +0500 Subject: [PATCH 126/158] fix: when started perks list empty --- evently/lib/evently_provider.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 6a5af201d6..afb6b1dd10 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -122,7 +122,7 @@ class EventlyProvider extends ChangeNotifier { } /// perks screen - final List _perks = []; + List _perks = []; int _selectedPerk = 0; List get perks => _perks; @@ -359,6 +359,8 @@ class EventlyProvider extends ChangeNotifier { _price = 0; _cookbookId = ''; + _perks = []; + notifyListeners(); } From a464584cc15c54dfd5cf4f7750000e1c2e5425f7 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 23 May 2024 11:02:34 +0500 Subject: [PATCH 127/158] feat: get publish event list --- evently/lib/evently_provider.dart | 11 ++-- evently/lib/models/events.dart | 2 + evently/lib/repository/repository.dart | 6 +- .../screens/event_hub/event_hub_screen.dart | 36 ++++++----- .../event_hub/event_hub_view_model.dart | 60 ++++++++----------- .../lib/screens/host_view_ticket_preview.dart | 54 +++++++++-------- .../datasources/local_datasource.dart | 15 ----- 7 files changed, 83 insertions(+), 101 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index afb6b1dd10..7e5ae92315 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -305,14 +305,15 @@ class EventlyProvider extends ChangeNotifier { return false; } scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - final eventsFromRecipe = Events.fromRecipe(recipe); - GetIt.I.get().updatePublishedEventList(events: eventsFromRecipe); - deleteEvent(); + // final eventsFromRecipe = Events.fromRecipe(recipe); + // GetIt.I.get().updatePublishedEventList(events: eventsFromRecipe); + deleteEvent(event.id); return true; } - Future deleteEvent() async { - notifyListeners(); + Future deleteEvent(int? id) async { + if (id == null) return; + await repository.deleteEvent(id); } /// send createCookBook tx message to the wallet app diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index e4d9572878..65e21b28e6 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -75,6 +75,8 @@ class Events extends Equatable { price: map[kPrice]!, listOfPerks: map[kPerks]!, step: '', + cookbookID: map[kCookBookId]!, + recipeID: map[kRecipeId]!, ); } diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 7855273e53..8fb27a50d3 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -66,7 +66,7 @@ abstract class Repository { /// This method will delete draft from the local database /// Input: [id] the id of the nft which the user wants to delete /// Output: [bool] returns whether the operation is successful or not - Future> deleteNft(int id); + Future> deleteEvent(int id); /// This method will set the input in the cache /// Input: [key] the key against which the value is to be set, [value] the value that is to be set. @@ -194,9 +194,9 @@ class RepositoryImp implements Repository { } @override - Future> deleteNft(int id) async { + Future> deleteEvent(int id) async { try { - final bool result = await localDataSource.deleteNft(id); + final bool result = await localDataSource.deleteEvents(id); return Right(result); } on Exception catch (_) { return Left(CacheFailure(LocaleKeys.something_wrong.tr())); diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 57c68d93d3..5cb4d16a27 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -76,7 +76,6 @@ class _EventHubContentState extends State { color: EventlyAppTheme.kWhite, fontFamily: kUniversalFontFamily, ); - TextStyle subTitleStyle = TextStyle( fontSize: isTablet ? 12.sp : 15, fontWeight: FontWeight.w700, @@ -134,14 +133,9 @@ class _EventHubContentState extends State { isSelected: viewModel.selectedCollectionType == CollectionType.draft, ), getButton( - title: LocaleKeys.for_sale, - onTap: () => viewModel.changeSelectedCollection(CollectionType.forSale), - isSelected: viewModel.selectedCollectionType == CollectionType.forSale, - ), - getButton( - title: LocaleKeys.history, - onTap: () => viewModel.changeSelectedCollection(CollectionType.history), - isSelected: viewModel.selectedCollectionType == CollectionType.history, + title: LocaleKeys.published, + onTap: () => viewModel.changeSelectedCollection(CollectionType.publish), + isSelected: viewModel.selectedCollectionType == CollectionType.publish, ), ], ), @@ -177,15 +171,16 @@ class _EventHubContentState extends State { viewModel.viewType == ViewType.viewGrid ? Expanded( child: BuildGridView( - eventsList: viewModel.eventForDraftList, + eventsList: viewModel.selectedCollectionType == CollectionType.draft ? viewModel.getDraftList : viewModel.getPublishList, onEmptyList: (BuildContext context) => Padding( padding: EdgeInsets.symmetric(horizontal: 20.w), child: Align( - alignment: Alignment.centerLeft, - child: Text( - LocaleKeys.no_nft_created.tr(), - style: subTitleStyle, - )), + alignment: Alignment.topLeft, + child: Text( + LocaleKeys.no_nft_created.tr(), + style: subTitleStyle, + ), + ), ), calculateBannerPrice: ({required String currency, required String price}) { return ''; @@ -194,12 +189,15 @@ class _EventHubContentState extends State { ) : Expanded( child: BuildListView( - eventsList: viewModel.eventForDraftList, + eventsList: viewModel.selectedCollectionType == CollectionType.draft ? viewModel.getDraftList : viewModel.getPublishList, onEmptyList: (BuildContext context) => Padding( padding: EdgeInsets.symmetric(horizontal: 20.w), - child: Text( - LocaleKeys.no_nft_created.tr(), - style: subTitleStyle, + child: Align( + alignment: Alignment.topLeft, + child: Text( + LocaleKeys.no_nft_created.tr(), + style: subTitleStyle, + ), ), ), ), diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 3073068c6d..8a8dfacd85 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -9,7 +9,7 @@ import 'package:flutter/cupertino.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/pylons_sdk.dart'; -enum CollectionType { draft, forSale, history } +enum CollectionType { draft, publish } enum ViewType { viewGrid, viewList } @@ -19,36 +19,26 @@ class EventHubViewModel extends ChangeNotifier { final Repository repository; - List _eventPublishedList = []; + List _draftList = []; + List _publishList = []; - List get eventPublishedList => _eventPublishedList; + List get getDraftList => _draftList; + List get getPublishList => _publishList; - List _eventForDraftList = []; - - ViewType viewType = ViewType.viewGrid; - - void updateViewType(ViewType selectedViewType) { - viewType = selectedViewType; + set setDraftList(List eventList) { + _draftList = eventList; notifyListeners(); } - List get eventForDraftList => _eventForDraftList; - - List get eventForSaleList => _eventForDraftList; - - set setEventForDraftList(List eventDraftList) { - _eventForDraftList = eventDraftList; + set setPublishList(List eventList) { + _publishList = eventList; notifyListeners(); } - set setEventPublishList(List events) { - _eventPublishedList = events; - notifyListeners(); - } + ViewType viewType = ViewType.viewGrid; - void updatePublishedEventList({required Events events}) { - _eventPublishedList.add(events); - _eventForDraftList.add(events); + void updateViewType(ViewType selectedViewType) { + viewType = selectedViewType; notifyListeners(); } @@ -63,13 +53,8 @@ class EventHubViewModel extends ChangeNotifier { notifyListeners(); break; - case CollectionType.forSale: - _selectedCollectionType = CollectionType.forSale; - notifyListeners(); - break; - - case CollectionType.history: - _selectedCollectionType = CollectionType.history; + case CollectionType.publish: + _selectedCollectionType = CollectionType.publish; notifyListeners(); break; } @@ -102,10 +87,15 @@ class EventHubViewModel extends ChangeNotifier { if (recipesList.isEmpty) { return; } + + List eventsList = []; + for (final recipe in recipesList) { - final nft = Events.fromRecipe(recipe); - _eventPublishedList.add(nft); + final events = Events.fromRecipe(recipe); + eventsList.add(events); } + + setPublishList = eventsList; } Future getDraftsList() async { @@ -120,7 +110,8 @@ class EventHubViewModel extends ChangeNotifier { } List draftEvent = getEventResponse.getOrElse(() => []); - setEventForDraftList = draftEvent; + + setDraftList = draftEvent; loading.dismiss(); @@ -134,13 +125,14 @@ class EventHubViewModel extends ChangeNotifier { } Future deleteNft(int? id) async { - final deleteNftResponse = await repository.deleteNft(id!); + final deleteNftResponse = await repository.deleteEvent(id!); if (deleteNftResponse.isLeft()) { LocaleKeys.delete_error.tr().show(); return; } - eventForDraftList.removeWhere((element) => element.id == id); + + getDraftList.removeWhere((element) => element.id == id); notifyListeners(); } diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index 8ac54606b0..cfb12e50cd 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -3,7 +3,9 @@ import 'package:evently/evently_provider.dart'; import 'package:evently/generated/locale_keys.g.dart'; import 'package:evently/main.dart'; import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; +import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; @@ -149,34 +151,35 @@ class _HostTicketPreviewState extends State { ), ], ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'SEAT', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - '6A', - style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - Text( - 'Room 3', - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ) - ], - ), - ], - ), + // Column( + // crossAxisAlignment: CrossAxisAlignment.start, + // mainAxisAlignment: MainAxisAlignment.start, + // children: [ + // Text( + // 'SEAT', + // style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + // ), + // SizedBox(height: 1.h), + // Column( + // mainAxisAlignment: MainAxisAlignment.start, + // crossAxisAlignment: CrossAxisAlignment.start, + // children: [ + // Text( + // '6A', + // style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + // ), + // Text( + // 'Room 3', + // style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + // ) + // ], + // ), + // ], + // ), ], ), ), + VerticalSpace(20.h), Padding( padding: EdgeInsets.only(left: 10.w, right: 30.h), child: Row( @@ -276,6 +279,7 @@ class _HostTicketPreviewState extends State { return; } + sl().changeSelectedCollection(CollectionType.publish); navigator.popUntil((route) { return route.settings.name == RouteUtil.kRouteEventHub; }); diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 8f60346477..97cd8acb80 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -54,11 +54,6 @@ abstract class LocalDataSource { /// Output: [int] returns id of the inserted document Future saveEvents(Events events); - /// This method will delete draft from the local database - /// Input: [id] the id of the draft which the user wants to delete - /// Output: [bool] returns whether the operation is successful or not - Future deleteNft(int id); - /// This method will delete the value from the cache /// Input: [key] the key of the value /// Output: [value] will return the value that is just removed @@ -184,16 +179,6 @@ class LocalDataSourceImpl extends LocalDataSource { } } - @override - Future deleteNft(int id) async { - try { - await database.eventsDao.delete(id); - return true; - } catch (e) { - throw CacheFailure(LocaleKeys.delete_error.tr()); - } - } - @override String deleteCacheString({required String key}) { return cacheManager.deleteString(key: key); From 8dc7e2fe179b66a64494cc21bf3de207374126a8 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 23 May 2024 11:24:42 +0500 Subject: [PATCH 128/158] feat: receipe name should be more than 8 characters --- evently/lib/evently_provider.dart | 7 +++---- evently/lib/screens/event_hub/event_hub_view_model.dart | 5 +++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 7e5ae92315..f2fcf296b6 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -11,6 +11,7 @@ import 'package:evently/models/storage_response_model.dart'; import 'package:evently/repository/repository.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/di/di.dart'; import 'package:evently/utils/enums.dart'; import 'package:evently/utils/extension_util.dart'; import 'package:evently/utils/failure/failure.dart'; @@ -18,7 +19,6 @@ import 'package:evently/widgets/loading_with_progress.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:get_it/get_it.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/low_level.dart'; import 'services/third_party_services/quick_node.dart'; @@ -66,7 +66,7 @@ class EventlyProvider extends ChangeNotifier { } checkIsOverEnable() { - setOverviewEnable = thumbnail!.isNotEmpty && eventName.isNotEmpty && hostName.isNotEmpty; + setOverviewEnable = thumbnail!.isNotEmpty && eventName.length > 8 && hostName.isNotEmpty; } ///* detail screen @@ -305,8 +305,7 @@ class EventlyProvider extends ChangeNotifier { return false; } scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - // final eventsFromRecipe = Events.fromRecipe(recipe); - // GetIt.I.get().updatePublishedEventList(events: eventsFromRecipe); + sl().updatePublishedEventList(); deleteEvent(event.id); return true; } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 8a8dfacd85..2bffc70541 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -140,4 +140,9 @@ class EventHubViewModel extends ChangeNotifier { repository.setCacheDynamicType(key: eventKey, value: events); repository.setCacheString(key: fromKey, value: kDraft); } + + updatePublishedEventList() { + getDraftsList(); + getRecipesList(); + } } From 280f9e45f4883db495b0222124aeee46e9275fd2 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 23 May 2024 11:43:04 +0500 Subject: [PATCH 129/158] feat: publish list view style --- .../screens/event_hub/event_hub_screen.dart | 6 +- .../event_hub/widgets/events_list_tile.dart | 153 ++++++++++++++++++ evently/lib/utils/constants.dart | 11 ++ evently/lib/utils/evently_app_theme.dart | 3 + evently/lib/utils/extension_util.dart | 48 ++++++ 5 files changed, 219 insertions(+), 2 deletions(-) create mode 100644 evently/lib/screens/event_hub/widgets/events_list_tile.dart diff --git a/evently/lib/screens/event_hub/event_hub_screen.dart b/evently/lib/screens/event_hub/event_hub_screen.dart index 5cb4d16a27..d1fd317b3e 100644 --- a/evently/lib/screens/event_hub/event_hub_screen.dart +++ b/evently/lib/screens/event_hub/event_hub_screen.dart @@ -6,6 +6,7 @@ import 'package:evently/models/events.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/screens/event_hub/widgets/delete_confirmation_dialog.dart'; import 'package:evently/screens/event_hub/widgets/drafts_more_bottomsheet.dart'; +import 'package:evently/screens/event_hub/widgets/events_list_tile.dart'; import 'package:evently/screens/event_hub/widgets/nfts_grid_view.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; @@ -202,7 +203,6 @@ class _EventHubContentState extends State { ), ), ), - const Spacer(), Padding(padding: EdgeInsets.symmetric(horizontal: 20.w), child: getCreateEventWidget()), ], ), @@ -283,7 +283,9 @@ class BuildListView extends StatelessWidget { child: DraftListTile(events: events, viewModel: viewModel), ); } else { - return const Placeholder(); + return NFTsListTile( + publishedEvents: events, + ); } }, ); diff --git a/evently/lib/screens/event_hub/widgets/events_list_tile.dart b/evently/lib/screens/event_hub/widgets/events_list_tile.dart new file mode 100644 index 0000000000..cbcfae5735 --- /dev/null +++ b/evently/lib/screens/event_hub/widgets/events_list_tile.dart @@ -0,0 +1,153 @@ +import 'package:cached_network_image/cached_network_image.dart'; +import 'package:easy_localization/easy_localization.dart'; +import 'package:evently/evently_provider.dart'; +import 'package:evently/main.dart'; +import 'package:evently/models/events.dart'; +import 'package:evently/utils/constants.dart'; +import 'package:evently/utils/evently_app_theme.dart'; +import 'package:evently/utils/extension_util.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/svg.dart'; +import 'package:get_it/get_it.dart'; +import 'package:shimmer_animation/shimmer_animation.dart'; + +import '../../../generated/locale_keys.g.dart'; + +class NFTsListTile extends StatelessWidget { + final Events publishedEvents; + + const NFTsListTile({super.key, required this.publishedEvents}); + + EventlyProvider get _easelProvider => GetIt.I.get(); + + void buildBottomSheet({required BuildContext context}) { + + } + + Widget getPublishedCard({required BuildContext context}) { + return DecoratedBox( + decoration: BoxDecoration( + color: EventlyAppTheme.kWhite, + boxShadow: [ + BoxShadow( + color: Colors.black.withOpacity(0.3), + offset: const Offset(0.0, 1.0), + blurRadius: 4.0, + ), + ], + ), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h), + child: Row( + children: [ + SizedBox( + height: 45.h, + width: 45.w, + child: NftTypeBuilder( + onImage: (context) => buildCachedNetworkImage(publishedEvents.thumbnail), + ), + ), + SizedBox( + width: 10.w, + ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + publishedEvents.eventName, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: EventlyAppTheme.titleStyle.copyWith(fontSize: isTablet ? 13.sp : 18.sp), + ), + SizedBox( + height: 6.h, + ), + Container( + padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(1.h), + color: EventlyAppTheme.kDarkGreen, + ), + child: Text( + LocaleKeys.published.tr(), + style: EventlyAppTheme.titleStyle.copyWith(color: EventlyAppTheme.kWhite, fontSize: isTablet ? 8.sp : 11.sp), + ), + ) + ], + ), + ), + SizedBox( + width: 10.w, + ), + InkWell( + + onTap: () => buildBottomSheet(context: context), + child: Padding( + padding: EdgeInsets.all(4.0.w), + child: SvgPicture.asset(SVGUtils.kSvgMoreOption), + ), + ), + SizedBox( + width: 10.w, + ), + ], + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + if (publishedEvents.price.isNotEmpty && double.parse(publishedEvents.price) > 0) + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Card( + elevation: 5, + margin: EdgeInsets.zero, + child: ClipRRect( + child: Banner( + key: Key("${publishedEvents.denom.getCoinWithProperDenomination(publishedEvents.price)} ${publishedEvents.denom.getAbbrev()}"), + color: EventlyAppTheme.kDarkGreen, + location: BannerLocation.topEnd, + message: "${publishedEvents.denom.getCoinWithProperDenomination(publishedEvents.price)} ${publishedEvents.denom.getAbbrev()}", + child: getPublishedCard(context: context), + ), + ), + ), + ) + else + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: getPublishedCard(context: context), + ), + ], + ); + } + + CachedNetworkImage buildCachedNetworkImage(String url) { + return CachedNetworkImage( + fit: BoxFit.fill, + imageUrl: url, + errorWidget: (a, b, c) => const Center(child: Icon(Icons.error_outline)), + placeholder: (context, url) => Shimmer(color: EventlyAppTheme.cardBackground, child: const SizedBox.expand()), + ); + } +} + +class NftTypeBuilder extends StatelessWidget { + final WidgetBuilder onImage; + + const NftTypeBuilder({ + super.key, + required this.onImage, + }); + + @override + Widget build(BuildContext context) { + return onImage(context); + } +} diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index b6946f8251..f5715190db 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -94,3 +94,14 @@ class PngUtils { static const kPhantom = "assets/images/phantom.png"; static const kDottedLine = "assets/images/dotted_line.png"; } + +/// Currency ABRR +const String kEmoneyAbb = "EEUR"; +const String kAGoricAbb = "run"; +const String kPYLNAbbrevation = 'PYLN'; +const String kStripeUSDABR = 'USD'; +const String kAgoricAbr = "RUN"; +const String kAtomAbr = "ATOM"; +const String kLunaAbr = "Luna"; +const String kEthereumAbr = "ETH"; + diff --git a/evently/lib/utils/evently_app_theme.dart b/evently/lib/utils/evently_app_theme.dart index e5020bf64a..9052ff7beb 100644 --- a/evently/lib/utils/evently_app_theme.dart +++ b/evently/lib/utils/evently_app_theme.dart @@ -27,6 +27,9 @@ class EventlyAppTheme { static const Color kLightRed = Color(0xFFEF4421); static const Color kDarkGreen = Color(0xFF3A8977); + static Color cardBackground = const Color(0xFFC4C4C4).withOpacity(0.2); + + static const String universalSansFamily = "UniversalSans"; static ThemeData theme(BuildContext context) => ThemeData( diff --git a/evently/lib/utils/extension_util.dart b/evently/lib/utils/extension_util.dart index 5cba9e0363..8be68412ea 100644 --- a/evently/lib/utils/extension_util.dart +++ b/evently/lib/utils/extension_util.dart @@ -1,7 +1,10 @@ import 'package:evently/main.dart'; +import 'package:evently/models/events.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'constants.dart'; + extension NavigatorKey on GlobalKey { void showMsg({required String message}) { ScaffoldMessenger.maybeOf(currentState!.context) @@ -63,3 +66,48 @@ extension ScaffoldStateHelper on ScaffoldMessengerState { } } +extension GetAbbrev on String { + String getAbbrev() { + switch (this) { + case kAgoricSymbol: + return kAgoricAbr; + case kPylonSymbol: + return kPYLNAbbrevation; + case kUsdSymbol: + return kStripeUSDABR; + case kEuroSymbol: + return kEmoneyAbb; + case kAtomSymbol: + return kAtomAbr; + case kEthereumSymbol: + return kEthereumAbr; + default: + return kPYLNAbbrevation; + } + } +} + +extension GetCoinWithProperDenomination on String { + String getCoinWithProperDenomination(String amount) { + if (this == kUsdSymbol) { + return (double.parse(amount) / kBigIntBase).toStringAsFixed(2); + } else if (this == kPylonSymbol) { + return (double.parse(amount) / kBigIntBase).toStringAsFixed(0); + } else { + return (double.parse(amount) / kEthIntBase).toStringAsFixed(2); + } + } + + String getEaselInputCoinWithDenomination(String amount) { + if (this == kUsdSymbol) { + return double.parse(amount).toStringAsFixed(2); + } else if (this == kPylonSymbol) { + return double.parse(amount).toStringAsFixed(0); + } else { + return double.parse(amount).toStringAsFixed(2); + } + } +} + + + From 4681a77aa505a71bb741ae1ff301874a735a28f9 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 23 May 2024 12:41:24 +0500 Subject: [PATCH 130/158] feat: publish view in pylons wallet app --- .../handlers/create_recipe_handler.dart | 2 +- wallet/lib/model/event.dart | 72 +++-- wallet/lib/model/nft.dart | 269 ++++-------------- wallet/lib/utils/route_util.dart | 2 +- 4 files changed, 113 insertions(+), 232 deletions(-) diff --git a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart index 259e03eecb..993016d65b 100644 --- a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart +++ b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart @@ -39,7 +39,7 @@ class CreateRecipeHandler implements BaseHandler { final msgObj = pylons.MsgCreateRecipe.create()..mergeFromProto3Json(jsonMap); if (msgObj.cookbookId.contains('Evently')) { - final events = await Events.fromRecipeId(msgObj.cookbookId, msgObj.id); + final events = await Events.eventFromRecipeId(msgObj.cookbookId, msgObj.id); if (events != null) { await navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); } diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index 60d41f4d97..7ad8af98c1 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -8,7 +8,28 @@ import '../modules/Pylonstech.pylons.pylons/module/client/pylons/recipe.pb.dart' enum FreeDrop { yes, no, unselected } class Events extends Equatable { + final int? id; + final String recipeID; + final String eventName; + final String hostName; + final String thumbnail; + final String startDate; + final String endDate; + final String startTime; + final String endTime; + final String location; + final String description; + final String numberOfTickets; + final String price; + final String listOfPerks; + final String isFreeDrops; + final String cookbookID; + final String step; + final String denom; + const Events({ + this.id, + ///* overview data this.eventName = '', this.hostName = '', @@ -29,31 +50,18 @@ class Events extends Equatable { this.numberOfTickets = '0', this.price = '', this.isFreeDrops = 'unselected', + this.denom = '', ///* other this.cookbookID = '', this.recipeID = '', - }); - final String eventName; - final String hostName; - final String thumbnail; - final String startDate; - final String endDate; - final String startTime; - final String endTime; - final String location; - final String description; - final String numberOfTickets; - final String price; - final String listOfPerks; - final String isFreeDrops; - final String cookbookID; - final String recipeID; + ///* for tracking where its save as draft + this.step = '', + }); factory Events.fromRecipe(Recipe recipe) { - Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); - + final Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); return Events( eventName: map[kEventName]!, hostName: map[kEventHostName]!, @@ -67,6 +75,8 @@ class Events extends Equatable { numberOfTickets: map[kNumberOfTickets]!, price: map[kPrice]!, listOfPerks: map[kPerks]!, + cookbookID: map[kCookBookId]!, + recipeID: map[kRecipeId]!, ); } @@ -83,9 +93,12 @@ class Events extends Equatable { case kEndTime: case kLocation: case kDescription: - case kPerks: case kNumberOfTickets: case kPrice: + case kPerks: + case kFreeDrop: + case kCookBookId: + case kRecipeId: attributeValues[attribute.key] = attribute.value; break; default: @@ -97,14 +110,15 @@ class Events extends Equatable { } @override - List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID]; + List get props => + [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID, step]; @override String toString() { - return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, tradePercentage: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID}'; + return 'Event{eventName: $eventName, hostName: $hostName, thumbnail: $thumbnail, startDate: $startDate, endDate: $endDate, startTime: $startTime, endTime: $endTime, location: $location, description: $description, numberOfTickets: $numberOfTickets, price: $price, listOfPerks: $listOfPerks, isFreeDrop: $isFreeDrops, cookbookID: $cookbookID, recipeID: $recipeID, step: $step}'; } - static Future fromRecipeId(String cookbookId, String recipeId) async { + static Future eventFromRecipeId(String cookbookId, String recipeId) async { final walletsStore = GetIt.I.get(); final recipeEither = await walletsStore.getRecipe(cookbookId, recipeId); @@ -203,10 +217,10 @@ const kCookBookId = "kCookBookId"; const kVersion = "v0.2.0"; const kUpylon = "upylon"; const kPylonSymbol = 'upylon'; -const String transferFeeAmount = '1'; +const transferFeeAmount = '1'; const kEventlyEvent = "Evently_Event"; const kExtraInfo = "extraInfo"; -const String costPerBlock = '0'; +const costPerBlock = '0'; class PerksModel { PerksModel({required this.name, required this.description}); @@ -224,6 +238,16 @@ class PerksModel { description: description, ); + factory PerksModel.fromJson(Map map) => PerksModel(name: map['name']!, description: map['description']!); + + Map toJson() { + final Map map = {}; + map['name'] = name; + map['description'] = description; + + return map; + } + @override String toString() { return 'PerksModel{name: $name, description: $description}'; diff --git a/wallet/lib/model/nft.dart b/wallet/lib/model/nft.dart index 1d0e7f153f..59bf9bf03d 100644 --- a/wallet/lib/model/nft.dart +++ b/wallet/lib/model/nft.dart @@ -95,8 +95,7 @@ class NFT extends Equatable { } static Future fromItem(Item item) async { - if (item.strings.where((strKeyValue) => strKeyValue.key == kName).isEmpty && - item.strings.where((strKeyValue) => strKeyValue.key == kNFTURL).isEmpty) { + if (item.strings.where((strKeyValue) => strKeyValue.key == kName).isEmpty && item.strings.where((strKeyValue) => strKeyValue.key == kNFTURL).isEmpty) { return null; } final walletsStore = GetIt.I.get(); @@ -105,63 +104,27 @@ class NFT extends Equatable { recipeID: item.recipeId, name: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kName).value, url: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kNFTURL).value.changeDomain(), - thumbnailUrl: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kThumbnailUrl, - orElse: () => StringKeyValue(key: kThumbnailUrl, value: "")) - .value - .changeDomain(), + thumbnailUrl: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kThumbnailUrl, orElse: () => StringKeyValue(key: kThumbnailUrl, value: "")).value.changeDomain(), description: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kDescription).value, fileSize: getFileSize(item), - creator: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kCreator, - orElse: () => StringKeyValue(key: kCreator, value: "")) - .value, - fileExtension: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kCreator, - orElse: () => StringKeyValue(key: kFileExtension, value: "")) - .value, - cid: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kCID, orElse: () => StringKeyValue(key: kCID, value: "")) - .value, - appType: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kAppType, - orElse: () => StringKeyValue(key: kAppType, value: "")) - .value, - width: item.longs - .firstWhere((longKeyValue) => longKeyValue.key == kWidth, - orElse: () => LongKeyValue(key: kWidth, value: Int64())) - .value - .toString(), - height: item.longs - .firstWhere((longKeyValue) => longKeyValue.key == kHeight, - orElse: () => LongKeyValue(key: kHeight, value: Int64())) - .value - .toString(), + creator: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kCreator, orElse: () => StringKeyValue(key: kCreator, value: "")).value, + fileExtension: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kCreator, orElse: () => StringKeyValue(key: kFileExtension, value: "")).value, + cid: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kCID, orElse: () => StringKeyValue(key: kCID, value: "")).value, + appType: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kAppType, orElse: () => StringKeyValue(key: kAppType, value: "")).value, + width: item.longs.firstWhere((longKeyValue) => longKeyValue.key == kWidth, orElse: () => LongKeyValue(key: kWidth, value: Int64())).value.toString(), + height: item.longs.firstWhere((longKeyValue) => longKeyValue.key == kHeight, orElse: () => LongKeyValue(key: kHeight, value: Int64())).value.toString(), itemID: item.id, cookbookID: item.cookbookId, owner: owner, ibcCoins: IBCCoins.upylon, assetType: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kNftFormat).value.toAssetTypeEnum(), - duration: item.longs - .firstWhere((longKeyValue) => longKeyValue.key == kDuration, - orElse: () => LongKeyValue(key: kDuration, value: Int64())) - .value - .toInt() - .toSeconds(), - hashtags: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kHashtags, - orElse: () => StringKeyValue(key: kHashtags, value: "")) - .value, - realWorld: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kRealWorld, - orElse: () => StringKeyValue(key: kRealWorld, value: "false")) - .value == - "true", + duration: item.longs.firstWhere((longKeyValue) => longKeyValue.key == kDuration, orElse: () => LongKeyValue(key: kDuration, value: Int64())).value.toInt().toSeconds(), + hashtags: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kHashtags, orElse: () => StringKeyValue(key: kHashtags, value: "")).value, + realWorld: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kRealWorld, orElse: () => StringKeyValue(key: kRealWorld, value: "false")).value == "true", ); } - static String getFileSize(Item item) => - item.strings.firstWhereOrNull((strKeyValue) => strKeyValue.key == kFileSize)?.value ?? ""; + static String getFileSize(Item item) => item.strings.firstWhereOrNull((strKeyValue) => strKeyValue.key == kFileSize)?.value ?? ""; static Future fromTrade(Trade trade) async { final walletsStore = GetIt.I.get(); @@ -176,38 +139,15 @@ class NFT extends Equatable { type: NftType.TYPE_TRADE, name: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kName).value, url: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kNFTURL).value.changeDomain(), - thumbnailUrl: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kThumbnailUrl, - orElse: () => StringKeyValue(key: kThumbnailUrl, value: "")) - .value - .changeDomain(), + thumbnailUrl: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kThumbnailUrl, orElse: () => StringKeyValue(key: kThumbnailUrl, value: "")).value.changeDomain(), description: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kDescription).value, fileSize: getFileSize(item), - creator: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kCreator, - orElse: () => StringKeyValue(key: kCreator, value: "")) - .value, - fileExtension: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kFileExtension, - orElse: () => StringKeyValue(key: kCreator, value: "")) - .value, - cid: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kCID, orElse: () => StringKeyValue(key: kCID, value: "")) - .value, - appType: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kAppType, - orElse: () => StringKeyValue(key: kAppType, value: "")) - .value, - width: item.longs - .firstWhere((longKeyValue) => longKeyValue.key == kWidth, - orElse: () => LongKeyValue(key: kWidth, value: Int64())) - .value - .toString(), - height: item.longs - .firstWhere((longKeyValue) => longKeyValue.key == kHeight, - orElse: () => LongKeyValue(key: kHeight, value: Int64())) - .value - .toString(), + creator: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kCreator, orElse: () => StringKeyValue(key: kCreator, value: "")).value, + fileExtension: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kFileExtension, orElse: () => StringKeyValue(key: kCreator, value: "")).value, + cid: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kCID, orElse: () => StringKeyValue(key: kCID, value: "")).value, + appType: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kAppType, orElse: () => StringKeyValue(key: kAppType, value: "")).value, + width: item.longs.firstWhere((longKeyValue) => longKeyValue.key == kWidth, orElse: () => LongKeyValue(key: kWidth, value: Int64())).value.toString(), + height: item.longs.firstWhere((longKeyValue) => longKeyValue.key == kHeight, orElse: () => LongKeyValue(key: kHeight, value: Int64())).value.toString(), price: trade.coinInputs.first.coins.first.amount, denom: trade.coinInputs.first.coins.first.denom, itemID: item.id, @@ -216,21 +156,9 @@ class NFT extends Equatable { tradeID: trade.id.toString(), ibcCoins: trade.coinInputs.first.coins.first.denom.toIBCCoinsEnum(), assetType: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kNftFormat).value.toAssetTypeEnum(), - duration: item.longs - .firstWhere((longKeyValue) => longKeyValue.key == kDuration, - orElse: () => LongKeyValue(key: kDuration, value: Int64())) - .value - .toInt() - .toSeconds(), - hashtags: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kHashtags, - orElse: () => StringKeyValue(key: kHashtags, value: "")) - .value, - realWorld: item.strings - .firstWhere((strKeyValue) => strKeyValue.key == kRealWorld, - orElse: () => StringKeyValue(key: kRealWorld, value: "false")) - .value == - "true", + duration: item.longs.firstWhere((longKeyValue) => longKeyValue.key == kDuration, orElse: () => LongKeyValue(key: kDuration, value: Int64())).value.toInt().toSeconds(), + hashtags: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kHashtags, orElse: () => StringKeyValue(key: kHashtags, value: "")).value, + realWorld: item.strings.firstWhere((strKeyValue) => strKeyValue.key == kRealWorld, orElse: () => StringKeyValue(key: kRealWorld, value: "false")).value == "true", ); } @@ -247,88 +175,31 @@ class NFT extends Equatable { type: NftType.TYPE_RECIPE, recipeID: recipe.id, cookbookID: recipe.cookbookId, - name: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kName, orElse: () => StringParam()) - .value ?? - "", - url: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kNFTURL, orElse: () => StringParam()) - .value - .changeDomain() ?? - "", - thumbnailUrl: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kThumbnailUrl, orElse: () => StringParam()) - .value - .changeDomain() ?? - "", - description: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kDescription, orElse: () => StringParam()) - .value ?? - "", - fileSize: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kFileSize, orElse: () => StringParam()) - .value ?? - "", - cid: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kCID, orElse: () => StringParam()) - .value ?? - "", - appType: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kAppType, orElse: () => StringParam()) - .value ?? - "", - creator: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kCreator, orElse: () => StringParam()) - .value ?? - "", - fileExtension: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kFileExtension, orElse: () => StringParam()) - .value ?? - "", - width: recipe.entries.itemOutputs.firstOrNull?.longs - .firstWhere((longKeyValue) => longKeyValue.key == kWidth, orElse: () => LongParam()) - .weightRanges - .firstOrNull - ?.upper - .toString() ?? - "0", - height: recipe.entries.itemOutputs.firstOrNull?.longs - .firstWhere((longKeyValue) => longKeyValue.key == kHeight, orElse: () => LongParam()) - .weightRanges - .firstOrNull - ?.upper - .toString() ?? - "0", + name: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kName, orElse: () => StringParam()).value ?? "", + url: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kNFTURL, orElse: () => StringParam()).value.changeDomain() ?? "", + thumbnailUrl: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kThumbnailUrl, orElse: () => StringParam()).value.changeDomain() ?? "", + description: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kDescription, orElse: () => StringParam()).value ?? "", + fileSize: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kFileSize, orElse: () => StringParam()).value ?? "", + cid: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kCID, orElse: () => StringParam()).value ?? "", + appType: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kAppType, orElse: () => StringParam()).value ?? "", + creator: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kCreator, orElse: () => StringParam()).value ?? "", + fileExtension: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kFileExtension, orElse: () => StringParam()).value ?? "", + width: recipe.entries.itemOutputs.firstOrNull?.longs.firstWhere((longKeyValue) => longKeyValue.key == kWidth, orElse: () => LongParam()).weightRanges.firstOrNull?.upper.toString() ?? "0", + height: recipe.entries.itemOutputs.firstOrNull?.longs.firstWhere((longKeyValue) => longKeyValue.key == kHeight, orElse: () => LongParam()).weightRanges.firstOrNull?.upper.toString() ?? "0", amountMinted: int.parse(recipe.entries.itemOutputs.firstOrNull?.amountMinted.toString() ?? "0"), quantity: recipe.entries.itemOutputs.firstOrNull?.quantity.toInt() ?? 0, tradePercentage: royalties == "0" ? kNone : "$royalties%", price: recipe.coinInputs.firstOrNull?.coins.firstOrNull?.amount ?? "0", denom: recipe.coinInputs.firstOrNull?.coins.firstOrNull?.denom ?? "", ibcCoins: recipe.coinInputs.firstOrNull?.coins.firstOrNull?.denom.toIBCCoinsEnum() ?? IBCCoins.upylon, - assetType: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kNftFormat, orElse: () => StringParam()) - .value - .toAssetTypeEnum() ?? - AssetType.Image, - duration: recipe.entries.itemOutputs.firstOrNull?.longs - .firstWhere((longKeyValue) => longKeyValue.key == kDuration, orElse: () => LongParam()) - .weightRanges - .firstOrNull - ?.upper - .toInt() - .toSeconds() ?? - "0", + assetType: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kNftFormat, orElse: () => StringParam()).value.toAssetTypeEnum() ?? AssetType.Image, + duration: + recipe.entries.itemOutputs.firstOrNull?.longs.firstWhere((longKeyValue) => longKeyValue.key == kDuration, orElse: () => LongParam()).weightRanges.firstOrNull?.upper.toInt().toSeconds() ?? + "0", createdAt: createdAt, isEnabled: recipe.enabled, - hashtags: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kHashtags, orElse: () => StringParam()) - .value ?? - "", - realWorld: recipe.entries.itemOutputs.firstOrNull?.strings - .firstWhere((strKeyValue) => strKeyValue.key == kRealWorld, - orElse: () => StringParam(key: kRealWorld, value: "false")) - .value == - "true", + hashtags: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kHashtags, orElse: () => StringParam()).value ?? "", + realWorld: recipe.entries.itemOutputs.firstOrNull?.strings.firstWhere((strKeyValue) => strKeyValue.key == kRealWorld, orElse: () => StringParam(key: kRealWorld, value: "false")).value == "true", ); } @@ -349,20 +220,6 @@ class NFT extends Equatable { return NFT.fromRecipe(recipeEither.toOption().toNullable()!); } - - static Future eventFromRecipeId(String cookbookId, String recipeId) async { - final walletsStore = GetIt.I.get(); - final recipeEither = await walletsStore.getRecipe(cookbookId, recipeId); - - if (recipeEither.isLeft()) { - return null; - } - - return NFT.fromRecipe(recipeEither.toOption().toNullable()!); - } - - - factory NFT.fromJson(Map json) { return NFT( name: json['name'].toString(), @@ -392,30 +249,30 @@ class NFT extends Equatable { } Map toJson() => { - "name" : name, - "type" : type.name, - "url" : url, - "thumbnailUrl" : thumbnailUrl, - "description" : description, - "fileSize" : fileSize, - "creator" : creator, - "fileExtension" : fileExtension, - "cid" : cid, - "appType": appType, - "width" : width, - "height" : height, - "price" : price, - "denom" : denom, - "itemID" : itemID, - "cookbookID": cookbookID, - "owner" : owner, - "tradeID": tradeID, - "ibcCoins": ibcCoins.name, - "assetType" : assetType.name, - "duration" : duration, - "hashtags" : hashtags, - "realWorld" : realWorld, - }; + "name": name, + "type": type.name, + "url": url, + "thumbnailUrl": thumbnailUrl, + "description": description, + "fileSize": fileSize, + "creator": creator, + "fileExtension": fileExtension, + "cid": cid, + "appType": appType, + "width": width, + "height": height, + "price": price, + "denom": denom, + "itemID": itemID, + "cookbookID": cookbookID, + "owner": owner, + "tradeID": tradeID, + "ibcCoins": ibcCoins.name, + "assetType": assetType.name, + "duration": duration, + "hashtags": hashtags, + "realWorld": realWorld, + }; @override List get props => [ diff --git a/wallet/lib/utils/route_util.dart b/wallet/lib/utils/route_util.dart index e654a5de99..9ed4204b75 100644 --- a/wallet/lib/utils/route_util.dart +++ b/wallet/lib/utils/route_util.dart @@ -114,7 +114,7 @@ class RouteUtil { case Routes.transactionHistory: return createRoute(const TransactionHistoryScreen()); case Routes.eventView: - if (settings.arguments != null && settings.arguments is NFT) { + if (settings.arguments != null && settings.arguments is Events) { return createRoute(EventPassViewScreen( key: ValueKey(settings.arguments), events: settings.arguments as Events, From 09c33e9d34401dae76cc491e2576f985032f432e Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 23 May 2024 15:11:47 +0500 Subject: [PATCH 131/158] evently implmentation on the wallet side for Events class --- easel/lib/utils/extension_util.dart | 2 +- evently/lib/evently_provider.dart | 3 +- evently/lib/models/events.dart | 1 - wallet/assets/images/svg/diamond.svg | 3 + wallet/lib/model/event.dart | 85 +++-------------- wallet/lib/pages/events/events_screen.dart | 103 +++++++++++++++++---- wallet/lib/utils/constants.dart | 2 + 7 files changed, 103 insertions(+), 96 deletions(-) create mode 100644 wallet/assets/images/svg/diamond.svg diff --git a/easel/lib/utils/extension_util.dart b/easel/lib/utils/extension_util.dart index 17acada114..720ca890f2 100644 --- a/easel/lib/utils/extension_util.dart +++ b/easel/lib/utils/extension_util.dart @@ -232,7 +232,7 @@ extension GetCoinWithProperDenomination on String { } } - String getEaselInputCoinWithDenomination(String amount) { + String getEaselInputCoinWithDenomination(String amount) { if (this == kUsdSymbol) { return double.parse(amount).toStringAsFixed(2); } else if (this == kPylonSymbol) { diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index f2fcf296b6..49839808dc 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -283,7 +283,7 @@ class EventlyProvider extends ChangeNotifier { description: description, numberOfTickets: numberOfTickets.toString(), price: price.toString(), - listOfPerks: perks.join(','), + listOfPerks: perks.map((e) => jsonEncode(e)).toList().toString(), cookbookID: _cookbookId!, recipeID: _recipeId, step: '', @@ -294,7 +294,6 @@ class EventlyProvider extends ChangeNotifier { recipeId: _recipeId, isFreeDrop: isFreeDrop, symbol: selectedDenom.symbol, - perksList: perks, price: price.toString(), ); diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 65e21b28e6..b9d32b2f1c 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -125,7 +125,6 @@ extension CreateRecipe on Events { required String recipeId, required FreeDrop isFreeDrop, required String symbol, - required List perksList, required String price, }) { return Recipe( diff --git a/wallet/assets/images/svg/diamond.svg b/wallet/assets/images/svg/diamond.svg new file mode 100644 index 0000000000..4e874f6959 --- /dev/null +++ b/wallet/assets/images/svg/diamond.svg @@ -0,0 +1,3 @@ + + + diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index 7ad8af98c1..76944bbe48 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -1,8 +1,7 @@ +import 'dart:convert'; import 'package:equatable/equatable.dart'; -import 'package:fixnum/fixnum.dart'; import 'package:get_it/get_it.dart'; import 'package:pylons_wallet/stores/wallet_store.dart'; -import '../modules/Pylonstech.pylons.pylons/module/client/cosmos/base/v1beta1/coin.pb.dart'; import '../modules/Pylonstech.pylons.pylons/module/client/pylons/recipe.pb.dart'; enum FreeDrop { yes, no, unselected } @@ -21,7 +20,7 @@ class Events extends Equatable { final String description; final String numberOfTickets; final String price; - final String listOfPerks; + final List? listOfPerks; final String isFreeDrops; final String cookbookID; final String step; @@ -44,7 +43,7 @@ class Events extends Equatable { this.description = '', ///* perks - this.listOfPerks = '', + this.listOfPerks, ///* price this.numberOfTickets = '0', @@ -62,6 +61,12 @@ class Events extends Equatable { factory Events.fromRecipe(Recipe recipe) { final Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + + final List listOfPerks = []; + jsonDecode(map[kPerks]!).map((jsonMap) { + listOfPerks.add(PerksModel.fromJson(jsonMap as Map)); + }).toList(); + return Events( eventName: map[kEventName]!, hostName: map[kEventHostName]!, @@ -74,7 +79,7 @@ class Events extends Equatable { description: map[kDescription]!, numberOfTickets: map[kNumberOfTickets]!, price: map[kPrice]!, - listOfPerks: map[kPerks]!, + listOfPerks: listOfPerks, cookbookID: map[kCookBookId]!, recipeID: map[kRecipeId]!, ); @@ -130,74 +135,6 @@ class Events extends Equatable { } } -extension CreateRecipe on Events { - Recipe createRecipe({ - required String cookbookId, - required String recipeId, - required FreeDrop isFreeDrop, - required String symbol, - required List perksList, - required String price, - }) { - return Recipe( - cookbookId: cookbookId, - id: recipeId, - nodeVersion: Int64(1), - name: eventName.trim(), - description: description.trim(), - version: kVersion, - coinInputs: [ - if (isFreeDrop == FreeDrop.yes) - CoinInput() - else - CoinInput( - coins: [Coin(amount: price, denom: symbol)], - ) - ], - itemInputs: [], - costPerBlock: Coin(denom: kUpylon, amount: costPerBlock), - entries: EntriesList( - coinOutputs: [], - itemOutputs: [ - ItemOutput( - id: kEventlyEvent, - doubles: [], - longs: [], - strings: [ - StringParam(key: kEventName, value: eventName.trim()), - StringParam(key: kEventHostName, value: hostName.trim()), - StringParam(key: kThumbnail, value: thumbnail.trim()), - StringParam(key: kStartDate, value: startDate.trim()), - StringParam(key: kEndDate, value: endDate.trim()), - StringParam(key: kStartTime, value: startTime.trim()), - StringParam(key: kEndTime, value: endTime.trim()), - StringParam(key: kLocation, value: location.trim()), - StringParam(key: kDescription, value: description.trim()), - StringParam(key: kNumberOfTickets, value: numberOfTickets.trim()), - StringParam(key: kPrice, value: price.trim()), - StringParam(key: kPerks, value: listOfPerks.trim()), - StringParam(key: kFreeDrop, value: isFreeDrops), - StringParam(key: kCookBookId, value: cookbookID), - StringParam(key: kRecipeId, value: recipeID), - ], - mutableStrings: [], - transferFee: [Coin(denom: kPylonSymbol, amount: transferFeeAmount)], - tradeable: true, - amountMinted: Int64(), - ), - ], - itemModifyOutputs: [], - ), - outputs: [ - WeightedOutputs(entryIds: [kEventlyEvent], weight: Int64(1)) - ], - blockInterval: Int64(), - enabled: true, - extraInfo: kExtraInfo, - ); - } -} - /// Event String keys const kEventName = "kEventName"; const kEventHostName = "kEventHostName"; @@ -238,7 +175,7 @@ class PerksModel { description: description, ); - factory PerksModel.fromJson(Map map) => PerksModel(name: map['name']!, description: map['description']!); + factory PerksModel.fromJson(Map map) => PerksModel(name: map['name']!.toString(), description: map['description']!.toString()); Map toJson() { final Map map = {}; diff --git a/wallet/lib/pages/events/events_screen.dart b/wallet/lib/pages/events/events_screen.dart index c938c18544..c437035cf2 100644 --- a/wallet/lib/pages/events/events_screen.dart +++ b/wallet/lib/pages/events/events_screen.dart @@ -1,7 +1,10 @@ +import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; +import 'package:pylons_wallet/components/space_widgets.dart'; import 'package:pylons_wallet/utils/constants.dart'; +import 'package:shimmer_animation/shimmer_animation.dart'; import '../../model/event.dart'; @@ -49,60 +52,124 @@ class _EventPassViewScreenState extends State { body: Column( children: [ Container( + margin: EdgeInsets.symmetric(horizontal: 20.w), + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), decoration: BoxDecoration(color: AppColors.kBlue), child: Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text(widget.events.eventName), + Text( + widget.events.eventName, + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 25.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), + VerticalSpace(20.h), Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Date'), - Text(widget.events.startDate), + Text( + 'Date', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + widget.events.startDate, + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), ], ), Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Time'), - Text(widget.events.startDate), + Text( + 'Time', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + widget.events.startDate, + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), ], ) ], ), + VerticalSpace(20.h), Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('LOCATION'), - Text(widget.events.location), + Text( + 'LOCATION', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + widget.events.location, + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), ], ), Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('SEAT'), - Text("no seat"), + Text( + 'SEAT', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + "no seat", + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), ], ) ], ), + VerticalSpace(20.h), Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Date'), - Text(widget.events.startDate), + Text( + 'PERKS', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + SizedBox(height: 1.h), + Row( + children: [ + SvgPicture.asset(kDiamondIcon), + SizedBox(width: 5.w), + Text( + 'x ${widget.events.listOfPerks?.length}', + style: TextStyle(fontSize: 15.sp, color: AppColors.kWhite, fontWeight: FontWeight.bold), + ), + SizedBox(width: 5.w), + Text( + 'Redeem', + style: TextStyle(fontSize: 15.sp, color: AppColors.kGreenText, fontWeight: FontWeight.bold), + ) + ], + ) ], ), - Column( - children: [ - Text('Time'), - Text(widget.events.startDate), - ], - ) ], - ) + ), ], ), + ), + VerticalSpace(20.h), + CachedNetworkImage( + fit: BoxFit.fill, + imageUrl: widget.events.thumbnail, + errorWidget: (a, b, c) => const Center( + child: Icon( + Icons.error_outline, + color: AppColors.kWhite, + )), + placeholder: (context, url) => Shimmer(color: AppColors.kLightGray, child: const SizedBox.expand()), ) ], ), diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index ecde213025..7079f3a522 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -78,6 +78,7 @@ class AppColors { static Color kGreyColor = const Color.fromRGBO(141, 140, 140, 1); static Color kTransparentColor = Colors.transparent; static Color kGrey = Colors.grey; + static const Color kGreenText = Color(0xFF14FB00); } const double kIconSize = 24.0; @@ -333,6 +334,7 @@ const recipeIdKey = "recipeId"; /// Assets +const kDiamondIcon = "assets/images/svg/diamond.svg"; const kAlertIcon = "assets/images/icons/alert.svg"; const kUploadErrorIcon = "assets/images/icons/upload_error_background.svg"; const kSvgCloseButton = 'assets/images/svg/close_button.svg'; From c7fc3b8eba4a970218b7db8fd26e2cde9dec9161 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 23 May 2024 16:42:09 +0500 Subject: [PATCH 132/158] fix: flow retesting and fixed --- evently/lib/evently_provider.dart | 15 +++--- evently/lib/repository/repository.dart | 15 ++++++ .../event_hub/event_hub_view_model.dart | 8 ++-- .../widgets/delete_confirmation_dialog.dart | 2 +- .../event_hub/widgets/events_list_tile.dart | 5 +- .../datasources/local_datasource.dart | 35 ++++++++++++-- .../third_party_services/database.g.dart | 47 +++++++++++++++++-- .../third_party_services/event_dao.dart | 27 +++++++++-- 8 files changed, 129 insertions(+), 25 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 49839808dc..2fac808a01 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -272,6 +272,7 @@ class EventlyProvider extends ChangeNotifier { _recipeId = repository.autoGenerateEventlyId(); final event = Events( + id: id, eventName: eventName, hostName: hostName, thumbnail: thumbnail!, @@ -304,8 +305,8 @@ class EventlyProvider extends ChangeNotifier { return false; } scaffoldMessengerState?.show(message: LocaleKeys.recipe_created.tr()); - sl().updatePublishedEventList(); - deleteEvent(event.id); + await sl().updatePublishedEventList(); + await deleteEvent(event.id); return true; } @@ -395,19 +396,19 @@ class EventlyProvider extends ChangeNotifier { switch (uploadStep) { case UploadStep.overView: - await repository.saveEvents(saveEvent); + await repository.updateEvent(saveEvent); break; case UploadStep.detail: - await repository.saveFromDetail(saveEvent); + await repository.updateEvent(saveEvent); break; case UploadStep.perks: - await repository.saveFromPerks(saveEvent); + await repository.updateEvent(saveEvent); break; case UploadStep.price: - await repository.saveEventFromPrice(saveEvent); + await repository.updateEvent(saveEvent); break; case UploadStep.none: - // TODO: Handle this case. + break; } onCompleted(); diff --git a/evently/lib/repository/repository.dart b/evently/lib/repository/repository.dart index 8fb27a50d3..2ba326306b 100644 --- a/evently/lib/repository/repository.dart +++ b/evently/lib/repository/repository.dart @@ -96,6 +96,8 @@ abstract class Repository { Future> saveFromPerks(Events events); Future> saveEventFromPrice(Events events); + + Future> updateEvent(Events events); } @LazySingleton(as: Repository) @@ -266,4 +268,17 @@ class RepositoryImp implements Repository { return Left(CacheFailure(LocaleKeys.get_error.tr())); } } + + @override + Future> updateEvent(Events events) async { + try { + final bool result = await localDataSource.updateEvent(events: events); + if (!result) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + return Right(result); + } on Exception catch (_) { + return Left(CacheFailure(LocaleKeys.get_error.tr())); + } + } } diff --git a/evently/lib/screens/event_hub/event_hub_view_model.dart b/evently/lib/screens/event_hub/event_hub_view_model.dart index 2bffc70541..1ab103fa89 100644 --- a/evently/lib/screens/event_hub/event_hub_view_model.dart +++ b/evently/lib/screens/event_hub/event_hub_view_model.dart @@ -124,7 +124,7 @@ class EventHubViewModel extends ChangeNotifier { notifyListeners(); } - Future deleteNft(int? id) async { + Future deleteEvents(int? id) async { final deleteNftResponse = await repository.deleteEvent(id!); if (deleteNftResponse.isLeft()) { @@ -141,8 +141,8 @@ class EventHubViewModel extends ChangeNotifier { repository.setCacheString(key: fromKey, value: kDraft); } - updatePublishedEventList() { - getDraftsList(); - getRecipesList(); + Future updatePublishedEventList() async { + await getDraftsList(); + await getRecipesList(); } } diff --git a/evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart b/evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart index 4873cde777..6cc9f10405 100644 --- a/evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart +++ b/evently/lib/screens/event_hub/widgets/delete_confirmation_dialog.dart @@ -76,7 +76,7 @@ class DeleteDialog { clipperType: ClipperType.bottomLeftTopRight, onPressed: () async { Navigator.of(context).pop(); - creatorHubViewModel.deleteNft(events.id); + creatorHubViewModel.deleteEvents(events.id); }, cuttingHeight: 12.h, ), diff --git a/evently/lib/screens/event_hub/widgets/events_list_tile.dart b/evently/lib/screens/event_hub/widgets/events_list_tile.dart index cbcfae5735..df6d9d203a 100644 --- a/evently/lib/screens/event_hub/widgets/events_list_tile.dart +++ b/evently/lib/screens/event_hub/widgets/events_list_tile.dart @@ -21,9 +21,7 @@ class NFTsListTile extends StatelessWidget { EventlyProvider get _easelProvider => GetIt.I.get(); - void buildBottomSheet({required BuildContext context}) { - - } + void buildBottomSheet({required BuildContext context}) {} Widget getPublishedCard({required BuildContext context}) { return DecoratedBox( @@ -82,7 +80,6 @@ class NFTsListTile extends StatelessWidget { width: 10.w, ), InkWell( - onTap: () => buildBottomSheet(context: context), child: Padding( padding: EdgeInsets.all(4.0.w), diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 97cd8acb80..07b2819f49 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -90,6 +90,8 @@ abstract class LocalDataSource { /// this method is used to save draft from details screen Future saveEventFromPrice({required Events events}); + + Future updateEvent({required Events events}); } @LazySingleton(as: LocalDataSource) @@ -212,7 +214,7 @@ class LocalDataSourceImpl extends LocalDataSource { @override Future saveEventFromDetail({required Events events}) async { try { - await database.eventsDao.updateNFTFromDetail( + await database.eventsDao.updateEventFromDetail( events.startDate, events.endDate, events.startTime, @@ -231,7 +233,7 @@ class LocalDataSourceImpl extends LocalDataSource { @override Future saveEventFromPerks({required Events events}) async { try { - await database.eventsDao.updateNFTFromPerks(events.listOfPerks, events.id!, events.step); + await database.eventsDao.updateEventFromPerks(events.listOfPerks, events.id!, events.step); return true; } catch (_) { throw CacheFailure(LocaleKeys.get_error.tr()); @@ -241,7 +243,34 @@ class LocalDataSourceImpl extends LocalDataSource { @override Future saveEventFromPrice({required Events events}) async { try { - await database.eventsDao.updateNFTFromPrice(events.id!, events.numberOfTickets, events.price, events.isFreeDrops, events.denom, events.step); + await database.eventsDao.updateEventFromPrice(events.id!, events.numberOfTickets, events.price, events.isFreeDrops, events.denom, events.step); + return true; + } catch (_) { + throw CacheFailure(LocaleKeys.get_error.tr()); + } + } + + @override + Future updateEvent({required Events events}) async { + try { + await database.eventsDao.updateEvent( + events.id!, + events.step, + events.eventName, + events.hostName, + events.thumbnail, + events.startDate, + events.endDate, + events.startTime, + events.endTime, + events.location, + events.description, + events.listOfPerks, + events.numberOfTickets, + events.price, + events.isFreeDrops, + events.denom, + ); return true; } catch (_) { throw CacheFailure(LocaleKeys.get_error.tr()); diff --git a/evently/lib/services/third_party_services/database.g.dart b/evently/lib/services/third_party_services/database.g.dart index ac1d0a0403..617d98b679 100644 --- a/evently/lib/services/third_party_services/database.g.dart +++ b/evently/lib/services/third_party_services/database.g.dart @@ -203,7 +203,7 @@ class _$EventsDao extends EventsDao { } @override - Future updateNFTFromDetail( + Future updateEventFromDetail( String startDate, String endDate, String startTime, @@ -228,7 +228,7 @@ class _$EventsDao extends EventsDao { } @override - Future updateNFTFromPerks( + Future updateEventFromPerks( String listOfPerks, int id, String step, @@ -239,7 +239,7 @@ class _$EventsDao extends EventsDao { } @override - Future updateNFTFromPrice( + Future updateEventFromPrice( int id, String numberOfTickets, String price, @@ -252,6 +252,47 @@ class _$EventsDao extends EventsDao { arguments: [id, numberOfTickets, price, isFreeDrops, denom, step]); } + @override + Future updateEvent( + int id, + String step, + String eventName, + String hostName, + String thumbnail, + String startDate, + String endDate, + String startTime, + String endTime, + String location, + String description, + String listOfPerks, + String numberOfTickets, + String price, + String isFreeDrops, + String denom, + ) async { + await _queryAdapter.queryNoReturn( + 'UPDATE events SET eventName = ?3, hostName = ?4, thumbnail = ?5, startDate = ?6, endDate = ?7, startTime = ?8, endTime = ?9, location = ?10, description = ?11, numberOfTickets = ?13, price = ?14, listOfPerks = ?12, isFreeDrops = ?15, step = ?2, denom = ?16 WHERE id = ?1', + arguments: [ + id, + step, + eventName, + hostName, + thumbnail, + startDate, + endDate, + startTime, + endTime, + location, + description, + listOfPerks, + numberOfTickets, + price, + isFreeDrops, + denom + ]); + } + @override Future insertEvents(Events events) { return _eventsInsertionAdapter.insertAndReturnId( diff --git a/evently/lib/services/third_party_services/event_dao.dart b/evently/lib/services/third_party_services/event_dao.dart index de4d997d99..80b801c8b3 100644 --- a/evently/lib/services/third_party_services/event_dao.dart +++ b/evently/lib/services/third_party_services/event_dao.dart @@ -16,7 +16,7 @@ abstract class EventsDao { Future delete(int id); @Query('UPDATE events SET startDate = :startDate, endDate= :endDate, startTime = :startTime, endTime = :endTime,location = :location, description = :description, step = :step WHERE id = :id') - Future updateNFTFromDetail( + Future updateEventFromDetail( String startDate, String endDate, String startTime, @@ -28,14 +28,14 @@ abstract class EventsDao { ); @Query('UPDATE events SET listOfPerks = :listOfPerks, step = :step WHERE id = :id') - Future updateNFTFromPerks( + Future updateEventFromPerks( String listOfPerks, int id, String step, ); @Query('UPDATE events SET numberOfTickets = :numberOfTickets, price = :price, isFreeDrops = :isFreeDrops, denom = :denom, step = :step WHERE id = :id') - Future updateNFTFromPrice( + Future updateEventFromPrice( int id, String numberOfTickets, String price, @@ -43,4 +43,25 @@ abstract class EventsDao { String denom, String step, ); + + @Query( + 'UPDATE events SET eventName = :eventName, hostName = :hostName, thumbnail = :thumbnail, startDate = :startDate, endDate = :endDate, startTime = :startTime, endTime = :endTime, location = :location, description = :description, numberOfTickets = :numberOfTickets, price = :price, listOfPerks = :listOfPerks, isFreeDrops = :isFreeDrops, step = :step, denom = :denom WHERE id = :id') + Future updateEvent( + int id, + String step, + String eventName, + String hostName, + String thumbnail, + String startDate, + String endDate, + String startTime, + String endTime, + String location, + String description, + String listOfPerks, + String numberOfTickets, + String price, + String isFreeDrops, + String denom, + ); } From d853d09f4c22d6e5d739321fce4bdbb7074ae819 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Thu, 23 May 2024 16:42:52 +0500 Subject: [PATCH 133/158] fix: on wallet side --- wallet/lib/pages/events/events_screen.dart | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/wallet/lib/pages/events/events_screen.dart b/wallet/lib/pages/events/events_screen.dart index c437035cf2..158c2dbc27 100644 --- a/wallet/lib/pages/events/events_screen.dart +++ b/wallet/lib/pages/events/events_screen.dart @@ -160,16 +160,18 @@ class _EventPassViewScreenState extends State { ], ), ), - VerticalSpace(20.h), - CachedNetworkImage( - fit: BoxFit.fill, - imageUrl: widget.events.thumbnail, - errorWidget: (a, b, c) => const Center( - child: Icon( - Icons.error_outline, - color: AppColors.kWhite, - )), - placeholder: (context, url) => Shimmer(color: AppColors.kLightGray, child: const SizedBox.expand()), + Container( + margin: EdgeInsets.symmetric(horizontal: 20.w), + child: CachedNetworkImage( + fit: BoxFit.fill, + imageUrl: widget.events.thumbnail, + errorWidget: (a, b, c) => const Center( + child: Icon( + Icons.error_outline, + color: AppColors.kWhite, + )), + // placeholder: (context, url) => Shimmer(color: AppColors.kLightGray, child: const SizedBox.expand()), + ), ) ], ), From 219115f13ece91206083d59d034ea98e098dba90 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Fri, 24 May 2024 12:37:40 +0500 Subject: [PATCH 134/158] feat: create build apk and configuration for testing --- evently/android/app/build.gradle | 10 ++++++++++ evently/android/app/src/main/AndroidManifest.xml | 1 + 2 files changed, 11 insertions(+) diff --git a/evently/android/app/build.gradle b/evently/android/app/build.gradle index 3fbaa808c7..8f00827493 100644 --- a/evently/android/app/build.gradle +++ b/evently/android/app/build.gradle @@ -51,11 +51,21 @@ android { versionName flutterVersionName } + signingConfigs { + debug { + storeFile file('keystore.jks') + storePassword 'tech.pylons' + keyAlias 'key_tech_pylon' + keyPassword 'tech.pylons' + } + } + 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 + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } diff --git a/evently/android/app/src/main/AndroidManifest.xml b/evently/android/app/src/main/AndroidManifest.xml index be1012d065..f435665a8b 100644 --- a/evently/android/app/src/main/AndroidManifest.xml +++ b/evently/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ + Date: Mon, 27 May 2024 15:32:13 +0500 Subject: [PATCH 135/158] feat: dynamic link sharing of event from non nft creation --- .../handlers/create_recipe_handler.dart | 3 +- .../pages/detailed_asset_view/owner_view.dart | 12 +- .../owner_view_view_model.dart | 17 ++ wallet/lib/pages/events/events_screen.dart | 54 +++- .../collection_screen/collection_screen.dart | 13 +- .../data_stores/remote_data_store.dart | 237 ++++++++++-------- .../lib/services/repository/repository.dart | 24 +- wallet/lib/utils/constants.dart | 2 + 8 files changed, 230 insertions(+), 132 deletions(-) diff --git a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart index 993016d65b..dc1888badd 100644 --- a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart +++ b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart @@ -11,6 +11,7 @@ import 'package:pylons_wallet/pages/home/home_provider.dart'; import 'package:pylons_wallet/providers/collections_tab_provider.dart'; import 'package:pylons_wallet/pylons_app.dart'; import 'package:pylons_wallet/stores/wallet_store.dart'; +import 'package:pylons_wallet/utils/constants.dart'; import 'package:pylons_wallet/utils/route_util.dart'; import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/export.dart' as pylons; @@ -38,7 +39,7 @@ class CreateRecipeHandler implements BaseHandler { if (shouldShowNFTPreview()) { final msgObj = pylons.MsgCreateRecipe.create()..mergeFromProto3Json(jsonMap); - if (msgObj.cookbookId.contains('Evently')) { + if (msgObj.cookbookId.contains(kEvently)) { final events = await Events.eventFromRecipeId(msgObj.cookbookId, msgObj.id); if (events != null) { await navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); diff --git a/wallet/lib/pages/detailed_asset_view/owner_view.dart b/wallet/lib/pages/detailed_asset_view/owner_view.dart index 9cc4eb74b8..c21239642d 100644 --- a/wallet/lib/pages/detailed_asset_view/owner_view.dart +++ b/wallet/lib/pages/detailed_asset_view/owner_view.dart @@ -288,7 +288,7 @@ class _CollapsedBottomMenuState extends State<_CollapsedBottomMenu> { final ibcEnumCoins = viewModel.nft.ibcCoins; /// This change will reflect only for upylon ibcCoins - final coinWithDenom =ibcEnumCoins.getAbbrev() == constants.kPYLN_ABBREVATION + final coinWithDenom = ibcEnumCoins.getAbbrev() == constants.kPYLN_ABBREVATION ? "\$${ibcEnumCoins.pylnToCredit(viewModel.nft.ibcCoins.getCoinWithProperDenomination(viewModel.nft.price))} ${viewModel.nft.ibcCoins.getAbbrev()}" : "${ibcEnumCoins.getCoinWithProperDenomination(viewModel.nft.price)} ${ibcEnumCoins.getAbbrev()}"; @@ -334,9 +334,7 @@ class _CollapsedBottomMenuState extends State<_CollapsedBottomMenu> { children: [ if (viewModel.nft.type != NftType.TYPE_ITEM) Text( - viewModel.nft.price == "0" - ? LocaleKeys.free.tr() - : coinWithDenom, + viewModel.nft.price == "0" ? LocaleKeys.free.tr() : coinWithDenom, style: TextStyle(color: Colors.white, fontSize: 15.sp, fontWeight: FontWeight.bold), ) ], @@ -402,7 +400,7 @@ class __ExpandedBottomMenuState extends State<_ExpandedBottomMenu> { final ibcEnumCoins = viewModel.nft.ibcCoins; // This change will reflect only for upylon ibcCoins - final coinWithDenom = ibcEnumCoins.getAbbrev() == constants.kPYLN_ABBREVATION + final coinWithDenom = ibcEnumCoins.getAbbrev() == constants.kPYLN_ABBREVATION ? "\$${ibcEnumCoins.pylnToCredit(viewModel.nft.ibcCoins.getCoinWithProperDenomination(viewModel.nft.price))} ${viewModel.nft.ibcCoins.getAbbrev()}" : "${ibcEnumCoins.getCoinWithProperDenomination(viewModel.nft.price)} ${ibcEnumCoins.getAbbrev()}"; @@ -664,9 +662,7 @@ class __ExpandedBottomMenuState extends State<_ExpandedBottomMenu> { children: [ if (viewModel.nft.type != NftType.TYPE_ITEM) ...[ Text( - viewModel.nft.price == "0" - ? LocaleKeys.free.tr() - : coinWithDenom, + viewModel.nft.price == "0" ? LocaleKeys.free.tr() : coinWithDenom, style: TextStyle(color: Colors.white, fontSize: 15.sp, fontWeight: FontWeight.bold), ) ] diff --git a/wallet/lib/pages/detailed_asset_view/owner_view_view_model.dart b/wallet/lib/pages/detailed_asset_view/owner_view_view_model.dart index 232c7a990a..743ac368bb 100644 --- a/wallet/lib/pages/detailed_asset_view/owner_view_view_model.dart +++ b/wallet/lib/pages/detailed_asset_view/owner_view_view_model.dart @@ -6,6 +6,7 @@ import 'package:flutter/foundation.dart'; import 'package:just_audio/just_audio.dart'; import 'package:pylons_wallet/components/loading.dart'; import 'package:pylons_wallet/model/common.dart'; +import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/model/nft.dart'; import 'package:pylons_wallet/model/nft_ownership_history.dart'; import 'package:pylons_wallet/pages/detailed_asset_view/widgets/create_trade_bottom_sheet.dart'; @@ -32,6 +33,9 @@ class OwnerViewViewModel extends ChangeNotifier { final VideoPlayerHelper videoPlayerHelper; final ShareHelper shareHelper; + ///* for events + late Events events; + OwnerViewViewModel({ required this.repository, required this.walletsStore, @@ -473,6 +477,19 @@ class OwnerViewViewModel extends ChangeNotifier { }); } + Future shareEventsLink({required Size size}) async { + final address = accountPublicInfo.publicAddress; + + final link = await repository.createDynamicLinkForRecipeEventShare(address: address, events: events); + return link.fold((l) { + LocaleKeys.something_wrong.tr().show(); + return null; + }, (r) { + shareHelper.shareText(text: r, size: size); + return null; + }); + } + Future changeNFTEnabledDisableStatus({required bool enabled}) async { final response = await repository.enableDisableRecipe( cookBookId: CookbookId(nft.cookbookID), diff --git a/wallet/lib/pages/events/events_screen.dart b/wallet/lib/pages/events/events_screen.dart index 158c2dbc27..34144bad08 100644 --- a/wallet/lib/pages/events/events_screen.dart +++ b/wallet/lib/pages/events/events_screen.dart @@ -2,11 +2,12 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; +import 'package:get_it/get_it.dart'; +import 'package:provider/provider.dart'; import 'package:pylons_wallet/components/space_widgets.dart'; +import 'package:pylons_wallet/model/event.dart'; +import 'package:pylons_wallet/pages/detailed_asset_view/owner_view_view_model.dart'; import 'package:pylons_wallet/utils/constants.dart'; -import 'package:shimmer_animation/shimmer_animation.dart'; - -import '../../model/event.dart'; class EventPassViewScreen extends StatefulWidget { const EventPassViewScreen({super.key, required this.events}); @@ -18,8 +19,31 @@ class EventPassViewScreen extends StatefulWidget { } class _EventPassViewScreenState extends State { + OwnerViewViewModel ownerViewViewModel = GetIt.I.get(); + + @override + void initState() { + super.initState(); + ownerViewViewModel.events = widget.events; + } + @override Widget build(BuildContext context) { + return ChangeNotifierProvider.value( + value: ownerViewViewModel, + builder: (_, __) => const EventPassViewContent(), + ); + } +} + +class EventPassViewContent extends StatelessWidget { + const EventPassViewContent({ + super.key, + }); + + @override + Widget build(BuildContext context) { + final viewModel = context.watch(); return ColoredBox( color: AppColors.kBlack87, child: SafeArea( @@ -44,7 +68,13 @@ class _EventPassViewScreenState extends State { color: AppColors.kWhite, ), ), - SvgPicture.asset(shareIcon), + GestureDetector( + onTap: () { + final Size size = MediaQuery.of(context).size; + viewModel.shareEventsLink(size: size); + }, + child: SvgPicture.asset(shareIcon), + ), ], ), ), @@ -59,7 +89,7 @@ class _EventPassViewScreenState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - widget.events.eventName, + viewModel.events.eventName, style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 25.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), VerticalSpace(20.h), @@ -74,7 +104,7 @@ class _EventPassViewScreenState extends State { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - widget.events.startDate, + viewModel.events.startDate, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -87,7 +117,7 @@ class _EventPassViewScreenState extends State { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - widget.events.startDate, + viewModel.events.startTime, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -106,7 +136,7 @@ class _EventPassViewScreenState extends State { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - widget.events.location, + viewModel.events.location, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -115,11 +145,11 @@ class _EventPassViewScreenState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - 'SEAT', + 'PRICE', style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - "no seat", + viewModel.events.price == "0" ? "Free" : viewModel.events.price, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -143,7 +173,7 @@ class _EventPassViewScreenState extends State { SvgPicture.asset(kDiamondIcon), SizedBox(width: 5.w), Text( - 'x ${widget.events.listOfPerks?.length}', + 'x ${viewModel.events.listOfPerks?.length}', style: TextStyle(fontSize: 15.sp, color: AppColors.kWhite, fontWeight: FontWeight.bold), ), SizedBox(width: 5.w), @@ -164,7 +194,7 @@ class _EventPassViewScreenState extends State { margin: EdgeInsets.symmetric(horizontal: 20.w), child: CachedNetworkImage( fit: BoxFit.fill, - imageUrl: widget.events.thumbnail, + imageUrl: viewModel.events.thumbnail, errorWidget: (a, b, c) => const Center( child: Icon( Icons.error_outline, diff --git a/wallet/lib/pages/home/collection_screen/collection_screen.dart b/wallet/lib/pages/home/collection_screen/collection_screen.dart index 37fdabbc15..af79b539bf 100644 --- a/wallet/lib/pages/home/collection_screen/collection_screen.dart +++ b/wallet/lib/pages/home/collection_screen/collection_screen.dart @@ -7,16 +7,17 @@ import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; import 'package:pylons_wallet/components/loading.dart'; import 'package:pylons_wallet/gen/assets.gen.dart'; +import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/model/nft.dart'; import 'package:pylons_wallet/pages/home/collection_screen/collection_view_model.dart'; import 'package:pylons_wallet/pages/home/collection_screen/widgets/creation_collection_sheet.dart'; import 'package:pylons_wallet/pages/home/collection_screen/widgets/show_recipe_json.dart'; import 'package:pylons_wallet/providers/items_provider.dart'; import 'package:pylons_wallet/providers/recipes_provider.dart'; +import 'package:pylons_wallet/pylons_app.dart'; import 'package:pylons_wallet/utils/constants.dart'; import 'package:pylons_wallet/utils/enums.dart'; import 'package:pylons_wallet/utils/route_util.dart'; - import '../../../providers/collections_tab_provider.dart'; import 'widgets/purchase_collection_sheet.dart'; import 'widgets/trades_collection_sheet.dart'; @@ -181,9 +182,17 @@ class NONNftCreations extends StatelessWidget { padding: EdgeInsets.symmetric(horizontal: 16.w), itemBuilder: (context, index) => InkWell( onTap: () { + final recipe = viewModel.nonNFTRecipes[index]; + + if (recipe.cookbookId.contains(kEvently)) { + final events = Events.fromRecipe(recipe); + navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); + return; + } + final showRecipeJsonDialog = ShowRecipeJsonDialog( context: context, - recipe: viewModel.nonNFTRecipes[index], + recipe: recipe, ); showRecipeJsonDialog.show(); }, diff --git a/wallet/lib/services/data_stores/remote_data_store.dart b/wallet/lib/services/data_stores/remote_data_store.dart index b0a2be6dac..27b375f826 100644 --- a/wallet/lib/services/data_stores/remote_data_store.dart +++ b/wallet/lib/services/data_stores/remote_data_store.dart @@ -17,6 +17,7 @@ import 'package:protobuf/protobuf.dart'; import 'package:pylons_wallet/ipc/handler/handler_factory.dart'; import 'package:pylons_wallet/model/amount.dart'; import 'package:pylons_wallet/model/balance.dart'; +import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/model/execution_list_by_recipe_response.dart'; import 'package:pylons_wallet/model/export.dart'; import 'package:pylons_wallet/model/nft.dart'; @@ -88,8 +89,7 @@ abstract class RemoteDataStore { /// Input: [StripeGetLoginBasedOnAddressRequest] the request parameters that are required for the login link /// Output : [StripeGetLoginBasedOnAddressResponse] contains the response for the login link /// else will through error - Future getLoginLinkBasedOnAddress( - {required StripeGetLoginBasedOnAddressRequest req}); + Future getLoginLinkBasedOnAddress({required StripeGetLoginBasedOnAddressRequest req}); /// This method will return the ibc coin info /// Input: [ibcHash] hash of the ibc coin @@ -117,8 +117,7 @@ abstract class RemoteDataStore { /// and [offset] is the last item's position /// Output: if successful will return [List][NotificationMessage] the list of the NotificationMessage /// else will throw error - Future> getAllNotificationMessages( - {required String walletAddress, required int limit, required int offset}); + Future> getAllNotificationMessages({required String walletAddress, required int limit, required int offset}); /// This method will update the recipe in the chain /// Input: [updateRecipeModel] contains the info regarding the recipe update @@ -292,8 +291,7 @@ abstract class RemoteDataStore { /// This method will create dynamic link for the nft share purchase /// Input : [address] the address & [itemId] the id of the item& [cookbookId] against which the invite link to be generated /// Output: [String] return the generated dynamic link else will throw error - Future createDynamicLinkForItemNftShare( - {required String address, required String itemId, required String cookbookId}); + Future createDynamicLinkForItemNftShare({required String address, required String itemId, required String cookbookId}); /// This method will create User account based on account public info /// Input: [publicInfo] contains info related to user chain address, [walletCreationModel] contains user entered data, [appCheckToken] the app specific token, [referralToken] the invitee user address @@ -358,6 +356,11 @@ abstract class RemoteDataStore { Future createTrade({required pylons.MsgCreateTrade msgCreateTrade}); Future> getPylonItem({required Address address}); + + /// This method will create dynamic link for the event share recipe + /// Input : [address] the address & [Event] against which the invite link to be generated + /// Output: [String] return the generated dynamic link else will throw error + Future createDynamicLinkForRecipeEventShare({required String address, required Events events}); } class RemoteDataStoreImp implements RemoteDataStore { @@ -525,17 +528,14 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future generateStripeRegistrationToken({required String address}) async { final baseEnv = getBaseEnv(); - final response = await httpClient - .get(Uri.parse("${baseEnv.baseStripeUrl}/generate-registration-token?address=$address")) - .timeout( + final response = await httpClient.get(Uri.parse("${baseEnv.baseStripeUrl}/generate-registration-token?address=$address")).timeout( timeOutDuration, ); log(response.body, name: "Stripe | generateStripeRegistrationToken"); if (response.statusCode == API_SUCCESS_CODE) { - return StripeGenerateRegistrationTokenResponse.fromJson( - json.decode(utf8.decode(response.bodyBytes)) as Map); + return StripeGenerateRegistrationTokenResponse.fromJson(json.decode(utf8.decode(response.bodyBytes)) as Map); } if (response.statusCode == API_ERROR_CODE && response.body == 'account already exists\n') { @@ -555,8 +555,7 @@ class RemoteDataStoreImp implements RemoteDataStore { .timeout(timeOutDuration); if (response.statusCode == API_SUCCESS_CODE) { - return StripeGenerateUpdateTokenResponse.fromJson( - json.decode(utf8.decode(response.bodyBytes)) as Map); + return StripeGenerateUpdateTokenResponse.fromJson(json.decode(utf8.decode(response.bodyBytes)) as Map); } log(response.body, name: "Stripe | generateUpdateToken"); @@ -585,8 +584,7 @@ class RemoteDataStoreImp implements RemoteDataStore { } @override - Future getAccountLinkBasedOnUpdateToken( - {required StripeUpdateAccountRequest req}) async { + Future getAccountLinkBasedOnUpdateToken({required StripeUpdateAccountRequest req}) async { final baseEnv = getBaseEnv(); final response = await httpClient .post( @@ -624,8 +622,7 @@ class RemoteDataStoreImp implements RemoteDataStore { } @override - Future getLoginLinkBasedOnAddress( - {required StripeGetLoginBasedOnAddressRequest req}) async { + Future getLoginLinkBasedOnAddress({required StripeGetLoginBasedOnAddressRequest req}) async { final baseEnv = getBaseEnv(); final response = await httpClient .post( @@ -637,8 +634,7 @@ class RemoteDataStoreImp implements RemoteDataStore { log(response.body, name: "Stripe | getLoginLinkBasedOnAddress"); if (response.statusCode == API_SUCCESS_CODE) { - return StripeGetLoginBasedOnAddressResponse.from( - json.decode(utf8.decode(response.bodyBytes)) as Map); + return StripeGetLoginBasedOnAddressResponse.from(json.decode(utf8.decode(response.bodyBytes)) as Map); } throw HandlerFactory.ERR_SOMETHING_WENT_WRONG; @@ -716,8 +712,7 @@ class RemoteDataStoreImp implements RemoteDataStore { for (final ibcHashResult in ibcHashResults) { final relatedBalance = response.balances.firstWhere((element) => element.denom == "ibc/${ibcHashResult.ibcHash}"); - balances.add(Balance( - denom: ibcHashResult.denomTrace.baseDenom.name, amount: Amount(Decimal.parse(relatedBalance.amount)))); + balances.add(Balance(denom: ibcHashResult.denomTrace.baseDenom.name, amount: Amount(Decimal.parse(relatedBalance.amount)))); } return balances; @@ -745,8 +740,7 @@ class RemoteDataStoreImp implements RemoteDataStore { } @override - Future> getAllNotificationMessages( - {required String walletAddress, required int limit, required int offset}) async { + Future> getAllNotificationMessages({required String walletAddress, required int limit, required int offset}) async { final baseApiUrl = getBaseEnv().baseMongoUrl; final uri = Uri.parse("$baseApiUrl/api/notifications/getAllNotifications/$walletAddress/$limit/$offset"); @@ -907,18 +901,20 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future getRecipe({required CookbookId cookBookId, required RecipeId recipeId}) async { - - try{ + try { const retry = RetryOptions(); - final response = await retry.retry(()async { - final pylons.QueryClient queryClient = getQueryClient(); - final request = pylons.QueryGetRecipeRequest.create() - ..cookbookId = cookBookId.toString() - ..id = recipeId.toString(); - - final response = await queryClient.recipe(request); - return response; - }, retryIf: (_) => true ,); + final response = await retry.retry( + () async { + final pylons.QueryClient queryClient = getQueryClient(); + final request = pylons.QueryGetRecipeRequest.create() + ..cookbookId = cookBookId.toString() + ..id = recipeId.toString(); + + final response = await queryClient.recipe(request); + return response; + }, + retryIf: (_) => true, + ); if (response.hasRecipe()) { return response.recipe; @@ -972,23 +968,25 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future getCookbookBasedOnId({required String cookBookId}) async { - try{ + try { const retry = RetryOptions(); - final response = await retry.retry(()async { - final pylons.QueryClient queryClient = getQueryClient(); - final request = pylons.QueryGetCookbookRequest.create()..id = cookBookId; + final response = await retry.retry( + () async { + final pylons.QueryClient queryClient = getQueryClient(); + final request = pylons.QueryGetCookbookRequest.create()..id = cookBookId; - final response = await queryClient.cookbook(request); - return response; - }, retryIf: (_) => true,); + final response = await queryClient.cookbook(request); + return response; + }, + retryIf: (_) => true, + ); if (response.hasCookbook()) { return response.cookbook; } throw CookBookNotFoundFailure(LocaleKeys.cookbook_not_found.tr()); - } catch (_) { throw CookBookNotFoundFailure(LocaleKeys.cookbook_not_found.tr()); } @@ -1010,16 +1008,14 @@ class RemoteDataStoreImp implements RemoteDataStore { } @override - Future getExecutionsByRecipeId( - {required String cookBookId, required String recipeId}) async { + Future getExecutionsByRecipeId({required String cookBookId, required String recipeId}) async { final pylons.QueryClient queryClient = getQueryClient(); final queryExecutionListByRecipe = pylons.QueryListExecutionsByRecipeRequest() ..cookbookId = cookBookId ..recipeId = recipeId; final response = await queryClient.listExecutionsByRecipe(queryExecutionListByRecipe); - return ExecutionListByRecipeResponse( - completedExecutions: response.completedExecutions, pendingExecutions: response.pendingExecutions); + return ExecutionListByRecipeResponse(completedExecutions: response.completedExecutions, pendingExecutions: response.pendingExecutions); } @override @@ -1063,8 +1059,7 @@ class RemoteDataStoreImp implements RemoteDataStore { } @override - Future updateFcmToken( - {required String address, required String fcmToken, required String appCheckToken}) async { + Future updateFcmToken({required String address, required String fcmToken, required String appCheckToken}) async { final baseApiUrl = getBaseEnv().baseMongoUrl; final uri = Uri.parse("$baseApiUrl/api/fcmtoken/update/$address/$fcmToken"); @@ -1088,9 +1083,7 @@ class RemoteDataStoreImp implements RemoteDataStore { final uri = Uri.parse("$baseApiUrl/api/notifications/markread"); - final response = await httpClient.post(uri, - headers: {FIREBASE_APP_CHECK_HEADER: appCheckToken, 'Content-type': 'application/json'}, - body: jsonEncode({kNotificationsIds: idsList})); + final response = await httpClient.post(uri, headers: {FIREBASE_APP_CHECK_HEADER: appCheckToken, 'Content-type': 'application/json'}, body: jsonEncode({kNotificationsIds: idsList})); if (response.statusCode == API_SUCCESS_CODE) { final historyMap = jsonDecode(response.body); @@ -1157,8 +1150,7 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future sendGoogleInAppPurchaseCoinsRequest(GoogleInAppPurchaseModel googleInAppPurchaseModel) async { - final msgGoogleInAPPPurchase = pylons.MsgGoogleInAppPurchaseGetCoins() - ..mergeFromProto3Json(googleInAppPurchaseModel.toJson()); + final msgGoogleInAPPPurchase = pylons.MsgGoogleInAppPurchaseGetCoins()..mergeFromProto3Json(googleInAppPurchaseModel.toJson()); final customTransactionSigningGateway = getCustomTransactionSigningGateway(); @@ -1224,31 +1216,27 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future createDynamicLinkForRecipeNftShare({required String address, required NFT nft}) async { - final updateText = nft.ibcCoins.getAbbrev() == constants.kPYLN_ABBREVATION? - "\$${nft.ibcCoins.pylnToCredit(nft.ibcCoins.getCoinWithProperDenomination(nft.price))}" + final updateText = nft.ibcCoins.getAbbrev() == constants.kPYLN_ABBREVATION + ? "\$${nft.ibcCoins.pylnToCredit(nft.ibcCoins.getCoinWithProperDenomination(nft.price))}" : "${nft.ibcCoins.getCoinWithProperDenomination(nft.price)} ${nft.ibcCoins.getAbbrev()}"; final dynamicLinkParams = DynamicLinkParameters( - link: Uri.parse("$bigDipperBaseLink?recipe_id=${nft.recipeID}&cookbook_id=${nft.cookbookID}&address=$address"), - uriPrefix: kDeepLink, - androidParameters: AndroidParameters( - packageName: packageName, - fallbackUrl: - Uri.parse("$bigDipperBaseLink?recipe_id=${nft.recipeID}&cookbook_id=${nft.cookbookID}&address=$address"), - ), - iosParameters: IOSParameters( - bundleId: bundleId, - fallbackUrl: - Uri.parse("$bigDipperBaseLink?recipe_id=${nft.recipeID}&cookbook_id=${nft.cookbookID}&address=$address"), - ), - navigationInfoParameters: const NavigationInfoParameters(forcedRedirectEnabled: true), - socialMetaTagParameters: SocialMetaTagParameters( - title: nft.name, - imageUrl: Uri.parse(nft.url), - description: '${nft.description} Price:${nft.price == "0" ? LocaleKeys.free.tr() :updateText}' - , - ) - ); + link: Uri.parse("$bigDipperBaseLink?recipe_id=${nft.recipeID}&cookbook_id=${nft.cookbookID}&address=$address"), + uriPrefix: kDeepLink, + androidParameters: AndroidParameters( + packageName: packageName, + fallbackUrl: Uri.parse("$bigDipperBaseLink?recipe_id=${nft.recipeID}&cookbook_id=${nft.cookbookID}&address=$address"), + ), + iosParameters: IOSParameters( + bundleId: bundleId, + fallbackUrl: Uri.parse("$bigDipperBaseLink?recipe_id=${nft.recipeID}&cookbook_id=${nft.cookbookID}&address=$address"), + ), + navigationInfoParameters: const NavigationInfoParameters(forcedRedirectEnabled: true), + socialMetaTagParameters: SocialMetaTagParameters( + title: nft.name, + imageUrl: Uri.parse(nft.url), + description: '${nft.description} Price:${nft.price == "0" ? LocaleKeys.free.tr() : updateText}', + )); final link = await dynamicLinksGenerator.buildShortLink( dynamicLinkParams, @@ -1280,9 +1268,7 @@ class RemoteDataStoreImp implements RemoteDataStore { final unsignedTransaction = UnsignedAlanTransaction(messages: [msgObj]); - final result = await customTransactionSigningGateway - .signTransaction(transaction: unsignedTransaction, walletLookupKey: walletLookupKey) - .mapError((error) { + final result = await customTransactionSigningGateway.signTransaction(transaction: unsignedTransaction, walletLookupKey: walletLookupKey).mapError((error) { throw error; }).flatMap( (signed) => customTransactionSigningGateway.broadcastTransaction( @@ -1328,9 +1314,7 @@ class RemoteDataStoreImp implements RemoteDataStore { final dynamicLinkParams = DynamicLinkParameters( link: Uri.parse("$bigDipperBaseLink?item_id=$itemId&cookbook_id=$cookbookId&address=$address"), uriPrefix: kDeepLink, - androidParameters: AndroidParameters( - packageName: packageName, - fallbackUrl: Uri.parse("$bigDipperBaseLink?item_id=$itemId&cookbook_id=$cookbookId&address=$address")), + androidParameters: AndroidParameters(packageName: packageName, fallbackUrl: Uri.parse("$bigDipperBaseLink?item_id=$itemId&cookbook_id=$cookbookId&address=$address")), iosParameters: const IOSParameters(bundleId: bundleId), ); @@ -1343,8 +1327,7 @@ class RemoteDataStoreImp implements RemoteDataStore { final dynamicLinkParams = DynamicLinkParameters( link: Uri.parse("$bigDipperBaseLink?trade_id=$tradeId&address=$address"), uriPrefix: kDeepLink, - androidParameters: AndroidParameters( - packageName: packageName, fallbackUrl: Uri.parse("$bigDipperBaseLink?trade_id=$tradeId&address=$address")), + androidParameters: AndroidParameters(packageName: packageName, fallbackUrl: Uri.parse("$bigDipperBaseLink?trade_id=$tradeId&address=$address")), iosParameters: const IOSParameters(bundleId: bundleId), ); @@ -1452,7 +1435,7 @@ class RemoteDataStoreImp implements RemoteDataStore { final OnLogError onLogError; @override - Future> getPylonItem({required Address address}) async{ + Future> getPylonItem({required Address address}) async { final baseApiUrl = getBaseEnv().baseApiUrl; final uri = Uri.parse("$baseApiUrl/pylons/items/${address.id}"); @@ -1465,15 +1448,43 @@ class RemoteDataStoreImp implements RemoteDataStore { final pylonItemsMap = jsonDecode(pylonItemsResponse.body); - final List pylonListItems= []; + final List pylonListItems = []; pylonItemsMap["items"].map((data) { - final pylonItems= PylonItems.fromJson(data as Map); - pylonListItems.add(pylonItems); + final pylonItems = PylonItems.fromJson(data as Map); + pylonListItems.add(pylonItems); }).toList(); return pylonListItems.toList(); } + + @override + Future createDynamicLinkForRecipeEventShare({required String address, required Events events}) async { + final updateText = '${events.eventName} is hosted by ${events.hostName} at location ${events.location} ticket price is ${events.price}'; + final dynamicLinkParams = DynamicLinkParameters( + link: Uri.parse("$bigDipperBaseLink?recipe_id=${events.recipeID}&cookbook_id=${events.cookbookID}&address=$address"), + uriPrefix: kDeepLink, + androidParameters: AndroidParameters( + packageName: packageName, + fallbackUrl: Uri.parse("$bigDipperBaseLink?recipe_id=${events.recipeID}&cookbook_id=${events.cookbookID}&address=$address"), + ), + iosParameters: IOSParameters( + bundleId: bundleId, + fallbackUrl: Uri.parse("$bigDipperBaseLink?recipe_id=${events.recipeID}&cookbook_id=${events.cookbookID}&address=$address"), + ), + navigationInfoParameters: const NavigationInfoParameters(forcedRedirectEnabled: true), + socialMetaTagParameters: SocialMetaTagParameters( + title: events.eventName, + imageUrl: Uri.parse(events.thumbnail), + description: '${events.description} Price:${events.price == "0" ? LocaleKeys.free.tr() : updateText}', + )); + + final link = await dynamicLinksGenerator.buildShortLink( + dynamicLinkParams, + shortLinkType: ShortDynamicLinkType.unguessable, + ); + return link.shortUrl.toString(); + } } class AppleInAppPurchaseModel { @@ -1495,8 +1506,7 @@ class AppleInAppPurchaseModel { receiptData = json['receiptDataBase64'] as String, creator = json['creator'] as String; - Map toJson() => - {"productId": productID, "purchaseId": purchaseID, "receiptDataBase64": receiptData, "creator": creator}; + Map toJson() => {"productId": productID, "purchaseId": purchaseID, "receiptDataBase64": receiptData, "creator": creator}; } class GoogleInAppPurchaseModel { @@ -1521,23 +1531,42 @@ class GoogleInAppPurchaseModel { signature = json['signature'] as String, creator = json['creator'] as String; - Map toJson() => { - "product_id": productID, - "purchase_token": purchaseToken, - "receipt_data_base64": getReceiptDataInBase64(), - "signature": signature, - "creator": creator - }; - - Map toJsonLocalRetry() => { - "product_id": productID, - "purchase_token": purchaseToken, - "receipt_data_base64": receiptData, - "signature": signature, - "creator": creator - }; + Map toJson() => {"product_id": productID, "purchase_token": purchaseToken, "receipt_data_base64": getReceiptDataInBase64(), "signature": signature, "creator": creator}; + + Map toJsonLocalRetry() => {"product_id": productID, "purchase_token": purchaseToken, "receipt_data_base64": receiptData, "signature": signature, "creator": creator}; String getReceiptDataInBase64() { return base64Url.encode(utf8.encode(jsonEncode(receiptData))); } } + +class EventlyDenom { + final String name; + final String symbol; + final String icon; + + EventlyDenom({required this.name, required this.symbol, required this.icon}); + + factory EventlyDenom.initial() { + return EventlyDenom(icon: '', name: '', symbol: ''); + } + + @override + String toString() { + return '{name: $name, symbol: $symbol, icon: $icon}'; + } + + Map toJson() { + final Map map = {}; + map['name'] = name; + map['symbol'] = symbol; + map['icon'] = icon; + return map; + } + + factory EventlyDenom.fromJson(Map json) => EventlyDenom( + name: json['name']!, + symbol: json['symbol']!, + icon: json['icon']!, + ); +} diff --git a/wallet/lib/services/repository/repository.dart b/wallet/lib/services/repository/repository.dart index f12b0f879d..3deae3e142 100644 --- a/wallet/lib/services/repository/repository.dart +++ b/wallet/lib/services/repository/repository.dart @@ -11,6 +11,7 @@ import 'package:internet_connection_checker/internet_connection_checker.dart'; import 'package:local_auth/local_auth.dart'; import 'package:pylons_wallet/components/loading.dart'; import 'package:pylons_wallet/model/balance.dart'; +import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/model/execution_list_by_recipe_response.dart'; import 'package:pylons_wallet/model/export.dart'; import 'package:pylons_wallet/model/nft.dart'; @@ -581,6 +582,11 @@ abstract class Repository { Future> cancelTrade({required TradeId tradeId, required Address address}); Future>> getPylonItem({required Address address}); + + /// This method will create dynamic link for the event share recipe + /// Input : [address] the address against which the invite link to be generated, [Events] the event whose link to be created + /// Output: [String] return the generated dynamic link else will return [Failure] + Future> createDynamicLinkForRecipeEventShare({required String address, required Events events}); } class RepositoryImp implements Repository { @@ -913,8 +919,7 @@ class RepositoryImp implements Repository { ); return Left(StripeFailure(result.error ?? GEN_PAYMENTRECEIPT_FAILED)); } - await saveTransactionRecord( - transactionHash: "", transactionStatus: TransactionStatus.Success, txLocalModel: localTransactionModel); + await saveTransactionRecord(transactionHash: "", transactionStatus: TransactionStatus.Success, txLocalModel: localTransactionModel); return Right(StripeGeneratePaymentReceiptResponse.from(result)); } on Exception catch (error) { await saveTransactionRecord( @@ -2450,13 +2455,22 @@ class RepositoryImp implements Repository { final BaseEnv Function() getBaseEnv; @override - Future>> getPylonItem({required Address address}) async{ + Future>> getPylonItem({required Address address}) async { try { - final response = await remoteDataStore.getPylonItem(address: address); - return Right(response); + final response = await remoteDataStore.getPylonItem(address: address); + return Right(response); } on Exception catch (e) { recordErrorInCrashlytics(e); return Left(ServerFailure(e.toString())); } } + + @override + Future> createDynamicLinkForRecipeEventShare({required String address, required Events events}) async { + try { + return Right(await remoteDataStore.createDynamicLinkForRecipeEventShare(address: address, events: events)); + } on Exception catch (_) { + return Left(FirebaseDynamicLinkFailure(LocaleKeys.dynamic_link_failure.tr())); + } + } } diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index 7079f3a522..3d005d1ede 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -501,3 +501,5 @@ const String drawerKey = "drawer_key"; const String kRemaining = 'remaining'; const kTotal = 'total'; const kFileExtension = "file_extension"; + +const kEvently = "Evently"; From d12d6564c5be4e008eca6d55ea2bc297843cf7f6 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 27 May 2024 16:19:00 +0500 Subject: [PATCH 136/158] feat: owner view --- wallet/lib/ipc/ipc_engine.dart | 88 +++++++++++++++++++++++++++++++++- wallet/lib/model/event.dart | 21 +++++++- 2 files changed, 107 insertions(+), 2 deletions(-) diff --git a/wallet/lib/ipc/ipc_engine.dart b/wallet/lib/ipc/ipc_engine.dart index 1f6d27f59f..88f690a77b 100644 --- a/wallet/lib/ipc/ipc_engine.dart +++ b/wallet/lib/ipc/ipc_engine.dart @@ -14,6 +14,7 @@ import 'package:pylons_wallet/ipc/handler/handler_factory.dart'; import 'package:pylons_wallet/ipc/models/sdk_ipc_message.dart'; import 'package:pylons_wallet/ipc/models/sdk_ipc_response.dart'; import 'package:pylons_wallet/ipc/widgets/sdk_approval_dialog.dart'; +import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/model/nft.dart'; import 'package:pylons_wallet/pages/detailed_asset_view/widgets/create_trade_bottom_sheet.dart'; import 'package:pylons_wallet/providers/account_provider.dart'; @@ -92,8 +93,17 @@ class IPCEngine { } Future handleLinksBasedOnUri(String initialLink) async { - if (_isEaselUniLink(initialLink)) { + if (_isEventlyUniLink(initialLink)) { + handleEventlyLink( + link: initialLink, + getEventFromRecipe: getEventsFromRecipe, + showOwnerView: (events) => navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events), + showCreateAccountView: (events) => showCreateAccountView, + showPurchaseView: (events) => showPurchaseView, + ); + } else if (_isEaselUniLink(initialLink)) { onLogEvent(AnalyticsEventEnum.easelLink); + handleEaselLink( link: initialLink, showOwnerView: (nullableNFT) => navigatorKey.currentState!.pushNamed( @@ -198,11 +208,56 @@ class IPCEngine { walletsStore.setStateUpdatedFlag(flag: true); } + Future handleEventlyLink({ + required String link, + required Future Function({ + required String cookbookId, + required String recipeId, + }) getEventFromRecipe, + required void Function(Events?) showOwnerView, + required void Function(Events?) showCreateAccountView, + required void Function(Events?) showPurchaseView, + }) async { + final queryParameters = Uri.parse(link).queryParameters; + + final recipeId = (queryParameters.containsKey(kRecipeIdKey)) ? queryParameters[kRecipeIdKey] ?? '' : ""; + final cookbookId = (queryParameters.containsKey(kCookbookIdKey)) ? queryParameters[kCookbookIdKey] ?? "" : ""; + final currentWallet = accountProvider.accountPublicInfo; + final address = (queryParameters.containsKey(kAddress)) ? queryParameters[kAddress] ?? "" : ""; + + if (currentWallet == null) { + repository.saveInviteeAddressFromDynamicLink(dynamicLink: address); + } + + final nullableEvents = await getEventFromRecipe(cookbookId: cookbookId, recipeId: recipeId); + + if (nullableEvents == null) { + return; + } + + if (isOwnerIsViewingEvent(nullableEvents, currentWallet)) { + showOwnerView(nullableEvents); + } else { + if (currentWallet != null) { + showPurchaseView(nullableEvents); + } else { + showCreateAccountView(nullableEvents); + } + } + + walletsStore.setStateUpdatedFlag(flag: true); + } + bool isOwnerIsViewing(NFT nullableNFT, AccountPublicInfo? currentWallet) { if (currentWallet == null) return false; return nullableNFT.ownerAddress == currentWallet.publicAddress; } + bool isOwnerIsViewingEvent(Events nullableEvents, AccountPublicInfo? currentWallet) { + if (currentWallet == null) return false; + return nullableEvents.ownerAddress == currentWallet.publicAddress; + } + bool getUserAcceptPolicies() => repository.getUserAcceptPolicies().getOrElse(() => false); Future _handleNFTTradeLink(String link) async { @@ -387,6 +442,12 @@ class IPCEngine { return queryParam.containsKey(kRecipeIdKey) && queryParam.containsKey(kCookbookIdKey); } + ///This method checks if the incoming link is generated from Easel + bool _isEventlyUniLink(String link) { + final queryParam = Uri.parse(link).queryParameters; + return queryParam.containsKey(kRecipeIdKey) && queryParam.containsKey(kCookbookIdKey) && link.contains(kEvently); + } + bool _isNFTViewUniLink(String link) { final queryParam = Uri.parse(link).queryParameters; return queryParam.containsKey(kItemIdKey) && queryParam.containsKey(kCookbookIdKey); @@ -452,6 +513,31 @@ class IPCEngine { return nft; } + /// This method get the NFT based on the cookbookId and the recipeId + /// Input : [cookbookId] the id of the cookbook, [recipeId] the id of the recipe + /// Output: returns [Events] if successful otherwise returns [null] + Future getEventsFromRecipe({required String cookbookId, required String recipeId}) async { + final walletsStore = GetIt.I.get(); + + final showLoader = Loading()..showLoading(); + + final recipeResult = await walletsStore.getRecipe(cookbookId, recipeId); + + showLoader.dismiss(); + + if (recipeResult.isLeft()) { + onLogEvent(AnalyticsEventEnum.nftNotExists); + LocaleKeys.nft_does_not_exists.tr().show(); + return null; + } + + final events = Events.fromRecipe(recipeResult.toOption().toNullable()!); + + await events.getOwnerAddress(); + + return events; + } + void dispose() { _sub.cancel(); } diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index 76944bbe48..83692cdc4b 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -25,8 +25,10 @@ class Events extends Equatable { final String cookbookID; final String step; final String denom; + String ownerAddress = ""; + String owner = ""; - const Events({ + Events({ this.id, ///* overview data @@ -57,8 +59,25 @@ class Events extends Equatable { ///* for tracking where its save as draft this.step = '', + + ///* + this.ownerAddress = "", + this.owner = '', }); + Future getOwnerAddress() async { + if (ownerAddress.isEmpty) { + final walletsStore = GetIt.I.get(); + final cookbook = await walletsStore.getCookbookById(cookbookID); + ownerAddress = cookbook?.creator ?? ""; + + if (owner.isEmpty) { + owner = await walletsStore.getAccountNameByAddress(ownerAddress); + } + } + return ownerAddress; + } + factory Events.fromRecipe(Recipe recipe) { final Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); From 139f110badc2aeb82b5e05e99814e1444ea5b967 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 27 May 2024 16:29:13 +0500 Subject: [PATCH 137/158] feat: added route for event purchase view --- .../handlers/create_recipe_handler.dart | 2 +- wallet/lib/ipc/ipc_engine.dart | 6 +- .../lib/pages/events/event_purchase_view.dart | 204 ++++++++++++++++++ ...nts_screen.dart => events_owner_view.dart} | 8 +- .../collection_screen/collection_screen.dart | 2 +- wallet/lib/utils/route_util.dart | 26 ++- 6 files changed, 233 insertions(+), 15 deletions(-) create mode 100644 wallet/lib/pages/events/event_purchase_view.dart rename wallet/lib/pages/events/{events_screen.dart => events_owner_view.dart} (97%) diff --git a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart index dc1888badd..bda982348a 100644 --- a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart +++ b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart @@ -42,7 +42,7 @@ class CreateRecipeHandler implements BaseHandler { if (msgObj.cookbookId.contains(kEvently)) { final events = await Events.eventFromRecipeId(msgObj.cookbookId, msgObj.id); if (events != null) { - await navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); + await navigatorKey.currentState!.pushNamed(Routes.eventOwnerView.name, arguments: events); } } else { final nft = await NFT.fromRecipeId(msgObj.cookbookId, msgObj.id); diff --git a/wallet/lib/ipc/ipc_engine.dart b/wallet/lib/ipc/ipc_engine.dart index 88f690a77b..ab76e9779e 100644 --- a/wallet/lib/ipc/ipc_engine.dart +++ b/wallet/lib/ipc/ipc_engine.dart @@ -97,9 +97,9 @@ class IPCEngine { handleEventlyLink( link: initialLink, getEventFromRecipe: getEventsFromRecipe, - showOwnerView: (events) => navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events), - showCreateAccountView: (events) => showCreateAccountView, - showPurchaseView: (events) => showPurchaseView, + showOwnerView: (events) => navigatorKey.currentState!.pushNamed(Routes.eventOwnerView.name, arguments: events), + showCreateAccountView: (events) => {}, + showPurchaseView: (events) => navigatorKey.currentState!.pushNamed(Routes.eventPurchaseView.name, arguments: events), ); } else if (_isEaselUniLink(initialLink)) { onLogEvent(AnalyticsEventEnum.easelLink); diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart new file mode 100644 index 0000000000..d546c85997 --- /dev/null +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -0,0 +1,204 @@ +import 'package:cached_network_image/cached_network_image.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:pylons_wallet/components/space_widgets.dart'; +import 'package:pylons_wallet/model/event.dart'; +import 'package:pylons_wallet/utils/constants.dart'; + +class EventPurchaseView extends StatefulWidget { + const EventPurchaseView({super.key, required this.events}); + + final Events events; + + @override + State createState() => _EventPurchaseViewState(); +} + +class _EventPurchaseViewState extends State { + @override + void initState() { + super.initState(); + } + + @override + Widget build(BuildContext context) { + return EventPassViewContent( + events: widget.events, + ); + } +} + +class EventPassViewContent extends StatelessWidget { + const EventPassViewContent({ + super.key, + required this.events, + }); + + final Events events; + + @override + Widget build(BuildContext context) { + return ColoredBox( + color: AppColors.kBlack87, + child: SafeArea( + child: Scaffold( + backgroundColor: AppColors.kBlack87, + appBar: AppBar( + backgroundColor: Colors.black, + flexibleSpace: Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Icon( + Icons.arrow_back_ios, + color: AppColors.kWhite, + ), + Text( + 'Event Pass', + style: TextStyle( + fontSize: 18.sp, + fontWeight: FontWeight.w700, + color: AppColors.kWhite, + ), + ), + GestureDetector( + onTap: () {}, + child: SvgPicture.asset(shareIcon), + ), + ], + ), + ), + ), + body: Column( + children: [ + Container( + margin: EdgeInsets.symmetric(horizontal: 20.w), + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), + decoration: BoxDecoration(color: AppColors.kBlue), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + events.eventName, + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 25.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), + VerticalSpace(20.h), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Date', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + events.startDate, + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Time', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + events.startTime, + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), + ], + ) + ], + ), + VerticalSpace(20.h), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'LOCATION', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + events.location, + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), + ], + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'PRICE', + style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + Text( + events.price == "0" ? "Free" : events.price, + style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), + ), + ], + ) + ], + ), + VerticalSpace(20.h), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'PERKS', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), + ), + SizedBox(height: 1.h), + Row( + children: [ + SvgPicture.asset(kDiamondIcon), + SizedBox(width: 5.w), + Text( + 'x ${events.listOfPerks?.length}', + style: TextStyle(fontSize: 15.sp, color: AppColors.kWhite, fontWeight: FontWeight.bold), + ), + SizedBox(width: 5.w), + Text( + 'Redeem', + style: TextStyle(fontSize: 15.sp, color: AppColors.kGreenText, fontWeight: FontWeight.bold), + ) + ], + ) + ], + ), + ], + ), + ], + ), + ), + Container( + margin: EdgeInsets.symmetric(horizontal: 20.w), + child: CachedNetworkImage( + fit: BoxFit.fill, + imageUrl: events.thumbnail, + errorWidget: (a, b, c) => const Center( + child: Icon( + Icons.error_outline, + color: AppColors.kWhite, + )), + // placeholder: (context, url) => Shimmer(color: AppColors.kLightGray, child: const SizedBox.expand()), + ), + ) + ], + ), + ), + ), + ); + } +} diff --git a/wallet/lib/pages/events/events_screen.dart b/wallet/lib/pages/events/events_owner_view.dart similarity index 97% rename from wallet/lib/pages/events/events_screen.dart rename to wallet/lib/pages/events/events_owner_view.dart index 34144bad08..17cc0f0602 100644 --- a/wallet/lib/pages/events/events_screen.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -9,16 +9,16 @@ import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/pages/detailed_asset_view/owner_view_view_model.dart'; import 'package:pylons_wallet/utils/constants.dart'; -class EventPassViewScreen extends StatefulWidget { - const EventPassViewScreen({super.key, required this.events}); +class EventOwnerView extends StatefulWidget { + const EventOwnerView({super.key, required this.events}); final Events events; @override - State createState() => _EventPassViewScreenState(); + State createState() => _EventOwnerViewState(); } -class _EventPassViewScreenState extends State { +class _EventOwnerViewState extends State { OwnerViewViewModel ownerViewViewModel = GetIt.I.get(); @override diff --git a/wallet/lib/pages/home/collection_screen/collection_screen.dart b/wallet/lib/pages/home/collection_screen/collection_screen.dart index af79b539bf..dbbe7ef2db 100644 --- a/wallet/lib/pages/home/collection_screen/collection_screen.dart +++ b/wallet/lib/pages/home/collection_screen/collection_screen.dart @@ -186,7 +186,7 @@ class NONNftCreations extends StatelessWidget { if (recipe.cookbookId.contains(kEvently)) { final events = Events.fromRecipe(recipe); - navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); + navigatorKey.currentState!.pushNamed(Routes.eventOwnerView.name, arguments: events); return; } diff --git a/wallet/lib/utils/route_util.dart b/wallet/lib/utils/route_util.dart index 9ed4204b75..313e12ca85 100644 --- a/wallet/lib/utils/route_util.dart +++ b/wallet/lib/utils/route_util.dart @@ -1,7 +1,8 @@ // ignore_for_file: cast_nullable_to_non_nullable import 'package:flutter/material.dart'; -import 'package:pylons_wallet/pages/events/events_screen.dart'; +import 'package:pylons_wallet/pages/events/event_purchase_view.dart'; +import 'package:pylons_wallet/pages/events/events_owner_view.dart'; import 'package:pylons_wallet/pages/settings/screens/general_screen/general_screen.dart'; import 'package:pylons_wallet/pages/settings/screens/recovery_screen/recovery_screen.dart'; @@ -113,9 +114,19 @@ class RouteUtil { return createRoute(const SizedBox()); case Routes.transactionHistory: return createRoute(const TransactionHistoryScreen()); - case Routes.eventView: + case Routes.eventOwnerView: if (settings.arguments != null && settings.arguments is Events) { - return createRoute(EventPassViewScreen( + return createRoute(EventOwnerView( + key: ValueKey(settings.arguments), + events: settings.arguments as Events, + )); + } + + return createRoute(const SizedBox()); + + case Routes.eventPurchaseView: + if (settings.arguments != null && settings.arguments is Events) { + return createRoute(EventPurchaseView( key: ValueKey(settings.arguments), events: settings.arguments as Events, )); @@ -158,7 +169,8 @@ enum Routes { transactionHistory, acceptPolicy, fallback, - eventView; + eventOwnerView, + eventPurchaseView; static Routes getAppRouteFromString(String routeName) { switch (routeName) { @@ -210,8 +222,10 @@ enum Routes { return localTransactionDetails; case 'transactionHistory': return transactionHistory; - case 'eventView': - return eventView; + case 'eventOwnerView': + return eventOwnerView; + case 'eventPurchaseView': + return eventPurchaseView; default: return fallback; } From 3a81530aaaf93ee6837f929e605db3739772f186 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 27 May 2024 17:14:51 +0500 Subject: [PATCH 138/158] feat: mobile scanner --- wallet/android/gradle.properties | 1 + wallet/macos/Flutter/GeneratedPluginRegistrant.swift | 2 ++ wallet/pubspec.yaml | 1 + 3 files changed, 4 insertions(+) diff --git a/wallet/android/gradle.properties b/wallet/android/gradle.properties index ed508580fa..fb436b2b45 100644 --- a/wallet/android/gradle.properties +++ b/wallet/android/gradle.properties @@ -1,3 +1,4 @@ org.gradle.jvmargs=-Xmx4608m android.useAndroidX=true android.enableJetifier=true +dev.steenbakker.mobile_scanner.useUnbundled=true diff --git a/wallet/macos/Flutter/GeneratedPluginRegistrant.swift b/wallet/macos/Flutter/GeneratedPluginRegistrant.swift index 330e80cb6c..b2bb0501ea 100644 --- a/wallet/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/wallet/macos/Flutter/GeneratedPluginRegistrant.swift @@ -21,6 +21,7 @@ import google_sign_in_ios import icloud_storage import in_app_purchase_storekit import just_audio +import mobile_scanner import package_info import path_provider_foundation import share_plus @@ -46,6 +47,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { IcloudStoragePlugin.register(with: registry.registrar(forPlugin: "IcloudStoragePlugin")) InAppPurchasePlugin.register(with: registry.registrar(forPlugin: "InAppPurchasePlugin")) JustAudioPlugin.register(with: registry.registrar(forPlugin: "JustAudioPlugin")) + MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin")) FLTPackageInfoPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) diff --git a/wallet/pubspec.yaml b/wallet/pubspec.yaml index 9d96950027..404f3b25ce 100644 --- a/wallet/pubspec.yaml +++ b/wallet/pubspec.yaml @@ -70,6 +70,7 @@ dependencies: just_audio: ^0.9.29 just_the_tooltip: 0.0.12 local_auth: ^2.1.2 + mobile_scanner: ^5.1.1 mobx: ^2.0.3 modal_bottom_sheet: ^2.0.0 model_viewer_plus: From 9c088da7da55fdf77889dc7be10980710d2300e7 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 27 May 2024 17:39:03 +0500 Subject: [PATCH 139/158] feat: basic mobile scanner --- wallet/lib/pages/events/mobile_scanner.dart | 66 +++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 wallet/lib/pages/events/mobile_scanner.dart diff --git a/wallet/lib/pages/events/mobile_scanner.dart b/wallet/lib/pages/events/mobile_scanner.dart new file mode 100644 index 0000000000..dcf11ccaf8 --- /dev/null +++ b/wallet/lib/pages/events/mobile_scanner.dart @@ -0,0 +1,66 @@ +import 'package:flutter/material.dart'; +import 'package:mobile_scanner/mobile_scanner.dart'; + +class MobileQrScanner extends StatefulWidget { + const MobileQrScanner({super.key}); + + @override + State createState() => _MobileQrScannerState(); +} + +class _MobileQrScannerState extends State { + Barcode? _barcode; + + Widget _buildBarcode(Barcode? value) { + if (value == null) { + return const Text( + 'Scan something!', + overflow: TextOverflow.fade, + style: TextStyle(color: Colors.white), + ); + } + + return Text( + value.displayValue ?? 'No display value.', + overflow: TextOverflow.fade, + style: const TextStyle(color: Colors.white), + ); + } + + void _handleBarcode(BarcodeCapture barcodes) { + if (mounted) { + setState(() { + _barcode = barcodes.barcodes.firstOrNull; + }); + } + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Simple scanner')), + backgroundColor: Colors.black, + body: Stack( + children: [ + MobileScanner( + onDetect: _handleBarcode, + ), + Align( + alignment: Alignment.bottomCenter, + child: Container( + alignment: Alignment.bottomCenter, + height: 100, + color: Colors.black.withOpacity(0.4), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Expanded(child: Center(child: _buildBarcode(_barcode))), + ], + ), + ), + ), + ], + ), + ); + } +} From 48e1cb77d3d208191190fe45a3e022f1e7f4ef45 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 28 May 2024 12:11:46 +0500 Subject: [PATCH 140/158] feat: qr scanner, events fixation and events class updation for Coins input --- evently/lib/models/events.dart | 4 +- .../lib/screens/host_view_ticket_preview.dart | 378 +++++++++--------- wallet/assets/images/qr_overlay.png | Bin 0 -> 75845 bytes wallet/lib/model/event.dart | 9 + .../lib/pages/events/event_purchase_view.dart | 92 ++++- .../lib/pages/events/events_owner_view.dart | 1 + wallet/lib/utils/image_util.dart | 1 + wallet/pubspec.yaml | 1 + 8 files changed, 296 insertions(+), 190 deletions(-) create mode 100644 wallet/assets/images/qr_overlay.png diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index b9d32b2f1c..e3c485461f 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -135,9 +135,7 @@ extension CreateRecipe on Events { description: description.trim(), version: kVersion, coinInputs: [ - if (isFreeDrop == FreeDrop.yes) - CoinInput() - else + if (isFreeDrop == FreeDrop.no) CoinInput( coins: [Coin(amount: price, denom: symbol)], ) diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index cfb12e50cd..f4317feda7 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -6,6 +6,7 @@ import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/screens/event_hub/event_hub_view_model.dart'; import 'package:evently/utils/constants.dart'; import 'package:evently/utils/di/di.dart'; +import 'package:evently/utils/enums.dart'; import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; @@ -27,221 +28,228 @@ class _HostTicketPreviewState extends State { @override Widget build(BuildContext context) { return ColoredBox( - color: EventlyAppTheme.kWhite, - child: SafeArea( - child: Scaffold( - bottomNavigationBar: Container( - padding: EdgeInsets.symmetric(horizontal: 30.w), - height: 110.h, - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - BottomButtons( - onPressContinue: () { - onPublishPressed(); - }, - onPressSaveDraft: () {}, - isContinueEnable: true, - clipBtnTxt: LocaleKeys.publish.tr(), + color: EventlyAppTheme.kWhite, + child: Consumer( + builder: (_, provider, __) => SafeArea( + child: Scaffold( + bottomNavigationBar: Container( + padding: EdgeInsets.symmetric(horizontal: 30.w), + height: 110.h, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + BottomButtons( + onPressContinue: () { + onPublishPressed(); + }, + onPressSaveDraft: () { + final navigator = Navigator.of(context); + provider.saveAsDraft( + onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), + uploadStep: UploadStep.price, + ); + }, + isContinueEnable: true, + clipBtnTxt: LocaleKeys.publish.tr(), + ), + ], ), - ], - ), - ), - body: SingleChildScrollView( - child: Consumer( - builder: (_, provider, __) => ClipRRect( - borderRadius: BorderRadius.circular(10.r), - child: Container( - margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w), - decoration: BoxDecoration( - image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight), + ), + body: SingleChildScrollView( + child: Consumer( + builder: (_, provider, __) => ClipRRect( borderRadius: BorderRadius.circular(10.r), - ), - child: Column( - children: [ - Padding( - padding: const EdgeInsets.only(), - child: ClipRRect( - borderRadius: const BorderRadius.only( - topRight: Radius.circular(14), - topLeft: Radius.circular(14), - ), - child: Stack( - alignment: Alignment.bottomLeft, - children: [ - Image.asset( - PngUtils.kPhantom, - fit: BoxFit.cover, - ), - Padding( - padding: EdgeInsets.only(bottom: 10.h, left: 10.w), - child: Text( - provider.eventName, - style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), - ), - ) - ], - ), - ), + child: Container( + margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w), + decoration: BoxDecoration( + image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight), + borderRadius: BorderRadius.circular(10.r), ), - VerticalSpace(10.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'DATE', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Text( - provider.startDate, - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - ], + child: Column( + children: [ + Padding( + padding: const EdgeInsets.only(), + child: ClipRRect( + borderRadius: const BorderRadius.only( + topRight: Radius.circular(14), + topLeft: Radius.circular(14), + ), + child: Stack( + alignment: Alignment.bottomLeft, + children: [ + Image.asset( + PngUtils.kPhantom, + fit: BoxFit.cover, + ), + Padding( + padding: EdgeInsets.only(bottom: 10.h, left: 10.w), + child: Text( + provider.eventName, + style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), + ), + ) + ], + ), ), - Column( + ), + VerticalSpace(10.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, children: [ - Text( - 'Time', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'DATE', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + provider.startDate, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], ), - SizedBox(height: 1.h), - Text( - provider.startTime, - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'Time', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + provider.startTime, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], ), ], ), - ], - ), - ), - VerticalSpace(20.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( + ), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, children: [ - Text( - 'LOCATION', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - ConstrainedBox( - constraints: BoxConstraints(maxWidth: 1.sw / 2.4), - child: Text( - provider.location, - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - maxLines: 2, - ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'LOCATION', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + ConstrainedBox( + constraints: BoxConstraints(maxWidth: 1.sw / 2.4), + child: Text( + provider.location, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + maxLines: 2, + ), + ), + ], ), + // Column( + // crossAxisAlignment: CrossAxisAlignment.start, + // mainAxisAlignment: MainAxisAlignment.start, + // children: [ + // Text( + // 'SEAT', + // style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + // ), + // SizedBox(height: 1.h), + // Column( + // mainAxisAlignment: MainAxisAlignment.start, + // crossAxisAlignment: CrossAxisAlignment.start, + // children: [ + // Text( + // '6A', + // style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + // ), + // Text( + // 'Room 3', + // style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + // ) + // ], + // ), + // ], + // ), ], ), - // Column( - // crossAxisAlignment: CrossAxisAlignment.start, - // mainAxisAlignment: MainAxisAlignment.start, - // children: [ - // Text( - // 'SEAT', - // style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - // ), - // SizedBox(height: 1.h), - // Column( - // mainAxisAlignment: MainAxisAlignment.start, - // crossAxisAlignment: CrossAxisAlignment.start, - // children: [ - // Text( - // '6A', - // style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - // ), - // Text( - // 'Room 3', - // style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - // ) - // ], - // ), - // ], - // ), - ], - ), - ), - VerticalSpace(20.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( + ), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, children: [ - Text( - 'PERKS', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Row( + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, children: [ - SvgPicture.asset(SVGUtils.kDiamond), - SizedBox(width: 5.w), Text( - 'x ${provider.perks.length}', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), + 'PERKS', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), ), - SizedBox(width: 5.w), - Text( - 'Redeem', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kGreenText, fontWeight: FontWeight.bold), + SizedBox(height: 1.h), + Row( + children: [ + SvgPicture.asset(SVGUtils.kDiamond), + SizedBox(width: 5.w), + Text( + 'x ${provider.perks.length}', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), + ), + SizedBox(width: 5.w), + Text( + 'Redeem', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kGreenText, fontWeight: FontWeight.bold), + ) + ], ) ], - ) + ), ], ), - ], - ), - ), - VerticalSpace(16.h), - Image.asset(PngUtils.kDottedLine), - VerticalSpace(40.h), - Text( - 'Scan QR to enter', - style: TextStyle( - color: EventlyAppTheme.kWhite, - fontWeight: FontWeight.bold, - fontSize: 15.sp, - ), - ), - VerticalSpace(10.h), - Container( - decoration: const BoxDecoration(color: EventlyAppTheme.kBlack), - width: 338, - height: 338, + ), + VerticalSpace(16.h), + Image.asset(PngUtils.kDottedLine), + VerticalSpace(40.h), + Text( + 'Scan QR to enter', + style: TextStyle( + color: EventlyAppTheme.kWhite, + fontWeight: FontWeight.bold, + fontSize: 15.sp, + ), + ), + VerticalSpace(10.h), + Container( + decoration: const BoxDecoration(color: EventlyAppTheme.kBlack), + width: 338, + height: 338, + ), + SizedBox(height: 20.h), + ], ), - SizedBox(height: 20.h), - ], + ), ), ), ), ), ), - ), - ), - ); + )); } Future onPublishPressed() async { diff --git a/wallet/assets/images/qr_overlay.png b/wallet/assets/images/qr_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..2c41e9992e6d21a0ebbbb49f3f6d75a512c7be8c GIT binary patch literal 75845 zcmV)=K!m@EP)OsG>u1ExS30*inQ5;8!R05=6! zwFnAssMK+nWY0YpyKG3QCs45|)!j3+XN)l-V(oLj%$r$R{86oy`Q5XB)?RC_`7=hu zh?sM_-N$|W&*1pY-~7!VzyAFA`F#HR`RnfgtBCmVTI*Mp?PygT#{@{=7KJMe+ z;lu4d?&IH~;|2b|_5%LjIH3RfcV7Sc`D+dE=MbpBgZ=yW_6vUgt?SM64vGBX>)#=b zfAJ!XKRl%IB8xw?`?!yP2acN*?&IIuLj>@8`M-XF>u-Dk{=djE0sS5PzeNV$y3Q{{ zGUxR_fBpNz*K_>g%iH)DH&NWjzm3OD3it7E&2dQJCCmKf7ij+a>+f&AKKl2^*I$A8 zJmT%#Z=K_B=YDnmJDAVc@4xwZB=NJni=P_2ivRlMP5iSLN&M9A<39ckA2%u7$G_3z zMFhX`@&^9$dHMSHYy9{Zm3`iS^F!qx`^NQu5pUp!TyMU&w=&Ip9)kGiFM{~5Uj*^b z>^|<}-@tK`!hQT}KL!!}#D16@^ewRd>ho^}jqL}%|5cRX=UwB6eE!qdzkl{3i2wYS zneO9X=W&z5ef(=VPIk~s68h_}*ue1!e#3ro5d9YL|4@+sS-*Mz-hRpJ{;c!t8`t`| z<$4|e;w7p5=P!czgFCzFKK`_in-uQjPxT-f{MHNDe%rpz5c*lK?FW4JL;wD)YyHsU zhmgrH`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mpty ? "" : _extractCoinValue(recipe.coinInputs[0].coins)[kDenom]; + final List listOfPerks = []; jsonDecode(map[kPerks]!).map((jsonMap) { listOfPerks.add(PerksModel.fromJson(jsonMap as Map)); @@ -101,6 +104,7 @@ class Events extends Equatable { listOfPerks: listOfPerks, cookbookID: map[kCookBookId]!, recipeID: map[kRecipeId]!, + denom: denom!, ); } @@ -133,6 +137,10 @@ class Events extends Equatable { return attributeValues; } + static Map _extractCoinValue(List coins) { + return {kDenom: coins[0].denom, kPrice: coins[0].amount}; + } + @override List get props => [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID, step]; @@ -177,6 +185,7 @@ const transferFeeAmount = '1'; const kEventlyEvent = "Evently_Event"; const kExtraInfo = "extraInfo"; const costPerBlock = '0'; +const kDenom = "kDenom"; class PerksModel { PerksModel({required this.name, required this.description}); diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart index d546c85997..3787aa8c75 100644 --- a/wallet/lib/pages/events/event_purchase_view.dart +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -2,6 +2,7 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; +import 'package:mobile_scanner/mobile_scanner.dart'; import 'package:pylons_wallet/components/space_widgets.dart'; import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/utils/constants.dart'; @@ -30,15 +31,25 @@ class _EventPurchaseViewState extends State { } class EventPassViewContent extends StatelessWidget { - const EventPassViewContent({ + EventPassViewContent({ super.key, required this.events, }); final Events events; + final MobileScannerController controller = MobileScannerController( + formats: const [BarcodeFormat.qrCode], + ); + @override Widget build(BuildContext context) { + final scanWindow = Rect.fromCenter( + center: MediaQuery.sizeOf(context).center(Offset.zero), + width: 100, + height: 100, + ); + return ColoredBox( color: AppColors.kBlack87, child: SafeArea( @@ -65,7 +76,7 @@ class EventPassViewContent extends StatelessWidget { ), GestureDetector( onTap: () {}, - child: SvgPicture.asset(shareIcon), + child: Container(), ), ], ), @@ -73,6 +84,20 @@ class EventPassViewContent extends StatelessWidget { ), body: Column( children: [ + Stack( + children: [ + Container( + margin: EdgeInsets.symmetric(horizontal: 20.w), + height: 200.h, + child: MobileScanner( + controller: controller, + onDetect: (_) { + print(_); + }, + ), + ), + ], + ), Container( margin: EdgeInsets.symmetric(horizontal: 20.w), padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), @@ -202,3 +227,66 @@ class EventPassViewContent extends StatelessWidget { ); } } + +class ScannerOverlay extends CustomPainter { + const ScannerOverlay({ + required this.scanWindow, + this.borderRadius = 12.0, + }); + + final Rect scanWindow; + final double borderRadius; + + @override + void paint(Canvas canvas, Size size) { + // TODO: use `Offset.zero & size` instead of Rect.largest + // we need to pass the size to the custom paint widget + final backgroundPath = Path()..addRect(Rect.largest); + + final cutoutPath = Path() + ..addRRect( + RRect.fromRectAndCorners( + scanWindow, + topLeft: Radius.circular(borderRadius), + topRight: Radius.circular(borderRadius), + bottomLeft: Radius.circular(borderRadius), + bottomRight: Radius.circular(borderRadius), + ), + ); + + final backgroundPaint = Paint() + ..color = Colors.black.withOpacity(0.5) + ..style = PaintingStyle.fill + ..blendMode = BlendMode.dstOut; + + final backgroundWithCutout = Path.combine( + PathOperation.difference, + backgroundPath, + cutoutPath, + ); + + final borderPaint = Paint() + ..color = Colors.white + ..style = PaintingStyle.stroke + ..strokeWidth = 4.0; + + final borderRect = RRect.fromRectAndCorners( + scanWindow, + topLeft: Radius.circular(borderRadius), + topRight: Radius.circular(borderRadius), + bottomLeft: Radius.circular(borderRadius), + bottomRight: Radius.circular(borderRadius), + ); + + // First, draw the background, + // with a cutout area that is a bit larger than the scan window. + // Finally, draw the scan window itself. + canvas.drawPath(backgroundWithCutout, backgroundPaint); + canvas.drawRRect(borderRect, borderPaint); + } + + @override + bool shouldRepaint(ScannerOverlay oldDelegate) { + return scanWindow != oldDelegate.scanWindow || borderRadius != oldDelegate.borderRadius; + } +} diff --git a/wallet/lib/pages/events/events_owner_view.dart b/wallet/lib/pages/events/events_owner_view.dart index 17cc0f0602..d8a0f89887 100644 --- a/wallet/lib/pages/events/events_owner_view.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -194,6 +194,7 @@ class EventPassViewContent extends StatelessWidget { margin: EdgeInsets.symmetric(horizontal: 20.w), child: CachedNetworkImage( fit: BoxFit.fill, + width: double.infinity, imageUrl: viewModel.events.thumbnail, errorWidget: (a, b, c) => const Center( child: Icon( diff --git a/wallet/lib/utils/image_util.dart b/wallet/lib/utils/image_util.dart index dab7dc5a65..9370157809 100644 --- a/wallet/lib/utils/image_util.dart +++ b/wallet/lib/utils/image_util.dart @@ -28,6 +28,7 @@ class ImageUtil { static String LIKE_FULL = 'assets/images/icons/like_full.png'; static String SPLASH_SCREEN_BG = "assets/images/splash/Splash_Screen.jpg"; static String CLOSE_ICON = 'assets/images/icons/close.png'; + static String QR_OVERLAY = "assets/images/qr_overlay.png"; static List BG_IMAGES = [ Image.asset( diff --git a/wallet/pubspec.yaml b/wallet/pubspec.yaml index 404f3b25ce..dbe049c6c7 100644 --- a/wallet/pubspec.yaml +++ b/wallet/pubspec.yaml @@ -80,6 +80,7 @@ dependencies: provider: ^6.0.3 qr_flutter: ^4.0.0 + qr_scanner_overlay: ^0.0.2 retry: ^3.1.2 share_plus: ^6.0.0 shared_preferences: ^2.0.12 From 7745c60fe4619e4dc2251f9e66da4326cbb7bfcf Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 28 May 2024 12:23:14 +0500 Subject: [PATCH 141/158] feat: sharable link and denom added --- wallet/lib/model/event.dart | 7 ++-- .../lib/pages/events/event_purchase_view.dart | 9 ++--- .../lib/pages/events/events_owner_view.dart | 3 +- .../data_stores/remote_data_store.dart | 36 +++---------------- 4 files changed, 12 insertions(+), 43 deletions(-) diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index a0de629b8c..ad9d0414c6 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -1,6 +1,7 @@ import 'dart:convert'; import 'package:equatable/equatable.dart'; import 'package:get_it/get_it.dart'; +import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart'; import 'package:pylons_wallet/stores/wallet_store.dart'; import '../modules/Pylonstech.pylons.pylons/module/client/cosmos/base/v1beta1/coin.pb.dart'; import '../modules/Pylonstech.pylons.pylons/module/client/pylons/recipe.pb.dart'; @@ -25,7 +26,7 @@ class Events extends Equatable { final String isFreeDrops; final String cookbookID; final String step; - final String denom; + final IBCCoins denom; String ownerAddress = ""; String owner = ""; @@ -52,7 +53,7 @@ class Events extends Equatable { this.numberOfTickets = '0', this.price = '', this.isFreeDrops = 'unselected', - this.denom = '', + this.denom = IBCCoins.upylon, ///* other this.cookbookID = '', @@ -104,7 +105,7 @@ class Events extends Equatable { listOfPerks: listOfPerks, cookbookID: map[kCookBookId]!, recipeID: map[kRecipeId]!, - denom: denom!, + denom: denom!.toIBCCoinsEnum(), ); } diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart index 3787aa8c75..6e8c2b4b98 100644 --- a/wallet/lib/pages/events/event_purchase_view.dart +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -5,6 +5,7 @@ import 'package:flutter_svg/flutter_svg.dart'; import 'package:mobile_scanner/mobile_scanner.dart'; import 'package:pylons_wallet/components/space_widgets.dart'; import 'package:pylons_wallet/model/event.dart'; +import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart'; import 'package:pylons_wallet/utils/constants.dart'; class EventPurchaseView extends StatefulWidget { @@ -44,12 +45,6 @@ class EventPassViewContent extends StatelessWidget { @override Widget build(BuildContext context) { - final scanWindow = Rect.fromCenter( - center: MediaQuery.sizeOf(context).center(Offset.zero), - width: 100, - height: 100, - ); - return ColoredBox( color: AppColors.kBlack87, child: SafeArea( @@ -166,7 +161,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - events.price == "0" ? "Free" : events.price, + events.price == "0" ? "Free" : '${events.price} ${events.denom.getName()}', style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], diff --git a/wallet/lib/pages/events/events_owner_view.dart b/wallet/lib/pages/events/events_owner_view.dart index d8a0f89887..62c275b0b0 100644 --- a/wallet/lib/pages/events/events_owner_view.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -7,6 +7,7 @@ import 'package:provider/provider.dart'; import 'package:pylons_wallet/components/space_widgets.dart'; import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/pages/detailed_asset_view/owner_view_view_model.dart'; +import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart'; import 'package:pylons_wallet/utils/constants.dart'; class EventOwnerView extends StatefulWidget { @@ -149,7 +150,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - viewModel.events.price == "0" ? "Free" : viewModel.events.price, + viewModel.events.price == "0" ? "Free" : '${viewModel.events.price} ${viewModel.events.denom.getName()}', style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], diff --git a/wallet/lib/services/data_stores/remote_data_store.dart b/wallet/lib/services/data_stores/remote_data_store.dart index 27b375f826..f66686523a 100644 --- a/wallet/lib/services/data_stores/remote_data_store.dart +++ b/wallet/lib/services/data_stores/remote_data_store.dart @@ -1460,7 +1460,10 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future createDynamicLinkForRecipeEventShare({required String address, required Events events}) async { - final updateText = '${events.eventName} is hosted by ${events.hostName} at location ${events.location} ticket price is ${events.price}'; + final updateText = events.denom.getAbbrev() == constants.kPYLN_ABBREVATION + ? "\$${events.denom.pylnToCredit(events.denom.getCoinWithProperDenomination(events.price))}" + : "${events.denom.getCoinWithProperDenomination(events.price)} ${events.denom.getAbbrev()}"; + final dynamicLinkParams = DynamicLinkParameters( link: Uri.parse("$bigDipperBaseLink?recipe_id=${events.recipeID}&cookbook_id=${events.cookbookID}&address=$address"), uriPrefix: kDeepLink, @@ -1539,34 +1542,3 @@ class GoogleInAppPurchaseModel { return base64Url.encode(utf8.encode(jsonEncode(receiptData))); } } - -class EventlyDenom { - final String name; - final String symbol; - final String icon; - - EventlyDenom({required this.name, required this.symbol, required this.icon}); - - factory EventlyDenom.initial() { - return EventlyDenom(icon: '', name: '', symbol: ''); - } - - @override - String toString() { - return '{name: $name, symbol: $symbol, icon: $icon}'; - } - - Map toJson() { - final Map map = {}; - map['name'] = name; - map['symbol'] = symbol; - map['icon'] = icon; - return map; - } - - factory EventlyDenom.fromJson(Map json) => EventlyDenom( - name: json['name']!, - symbol: json['symbol']!, - icon: json['icon']!, - ); -} From 3a6a4b671fe3d19d9762909eb8b1708e657c696e Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 28 May 2024 12:56:22 +0500 Subject: [PATCH 142/158] feat: qr view for purchases --- .../pages/events/event_qr_code_screen.dart | 25 +++++++++++++++++++ .../lib/pages/events/events_owner_view.dart | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 wallet/lib/pages/events/event_qr_code_screen.dart diff --git a/wallet/lib/pages/events/event_qr_code_screen.dart b/wallet/lib/pages/events/event_qr_code_screen.dart new file mode 100644 index 0000000000..74bf610501 --- /dev/null +++ b/wallet/lib/pages/events/event_qr_code_screen.dart @@ -0,0 +1,25 @@ +import 'dart:convert'; + +import 'package:flutter/material.dart'; + +const jsonExecuteRecipe = ''' + { + "creator": "", + "cookbook_id": "", + "recipe_id": "", + "eventName": "", + "eventPrice": "", + "eventCurrency": "", + "coinInputsIndex": 0 + } + '''; +final jsonMap = jsonDecode(jsonExecuteRecipe) as Map; + +class EventQrCodeScreen extends StatelessWidget { + const EventQrCodeScreen({super.key}); + + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} diff --git a/wallet/lib/pages/events/events_owner_view.dart b/wallet/lib/pages/events/events_owner_view.dart index 62c275b0b0..0fc4986b3c 100644 --- a/wallet/lib/pages/events/events_owner_view.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -204,7 +204,11 @@ class EventPassViewContent extends StatelessWidget { )), // placeholder: (context, url) => Shimmer(color: AppColors.kLightGray, child: const SizedBox.expand()), ), - ) + ), + + + + ], ), ), From 78c372a1870f6ded0ff58dfe640946f24bd3153a Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 28 May 2024 14:46:34 +0500 Subject: [PATCH 143/158] feat: qr view for excuting recipe --- wallet/lib/model/event.dart | 29 +++++++ .../lib/pages/events/event_purchase_view.dart | 1 + .../pages/events/event_qr_code_screen.dart | 85 ++++++++++++++++++- .../lib/pages/events/events_owner_view.dart | 20 ++++- 4 files changed, 128 insertions(+), 7 deletions(-) diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index ad9d0414c6..07a5d56668 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -67,6 +67,35 @@ class Events extends Equatable { this.owner = '', }); + Map toJson() { + final Map map = {}; + + final perks = []; + + listOfPerks?.map((e) => perks.add(e.toJson())).toList(); + + map['id'] = id; + map['recipeID'] = recipeID; + map['eventName'] = eventName; + map['hostName'] = hostName; + map['thumbnail'] = thumbnail; + map['startDate'] = startDate; + map['endDate'] = endDate; + map['startTime'] = startTime; + map['endTime'] = endTime; + map['location'] = location; + map['description'] = description; + map['numberOfTickets'] = numberOfTickets; + map['price'] = price; + map['isFreeDrops'] = isFreeDrops; + map['cookbookID'] = cookbookID; + map['step'] = step; + map['denom'] = denom.toString(); + map['listOfPerks'] = perks; + + return map; + } + Future getOwnerAddress() async { if (ownerAddress.isEmpty) { final walletsStore = GetIt.I.get(); diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart index 6e8c2b4b98..c5f3edc8b7 100644 --- a/wallet/lib/pages/events/event_purchase_view.dart +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -205,6 +205,7 @@ class EventPassViewContent extends StatelessWidget { Container( margin: EdgeInsets.symmetric(horizontal: 20.w), child: CachedNetworkImage( + width: double.infinity, fit: BoxFit.fill, imageUrl: events.thumbnail, errorWidget: (a, b, c) => const Center( diff --git a/wallet/lib/pages/events/event_qr_code_screen.dart b/wallet/lib/pages/events/event_qr_code_screen.dart index 74bf610501..78381bfdd7 100644 --- a/wallet/lib/pages/events/event_qr_code_screen.dart +++ b/wallet/lib/pages/events/event_qr_code_screen.dart @@ -1,6 +1,16 @@ import 'dart:convert'; +import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:pylons_wallet/components/buttons/custom_paint_button.dart'; +import 'package:pylons_wallet/gen/assets.gen.dart'; +import 'package:pylons_wallet/generated/locale_keys.g.dart'; +import 'package:pylons_wallet/model/event.dart'; +import 'package:pylons_wallet/pages/detailed_asset_view/widgets/nft_image_asset.dart'; +import 'package:pylons_wallet/utils/constants.dart'; +import 'package:qr_flutter/qr_flutter.dart'; const jsonExecuteRecipe = ''' { @@ -15,11 +25,80 @@ const jsonExecuteRecipe = ''' '''; final jsonMap = jsonDecode(jsonExecuteRecipe) as Map; -class EventQrCodeScreen extends StatelessWidget { - const EventQrCodeScreen({super.key}); +class EventQrCodeScreen extends StatefulWidget { + const EventQrCodeScreen({ + super.key, + required this.events, + }); + + final Events events; + + @override + State createState() => _EventQrCodeScreenState(); +} + +class _EventQrCodeScreenState extends State { + GlobalKey renderObjectKey = GlobalKey(); @override Widget build(BuildContext context) { - return const Placeholder(); + return Material( + color: AppColors.kBlack, + child: Stack( + children: [ + NftImageWidget( + url: widget.events.thumbnail, + opacity: 0.5, + ), + Padding( + padding: EdgeInsets.only(left: 23.w, top: MediaQuery.of(context).viewPadding.top + 13.h), + child: GestureDetector( + onTap: () async { + Navigator.pop(context); + }, + child: SvgPicture.asset( + Assets.images.icons.back, + height: 25.h, + ), + ), + ), + ColoredBox( + color: AppColors.kBlack.withOpacity(0.5), + child: Align( + child: RepaintBoundary( + key: renderObjectKey, + child: QrImageView( + padding: EdgeInsets.zero, + data: jsonEncode(widget.events), + size: 200, + dataModuleStyle: const QrDataModuleStyle(color: AppColors.kWhite), + eyeStyle: const QrEyeStyle(eyeShape: QrEyeShape.square, color: AppColors.kWhite), + ), + ), + ), + ), + Align( + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: SvgPicture.asset(Assets.images.svg.qrSideBorder), + ), + ), + Align( + alignment: Alignment.bottomCenter, + child: Padding( + padding: EdgeInsets.only(bottom: 30.h), + child: CustomPaintButton( + title: LocaleKeys.done.tr(), + bgColor: AppColors.kWhite.withOpacity(0.3), + width: 280.w, + onPressed: () { + Navigator.pop(context); + }, + ), + ), + ) + ], + ), + ); } } diff --git a/wallet/lib/pages/events/events_owner_view.dart b/wallet/lib/pages/events/events_owner_view.dart index 0fc4986b3c..337c9cd810 100644 --- a/wallet/lib/pages/events/events_owner_view.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -5,8 +5,10 @@ import 'package:flutter_svg/flutter_svg.dart'; import 'package:get_it/get_it.dart'; import 'package:provider/provider.dart'; import 'package:pylons_wallet/components/space_widgets.dart'; +import 'package:pylons_wallet/gen/assets.gen.dart'; import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/pages/detailed_asset_view/owner_view_view_model.dart'; +import 'package:pylons_wallet/pages/events/event_qr_code_screen.dart'; import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart'; import 'package:pylons_wallet/utils/constants.dart'; @@ -205,10 +207,20 @@ class EventPassViewContent extends StatelessWidget { // placeholder: (context, url) => Shimmer(color: AppColors.kLightGray, child: const SizedBox.expand()), ), ), - - - - + GestureDetector( + onTap: () { + showDialog( + context: context, + builder: (_) => EventQrCodeScreen( + events: viewModel.events, + ), + ); + }, + child: SvgPicture.asset( + Assets.images.icons.qr, + height: 20.h, + ), + ), ], ), ), From 5c1f9941d220cd0503f451456412a2789935fc35 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Tue, 28 May 2024 16:11:58 +0500 Subject: [PATCH 144/158] fix: qr view is not scannable --- .../lib/pages/events/event_purchase_view.dart | 21 +++++++++++++++++-- .../pages/events/event_qr_code_screen.dart | 2 +- .../lib/pages/events/events_owner_view.dart | 3 ++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart index c5f3edc8b7..a70c9bbdcd 100644 --- a/wallet/lib/pages/events/event_purchase_view.dart +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -39,12 +39,29 @@ class EventPassViewContent extends StatelessWidget { final Events events; - final MobileScannerController controller = MobileScannerController( + late Rect scanWindow; + + MobileScannerController cameraController = MobileScannerController( formats: const [BarcodeFormat.qrCode], + autoStart: true, + detectionSpeed: DetectionSpeed.noDuplicates, ); + void _foundBarcode(BarcodeCapture barcodeCapture) { + debugPrint('$barcodeCapture'); + final String code = barcodeCapture.barcodes.last.displayValue ?? ''; + debugPrint('Code: $code'); + // context.read().add(ScannerTextEvent(scannedText: code)); + } + @override Widget build(BuildContext context) { + scanWindow = Rect.fromCenter( + center: MediaQuery.sizeOf(context).center(Offset(0, -130.h)), + width: 100.r, + height: 100.r, + ); + return ColoredBox( color: AppColors.kBlack87, child: SafeArea( @@ -85,12 +102,12 @@ class EventPassViewContent extends StatelessWidget { margin: EdgeInsets.symmetric(horizontal: 20.w), height: 200.h, child: MobileScanner( - controller: controller, onDetect: (_) { print(_); }, ), ), + ], ), Container( diff --git a/wallet/lib/pages/events/event_qr_code_screen.dart b/wallet/lib/pages/events/event_qr_code_screen.dart index 78381bfdd7..fda1326899 100644 --- a/wallet/lib/pages/events/event_qr_code_screen.dart +++ b/wallet/lib/pages/events/event_qr_code_screen.dart @@ -69,7 +69,7 @@ class _EventQrCodeScreenState extends State { key: renderObjectKey, child: QrImageView( padding: EdgeInsets.zero, - data: jsonEncode(widget.events), + data: jsonEncode(widget.events.toJson()), size: 200, dataModuleStyle: const QrDataModuleStyle(color: AppColors.kWhite), eyeStyle: const QrEyeStyle(eyeShape: QrEyeShape.square, color: AppColors.kWhite), diff --git a/wallet/lib/pages/events/events_owner_view.dart b/wallet/lib/pages/events/events_owner_view.dart index 337c9cd810..ead5c1fa8a 100644 --- a/wallet/lib/pages/events/events_owner_view.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -207,6 +207,7 @@ class EventPassViewContent extends StatelessWidget { // placeholder: (context, url) => Shimmer(color: AppColors.kLightGray, child: const SizedBox.expand()), ), ), + SizedBox(height: 10.h), GestureDetector( onTap: () { showDialog( @@ -218,7 +219,7 @@ class EventPassViewContent extends StatelessWidget { }, child: SvgPicture.asset( Assets.images.icons.qr, - height: 20.h, + height: 40.h, ), ), ], From 93dc8a0c8a2a66d399220907a411aa1e87dce064 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Wed, 29 May 2024 16:41:28 +0500 Subject: [PATCH 145/158] feat: purchasing event with coins integration --- evently/lib/evently_provider.dart | 5 +- evently/lib/models/events.dart | 4 +- wallet/lib/model/event.dart | 26 +++ .../lib/pages/events/event_purchase_view.dart | 153 +++++++++++++++--- .../pages/events/event_qr_code_screen.dart | 13 -- .../lib/pages/events/events_owner_view.dart | 7 +- .../home/currency_screen/model/ibc_coins.dart | 17 +- .../purchase_item_view_model.dart | 43 ++++- .../failure_manager_view_model.dart | 3 + .../data_stores/remote_data_store.dart | 1 + wallet/lib/stores/wallet_store.dart | 5 + wallet/lib/stores/wallet_store_imp.dart | 88 ++++++++++ wallet/lib/utils/constants.dart | 5 + wallet/lib/utils/enums.dart | 3 +- 14 files changed, 324 insertions(+), 49 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 2fac808a01..d4065cbb26 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -290,12 +290,15 @@ class EventlyProvider extends ChangeNotifier { step: '', ); + final String prices = isFreeDrop == FreeDrop.yes ? "0" : _selectedDenom.formatAmount(price: price.toString()); + + final recipe = event.createRecipe( cookbookId: _cookbookId!, recipeId: _recipeId, isFreeDrop: isFreeDrop, symbol: selectedDenom.symbol, - price: price.toString(), + price: prices, ); final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index e3c485461f..b9d32b2f1c 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -135,7 +135,9 @@ extension CreateRecipe on Events { description: description.trim(), version: kVersion, coinInputs: [ - if (isFreeDrop == FreeDrop.no) + if (isFreeDrop == FreeDrop.yes) + CoinInput() + else CoinInput( coins: [Coin(amount: price, denom: symbol)], ) diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index 07a5d56668..aa4ce6dbd4 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -96,6 +96,32 @@ class Events extends Equatable { return map; } + factory Events.fromJson(Map json) { + final List listOfPerks = []; + + json['listOfPerks'].map((jsonData) => listOfPerks.add(PerksModel.fromJson(jsonData as Map))).toList(); + + return Events( + recipeID: json['recipeID'] as String, + eventName: json['eventName'] as String, + hostName: json['hostName'] as String, + thumbnail: json['thumbnail'] as String, + startDate: json['startDate'] as String, + endDate: json['endDate'] as String, + startTime: json['startTime'] as String, + endTime: json['endTime'] as String, + location: json['location'] as String, + description: json['description'] as String, + numberOfTickets: json['numberOfTickets'] as String, + price: json['price'] as String, + isFreeDrops: json['isFreeDrops'] as String, + cookbookID: json['cookbookID'] as String, + step: json['step'] as String, + listOfPerks: listOfPerks, + denom: json['denom'].toString().toIBCCoinsEnumforEvent(), + ); + } + Future getOwnerAddress() async { if (ownerAddress.isEmpty) { final walletsStore = GetIt.I.get(); diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart index a70c9bbdcd..3623944b72 100644 --- a/wallet/lib/pages/events/event_purchase_view.dart +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -1,12 +1,23 @@ +import 'dart:convert'; import 'package:cached_network_image/cached_network_image.dart'; +import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:mobile_scanner/mobile_scanner.dart'; +import 'package:provider/provider.dart'; +import 'package:pylons_wallet/components/loading.dart'; import 'package:pylons_wallet/components/space_widgets.dart'; import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart'; +import 'package:pylons_wallet/pages/purchase_item/purchase_item_view_model.dart'; +import 'package:pylons_wallet/pages/purchase_item/widgets/trade_receipt_dialog.dart'; +import 'package:pylons_wallet/pages/purchase_item/widgets/transaction_complete_dialog.dart'; +import 'package:pylons_wallet/pylons_app.dart'; import 'package:pylons_wallet/utils/constants.dart'; +import 'package:pylons_wallet/utils/dependency_injection/dependency_injection.dart'; +import 'package:pylons_wallet/utils/route_util.dart'; +import '../../modules/Pylonstech.pylons.pylons/module/client/pylons/execution.pb.dart'; class EventPurchaseView extends StatefulWidget { const EventPurchaseView({super.key, required this.events}); @@ -23,35 +34,129 @@ class _EventPurchaseViewState extends State { super.initState(); } + final viewModel = sl(); + @override Widget build(BuildContext context) { - return EventPassViewContent( - events: widget.events, + return ChangeNotifierProvider.value( + value: viewModel, + child: EventPassViewContent( + events: widget.events, + ), ); } } -class EventPassViewContent extends StatelessWidget { - EventPassViewContent({ +class EventPassViewContent extends StatefulWidget { + const EventPassViewContent({ super.key, required this.events, }); final Events events; + @override + State createState() => _EventPassViewContentState(); +} + +class _EventPassViewContentState extends State { late Rect scanWindow; MobileScannerController cameraController = MobileScannerController( formats: const [BarcodeFormat.qrCode], - autoStart: true, detectionSpeed: DetectionSpeed.noDuplicates, ); - void _foundBarcode(BarcodeCapture barcodeCapture) { - debugPrint('$barcodeCapture'); - final String code = barcodeCapture.barcodes.last.displayValue ?? ''; - debugPrint('Code: $code'); - // context.read().add(ScannerTextEvent(scannedText: code)); + bool isCapture = false; + + Future executeRecipe(BuildContext context) async { + final provider = context.read(); + final ibcEnumCoins = provider.getEvents.denom; + + if (ibcEnumCoins == IBCCoins.ustripeusd) { + // stripePaymentForRecipe(context, provider.getEvents); + print('needed to work for this'); + } else { + paymentByCoins(); + } + } + + Future paymentByCoins() async { + final navigator = Navigator.of(navigatorKey.currentState!.overlay!.context); + final provider = context.read(); + final executionResponse = await provider.paymentForEventRecipe(); + + navigator.pop(); + if (!executionResponse.success) { + executionResponse.error.show(); + navigator.pushNamed(Routes.transactionFailure.name); + return; + } + + showTransactionCompleteDialog(execution: executionResponse.data!); + } + + void showTransactionCompleteDialog({required Execution execution}) { + final viewModel = context.read(); + + var price = double.parse(viewModel.nft.price); + final fee = double.parse(viewModel.nft.price) * 0.1; + price = price - fee; + + final txId = execution.hasId() ? execution.id : ""; + + final txTime = getTransactionTimeStamp(execution.hasTxTime() ? execution.txTime.toInt() : null); + + final model = viewModel.createTradeReciptModel( + fee: fee, + price: price, + txId: txId, + txTime: txTime, + ); + + final TradeCompleteDialog tradeCompleteDialog = TradeCompleteDialog( + model: model, + context: context, + onBackPressed: () { + showReceiptDialog(model); + }, + ); + tradeCompleteDialog.show(); + } + + void showReceiptDialog(TradeReceiptModel model) { + final TradeReceiptDialog tradeReceiptDialog = TradeReceiptDialog(context: context, model: model); + tradeReceiptDialog.show(); + } + + String getTransactionTimeStamp(int? time) { + final formatter = DateFormat('MMM dd yyyy HH:mm'); + if (time == null) { + return "${formatter.format(DateTime.now().toUtc())} $kUTC"; + } + + final int timeStamp = time * kDateConverterConstant; + final DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(timeStamp, isUtc: true); + return "${formatter.format(dateTime)} $kUTC"; + } + + Future onDetect(BarcodeCapture barCodeCapture, PurchaseItemViewModel viewModel, BuildContext context) async { + if (isCapture) { + return; + } + if (!isCapture) { + setState(() => isCapture = true); + + final String? displayValue = barCodeCapture.barcodes.first.displayValue; + + final map = jsonDecode(displayValue!); + + final event = Events.fromJson(map as Map); + + viewModel.setEvents = event; + + await executeRecipe(context); + } } @override @@ -62,6 +167,11 @@ class EventPassViewContent extends StatelessWidget { height: 100.r, ); + final viewModel = context.watch(); + final coinWithDenom = widget.events.denom.getAbbrev() == kPYLN_ABBREVATION + ? "\$${widget.events.denom.pylnToCredit(widget.events.denom.getCoinWithProperDenomination(widget.events.price))} ${widget.events.denom.getAbbrev()}" + : "${widget.events.denom.getCoinWithProperDenomination(widget.events.price)} ${widget.events.denom.getAbbrev()}"; + return ColoredBox( color: AppColors.kBlack87, child: SafeArea( @@ -102,12 +212,13 @@ class EventPassViewContent extends StatelessWidget { margin: EdgeInsets.symmetric(horizontal: 20.w), height: 200.h, child: MobileScanner( - onDetect: (_) { - print(_); - }, + onDetect: (BarcodeCapture barCodeCapture) => onDetect( + barCodeCapture, + viewModel, + context, + ), ), ), - ], ), Container( @@ -118,7 +229,7 @@ class EventPassViewContent extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - events.eventName, + widget.events.eventName, style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 25.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), VerticalSpace(20.h), @@ -133,7 +244,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - events.startDate, + widget.events.startDate, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -146,7 +257,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - events.startTime, + widget.events.startTime, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -165,7 +276,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - events.location, + widget.events.location, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -178,7 +289,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - events.price == "0" ? "Free" : '${events.price} ${events.denom.getName()}', + coinWithDenom, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -202,7 +313,7 @@ class EventPassViewContent extends StatelessWidget { SvgPicture.asset(kDiamondIcon), SizedBox(width: 5.w), Text( - 'x ${events.listOfPerks?.length}', + 'x ${widget.events.listOfPerks?.length}', style: TextStyle(fontSize: 15.sp, color: AppColors.kWhite, fontWeight: FontWeight.bold), ), SizedBox(width: 5.w), @@ -224,7 +335,7 @@ class EventPassViewContent extends StatelessWidget { child: CachedNetworkImage( width: double.infinity, fit: BoxFit.fill, - imageUrl: events.thumbnail, + imageUrl: widget.events.thumbnail, errorWidget: (a, b, c) => const Center( child: Icon( Icons.error_outline, diff --git a/wallet/lib/pages/events/event_qr_code_screen.dart b/wallet/lib/pages/events/event_qr_code_screen.dart index fda1326899..b75d18e23a 100644 --- a/wallet/lib/pages/events/event_qr_code_screen.dart +++ b/wallet/lib/pages/events/event_qr_code_screen.dart @@ -12,19 +12,6 @@ import 'package:pylons_wallet/pages/detailed_asset_view/widgets/nft_image_asset. import 'package:pylons_wallet/utils/constants.dart'; import 'package:qr_flutter/qr_flutter.dart'; -const jsonExecuteRecipe = ''' - { - "creator": "", - "cookbook_id": "", - "recipe_id": "", - "eventName": "", - "eventPrice": "", - "eventCurrency": "", - "coinInputsIndex": 0 - } - '''; -final jsonMap = jsonDecode(jsonExecuteRecipe) as Map; - class EventQrCodeScreen extends StatefulWidget { const EventQrCodeScreen({ super.key, diff --git a/wallet/lib/pages/events/events_owner_view.dart b/wallet/lib/pages/events/events_owner_view.dart index ead5c1fa8a..5c1da9d385 100644 --- a/wallet/lib/pages/events/events_owner_view.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -47,6 +47,11 @@ class EventPassViewContent extends StatelessWidget { @override Widget build(BuildContext context) { final viewModel = context.watch(); + + final coinWithDenom = viewModel.events.denom.getAbbrev() == kPYLN_ABBREVATION + ? "\$${viewModel.events.denom.pylnToCredit(viewModel.events.denom.getCoinWithProperDenomination(viewModel.events.price))} ${viewModel.events.denom.getAbbrev()}" + : "${viewModel.events.denom.getCoinWithProperDenomination(viewModel.events.price)} ${viewModel.events.denom.getAbbrev()}"; + return ColoredBox( color: AppColors.kBlack87, child: SafeArea( @@ -152,7 +157,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - viewModel.events.price == "0" ? "Free" : '${viewModel.events.price} ${viewModel.events.denom.getName()}', + coinWithDenom, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], diff --git a/wallet/lib/pages/home/currency_screen/model/ibc_coins.dart b/wallet/lib/pages/home/currency_screen/model/ibc_coins.dart index 67b17b2659..52bfad7244 100644 --- a/wallet/lib/pages/home/currency_screen/model/ibc_coins.dart +++ b/wallet/lib/pages/home/currency_screen/model/ibc_coins.dart @@ -19,6 +19,16 @@ extension IBCCoinsPar on String { return e.toString().toLowerCase() == 'IBCCoins.$this'.toLowerCase(); }, orElse: () => IBCCoins.none); //return null if not found } + + IBCCoins toIBCCoinsEnumforEvent() { + if (this == kEthereumSymbol) { + return IBCCoins.weth_wei; + } + + return IBCCoins.values.firstWhere((e) { + return e.toString().toLowerCase() == toLowerCase(); + }, orElse: () => IBCCoins.none); //return null if not found + } } extension IBCCoinsDePar on IBCCoins { @@ -146,7 +156,7 @@ extension IBCCoinsDePar on IBCCoins { case IBCCoins.ustripeusd: return (double.parse(amount) / kBigIntBase).toStringAsFixed(2); case IBCCoins.upylon: - return (double.parse(amount) / kBigIntBase).toStringAsFixed(0); + return (double.parse(amount) / kBigIntBase).toStringAsFixed(2); case IBCCoins.weth_wei: return (double.parse(amount) / kEthIntBase).toStringAsFixed(2); } @@ -185,7 +195,6 @@ extension IBCCoinsDePar on IBCCoins { case IBCCoins.none: case IBCCoins.eeur: case IBCCoins.ujuno: - case IBCCoins.uatom: return "${(double.parse(amount) / kBigIntBase).toStringAsFixed(kCurrencyDecimalLength)} ${getAbbrev()}"; case IBCCoins.upylon: @@ -197,11 +206,9 @@ extension IBCCoinsDePar on IBCCoins { } } - String pylnToCredit(String amount) { - return( double.parse(amount)/10).toStringAsFixed(2); + return (double.parse(amount) / 10).toStringAsFixed(2); } - } SizedBox getIconFromAsset(String ibcCoinIcon) => SizedBox( diff --git a/wallet/lib/pages/purchase_item/purchase_item_view_model.dart b/wallet/lib/pages/purchase_item/purchase_item_view_model.dart index 8110e75021..c8f948f4dd 100644 --- a/wallet/lib/pages/purchase_item/purchase_item_view_model.dart +++ b/wallet/lib/pages/purchase_item/purchase_item_view_model.dart @@ -1,6 +1,5 @@ import 'dart:async'; import 'dart:convert'; - import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/cupertino.dart'; @@ -8,6 +7,7 @@ import 'package:flutter/material.dart'; import 'package:just_audio/just_audio.dart'; import 'package:pylons_wallet/components/loading.dart'; import 'package:pylons_wallet/ipc/models/sdk_ipc_response.dart'; +import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/model/nft.dart'; import 'package:pylons_wallet/model/nft_ownership_history.dart'; import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/client/pylons/execution.pb.dart'; @@ -147,6 +147,33 @@ class PurchaseItemViewModel extends ChangeNotifier { return response; } + Future> paymentForEventRecipe() async { + const jsonExecuteRecipe = ''' + { + "creator": "", + "cookbook_id": "", + "recipe_id": "", + "eventName": "", + "eventPrice": "", + "eventCurrency": "", + "coinInputsIndex": 0 + } + '''; + final jsonMap = jsonDecode(jsonExecuteRecipe) as Map; + + jsonMap[kCookbookIdKey] = getEvents.cookbookID; + jsonMap[kRecipeIdKey] = getEvents.recipeID; + jsonMap[kEventNam] = getEvents.eventName; + jsonMap[kEventPrice] = getEvents.denom.getCoinWithProperDenomination(getEvents.price); + jsonMap[kEventCurrency] = getEvents.denom.getAbbrev(); + + final showLoader = Loading()..showLoading(); + + final response = await walletsStore.executeRecipeForEvent(jsonMap); + showLoader.dismiss(); + return response; + } + Future paymentForTrade() async { final showLoader = Loading()..showLoading(); const json = ''' @@ -494,8 +521,7 @@ class PurchaseItemViewModel extends ChangeNotifier { }); } - Future> shouldShowSwipeToBuy( - {required String selectedDenom, required double requiredAmount}) async { + Future> shouldShowSwipeToBuy({required String selectedDenom, required double requiredAmount}) async { final walletAddress = accountPublicInfo!.publicAddress; final balancesEither = await repository.getBalance(walletAddress); @@ -511,8 +537,7 @@ class PurchaseItemViewModel extends ChangeNotifier { return const Right(true); } - final mappedBalances = - balancesEither.getOrElse(() => []).where((element) => element.denom == selectedDenom).toList(); + final mappedBalances = balancesEither.getOrElse(() => []).where((element) => element.denom == selectedDenom).toList(); if (mappedBalances.isEmpty) { return const Right(false); } @@ -603,7 +628,7 @@ class PurchaseItemViewModel extends ChangeNotifier { TradeReceiptModel createTradeReciptModel({ required double price, - required double fee, + required double fee, required String txTime, required String txId, }) => @@ -619,4 +644,10 @@ class PurchaseItemViewModel extends ChangeNotifier { nftName: nft.name, transactionID: txId, ); + + Events _event = Events(); + + set setEvents(Events event) => _event = event; + + Events get getEvents => _event; } diff --git a/wallet/lib/pages/transaction_failure_manager/failure_manager_view_model.dart b/wallet/lib/pages/transaction_failure_manager/failure_manager_view_model.dart index 38d3ea4a4b..bb94a2247a 100644 --- a/wallet/lib/pages/transaction_failure_manager/failure_manager_view_model.dart +++ b/wallet/lib/pages/transaction_failure_manager/failure_manager_view_model.dart @@ -54,6 +54,9 @@ class FailureManagerViewModel extends ChangeNotifier { case TransactionTypeEnum.Unknown: LocaleKeys.something_wrong.tr().show(); break; + case TransactionTypeEnum.BuyEvent: + LocaleKeys.something_wrong.tr().show(); + break; } } diff --git a/wallet/lib/services/data_stores/remote_data_store.dart b/wallet/lib/services/data_stores/remote_data_store.dart index f66686523a..1bf33dc676 100644 --- a/wallet/lib/services/data_stores/remote_data_store.dart +++ b/wallet/lib/services/data_stores/remote_data_store.dart @@ -1112,6 +1112,7 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future getAppCheckToken() async { + return "6B189291-D2AE-439B-AA5D-E2B99679C01E"; final String? token = await firebaseAppCheck.getToken(); if (token == null || token.isEmpty) { diff --git a/wallet/lib/stores/wallet_store.dart b/wallet/lib/stores/wallet_store.dart index d2ac2b9e5c..0a2ce90430 100644 --- a/wallet/lib/stores/wallet_store.dart +++ b/wallet/lib/stores/wallet_store.dart @@ -37,6 +37,11 @@ abstract class WalletsStore { /// Output : [Execution] of the transaction (data field - idk that this is - this is a mess) Future> executeRecipe(Map json); + /// Input : [Map] containing the info related to the execution of recipe for event + /// Output : [Execution] of the transaction (data field - idk that this is - this is a mess) + Future> executeRecipeForEvent(Map json); + + /// This method is for create Trade /// MsgCreateTrade proto /// request fields: {String creator, list coinInputs, List itemInputs, List coinOutputs, List itemOutputs, String extraInfo} diff --git a/wallet/lib/stores/wallet_store_imp.dart b/wallet/lib/stores/wallet_store_imp.dart index ba90fb20ff..8448bf17f1 100644 --- a/wallet/lib/stores/wallet_store_imp.dart +++ b/wallet/lib/stores/wallet_store_imp.dart @@ -483,6 +483,94 @@ class WalletsStoreImp implements WalletsStore { ); } + @override + Future> executeRecipeForEvent(Map json) async { + final networkInfo = GetIt.I.get(); + + final LocalTransactionModel localTransactionModel = createInitialLocalTransactionModel( + transactionTypeEnum: TransactionTypeEnum.BuyEvent, + transactionData: jsonEncode(json), + transactionDescription: "${LocaleKeys.bought_nft.tr()} ${json[kEventNam] ?? ""}", + transactionCurrency: "${json[kEventCurrency] ?? ""}", + transactionPrice: "${json[kEventPrice] ?? ""}", + ); + + if (!await networkInfo.isConnected) { + await saveTransactionRecord( + transactionHash: "", + transactionStatus: TransactionStatus.Failed, + txLocalModel: localTransactionModel, + ); + return SdkIpcResponse.failure( + sender: '', + error: LocaleKeys.no_internet.tr(), + errorCode: HandlerFactory.ERR_SOMETHING_WENT_WRONG, + ); + } + + json.remove(kEventNam); + json.remove(kEventCurrency); + json.remove(kEventPrice); + + final msgObj = pylons.MsgExecuteRecipe.create()..mergeFromProto3Json(json); + msgObj.creator = accountProvider.accountPublicInfo!.publicAddress; + final sdkResponse = await _signAndBroadcast(msgObj); + if (!sdkResponse.success) { + await saveTransactionRecord( + transactionHash: "", + transactionStatus: TransactionStatus.Failed, + txLocalModel: localTransactionModel, + ); + return SdkIpcResponse.failure( + error: sdkResponse.error, + sender: sdkResponse.sender, + errorCode: sdkResponse.errorCode, + ); + } + + final executionEither = await repository.getExecutionsByRecipeId( + recipeId: json.containsKey(kRecipeIdKey) ? json[kRecipeIdKey].toString() : json[kRecipeIdMap].toString(), + cookBookId: json.containsKey(kCookbookIdKey) ? json[kCookbookIdKey].toString() : json[kCookbookIdMap].toString(), + ); + if (executionEither.isLeft()) { + await saveTransactionRecord( + transactionHash: "", + transactionStatus: TransactionStatus.Failed, + txLocalModel: localTransactionModel, + ); + return SdkIpcResponse.failure( + error: sdkResponse.error, + sender: sdkResponse.sender, + errorCode: sdkResponse.errorCode, + ); + } + + if (executionEither.toOption().toNullable()!.completedExecutions.isEmpty) { + await saveTransactionRecord( + transactionHash: "", + transactionStatus: TransactionStatus.Failed, + txLocalModel: localTransactionModel, + ); + return SdkIpcResponse.failure( + error: sdkResponse.error, + sender: sdkResponse.sender, + errorCode: sdkResponse.errorCode, + ); + } + + await saveTransactionRecord( + transactionHash: sdkResponse.data.toString(), + transactionStatus: TransactionStatus.Success, + txLocalModel: localTransactionModel, + ); + return SdkIpcResponse.success( + data: executionEither.toOption().toNullable()!.completedExecutions.last, + sender: sdkResponse.sender, + transaction: sdkResponse.data.toString(), + ); + } + + @override Future fulfillTrade(Map json) async { final msgObj = pylons.MsgFulfillTrade.create()..mergeFromProto3Json(json); diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index 3d005d1ede..6987bb8380 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -451,6 +451,11 @@ const String kCookbookID = "cookbookID"; const String kPaymentInfosMap = "paymentInfos"; const String kItemAlreadyOwned = "itemAlreadyOwned"; +const kEventNam = "eventName"; +const kEventPrice = "eventPrice"; +const kEventCurrency = "eventCurrency"; + + class AnalyticsScreenEvents { static String mainLanding = "MainLandingScreen"; static String createKey = "CreateKeyScreen"; diff --git a/wallet/lib/utils/enums.dart b/wallet/lib/utils/enums.dart index 348497b2fc..e54d96269b 100644 --- a/wallet/lib/utils/enums.dart +++ b/wallet/lib/utils/enums.dart @@ -25,7 +25,8 @@ enum TransactionTypeEnum { AppleInAppCoinsRequest, GoogleInAppCoinsRequest, BuyProduct, - Unknown + Unknown, + BuyEvent, } enum TransactionStatus { From 3ffe3173926b997e2d89c22e9635435ae1f7e9f2 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Fri, 31 May 2024 11:30:30 +0500 Subject: [PATCH 146/158] fix: some issue while testing --- evently/i18n/de.json | 3 ++- evently/i18n/en-US.json | 3 ++- evently/i18n/es.json | 3 ++- evently/i18n/ru-RU.json | 3 ++- evently/lib/generated/locale_keys.g.dart | 1 + evently/lib/models/denom.dart | 2 +- evently/lib/viewmodels/create_event_viewmodel.dart | 1 + wallet/lib/model/event.dart | 7 +++++-- wallet/lib/pages/events/event_purchase_view.dart | 1 + 9 files changed, 17 insertions(+), 7 deletions(-) diff --git a/evently/i18n/de.json b/evently/i18n/de.json index c1082e519e..ecf3116545 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -73,5 +73,6 @@ "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "Möchten Sie diesen Entwurf wirklich löschen?", "published": "Veröffentlicht", - "delete": "Löschen" + "delete": "Löschen", + "event_preview" : "event_preview" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index 777c9749cf..0c91f363d6 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -70,5 +70,6 @@ "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "Are you sure you want to delete this draft?", "published": "Published", - "delete": "Delete" + "delete": "Delete", + "event_preview" : "event_preview" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index ecbd2db646..0ccaa01230 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -71,5 +71,6 @@ "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "¿Seguro que quieres eliminar este Plan Preliminar?", "published": "Publicado", - "delete": "Borrar" + "delete": "Borrar", + "event_preview" : "event_preview" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index 1c347bb983..0a9945448a 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -71,5 +71,6 @@ "event_name" : "Event Name", "are_you_sure_you_want_to_delete": "Вы уверены, что хотите удалить этот черновик?", "published": "изданный", - "delete": "удалять" + "delete": "удалять", + "event_preview" : "event_preview" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 48bceccb94..06eb4dd784 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -71,5 +71,6 @@ abstract class LocaleKeys { static const are_you_sure_you_want_to_delete = 'are_you_sure_you_want_to_delete'; static const published = 'published'; static const delete = 'delete'; + static const event_preview = 'event_preview'; } diff --git a/evently/lib/models/denom.dart b/evently/lib/models/denom.dart index 1f4cb66b36..b08ababff7 100644 --- a/evently/lib/models/denom.dart +++ b/evently/lib/models/denom.dart @@ -91,7 +91,7 @@ class Denom { return map; } - factory Denom.fromJson(Map json) => Denom( + factory Denom.fromJson(Map json) => Denom( name: json['name']!, symbol: json['symbol']!, icon: json['icon']!, diff --git a/evently/lib/viewmodels/create_event_viewmodel.dart b/evently/lib/viewmodels/create_event_viewmodel.dart index b898ed55f3..c39aa4fb7b 100644 --- a/evently/lib/viewmodels/create_event_viewmodel.dart +++ b/evently/lib/viewmodels/create_event_viewmodel.dart @@ -23,6 +23,7 @@ class CreateEventViewModel extends ChangeNotifier { LocaleKeys.detail.tr(), LocaleKeys.perks.tr(), LocaleKeys.price.tr(), + LocaleKeys.event_preview.trim(), ]; Events? events; diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index aa4ce6dbd4..86dbdf7a45 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -138,7 +138,7 @@ class Events extends Equatable { factory Events.fromRecipe(Recipe recipe) { final Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); - final denom = recipe.coinInputs.isEmpty ? "" : _extractCoinValue(recipe.coinInputs[0].coins)[kDenom]; + final denom = _extractCoinValue(recipe.coinInputs[0].coins)[kDenom] ?? ""; final List listOfPerks = []; jsonDecode(map[kPerks]!).map((jsonMap) { @@ -160,7 +160,7 @@ class Events extends Equatable { listOfPerks: listOfPerks, cookbookID: map[kCookBookId]!, recipeID: map[kRecipeId]!, - denom: denom!.toIBCCoinsEnum(), + denom: denom.isEmpty ? IBCCoins.upylon : denom.toIBCCoinsEnum(), ); } @@ -194,6 +194,9 @@ class Events extends Equatable { } static Map _extractCoinValue(List coins) { + if (coins.isEmpty) { + return {}; + } return {kDenom: coins[0].denom, kPrice: coins[0].amount}; } diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart index 3623944b72..29beec63bb 100644 --- a/wallet/lib/pages/events/event_purchase_view.dart +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -333,6 +333,7 @@ class _EventPassViewContentState extends State { Container( margin: EdgeInsets.symmetric(horizontal: 20.w), child: CachedNetworkImage( + height: 160.h, width: double.infinity, fit: BoxFit.fill, imageUrl: widget.events.thumbnail, From 22b6da9756fafe7a17e26b36a88860db8e11fb08 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Fri, 31 May 2024 11:30:58 +0500 Subject: [PATCH 147/158] fix: app check debubug token --- wallet/lib/services/data_stores/remote_data_store.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/wallet/lib/services/data_stores/remote_data_store.dart b/wallet/lib/services/data_stores/remote_data_store.dart index 1bf33dc676..f66686523a 100644 --- a/wallet/lib/services/data_stores/remote_data_store.dart +++ b/wallet/lib/services/data_stores/remote_data_store.dart @@ -1112,7 +1112,6 @@ class RemoteDataStoreImp implements RemoteDataStore { @override Future getAppCheckToken() async { - return "6B189291-D2AE-439B-AA5D-E2B99679C01E"; final String? token = await firebaseAppCheck.getToken(); if (token == null || token.isEmpty) { From 9886137e63ec5fc0f10787e834af21d028f0a4da Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Fri, 31 May 2024 12:57:10 +0500 Subject: [PATCH 148/158] fix: code cleaning --- .../assets/images/text_field_bottom_left.png | Bin 0 -> 407 bytes .../assets/images/text_field_top_right.png | Bin 0 -> 411 bytes evently/lib/evently_provider.dart | 3 +- .../custom_widgets/bottom_buttons.dart | 6 +- evently/lib/screens/detail_screen.dart | 52 ++-- .../lib/screens/host_view_ticket_preview.dart | 277 ++++++++---------- evently/lib/screens/overview_screen.dart | 12 +- evently/lib/screens/perks_screen.dart | 2 +- evently/lib/screens/price_screen.dart | 2 - evently/lib/utils/constants.dart | 6 +- evently/lib/widgets/evently_text_field.dart | 13 +- 11 files changed, 179 insertions(+), 194 deletions(-) create mode 100644 evently/assets/images/text_field_bottom_left.png create mode 100644 evently/assets/images/text_field_top_right.png diff --git a/evently/assets/images/text_field_bottom_left.png b/evently/assets/images/text_field_bottom_left.png new file mode 100644 index 0000000000000000000000000000000000000000..5151a60f913479ccae527e6d0078f1f1bde9e548 GIT binary patch literal 407 zcmeAS@N?(olHy`uVBq!ia0vp^i-1^@gAGV-YyAWy88{0(B8wRqxP?KOkzv*x37{Zj zage(c!@6@aFM%AEbVpxD28NCO+VVL5JkQ)(sovoBIAg`q}uya2h}Jr>uLw`Pp-H3L6-l zT3D!oT8^BllijdU<@BcY0+0Kd&89r5{CBrh)-Wl!Y^O$7()?vFD<#_YGAnKVZywz9 zUh!Bnv(l#5?25+j7qz=}nAeOAYU&P6X| zj( zy<_{{f3KYP-@n$mEgbQaHtBpn&&MfvuOxQ+ zR^~H?zL&55=n;50RW`vaQNpgKMp$W2v0>kKgO(20p75rYj-z*yOSB!Gjx37l$y4>{ kh?o=2DWs$#KqVBzxK$!^rQ_89k)YuAboFyt=akR{05HaitpET3 literal 0 HcmV?d00001 diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index d4065cbb26..0e13b3f409 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -136,6 +136,7 @@ class EventlyProvider extends ChangeNotifier { set setPerks(PerksModel perksModel) { _perks.add(perksModel); + setSelectedPerks = _perks.length - 1; notifyListeners(); } @@ -146,6 +147,7 @@ class EventlyProvider extends ChangeNotifier { removePerks(int index) { _perks.removeAt(index); + setSelectedPerks = _perks.length - 1; notifyListeners(); } @@ -292,7 +294,6 @@ class EventlyProvider extends ChangeNotifier { final String prices = isFreeDrop == FreeDrop.yes ? "0" : _selectedDenom.formatAmount(price: price.toString()); - final recipe = event.createRecipe( cookbookId: _cookbookId!, recipeId: _recipeId, diff --git a/evently/lib/screens/custom_widgets/bottom_buttons.dart b/evently/lib/screens/custom_widgets/bottom_buttons.dart index 6c8809be16..52e95671f0 100644 --- a/evently/lib/screens/custom_widgets/bottom_buttons.dart +++ b/evently/lib/screens/custom_widgets/bottom_buttons.dart @@ -41,7 +41,11 @@ class BottomButtons extends StatelessWidget { const VerticalSpace(10), Center( child: InkWell( - onTap: onPressSaveDraft, + onTap: () { + if (isContinueEnable) { + onPressSaveDraft(); + } + }, child: Text( LocaleKeys.save_draft.tr(), style: TextStyle(color: EventlyAppTheme.kTextGrey02, fontSize: 14.sp, fontWeight: FontWeight.w700), diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 2a199fe9b4..ec4d57a16a 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -5,7 +5,9 @@ import 'package:evently/screens/custom_widgets/bottom_buttons.dart'; import 'package:evently/screens/custom_widgets/page_app_bar.dart'; import 'package:evently/screens/custom_widgets/step_labels.dart'; import 'package:evently/screens/custom_widgets/steps_indicator.dart'; +import 'package:evently/utils/constants.dart'; import 'package:evently/utils/enums.dart'; +import 'package:evently/utils/evently_app_theme.dart'; import 'package:evently/utils/route_util.dart'; import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; @@ -60,11 +62,12 @@ class _DetailsScreenState extends State { }); }, child: EventlyTextField( - enable: false, - label: LocaleKeys.start_date.tr(), - controller: TextEditingController(text: provider.startDate), - textCapitalization: TextCapitalization.sentences, - ), + enable: false, + label: LocaleKeys.start_date.tr(), + controller: TextEditingController(text: provider.startDate), + textCapitalization: TextCapitalization.sentences, + imageBackground: PngUtils.textFieldBottomLeft, + inputTextColor: EventlyAppTheme.kTextDarkBlue), ), ), HorizontalSpace(20.w), @@ -77,14 +80,15 @@ class _DetailsScreenState extends State { }); }, child: EventlyTextField( - enable: false, - label: LocaleKeys.end_date.tr(), - controller: TextEditingController(text: provider.endDate), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), + enable: false, + label: LocaleKeys.end_date.tr(), + controller: TextEditingController(text: provider.endDate), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + imageBackground: PngUtils.textFieldTopRight, + inputTextColor: EventlyAppTheme.kTextDarkBlue), ), ), ], @@ -103,14 +107,15 @@ class _DetailsScreenState extends State { }); }, child: EventlyTextField( - enable: false, - label: LocaleKeys.start_time.tr(), - controller: TextEditingController(text: provider.startTime), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), + enable: false, + label: LocaleKeys.start_time.tr(), + controller: TextEditingController(text: provider.startTime), + textCapitalization: TextCapitalization.sentences, + validator: (value) { + return null; + }, + imageBackground: PngUtils.textFieldBottomLeft, + inputTextColor: EventlyAppTheme.kTextDarkBlue), ), ), HorizontalSpace(20.w), @@ -132,6 +137,8 @@ class _DetailsScreenState extends State { validator: (value) { return null; }, + imageBackground: PngUtils.textFieldTopRight, + inputTextColor: EventlyAppTheme.kTextDarkBlue, ), ), ), @@ -163,10 +170,9 @@ class _DetailsScreenState extends State { textCapitalization: TextCapitalization.sentences, noOfLines: 4, ), - const VerticalSpace(80), + const VerticalSpace(40), BottomButtons( onPressContinue: () { - createEventViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index f4317feda7..dbb76c4349 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -34,6 +34,13 @@ class _HostTicketPreviewState extends State { child: Scaffold( bottomNavigationBar: Container( padding: EdgeInsets.symmetric(horizontal: 30.w), + decoration: BoxDecoration(color: EventlyAppTheme.kWhite, boxShadow: [ + BoxShadow( + color: EventlyAppTheme.kGrey01.withOpacity(0.1), + // offset: Offset(0, 0), + // blurRadius: 20, + spreadRadius: 1) + ]), height: 110.h, child: Column( mainAxisAlignment: MainAxisAlignment.center, @@ -62,185 +69,145 @@ class _HostTicketPreviewState extends State { borderRadius: BorderRadius.circular(10.r), child: Container( margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w), - decoration: BoxDecoration( - image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight), - borderRadius: BorderRadius.circular(10.r), - ), - child: Column( + child: Stack( children: [ - Padding( - padding: const EdgeInsets.only(), - child: ClipRRect( - borderRadius: const BorderRadius.only( - topRight: Radius.circular(14), - topLeft: Radius.circular(14), - ), - child: Stack( - alignment: Alignment.bottomLeft, - children: [ - Image.asset( - PngUtils.kPhantom, - fit: BoxFit.cover, + Image.asset(PngUtils.kHostPreview), + Column( + children: [ + Padding( + padding: const EdgeInsets.only(), + child: ClipRRect( + borderRadius: const BorderRadius.only( + topRight: Radius.circular(14), + topLeft: Radius.circular(14), + ), + child: Stack( + alignment: Alignment.bottomLeft, + children: [ + Image.asset( + PngUtils.kPhantom, + fit: BoxFit.cover, + ), + Padding( + padding: EdgeInsets.only(bottom: 10.h, left: 10.w), + child: Text( + provider.eventName, + style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), + ), + ) + ], ), - Padding( - padding: EdgeInsets.only(bottom: 10.h, left: 10.w), - child: Text( - provider.eventName, - style: TextStyle(fontSize: 20.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.w700), - ), - ) - ], - ), - ), - ), - VerticalSpace(10.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text( - 'DATE', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Text( - provider.startDate, - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - ), - ], ), - Column( + ), + VerticalSpace(10.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, children: [ - Text( - 'Time', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'DATE', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + provider.startDate, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], ), - SizedBox(height: 1.h), - Text( - provider.startTime, - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'Time', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + Text( + provider.startTime, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + ), + ], ), ], ), - ], - ), - ), - VerticalSpace(20.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( + ), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, children: [ - Text( - 'LOCATION', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - ConstrainedBox( - constraints: BoxConstraints(maxWidth: 1.sw / 2.4), - child: Text( - provider.location, - style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - maxLines: 2, - ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + 'LOCATION', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), + ), + SizedBox(height: 1.h), + ConstrainedBox( + constraints: BoxConstraints(maxWidth: 1.sw / 2.4), + child: Text( + provider.location, + style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), + maxLines: 2, + ), + ), + ], ), ], ), - // Column( - // crossAxisAlignment: CrossAxisAlignment.start, - // mainAxisAlignment: MainAxisAlignment.start, - // children: [ - // Text( - // 'SEAT', - // style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - // ), - // SizedBox(height: 1.h), - // Column( - // mainAxisAlignment: MainAxisAlignment.start, - // crossAxisAlignment: CrossAxisAlignment.start, - // children: [ - // Text( - // '6A', - // style: TextStyle(fontSize: 30.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - // ), - // Text( - // 'Room 3', - // style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.bold, color: EventlyAppTheme.kWhite), - // ) - // ], - // ), - // ], - // ), - ], - ), - ), - VerticalSpace(20.h), - Padding( - padding: EdgeInsets.only(left: 10.w, right: 30.h), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Column( + ), + VerticalSpace(20.h), + Padding( + padding: EdgeInsets.only(left: 10.w, right: 30.h), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, children: [ - Text( - 'PERKS', - style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), - ), - SizedBox(height: 1.h), - Row( + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, children: [ - SvgPicture.asset(SVGUtils.kDiamond), - SizedBox(width: 5.w), Text( - 'x ${provider.perks.length}', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), + 'PERKS', + style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite), ), - SizedBox(width: 5.w), - Text( - 'Redeem', - style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kGreenText, fontWeight: FontWeight.bold), + SizedBox(height: 1.h), + Row( + children: [ + SvgPicture.asset(SVGUtils.kDiamond), + SizedBox(width: 5.w), + Text( + 'x ${provider.perks.length}', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold), + ), + SizedBox(width: 5.w), + Text( + 'Redeem', + style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kGreenText, fontWeight: FontWeight.bold), + ) + ], ) ], - ) + ), ], ), - ], - ), - ), - VerticalSpace(16.h), - Image.asset(PngUtils.kDottedLine), - VerticalSpace(40.h), - Text( - 'Scan QR to enter', - style: TextStyle( - color: EventlyAppTheme.kWhite, - fontWeight: FontWeight.bold, - fontSize: 15.sp, - ), - ), - VerticalSpace(10.h), - Container( - decoration: const BoxDecoration(color: EventlyAppTheme.kBlack), - width: 338, - height: 338, + ), + VerticalSpace(30.h), + Image.asset(PngUtils.kDottedLine), + ], ), - SizedBox(height: 20.h), ], ), ), diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 0ad9e1ce37..8c5bd9ee0b 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -148,11 +148,13 @@ class _OverViewScreenState extends State { createEventViewModel.nextPage(); }, onPressSaveDraft: () { - final navigator = Navigator.of(context); - provider.saveAsDraft( - onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), - uploadStep: UploadStep.overView, - ); + if (provider.isOverviewEnable) { + final navigator = Navigator.of(context); + provider.saveAsDraft( + onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), + uploadStep: UploadStep.overView, + ); + } }, isContinueEnable: provider.isOverviewEnable, ) diff --git a/evently/lib/screens/perks_screen.dart b/evently/lib/screens/perks_screen.dart index 06d3bc60bf..2584f0678b 100644 --- a/evently/lib/screens/perks_screen.dart +++ b/evently/lib/screens/perks_screen.dart @@ -121,7 +121,7 @@ class _PerksScreenState extends State { final navigator = Navigator.of(context); provider.saveAsDraft( onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), - uploadStep: UploadStep.perks, + uploadStep:provider.perks.isEmpty ? UploadStep.detail : UploadStep.perks, ); }, isContinueEnable: true, diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index b77db24b91..267ad84545 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -17,7 +17,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:provider/provider.dart'; - import '../generated/locale_keys.g.dart'; class PriceScreen extends StatefulWidget { @@ -206,7 +205,6 @@ class _PriceScreenState extends State { padding: EdgeInsets.symmetric(horizontal: 20.w), child: BottomButtons( onPressContinue: () { - homeViewModel.nextPage(); }, onPressSaveDraft: () { diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index f5715190db..06a65a7540 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -28,7 +28,6 @@ const int kEthIntBase = 1000000000000000000; final List imageAllowedExts = ["png", "jpg", "jpeg", "heif"]; const kPylons = "Pylons"; - const kErrProfileNotExist = 'profileDoesNotExist'; const cookbookName = "Evently Cookbook"; @@ -93,6 +92,10 @@ class PngUtils { /// i need this variable to be used static const kPhantom = "assets/images/phantom.png"; static const kDottedLine = "assets/images/dotted_line.png"; + + ///text field background + static const textFieldBottomLeft = "assets/images/text_field_bottom_left.png"; + static const textFieldTopRight = "assets/images/text_field_top_right.png"; } /// Currency ABRR @@ -104,4 +107,3 @@ const String kAgoricAbr = "RUN"; const String kAtomAbr = "ATOM"; const String kLunaAbr = "Luna"; const String kEthereumAbr = "ETH"; - diff --git a/evently/lib/widgets/evently_text_field.dart b/evently/lib/widgets/evently_text_field.dart index 62ed55450f..6f3d989080 100644 --- a/evently/lib/widgets/evently_text_field.dart +++ b/evently/lib/widgets/evently_text_field.dart @@ -18,6 +18,8 @@ class EventlyTextField extends StatelessWidget { this.textCapitalization = TextCapitalization.none, this.onChanged, this.enable, + this.imageBackground, + this.inputTextColor, }); final String label; @@ -32,6 +34,9 @@ class EventlyTextField extends StatelessWidget { final ValueChanged? onChanged; final bool? enable; + final String? imageBackground; + final Color? inputTextColor; + @override Widget build(BuildContext context) { return Column( @@ -47,13 +52,13 @@ class EventlyTextField extends StatelessWidget { children: [ ScreenResponsive( mobileScreen: (context) => Image.asset( - noOfLines == 1 ? PngUtils.kTextFieldSingleLine : PngUtils.kTextFieldMultiLine, + imageBackground ?? (noOfLines == 1 ? PngUtils.kTextFieldSingleLine : PngUtils.kTextFieldMultiLine), height: noOfLines == 1 ? 40.h : 120.h, width: 1.sw, fit: BoxFit.fill, ), tabletScreen: (context) => Image.asset( - noOfLines == 1 ? PngUtils.kTextFieldSingleLine : PngUtils.kTextFieldMultiLine, + imageBackground ?? (noOfLines == 1 ? PngUtils.kTextFieldSingleLine : PngUtils.kTextFieldMultiLine), height: noOfLines == 1 ? 32.h : 110.h, width: 1.sw, fit: BoxFit.fill, @@ -73,7 +78,7 @@ class EventlyTextField extends StatelessWidget { child: TextFormField( enabled: enable, onChanged: onChanged, - style: TextStyle(fontSize: noOfLines == 1 ? 18.sp : 15, fontWeight: FontWeight.w400, color: EventlyAppTheme.kTextGrey), + style: TextStyle(fontSize: noOfLines == 1 ? 18.sp : 15, fontWeight: FontWeight.w400, color: inputTextColor ?? EventlyAppTheme.kTextGrey02), controller: controller, validator: validator, minLines: noOfLines, @@ -83,7 +88,7 @@ class EventlyTextField extends StatelessWidget { inputFormatters: inputFormatters, decoration: InputDecoration( hintText: hint, - hintStyle: const TextStyle(fontSize: 15, fontWeight: FontWeight.w400, color: EventlyAppTheme.kTextGrey), + hintStyle: TextStyle(fontSize: 15, fontWeight: FontWeight.w400, color: inputTextColor ?? EventlyAppTheme.kTextGrey02), border: const OutlineInputBorder(borderSide: BorderSide.none), floatingLabelBehavior: FloatingLabelBehavior.always, contentPadding: EdgeInsets.fromLTRB(10.w, 0.h, 10.w, 0.h), From 22ce109d30a5de47a9c60f013de04beb36f7833b Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Fri, 31 May 2024 15:31:33 +0500 Subject: [PATCH 149/158] fix: fixes --- .../lib/pages/events/event_purchase_view.dart | 4 +- .../lib/pages/events/events_owner_view.dart | 82 ++++++++++++------- 2 files changed, 54 insertions(+), 32 deletions(-) diff --git a/wallet/lib/pages/events/event_purchase_view.dart b/wallet/lib/pages/events/event_purchase_view.dart index 29beec63bb..8d6a516504 100644 --- a/wallet/lib/pages/events/event_purchase_view.dart +++ b/wallet/lib/pages/events/event_purchase_view.dart @@ -74,8 +74,8 @@ class _EventPassViewContentState extends State { final ibcEnumCoins = provider.getEvents.denom; if (ibcEnumCoins == IBCCoins.ustripeusd) { - // stripePaymentForRecipe(context, provider.getEvents); - print('needed to work for this'); + //@TODO + // needed to work on this flow } else { paymentByCoins(); } diff --git a/wallet/lib/pages/events/events_owner_view.dart b/wallet/lib/pages/events/events_owner_view.dart index 5c1da9d385..70800aaa25 100644 --- a/wallet/lib/pages/events/events_owner_view.dart +++ b/wallet/lib/pages/events/events_owner_view.dart @@ -1,11 +1,15 @@ import 'package:cached_network_image/cached_network_image.dart'; +import 'package:easy_localization/easy_localization.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:get_it/get_it.dart'; import 'package:provider/provider.dart'; import 'package:pylons_wallet/components/space_widgets.dart'; import 'package:pylons_wallet/gen/assets.gen.dart'; +import 'package:pylons_wallet/generated/locale_keys.g.dart'; import 'package:pylons_wallet/model/event.dart'; import 'package:pylons_wallet/pages/detailed_asset_view/owner_view_view_model.dart'; import 'package:pylons_wallet/pages/events/event_qr_code_screen.dart'; @@ -58,30 +62,62 @@ class EventPassViewContent extends StatelessWidget { child: Scaffold( backgroundColor: AppColors.kBlack87, appBar: AppBar( + automaticallyImplyLeading: false, backgroundColor: Colors.black, flexibleSpace: Padding( padding: EdgeInsets.symmetric(horizontal: 20.w), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const Icon( - Icons.arrow_back_ios, - color: AppColors.kWhite, + Expanded( + child: Container( + alignment: Alignment.centerLeft, + child: const Icon( + Icons.arrow_back_ios, + color: AppColors.kWhite, + ), + ), ), - Text( - 'Event Pass', - style: TextStyle( - fontSize: 18.sp, - fontWeight: FontWeight.w700, - color: AppColors.kWhite, + Expanded( + child: Container( + alignment: Alignment.center, + child: Text( + 'Event Pass', + style: TextStyle( + fontSize: 18.sp, + fontWeight: FontWeight.w700, + color: AppColors.kWhite, + ), + ), ), ), - GestureDetector( - onTap: () { - final Size size = MediaQuery.of(context).size; - viewModel.shareEventsLink(size: size); - }, - child: SvgPicture.asset(shareIcon), + Expanded( + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + GestureDetector( + onTap: () { + final Size size = MediaQuery.of(context).size; + viewModel.shareEventsLink(size: size); + }, + child: SvgPicture.asset(shareIcon), + ), + SizedBox(width: 20.w), + GestureDetector( + onTap: () { + showDialog( + context: context, + builder: (_) => EventQrCodeScreen( + events: viewModel.events, + ), + ); + }, + child: SvgPicture.asset( + Assets.images.icons.qr, + ), + ), + ], + ), ), ], ), @@ -157,7 +193,7 @@ class EventPassViewContent extends StatelessWidget { style: Theme.of(context).textTheme.displayLarge?.copyWith(fontSize: 11.sp, fontWeight: FontWeight.w400, color: AppColors.kWhite), ), Text( - coinWithDenom, + viewModel.events.price == "0" ? LocaleKeys.free.tr() : coinWithDenom, style: Theme.of(context).textTheme.labelSmall?.copyWith(fontSize: 15.sp, fontWeight: FontWeight.w700, color: AppColors.kWhite), ), ], @@ -213,20 +249,6 @@ class EventPassViewContent extends StatelessWidget { ), ), SizedBox(height: 10.h), - GestureDetector( - onTap: () { - showDialog( - context: context, - builder: (_) => EventQrCodeScreen( - events: viewModel.events, - ), - ); - }, - child: SvgPicture.asset( - Assets.images.icons.qr, - height: 40.h, - ), - ), ], ), ), From c07be8164563d1cda87344dda1b4b504a90e69dd Mon Sep 17 00:00:00 2001 From: gram-incolo Date: Fri, 7 Jun 2024 23:27:12 +0300 Subject: [PATCH 150/158] fix the event length issue --- evently/lib/evently_provider.dart | 39 +++++++++++++++++++++-------- evently/lib/main.dart | 7 ++++-- evently/lib/models/events.dart | 41 ++++++++++++++++++++++++------- 3 files changed, 66 insertions(+), 21 deletions(-) diff --git a/evently/lib/evently_provider.dart b/evently/lib/evently_provider.dart index 0e13b3f409..2cf50625e3 100644 --- a/evently/lib/evently_provider.dart +++ b/evently/lib/evently_provider.dart @@ -1,5 +1,6 @@ import 'dart:async'; import 'dart:convert'; + import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:evently/generated/locale_keys.g.dart'; @@ -21,6 +22,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:injectable/injectable.dart'; import 'package:pylons_sdk/low_level.dart'; + import 'services/third_party_services/quick_node.dart'; @LazySingleton() @@ -66,7 +68,8 @@ class EventlyProvider extends ChangeNotifier { } checkIsOverEnable() { - setOverviewEnable = thumbnail!.isNotEmpty && eventName.length > 8 && hostName.isNotEmpty; + setOverviewEnable = + thumbnail!.isNotEmpty && eventName.length > 4 && hostName.isNotEmpty; } ///* detail screen @@ -190,9 +193,11 @@ class EventlyProvider extends ChangeNotifier { notifyListeners(); } - final StreamController _uploadProgressController = StreamController.broadcast(); + final StreamController _uploadProgressController = + StreamController.broadcast(); - Stream get uploadProgressStream => _uploadProgressController.stream; + Stream get uploadProgressStream => + _uploadProgressController.stream; void pickThumbnail() async { final pickedFile = await repository.pickFile(); @@ -207,11 +212,15 @@ class EventlyProvider extends ChangeNotifier { if (result.path.isEmpty) return; - final loading = LoadingProgress()..showLoadingWithProgress(message: LocaleKeys.uploading.tr()); + final loading = LoadingProgress() + ..showLoadingWithProgress(message: LocaleKeys.uploading.tr()); Either response; response = await repository.uploadFileUsingQuickNode( - uploadIPFSInput: UploadIPFSInput(fileName: result.fileName, filePath: result.path, contentType: QuickNode.getContentType(result.extension)), + uploadIPFSInput: UploadIPFSInput( + fileName: result.fileName, + filePath: result.path, + contentType: QuickNode.getContentType(result.extension)), onUploadProgressCallback: (value) { _uploadProgressController.sink.add(value); }, @@ -223,7 +232,8 @@ class EventlyProvider extends ChangeNotifier { return; } - final fileUploadResponse = response.getOrElse(() => StorageResponseModel.initial()); + final fileUploadResponse = + response.getOrElse(() => StorageResponseModel.initial()); loading.dismiss(); setThumbnail = "$ipfsDomain/${fileUploadResponse.value?.cid}"; @@ -234,7 +244,10 @@ class EventlyProvider extends ChangeNotifier { String? _cookbookId; String? get cookbookId => _cookbookId; - bool showStripeDialog() => !stripeAccountExists && _selectedDenom.symbol == kUsdSymbol && isFreeDrop == FreeDrop.no; + bool showStripeDialog() => + !stripeAccountExists && + _selectedDenom.symbol == kUsdSymbol && + isFreeDrop == FreeDrop.no; ///* this method is used to get the profile Future> getProfile() async { @@ -243,7 +256,10 @@ class EventlyProvider extends ChangeNotifier { if (sdkResponse.success) { stripeAccountExists = sdkResponse.data!.stripeExists; - supportedDenomList = Denom.availableDenoms.where((Denom e) => sdkResponse.data!.supportedCoins.contains(e.symbol)).toList(); + supportedDenomList = Denom.availableDenoms + .where( + (Denom e) => sdkResponse.data!.supportedCoins.contains(e.symbol)) + .toList(); if (supportedDenomList.isNotEmpty && selectedDenom.symbol.isEmpty) { _selectedDenom = supportedDenomList.first; @@ -292,7 +308,9 @@ class EventlyProvider extends ChangeNotifier { step: '', ); - final String prices = isFreeDrop == FreeDrop.yes ? "0" : _selectedDenom.formatAmount(price: price.toString()); + final String prices = isFreeDrop == FreeDrop.yes + ? "0" + : _selectedDenom.formatAmount(price: price.toString()); final recipe = event.createRecipe( cookbookId: _cookbookId!, @@ -302,7 +320,8 @@ class EventlyProvider extends ChangeNotifier { price: prices, ); - final response = await PylonsWallet.instance.txCreateRecipe(recipe, requestResponse: false); + final response = await PylonsWallet.instance + .txCreateRecipe(recipe, requestResponse: false); if (!response.success) { scaffoldMessengerState?.show(message: "$kErrRecipe ${response.error}"); diff --git a/evently/lib/main.dart b/evently/lib/main.dart index 2d9ea8ad0b..76cde65d6c 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,4 +1,5 @@ import 'dart:ui'; + import 'package:easy_localization/easy_localization.dart'; import 'package:evently/evently_provider.dart'; import 'package:evently/screens/buyer_status_screen.dart'; @@ -65,7 +66,8 @@ class MyApp extends StatelessWidget { builder: (context, widget) { ScreenUtil.init(context); return MediaQuery( - data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling), + data: MediaQuery.of(context) + .copyWith(textScaler: TextScaler.noScaling), child: widget!, ); }, @@ -89,6 +91,7 @@ class MyApp extends StatelessWidget { } bool _getIsCurrentDeviceTablet() { - final MediaQueryData mediaQuery = MediaQueryData.fromView(PlatformDispatcher.instance.implicitView!); + final MediaQueryData mediaQuery = + MediaQueryData.fromView(PlatformDispatcher.instance.implicitView!); return mediaQuery.size.shortestSide >= tabletMinWidth; } diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index b9d32b2f1c..b7d9a9a70e 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -1,8 +1,8 @@ import 'package:equatable/equatable.dart'; import 'package:evently/utils/enums.dart'; +import 'package:fixnum/fixnum.dart'; import 'package:floor/floor.dart'; import 'package:pylons_sdk/low_level.dart'; -import 'package:fixnum/fixnum.dart'; @entity class Events extends Equatable { @@ -60,7 +60,8 @@ class Events extends Equatable { }); factory Events.fromRecipe(Recipe recipe) { - Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + Map map = + _extractAttributeValues(recipe.entries.itemOutputs[0].strings); return Events( eventName: map[kEventName]!, hostName: map[kEventHostName]!, @@ -80,7 +81,8 @@ class Events extends Equatable { ); } - static Map _extractAttributeValues(List attributes) { + static Map _extractAttributeValues( + List attributes) { final Map attributeValues = {}; for (final attribute in attributes) { switch (attribute.key) { @@ -110,8 +112,24 @@ class Events extends Equatable { } @override - List get props => - [eventName, hostName, thumbnail, startDate, endDate, startTime, endTime, location, description, numberOfTickets, price, listOfPerks, isFreeDrops, cookbookID, recipeID, step]; + List get props => [ + eventName, + hostName, + thumbnail, + startDate, + endDate, + startTime, + endTime, + location, + description, + numberOfTickets, + price, + listOfPerks, + isFreeDrops, + cookbookID, + recipeID, + step + ]; @override String toString() { @@ -131,7 +149,7 @@ extension CreateRecipe on Events { cookbookId: cookbookId, id: recipeId, nodeVersion: Int64(1), - name: eventName.trim(), + name: eventName.trim() + hostName.trim(), description: description.trim(), version: kVersion, coinInputs: [ @@ -216,17 +234,22 @@ class PerksModel { final String name; final String description; - factory PerksModel.updateName({required String name, required PerksModel perksModel}) => PerksModel( + factory PerksModel.updateName( + {required String name, required PerksModel perksModel}) => + PerksModel( name: name, description: perksModel.description, ); - factory PerksModel.updateDescription({required String description, required PerksModel perksModel}) => PerksModel( + factory PerksModel.updateDescription( + {required String description, required PerksModel perksModel}) => + PerksModel( name: perksModel.name, description: description, ); - factory PerksModel.fromJson(Map map) => PerksModel(name: map['name'] ?? '', description: map['description'] ?? ''); + factory PerksModel.fromJson(Map map) => PerksModel( + name: map['name'] ?? '', description: map['description'] ?? ''); Map toJson() { Map map = {}; From a77fda3126d5814da3f508ec70afe08ce712989b Mon Sep 17 00:00:00 2001 From: Girish Date: Sun, 9 Jun 2024 15:41:55 +0300 Subject: [PATCH 151/158] Update evently/lib/models/events.dart Co-authored-by: kjawadDeveloper2 <90063570+kjawadDeveloper2@users.noreply.github.com> --- evently/lib/models/events.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index b7d9a9a70e..95905e60ce 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -249,7 +249,7 @@ class PerksModel { ); factory PerksModel.fromJson(Map map) => PerksModel( - name: map['name'] ?? '', description: map['description'] ?? ''); + name: map['name'] ?? '', description: map['description'] ?? '',); Map toJson() { Map map = {}; From 57c0783d974441034f12f5bc9b39b7256ccffed2 Mon Sep 17 00:00:00 2001 From: Girish Date: Sun, 9 Jun 2024 15:42:01 +0300 Subject: [PATCH 152/158] Update evently/lib/models/events.dart Co-authored-by: kjawadDeveloper2 <90063570+kjawadDeveloper2@users.noreply.github.com> --- evently/lib/models/events.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart index 95905e60ce..5a17f9fe74 100644 --- a/evently/lib/models/events.dart +++ b/evently/lib/models/events.dart @@ -242,7 +242,7 @@ class PerksModel { ); factory PerksModel.updateDescription( - {required String description, required PerksModel perksModel}) => + {required String description, required PerksModel perksModel,}) => PerksModel( name: perksModel.name, description: description, From bbac1e437e0fcbb140685b0db2a4442ade5910e0 Mon Sep 17 00:00:00 2001 From: Raviramnani1 Date: Fri, 14 Jun 2024 16:23:24 +0530 Subject: [PATCH 153/158] demo demo --- evently/android/app/build.gradle | 4 ++-- evently/pubspec.lock | 32 ++++++++++++++++---------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/evently/android/app/build.gradle b/evently/android/app/build.gradle index 8f00827493..73a1423a38 100644 --- a/evently/android/app/build.gradle +++ b/evently/android/app/build.gradle @@ -52,7 +52,7 @@ android { } signingConfigs { - debug { + release { storeFile file('keystore.jks') storePassword 'tech.pylons' keyAlias 'key_tech_pylon' @@ -61,7 +61,7 @@ android { } buildTypes { - release { + debug { // 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 diff --git a/evently/pubspec.lock b/evently/pubspec.lock index ce96ed57ce..af0ac58ecf 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -529,10 +529,10 @@ packages: dependency: "direct main" description: name: injectable - sha256: "3d98967224a5fdd4094a61bf53ed9616c3fbcf3e090bf83e7cb7d436d0c20041" + sha256: "3c8355a29d11ff28c0311bed754649761f345ef7a13ff66a714380954af51226" url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" injectable_generator: dependency: "direct main" description: @@ -545,10 +545,10 @@ packages: dependency: transitive description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.18.1" + version: "0.19.0" io: dependency: transitive description: @@ -577,26 +577,26 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" url: "https://pub.dev" source: hosted - version: "10.0.0" + version: "10.0.4" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.3" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.1" lints: dependency: transitive description: @@ -641,10 +641,10 @@ packages: dependency: transitive description: name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.12.0" mime: dependency: transitive description: @@ -1101,10 +1101,10 @@ packages: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.0" timing: dependency: transitive description: @@ -1245,10 +1245,10 @@ packages: dependency: transitive description: name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" url: "https://pub.dev" source: hosted - version: "13.0.0" + version: "14.2.1" watcher: dependency: transitive description: From c13e67acd5d5147f62aabb89ae31417e5289e582 Mon Sep 17 00:00:00 2001 From: Raviramnani1 Date: Tue, 18 Jun 2024 18:22:35 +0530 Subject: [PATCH 154/158] Date validation date validation feature for event creation --- evently/lib/screens/detail_screen.dart | 359 ++++++++++++++----------- 1 file changed, 206 insertions(+), 153 deletions(-) diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index ec4d57a16a..5d62fde20b 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -13,8 +13,10 @@ import 'package:evently/utils/space_utils.dart'; import 'package:evently/viewmodels/create_event_viewmodel.dart'; import 'package:evently/widgets/evently_text_field.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:provider/provider.dart'; +import 'package:intl/intl.dart'; class DetailsScreen extends StatefulWidget { const DetailsScreen({super.key}); @@ -24,6 +26,8 @@ class DetailsScreen extends StatefulWidget { } class _DetailsScreenState extends State { + final GlobalKey scaffoldMessengerKey = GlobalKey(); + @override void initState() { super.initState(); @@ -32,192 +36,241 @@ class _DetailsScreenState extends State { @override Widget build(BuildContext context) { final createEventViewModel = context.watch(); + final provider = context.watch(); - return Scaffold( - body: SingleChildScrollView( - child: Consumer( - builder: (_, provider, __) => Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const VerticalSpace(20), - MyStepsIndicator(currentStep: createEventViewModel.currentStep), - StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), - const VerticalSpace(20), - PageAppBar(onPressBack: () { - createEventViewModel.previousPage(); - }), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - children: [ - Expanded( - child: GestureDetector( - onTap: () async { - _showDatePicker(onSelected: (DateTime? val) { - if (val == null) return; - provider.setStartDate = _dateFormatter(val); - }); - }, - child: EventlyTextField( + return ScaffoldMessenger( + key: scaffoldMessengerKey, + child: Scaffold( + body: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const VerticalSpace(20), + MyStepsIndicator(currentStep: createEventViewModel.currentStep), + StepLabels(currentPage: createEventViewModel.currentPage, currentStep: createEventViewModel.currentStep), + const VerticalSpace(20), + PageAppBar(onPressBack: () { + createEventViewModel.previousPage(); + }), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 15.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Expanded( + child: GestureDetector( + onTap: () async { + _showDatePicker(onSelected: (DateTime? val) { + if (val == null) return; + provider.setStartDate = _formatDateToIso(val); + // Validate dates only if both dates are set + if (provider.endDate.isNotEmpty) { + _validateDates(provider); + } + }); + }, + child: EventlyTextField( enable: false, label: LocaleKeys.start_date.tr(), - controller: TextEditingController(text: provider.startDate), + controller: TextEditingController(text: _formatDateDisplay(provider.startDate)), textCapitalization: TextCapitalization.sentences, imageBackground: PngUtils.textFieldBottomLeft, - inputTextColor: EventlyAppTheme.kTextDarkBlue), + inputTextColor: EventlyAppTheme.kTextDarkBlue, + ), + ), ), - ), - HorizontalSpace(20.w), - Expanded( - child: GestureDetector( - onTap: () { - _showDatePicker(onSelected: (DateTime? val) { - if (val == null) return; - provider.setEndDate = _dateFormatter(val); - }); - }, - child: EventlyTextField( + HorizontalSpace(20.w), + Expanded( + child: GestureDetector( + onTap: () { + _showDatePicker(onSelected: (DateTime? val) { + if (val == null) return; + provider.setEndDate = _formatDateToIso(val); + // Validate dates only if both dates are set + if (provider.startDate.isNotEmpty) { + _validateDates(provider); + } + }); + }, + child: EventlyTextField( enable: false, label: LocaleKeys.end_date.tr(), - controller: TextEditingController(text: provider.endDate), + controller: TextEditingController(text: _formatDateDisplay(provider.endDate)), textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, imageBackground: PngUtils.textFieldTopRight, - inputTextColor: EventlyAppTheme.kTextDarkBlue), + inputTextColor: EventlyAppTheme.kTextDarkBlue, + ), + ), ), - ), - ], - ), - VerticalSpace(20.h), - Row( - children: [ - Expanded( - child: GestureDetector( - onTap: () { - _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { - if (timeOfDay == null) return; - final currentTime = DateTime.now(); - final time = currentTime.copyWith(hour: timeOfDay.hour, minute: timeOfDay.minute); - provider.setStartTime = _timerFormatter(time); - }); - }, - child: EventlyTextField( + ], + ), + VerticalSpace(20.h), + Row( + children: [ + Expanded( + child: GestureDetector( + onTap: () { + _showTimePicker(onSelected: (TimeOfDay? timeOfDay) { + if (timeOfDay == null) return; + final currentTime = DateTime.now(); + final time = currentTime.copyWith(hour: timeOfDay.hour, minute: timeOfDay.minute); + provider.setStartTime = _formatTimeToIso(time); + }); + }, + child: EventlyTextField( enable: false, label: LocaleKeys.start_time.tr(), controller: TextEditingController(text: provider.startTime), textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, imageBackground: PngUtils.textFieldBottomLeft, - inputTextColor: EventlyAppTheme.kTextDarkBlue), + inputTextColor: EventlyAppTheme.kTextDarkBlue, + ), + ), ), - ), - HorizontalSpace(20.w), - Expanded( - child: GestureDetector( - onTap: () { - _showTimerPicker(onSelected: (TimeOfDay? timeOfDay) { - if (timeOfDay == null) return; - final currentTime = DateTime.now(); - final time = currentTime.copyWith(hour: timeOfDay.hour, minute: timeOfDay.minute); - provider.setEndTime = _timerFormatter(time); - }); - }, - child: EventlyTextField( - enable: false, - label: LocaleKeys.end_time.tr(), - controller: TextEditingController(text: provider.endTime), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; + HorizontalSpace(20.w), + Expanded( + child: GestureDetector( + onTap: () { + _showTimePicker(onSelected: (TimeOfDay? timeOfDay) { + if (timeOfDay == null) return; + final currentTime = DateTime.now(); + final time = currentTime.copyWith(hour: timeOfDay.hour, minute: timeOfDay.minute); + provider.setEndTime = _formatTimeToIso(time); + }); }, - imageBackground: PngUtils.textFieldTopRight, - inputTextColor: EventlyAppTheme.kTextDarkBlue, + child: EventlyTextField( + enable: false, + label: LocaleKeys.end_time.tr(), + controller: TextEditingController(text: provider.endTime), + textCapitalization: TextCapitalization.sentences, + imageBackground: PngUtils.textFieldTopRight, + inputTextColor: EventlyAppTheme.kTextDarkBlue, + ), ), ), - ), - ], - ), - VerticalSpace(20.h), - EventlyTextField( - onChanged: (_) => provider.setLocation = _, - label: LocaleKeys.location.tr(), - hint: LocaleKeys.search_location.tr(), - controller: TextEditingController(text: provider.location) - ..selection = TextSelection.fromPosition( - TextPosition(offset: provider.location.length), - ), - textCapitalization: TextCapitalization.sentences, - validator: (value) { - return null; - }, - ), - VerticalSpace(20.h), - EventlyTextField( - onChanged: (_) => provider.setDescription = _, - label: LocaleKeys.description.tr(), - hint: LocaleKeys.what_event_for.tr(), - controller: TextEditingController(text: provider.description) - ..selection = TextSelection.fromPosition( - TextPosition(offset: provider.description.length), - ), - textCapitalization: TextCapitalization.sentences, - noOfLines: 4, - ), - const VerticalSpace(40), - BottomButtons( - onPressContinue: () { - createEventViewModel.nextPage(); - }, - onPressSaveDraft: () { - final navigator = Navigator.of(context); - provider.saveAsDraft( - onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), - uploadStep: UploadStep.detail, - ); - }, - isContinueEnable: provider.startDate.isNotEmpty && - provider.endDate.isNotEmpty && - provider.startTime.isNotEmpty && - provider.endTime.isNotEmpty && - provider.description.isNotEmpty && - provider.location.isNotEmpty, - ), - ], + ], + ), + VerticalSpace(20.h), + EventlyTextField( + onChanged: (val) => provider.setLocation = val, + label: LocaleKeys.location.tr(), + hint: LocaleKeys.search_location.tr(), + controller: TextEditingController(text: provider.location) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.location.length), + ), + textCapitalization: TextCapitalization.sentences, + ), + VerticalSpace(20.h), + EventlyTextField( + onChanged: (val) => provider.setDescription = val, + label: LocaleKeys.description.tr(), + hint: LocaleKeys.what_event_for.tr(), + controller: TextEditingController(text: provider.description) + ..selection = TextSelection.fromPosition( + TextPosition(offset: provider.description.length), + ), + textCapitalization: TextCapitalization.sentences, + noOfLines: 4, + ), + const VerticalSpace(40), + BottomButtons( + onPressContinue: () { + if (_validateDates(provider)) { + createEventViewModel.nextPage(); + } else { + _showSnackBarWithPostFrameCallback('End date cannot be before start date!'); + } + }, + onPressSaveDraft: () { + final navigator = Navigator.of(context); + if (_validateDates(provider)) { + provider.saveAsDraft( + onCompleted: () => navigator.popUntil((route) => route.settings.name == RouteUtil.kRouteEventHub), + uploadStep: UploadStep.detail, + ); + } else { + _showSnackBarWithPostFrameCallback('End date cannot be before start date!'); + } + }, + isContinueEnable: provider.startDate.isNotEmpty && + provider.endDate.isNotEmpty && + provider.startTime.isNotEmpty && + provider.endTime.isNotEmpty && + provider.description.isNotEmpty && + provider.location.isNotEmpty, + ), + ], + ), ), - ), - ], + ], + ), ), - )), + ), ); } - _showTimerPicker({required ValueChanged onSelected}) { - showTimePicker( - initialTime: TimeOfDay.now(), - context: context, - ).then((value) => onSelected(value!)); - } - _showDatePicker({required ValueChanged onSelected}) { showDatePicker( context: context, firstDate: DateTime.now(), lastDate: DateTime(2099, 12), - ).then((value) => onSelected(value!)); + ).then((value) => onSelected(value)); + } + + _showTimePicker({required ValueChanged onSelected}) { + showTimePicker( + context: context, + initialTime: TimeOfDay.now(), + ).then((value) => onSelected(value)); } - _timerFormatter(DateTime dateTime) { - return DateFormat('hh:mm a').format(dateTime); + String _formatDateToIso(DateTime? dateTime) { + if (dateTime == null) return ''; + return DateFormat('yyyy-MM-dd').format(dateTime); + } + + String _formatDateDisplay(String? date) { + if (date == null || date.isEmpty) return ''; + try { + final DateTime parsedDate = DateFormat('yyyy-MM-dd').parse(date); + return DateFormat.yMMMMd('en_US').format(parsedDate); + } catch (e) { + return ''; + } + } + + String _formatTimeToIso(DateTime? dateTime) { + if (dateTime == null) return ''; + return DateFormat('HH:mm').format(dateTime); + } + + bool _validateDates(EventlyProvider provider) { + if (provider.startDate.isEmpty || provider.endDate.isEmpty) { + return true; // Dates are not set yet, so no validation needed + } + + try { + final DateTime start = DateFormat('yyyy-MM-dd').parse(provider.startDate); + final DateTime end = DateFormat('yyyy-MM-dd').parse(provider.endDate); + if (end.isBefore(start)) { + return false; // End date is before start date + } + } catch (e) { + return false; // Invalid date format + } + + return true; // Dates are valid } - _dateFormatter(DateTime dateTime) { - return DateFormat.yMMMMd('en_US').format(dateTime); + void _showSnackBarWithPostFrameCallback(String message) { + SchedulerBinding.instance!.addPostFrameCallback((_) { + scaffoldMessengerKey.currentState!.showSnackBar(SnackBar( + content: Text(message), + duration: Duration(seconds: 2), + )); + }); } } From aa764828e883e049b3c10b34570f02f64b03a4d4 Mon Sep 17 00:00:00 2001 From: Raviramnani1 <64575750+Raviramnani1@users.noreply.github.com> Date: Fri, 21 Jun 2024 20:12:26 +0530 Subject: [PATCH 155/158] Update build.gradle --- evently/android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evently/android/app/build.gradle b/evently/android/app/build.gradle index 73a1423a38..63ae673595 100644 --- a/evently/android/app/build.gradle +++ b/evently/android/app/build.gradle @@ -52,7 +52,7 @@ android { } signingConfigs { - release { + debug { storeFile file('keystore.jks') storePassword 'tech.pylons' keyAlias 'key_tech_pylon' @@ -61,7 +61,7 @@ android { } buildTypes { - debug { + 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 From 58f7ec69f8fed1bb5b2aa79e471cadf6aa79b202 Mon Sep 17 00:00:00 2001 From: raviramnani Date: Tue, 30 Jul 2024 16:42:06 +0530 Subject: [PATCH 156/158] Added check for number of tickets to be less than 1ooo in price_screen.dart --- evently/lib/screens/price_screen.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evently/lib/screens/price_screen.dart b/evently/lib/screens/price_screen.dart index 267ad84545..d955b4570e 100644 --- a/evently/lib/screens/price_screen.dart +++ b/evently/lib/screens/price_screen.dart @@ -217,8 +217,8 @@ class _PriceScreenState extends State { isContinueEnable: provider.isFreeDrop == FreeDrop.unselected ? false : provider.isFreeDrop == FreeDrop.yes - ? provider.numberOfTickets > 0 - : provider.numberOfTickets > 0 && provider.price > 0, + ? (provider.numberOfTickets > 0 && provider.numberOfTickets <= 1000) + : (provider.numberOfTickets > 0 && provider.numberOfTickets <= 1000 && provider.price > 0), ), ) ], From 6c5167f29c77a297cb26bbedea80b886d9950792 Mon Sep 17 00:00:00 2001 From: raviramnani Date: Tue, 30 Jul 2024 16:45:18 +0530 Subject: [PATCH 157/158] solved thumbnail box bottom overflown by 13 pixel error in overview_screen.dart --- evently/lib/screens/overview_screen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evently/lib/screens/overview_screen.dart b/evently/lib/screens/overview_screen.dart index 8c5bd9ee0b..568270aca3 100644 --- a/evently/lib/screens/overview_screen.dart +++ b/evently/lib/screens/overview_screen.dart @@ -120,7 +120,7 @@ class _OverViewScreenState extends State { onTap: () => provider.pickThumbnail(), child: Container( width: double.infinity, - height: 180, + height: 200, padding: EdgeInsets.symmetric(vertical: 20.w), child: Column( children: [ From 1721d685858e9e25ec1719f5017e3b78da2f181f Mon Sep 17 00:00:00 2001 From: raviramnani Date: Tue, 30 Jul 2024 16:49:03 +0530 Subject: [PATCH 158/158] Added time validation if the date is same in detail_screen.dart --- evently/lib/screens/detail_screen.dart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/evently/lib/screens/detail_screen.dart b/evently/lib/screens/detail_screen.dart index 5d62fde20b..5cb6a9b36b 100644 --- a/evently/lib/screens/detail_screen.dart +++ b/evently/lib/screens/detail_screen.dart @@ -181,7 +181,7 @@ class _DetailsScreenState extends State { if (_validateDates(provider)) { createEventViewModel.nextPage(); } else { - _showSnackBarWithPostFrameCallback('End date cannot be before start date!'); + _showSnackBarWithPostFrameCallback('End of event cannot be before start of event!'); } }, onPressSaveDraft: () { @@ -192,7 +192,7 @@ class _DetailsScreenState extends State { uploadStep: UploadStep.detail, ); } else { - _showSnackBarWithPostFrameCallback('End date cannot be before start date!'); + _showSnackBarWithPostFrameCallback('End of event cannot be before start of event!'); } }, isContinueEnable: provider.startDate.isNotEmpty && @@ -258,6 +258,15 @@ class _DetailsScreenState extends State { if (end.isBefore(start)) { return false; // End date is before start date } + // Check times if the dates are the same + if (provider.startDate.compareTo(provider.endDate) == 0) { + final DateTime startTime = DateFormat('HH:mm').parse(provider.startTime); + final DateTime endTime = DateFormat('HH:mm').parse(provider.endTime); + + if (endTime.isBefore(startTime)) { + return false; // End time is before start time on the same day + } + } } catch (e) { return false; // Invalid date format }