Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 이미지
- error
- Code
- window
- 개발자
- Notification
- darkmode
- FLUTTER
- 한글
- MacOS
- UIButton
- mac
- IOS
- Apple
- Swift
- rxswift
- view
- Git
- JPA
- SwiftUI
- Realm
- Firebase
- Session
- github
- appstore
- iOS16
- 웹뷰
- geofencing
- Archive
- Xcode
Archives
- Today
- Total
EEYatHo 앱 깎는 이야기
Flutter ) Bloc 사용법 본문
반응형
- view -> Bloc 이벤트 주입
BlocProvider
.of<MyBloc>(context)
.add(MyEvent(id));
context.read<MyBloc>().add(MyEvent());
- BlocBuilder 없이 view 에서 state값 바로 사용하기
- 글로벌 블럭 사용에 용이
context.select((MyBloc bloc) => bloc.state.nowIndex);
- BlocBuilder 없이 view 에서 state값 바로 사용하기
- 글로벌 블럭 사용에 용이
'Flutter' 카테고리의 다른 글
Flutter ) webview_flutter image, file 첨부 (0) | 2025.01.17 |
---|---|
GetIt , Go Router, BloC 함께 사용시 BloC이 계속 생성되는 문제 (0) | 2024.12.10 |
Comments