Skip to content

Conversation

IanVS
Copy link
Contributor

@IanVS IanVS commented Sep 23, 2024

Fixes a bug introduced in #1186, which caused the icon to center vertically unconstrained.

I also removed the Center widget, because it does not appear to have any effect inside a SizedBox. But I'm happy to re-add if it's necessary.

size: 32.0,
color: Colors.grey,
),
return const SizedBox.square(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, this should have been on both axes. And yes an Icon is just a SizedBox and a Text widget, so the Center was probably not needed.

@navaronbracke navaronbracke merged commit 5488398 into juliansteenbakker:master Sep 23, 2024
5 checks passed
@IanVS IanVS deleted the fix-icon-centering branch September 23, 2024 15:40
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