You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is unfortunate due to the duplicated widget creation effort. But more annoyingly, the size gathered in the first pass doesn't actually work. It causes The largest button to wrap its text. It doesn't happen with all strings, which suggests a font sizing problem or that this isn't the way to do it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want the following buttons to all have the same width, being the width of the button that fits the widest content:
Realizing that this is a two-pass effort, I ended up with the following:
which is unfortunate due to the duplicated widget creation effort. But more annoyingly, the size gathered in the first pass doesn't actually work. It causes The largest button to wrap its text. It doesn't happen with all strings, which suggests a font sizing problem or that this isn't the way to do it.
I have to add in a buffer for it to not wrap.
Is this the right approach? Alternatives?
Beta Was this translation helpful? Give feedback.
All reactions