플러터 앱바, 버튼 색칠하기 flutter button color (BackgroundColor, StyleFrom, ButtonStyle)
ㅣ요약 플러터에서 색을 바꾸거나 입히려면 appbar는 backgroundColor를, button은 특정버튼명.styleFrom 이나 일반적으로 모든 버튼에게 해당되는 ButtonStyle을 이용한다. ㅣ예시 구체적인 코드 예시는 아래와 같다. 1) appbar appBar: AppBar( title: const Text('Screen 1st'), backgroundColor: Colors.green, ), 2) button (1) stylefrom 사용 ElevatedButton( style: ElevatedButton.styleFrom( primary: Colors.green, ), onPressed: () {}, child: const Text('보낸 편지함'), ), (2) MaterialSta..
2022.04.20