-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
[How to use] How to save and restore scale and offset adjustments in ExtendedImage? #725
Comments
you can get current EditActionDetails
|
I'll check that value. Thank you |
Is there any way to use the saved information when reloading the image later? |
I could only make it work with below code: Saving the offset & scale of last edit
Retrieving the offset & scale when building the widget, then trigger rebuild
And use above code as postframe callback
As screenDestinationRect would affect the size of the image, I have to do some math to the totalScale & maxScale to balance for that, keeping the maxScale unchanged. However, this is not perfect as user would experience a 'jump' from original to the last offset/scale, so see if there is a better solution! |
Platforms
dart
Description
Hello, Is it possible to save the information about the scale and position(offset) adjustments made by the user before cropping an image? Additionally, is there a way to apply the saved information(scale, offset) when reloading the image later?
I want to display the user's previous edits when they reopen the image for further adjustments.
Thank you in advance.
My code
No response
Try do it
No response
The text was updated successfully, but these errors were encountered: