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

[Bug]: Importing history with transforms doesn't work #102

Closed
efalco777 opened this issue Jun 14, 2024 · 1 comment
Closed

[Bug]: Importing history with transforms doesn't work #102

efalco777 opened this issue Jun 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@efalco777
Copy link

Package Version

3.0.12

Flutter Version

3.22.2

Platforms

iOS

How to reproduce?

Steps to reproduce:

  1. Open editor
  2. Crop/Rotate the image
  3. Save & export history (doesn't matter if it's toMap, toFile or toJson).
  4. Open editor again with the same photo passing the previously exported history to StateHistoryConfigs

Expected:
Editor starts up with the image cropped/rotated.

Actual:
None of the previous transforms are restored.

------------
Issue is reproducible in the example project once we start updating the exported map.

Other properties like emojis etc. work as expected. Pretty sure the issue may be related to how the library maps the exported/imported json's.

Logs (optional)

Package Version
3.0.12

Flutter Version
3.22.2

Platforms
iOS

Example code (optional)

No response

Device Model (optional)

iPhone 15

@efalco777 efalco777 added the bug Something isn't working label Jun 14, 2024
@hm21
Copy link
Owner

hm21 commented Jun 14, 2024

Thanks for reporting this issue.

I have updated some code which should resolve this issue in version 3.0.13. Please let me know if you still have this problem after you update.

@hm21 hm21 closed this as completed Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants