- [Flutter]RasisedButton을 사용하는데 활성화가 되지 않는 경우 목차
반응형
RaisedButton(
child: Text("Login"),
color: Colors.blue,
....
onPressed: null),
이렇게 하면 버튼이 회색으로 계속 표시가 되면서 색상이 반영되지 않는다
이유는 onPressed가 활성화되지 않았기 때문이다
onPressed: ( ) { } 이렇게 활성화를 시키면
버튼의 색상이 blue로 변경됨을 확인할 수 있다
반응형
'flutter' 카테고리의 다른 글
[Flutter]Form, Global Key, TextFormField 사용 (0) | 2020.10.02 |
---|---|
[Flutter] CircleAvata, Expanded, BoxFit 사용법 (0) | 2020.10.01 |
[flutter] 화면 Size를 알기 및 화면 크기 활용법 (0) | 2020.10.01 |
[Flutter]D8:Cannot fit requested classes in a single dex file (0) | 2020.09.30 |
firestore 찿아 가는 방법 (0) | 2020.09.30 |