Skip to content

fix: Set button size in onMount if not set#3413

Merged
spydon merged 2 commits intomainfrom
fix/set-button-size
Dec 16, 2024
Merged

fix: Set button size in onMount if not set#3413
spydon merged 2 commits intomainfrom
fix/set-button-size

Conversation

@spydon
Copy link
Copy Markdown
Member

@spydon spydon commented Dec 16, 2024

Description

If the buttons are extended it doesn't automatically propagate the size from the button child component like it does if you pass the button into the constructor. This PR sets that size in onMount if the size is zero.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • No, this PR is not a breaking change.

Related Issues

@spydon spydon enabled auto-merge (squash) December 16, 2024 14:20
@spydon spydon merged commit 916aa5c into main Dec 16, 2024
@spydon spydon deleted the fix/set-button-size branch December 16, 2024 14:27
nickf2k pushed a commit to nickf2k/flame that referenced this pull request Nov 16, 2025
If the buttons are extended it doesn't automatically propagate the size
from the `button` child component like it does if you pass the button
into the constructor. This PR sets that size in `onMount` if the size is
zero.
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