YD_S 개발로그
article thumbnail

Theme는 앱의 정체성을 표현하는데 가장 중요시 된다. 하지만 Material Color Theme를 지정하기 위해선 여러 값에 따라 색상을 지정해줘야한다. 이러한 번거로움을 한 번에 해결하는 플러그인을 소개한다. Flutter Favorite을 받은 플러그인이므로 믿고 사용할 수 있다.

 

Theme 지정하기

  • themes playgroud 페이지에서 본인이 원하는 Theme를 지정한다. (Custom 가능)
  • Theme Code를 선택하여 코드를 복사한다.
  • https://rydmike.com/flexcolorscheme/themesplayground-v7-1/#/ (v-7-1 의 값은 플러그인 버전에 따라 변동된다, 23.05.16 기준 flex_color_scheme 7.1.1  버전이다.)

Themes playground

 

Theme 적용하기

  • 지정한 Theme를 MaterialApp 위젯에 추가한다.

 

 

 

 

https://pub.dev/packages/flex_color_scheme

 

flex_color_scheme | Flutter Package

A Flutter package to use and make beautiful Material design based themes.

pub.dev

 

profile

YD_S 개발로그

@YD_S

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!