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
- drift
- TEST
- Compose
- Kotlin
- CustomScrollView
- textfield
- textview
- Coroutines
- tabbar
- ScrollView
- livedata
- android
- appbar
- data
- intent
- DART
- viewmodel
- Navigation
- 앱
- 테스트
- Dialog
- scroll
- binding
- 앱바
- 계측
- 안드로이드
- activity
- LifeCycle
- Button
- Flutter
Archives
- Today
- Total
목록StreamBuilder (1)
Study Record
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dtfQbQ/btrZQcNcgTc/LgC0BqGbDAVZBxLbgn3jS1/img.gif)
✍ 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