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

Extract out common Yoga FlexContainer logic #1378

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

veyndan
Copy link
Contributor

@veyndan veyndan commented Jul 28, 2023

No description provided.

import app.cash.redwood.ui.Margin
import app.cash.redwood.yoga.Node

interface YogaFlexContainer<W : Any> : FlexContainer<W> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a pretty small module to carry and to put into public API. Could we accomplish this with a new copyPasta.kt entry? Or maybe it could be added to the existing FlexboxHelpers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I was imagining third party implementations that could depend on this module. I've definitely back-tracked on that thinking since this PR, so I've just chucked it in FlexboxHelpers as you suggested.

@veyndan veyndan force-pushed the veyndan/2023-07-28/yoga-flex-container branch from f4c66eb to 55c1d31 Compare January 16, 2024 12:57
@veyndan veyndan requested a review from JakeWharton January 16, 2024 12:58
@veyndan veyndan merged commit d216966 into trunk Jan 16, 2024
8 checks passed
@veyndan veyndan deleted the veyndan/2023-07-28/yoga-flex-container branch January 16, 2024 15:52
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.

2 participants