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

Refactor crop.dart introducing CropEditorViewState #164

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

chooyan-eng
Copy link
Owner

Issue

crop.dart initially contains a lot of logic to calculate and update its state.

solution

Introduced CropEditorViewState which preserves values given by Crop and also generated through users' interaction. This also exposes calculated values so that _CropEditor can use those values as-is in its build() method.

The idea is introduced below:
https://github.com/chooyan-eng/complex_local_state_management/blob/main/docs/local_state.md

Documentation

Also, added docs/architecture.md which briefly describes how crop_your_image is implemented. This document is for maintainer and also for AI, such as Cursor editor.

@chooyan-eng chooyan-eng self-assigned this Dec 6, 2024
@chooyan-eng chooyan-eng merged commit 54ba6a0 into main Dec 6, 2024
1 check passed
@chooyan-eng chooyan-eng deleted the refactor/local_state branch December 6, 2024 15:55
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

Successfully merging this pull request may close these issues.

1 participant