RotatedBox

RotatedBox is a Flutter widget that allows you to rotate its child widget by a specified angle. This can be useful for creating custom layouts or visual effects.

For example, you can use RotatedBox to create a diagonal text widget:

RotatedBox(
  quarterTurns: 1,
  child: Text(
    "Diagonal Text",
    style: TextStyle(fontSize: 20),
  ),
),

This will rotate the Text widget by 90 degrees, resulting in a diagonal text layout.