[Bug] - Text Does Not Take Up Available Space When Rotated #6014
Answered
by
7576457
nelson-python
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
7576457
Jan 16, 2026
Replies: 1 comment 4 replies
-
|
It seems like your example is missing some code, could you please share the full code? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment







Your question is related to how Flutter calculates layout and applies transforms.
At first glance, it feels logical to expect that when you rotate the text, it should fit into the container. However, there is an important nuance here: layout and transform are two separate stages.
Flutter first performs the layout phase, where widget sizes are calculated, and only after that applies the transform (such as rotation). Because of this, rotation does not affect how width and height are calculated.
In your example, the text is rotated by 90 degrees, but its width is still calculated in its original orientation and is constrained by the parent container. That’s why it gets clipped.
If you rotate…