Skip to content

Conversation

@andyhorn
Copy link
Owner

This PR resolves #86 by fixing a bug where the controller was re-settting the children anytime a divider changed, e.g. when an onHover triggered a setState that updated the divider's color.

Instead of using a deep-equality check on the didUpdateWidget hook, we're now just checking whether the length of the list of children changed. If this is not adequate, we may have to explore some different options in a future issue/PR.

Fix an issue with the custom divider that was causing a re-render on any divider hover (setState call).
@andyhorn andyhorn merged commit 7d5e7df into main Feb 26, 2025
1 check passed
@andyhorn andyhorn deleted the fix/custom_divider branch February 26, 2025 15:25
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.

Custom divider cannot be resized when it includes onHoverExit with setState

2 participants