Flutter 웹에서는 MOUSE라는 디바이스에 대한 설정도 필요하게 되었다.
이로 인해 여러가지가 귀찮게 되었다. ㅋㅋ
TextButton(
style: ButtonStyle(
overlayColor: MaterialStateProperty.all(Colors.red),
backgroundColor: MaterialStateProperty.all(Colors.black12),
),
onHover: (hover) {
setState(() {
_buttonColor = hover ? Colors.white : Colors.black;
});
},
onPressed: () {},
child: Text(
'To second Page',
style: TextStyle(color: _buttonColor),
),
);
'Dead Code > Flutter_Dart' 카테고리의 다른 글
[플러터] 탭한 위치의 위치값 찾기 (0) | 2022.09.13 |
---|---|
[플러터] web - NetworkImage, 이미지 안뜰 때 (0) | 2022.09.01 |
[플러터] 엑셀 날짜를 DATETIME으로 변경 (0) | 2022.08.30 |
[플러터] 플러터로 만든 웹페이지 github 호스팅 시 안뜰 때. (0) | 2022.08.26 |
[다트] MAP : Map<int, List> (0) | 2022.08.05 |
[플러터] SnackBar / AlertDialog (0) | 2022.07.19 |
[플러터] Prefer const with constant contructors (0) | 2021.10.07 |
[플러터] RAISEDBUTTON DEPRECATED (0) | 2021.08.18 |
[다트] 구구단 (0) | 2020.08.03 |
[다트] 다트 FACTORY 클래스 샘플코드 (0) | 2020.06.11 |