Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

yoga_engine: yoga must recalculate layout when when widgets change #1723

Closed
matheusribeirozup opened this issue Aug 3, 2021 · 0 comments
Closed
Labels
flutter This issue directly affects structure and logic of Flutter project

Comments

@matheusribeirozup
Copy link
Contributor

Use case

The current implementation of yoga_engine does not reflect updates to the tree or widget sizes. So when any widget is resized after rendering, or when any widget is inserted or removed from the tree, these events are not reflected to yoga.

Proposal

Implement in the RenderYoga class in the method responsible for capturing adding and removing children and size changes events and rebuilding the yoga node tree or marking them as dirty.

@matheusribeirozup matheusribeirozup added the flutter This issue directly affects structure and logic of Flutter project label Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flutter This issue directly affects structure and logic of Flutter project
Projects
None yet
Development

No branches or pull requests

2 participants