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
- scroll
- intent
- tabbar
- Kotlin
- 안드로이드
- Compose
- activity
- ScrollView
- data
- 앱
- binding
- CustomScrollView
- Coroutines
- Button
- textfield
- Navigation
- drift
- LifeCycle
- DART
- 계측
- Flutter
- textview
- livedata
- Dialog
- TEST
- 앱바
- android
- appbar
- viewmodel
- 테스트
Archives
- Today
- Total
목록포커스 해제 (1)
Study Record
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/VEqXW/btr0Hx5hA5i/dMhKrlXPDbUPEEybD9DB70/img.gif)
✍ TextField 에서 Focus 다루기 TextField 의 autoFocus 를 true 로 하면 그 TextField 에 focus가 잡히면서 키보드가 자동으로 올라간다. TextField( autoFocus: true ) 😶 코드로 Focus 요청하기 사용자가 TextField 를 클릭하거나 액션 버튼을 눌렀을 때 다음 TextField 로 focus 가 넘어가는 등 이외에도 코드로 포커스를 잡거나 해제할 수 있다. 바로 FocusNode 를 사용한다. FocusNode = myFocusNode = FocusNode(); // TextField 에 focusNode 연결 TextField( focusNode: myFocusNode; ); // 연결된 TextField 에 포커스 주기 myFoc..
Flutter/widget
2023. 2. 26. 00:41