[flutter] Button Style을 바꾸는 두가지 방법 (styleFrom, ButtonStyle)

chamroro·2021년 12월 28일
0

flutter

목록 보기
1/1
post-thumbnail

flutter의 버튼 스타일을 적용하는 데에는 두가지 방법이 있다.

  1. .styleFrom

  1. ButtonStyle

상태관리 코드를 따로 작성할 필요없이 buttonStyle안에서 바로 state 관리가 가능하다.
따라서 1번 방법보다는 2번 방법으로 코드 쓰는 것에 적응해야겠다.

profile
Why not change the world?

0개의 댓글