티스토리 뷰
1. 코드
print('가로 : ' + MediaQuery.of(context).size.width.toInt().toString()); // 가로 해상도
print('세로 : ' + MediaQuery.of(context).size.height.toInt().toString()); // 세로 해상도
2. 결과
I/flutter ( 936): 가로 : 360
I/flutter ( 936): 세로 : 640
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- place
- devel
- Linux
- 엘리스센터
- ssh
- Java
- Compile
- Review
- Security
- kotlin
- development
- food
- HTTP
- Flutter
- springboot
- json parse
- 맛집
- Mobile
- samba
- devtools
- dart
- TIP
- SSL
- Fun
- gpkiapi
- JavaScript
- MySQL
- Android
- web
- Spring
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함