본문 바로가기
개발/Flutter

rotate 하고 사이즈 남기기

by dev_caleb 2023. 7. 3.
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

'개발 > Flutter' 카테고리의 다른 글

flutter nesting generated file freezed  (0) 2023.07.06
GetX FutureBuilder처럼 사용하기  (0) 2023.07.05
In App 결제 기능 구축(6)  (0) 2023.07.02
flutter로 카카오 링크시 주의사항 kakao link  (0) 2023.07.01
flutter text gradient  (0) 2023.06.27