개발/Flutter
rotate 하고 사이즈 남기기
dev_caleb
2023. 7. 3. 10:27
728x90
로테이션 하는 방법은 많은데,
로테이션 하고나서 사이즈를 다시 확인해주는 것은 찾기 어려운 것 같다 .아래의 블로그를 통해서 찾았음!!ㅎㅎ
https://www.fluttercampus.com/guide/204/how-to-rotate-widget-in-flutter/
How to Rotate Widget in Flutter
In this example, we are going to show you how to rotate widgets with different methods in Flutter such as using Transform.rotate(), RotationTransition(), RotatedBox().
www.fluttercampus.com
내가 했던 방법은
RotatedBox(
quarterTurns: -2,
child: Card(
child: Text("FlutterCampus.com")
)
)
이 방식인데,
width랑 height 반대로 되는 것만 인지하면 잘 되는 것을 확인할 수 있음!
728x90