close
0

How do I rotate something 15 degrees in Flutter?

avatar
asked 04-09-2021

2 Answers


0
new RotationTransition(
  turns: new AlwaysStoppedAnimation(15 / 360),
  child: new Text("Lorem ipsum"),
)
avatar
answered 04-09-2021

0
new RotatedBox(
  quarterTurns: 1,
  child: new Text("Lorem ipsum")
)
avatar
answered 04-09-2021