gradient

Flutter/기본

[Flutter] Container Gradient 설정하기

Container > decoration > BoxDecoration > gradient 속성을 사용하면 위에 사진처럼 Container에 Gradient를 설정할 수 있습니다. 1. 일반 Container( width: 200, height: 60, decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.centerLeft, end: Alignment.centerRight, colors: [ Colors.red, Colors.yellow, ], ), ), ), 2. 대각선 Container( width: 200, height: 60, decoration: BoxDecoration( gradient: LinearGradient( beg..

주톨
'gradient' 태그의 글 목록