Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Critical Bug report ] Save and restore stackboard items from JSON #11

Open
thomasllds opened this issue Jun 27, 2024 · 2 comments
Open

Comments

@thomasllds
Copy link

Version

stack_board: ^0.2.4

Platforms

Web

Device Model

chrome and others

flutter info

[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.3737], locale en-US)
    • Flutter version 3.22.2 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.7.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional
    • Visual Studio Professional 2022 version 17.7.34221.43
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code, 64-bit edition (version 1.90.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[!] Proxy Configuration
    • HTTP_PROXY is set
    • NO_PROXY is 127.0.0.1,localhost,rb-omscloudasl4.server.bosch.com,127.0.0.*
    • NO_PROXY contains localhost
    ! NO_PROXY does not contain ::1
    • NO_PROXY contains 127.0.0.1

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.3737]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 122.0.6261.131
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 126.0.2592.61

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

How to reproduce?

Bug Title: Issue with Save and Load Functionality via JSON After Compilation

Description:
When exporting child elements of the stackboard as JSON, class names are correctly serialized in a local debug environment, allowing proper deserialization and display of elements. However, once the application is compiled, class names are no longer present in the JSON file, preventing correct deserialization and display of elements.

Expected Behavior:
Child elements of the stackboard should be correctly serialized with class names in the JSON file, regardless of whether the application is in debug mode or compiled. This ensures proper deserialization and display of elements.

impacted class

  • StackImageItem
  • StackDrawItem
  • StackTextItem

Current Behavior:

  • In local debug environment: Class names are present in the JSON file, allowing proper deserialization.
  • In compiled environment: Class names are missing in the JSON file, preventing proper deserialization and display of elements.

Steps to Reproduce:

  1. Run the application in local debug mode. >flutter run
  2. Export the child elements of the stackboard as JSON.
  3. Verify that class names are present in the JSON file.
  4. Compile the application. flutter build web --release
  5. Run the compiled application. http-server build/web
  6. Export the child elements of the stackboard as JSON again.
  7. Observe that class names are missing in the JSON file.

Screenshots:

  1. FROM LOCAL DEBUG
    image

  2. From Compiled served with http server
    image

Thank you for your assistance in resolving this issue.

This issue is preventing me from exporting my project to a production environment from FlutterFlow. I have tried to fix the problem, but I can't manage to do it.

Logs

No response

Example code (optional)

No response

Contact

[email protected]

@thomasllds
Copy link
Author

@frankjoshua
Hello, I see that you are active on the project and I wanted to know if you had the same problem in production?
thanks

@frankjoshua
Copy link
Contributor

@frankjoshua Hello, I see that you are active on the project and I wanted to know if you had the same problem in production? thanks

Sorry, no. My project is in alpha and I am not minifying my code. I assume you would need to exclude the StackItem classes from being obfuscated in what ever system you are using for minification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants