Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Kotlin
- 앱바
- textfield
- Compose
- activity
- Navigation
- 안드로이드
- Dialog
- viewmodel
- data
- binding
- drift
- Coroutines
- ScrollView
- CustomScrollView
- 계측
- Flutter
- intent
- 앱
- livedata
- LifeCycle
- textview
- TEST
- appbar
- tabbar
- scroll
- Button
- DART
- 테스트
- android
Archives
- Today
- Total
목록Orientation (1)
Study Record

✍ MediaQuery MediaQuery 는 정의에 따르면, "미디어 쿼리가 지정된 데이터를 확인하는 하위 트리를 설정합니다." 라고 되어있다. 조금 더 쉽게 이야기하면 현재 미디어(ex. 앱 화면)에 대한 정보를 주면 데이터를 확인해주는 하위 트리를 설정해주고 우리는 그걸로 미디어에 대한 정보(MediaQueryData)를 얻을 수 있다. 현재 화면에 대한 미디어 정보는 다음과 같이 얻는다. ... Widget build(BuildContext context) { MediaQueryData mediaData = MediaQuery.of(context); } MediaQuery.of 는 BuildContext 를 기반으로 관련된 MediaQuery 를 찾을 수 없으면 예외를 발생시킨다. 이럴 경우엔 M..
Flutter
2023. 2. 28. 18:17