Skip to content

Add childrenForSemantics to delegate#47

Open
Albert221 wants to merge 3 commits intopingbird:masterfrom
Albert221:feat/children-for-semantics
Open

Add childrenForSemantics to delegate#47
Albert221 wants to merge 3 commits intopingbird:masterfrom
Albert221:feat/children-for-semantics

Conversation

@Albert221
Copy link
Contributor

Fixes #45 - visitChildrenForSemantics now respects delegate's children order.

Added an overridable childrenForSemantics getter to BaseBoxyDelegate that controls the order children are visited for semantics. By default, it returns children in paint order while filtering out ignored children. This means delegates that override children (e.g., for custom paint/hit-test order) will now automatically have their semantics follow the same order.

Delegates can also override childrenForSemantics directly for independent control over semantics traversal when needed.

Also added a new BoxyDelegatePhase.semantics phase to enable delegate access during semantics traversal, and included unit tests for the new functionality.

@Albert221 Albert221 force-pushed the feat/children-for-semantics branch from 23430a7 to d680e87 Compare January 2, 2026 12:38
@Albert221 Albert221 force-pushed the feat/children-for-semantics branch from d680e87 to eaba5d1 Compare January 2, 2026 12:39
@Albert221
Copy link
Contributor Author

@pingbird ping 👀

@pingbird
Copy link
Owner

Apologies for the slow review, I have been out of the country since Christmas, will take a look in the next week

@Albert221
Copy link
Contributor Author

@pingbird hey, have you had a chance to look at it yet? 👀

@Albert221
Copy link
Contributor Author

@pingbird bump

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.

visitChildrenForSemantics doesn't respect BoxyDelegate.children order

2 participants