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

feat: Align component refactoring #2767

Merged
merged 10 commits into from Sep 25, 2023

Conversation

denisgl7
Copy link
Contributor

I suggest changing the child element of the Align component. In this case, the child element is not a required parameter.
Motivation:
Thus, the Align component can be created as a class field.
We can replace the child at any time.
Hello:
I can create a label field on a button and change the label depending on the state of the button.

@denisgl7 denisgl7 changed the title Align component refactoring feat: Align component refactoring Sep 24, 2023
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Have you checked if there are any docs that need to be updated?

packages/flame/lib/src/layout/align_component.dart Outdated Show resolved Hide resolved
@spydon spydon merged commit bde34ef into flame-engine:main Sep 25, 2023
7 checks passed
@denisgl7 denisgl7 deleted the align-component-refactoring branch October 31, 2023 07:38
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.

None yet

2 participants