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 | 29 | 30 | 31 |
Tags
- Kotlin
- 앱
- drift
- 안드로이드
- Coroutines
- binding
- textfield
- android
- Navigation
- LifeCycle
- CustomScrollView
- TEST
- Dialog
- Compose
- tabbar
- data
- 계측
- livedata
- Flutter
- DART
- Button
- viewmodel
- 테스트
- intent
- 앱바
- scroll
- textview
- ScrollView
- activity
- appbar
Archives
- Today
- Total
목록StreamBuilder (1)
Study Record

✍ StreamBuilder Widget FutureBuilder 와 비슷하게 stream 과 상호작용하며 값을 리턴 받을 때마다 다른 위젯들을 보여줘야 할 때 유용한 위젯이다. StreamBuilder({ Key? key, T? initialData, Stream? stream, required Widget Function(BuildContext, AsyncSnapshot ) builder, }) stream 인자에 stream 을 설정하면 값(데이터 타입: T)을 리턴 받을 때마다 builder 함수가 호출되면서 AsyncSnapshot 에 리턴 받은 값, 상태를 보고 판단하여 상황에 맞게 위젯들을 보여줄 수 있다. initialData가 null 이 아니면 초기 데이터 값이 null 이 아닌 ini..
Flutter/widget
2023. 2. 19. 01:20