bdlukaa / fluent_ui

Implements Microsoft's WinUI3 in Flutter.
https://bdlukaa.github.io/fluent_ui/
BSD 3-Clause "New" or "Revised" License
2.79k stars 435 forks source link

fix: Let `Button` pass loosen constraints to it's child. #1040

Closed fischerscode closed 2 months ago

fischerscode commented 3 months ago

This PR fixes #1039.

I've replaced the Column with a Center. By setting the factors to 1, I've prevented Center from expanding. With this change, Button will satisfy the constraints with a minimal size. The constraints passed to the child are loosen. Therefor, the child's size can also be to small. This will result in a centered child.

Close #1039

Pre-launch Checklist