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
- CustomScrollView
- Dialog
- textview
- Kotlin
- scroll
- 앱
- appbar
- ScrollView
- 테스트
- Navigation
- drift
- DART
- textfield
- Button
- binding
- intent
- android
- 안드로이드
- Coroutines
- viewmodel
- 계측
- TEST
- 앱바
- livedata
- activity
- data
- Flutter
- tabbar
- LifeCycle
- Compose
Archives
- Today
- Total
목록FutureBuilder (1)
Study Record
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bAnfiH/btrZo7Ady5h/xATSPkL26VE95rt7YMmj11/img.gif)
✍ FutureBuilder Widget 네트워크 통신이 필요한 작업 등 비동기로 작업한 이후 UI를 업데이트를 해야 할 경우가 있다면 유용한 위젯이다. FutureBuilder({ Key? key, Future? future, T? initialData, required Widget Function(BuildContext, AsyncSnapshot) builder, }) future에 비동기로 할 작업을 정의하고 builder에 future에 작업이 끝나기 전 보여줄 Widet , 끝난 후 보여줄 Widget을 정의하면 된다. 데이터 타입 T는 비동기 작업 후 반환할 데이터 타입으로 initialData는 future 작업이 끝나기 전 초기 데이터를 정의할 수 있다. 예를 들어, 코드가 다음과 같으면,..
Flutter/widget
2023. 2. 19. 00:39