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
- 성능개선
- 양도소득세
- 인덱싱
- 경매
- 매입불공제
- 금융소득
- 정책자금
- 세금계산서
- route53
- S3
- 임업후계자
- 외국납부세액공제
- kubectl
- 신탁공매
- AWS
- 공매
- Kubernetes
- node
- lambda
- OpenSearch
- serverless
- pod
- 산지연금
- Resolver
- Filter
- 리소스
- python
- boto3
- command
- 농지연금
Archives
- Today
- Total
진지한 개발자
상태관리 종류 본문
728x90
GetX
- ...
Provider
- BlockProvider<T extends StateStreamableSource<Object?>>
- EventStreamProvider<T extends Event>
- ScrollAwareImageProvider<T extends Object>
- TickerProviderStateMixin<T extends StatefulWidget>
Bloc<Event, State>
- 대규모 상태관리에 적합
- BlocProvider<T extends StateStreamableSource<Object?>>
- BlocBase<State>
- BlocBuilder<B extends StateStreamable<S>, S>
- BlocConsumer<B extends StateStreamable<S>, S>
- BlocEventSink<Event extends Object?>
- BloKistener<B extends StateStreamable<S>, S>
- BlocSelector<B extends StateStreamable<S>, S>
- Widget에 함수를 구현하게 되는 경우 context내에 있는 Bloc을 읽어 와서 연결하고자 하는 event를 붙여줌
- FloatingActionButton(onPressed: () => context.read<CounterBloc>().add(Increment())),
- FloatingActionButton : Widget
- CounterBloc : Bloc
- Increment : Event
- FloatingActionButton(onPressed: () => context.read<CounterBloc>().add(Increment())),
- 다중 상태 상속 방식
- 단일 상태 copyWith 방식
- https://randomuser.me/ 활용한 예제
FloatingActionButton(onPressed: () => context.read<CounterBloc>().add(Increment()), child: const Icon(Icons.add),),
FloatingActionButton(onPressed: () => context.read<CounterBloc>().add(Increment()), child: const Icon(Icons.add),),
FloatingActionButton(onPressed: () => context.read<CounterBloc>().add(Increment()), child: const Icon(Icons.add),),
Riverpod
- ...
Cubit<State>
728x90
'IT > Flutter' 카테고리의 다른 글
flutter_bloc, Provider, Builder (1) | 2023.02.02 |
---|---|
BLoC 패턴 (business Logic Component) (0) | 2023.02.01 |