일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 매입불공제
- python
- Kubernetes
- lambda
- 양도소득세
- command
- kubectl
- 외국납부세액공제
- 신탁공매
- serverless
- 금융소득
- 경매
- 공매
- Resolver
- S3
- 임업후계자
- 정책자금
- 성능개선
- boto3
- 농지연금
- OpenSearch
- 산지연금
- 이자
- Filter
- AWS
- 산지
- route53
- 세금계산서
- 인덱싱
- 클러스터
- Today
- Total
목록IT/Flutter (3)
진지한 개발자
flutter_bloc BLoC 패턴을 사용하기 위해 정형화된 구조를 사용 함 BehaviorSubject 객체 정의 최상위의 BLoC 객체 생성 Stream 반환 객체 정의 add, delete, update 로직 async*, yield : stream 형태로 지속적으로 방출하기 위한 키워드 flutter_bloc 객체를 사용하기 위해서 BlocProvider, BlocBuilder 를 사용해야 함 BlocProvider BloC 객체를 제공해 주기 위해 사용하는 클래스 create 속성을 사용해 BLoC 을 MaterialApp에 주입, 모든 하위 위젯들이 사용 가능해 짐 BlocProvider 로 MaterialApp 을 감싸 인스턴스를 모든 앱 내부에서 사용할 수 있도록 함 BlocBuilder..
GetX ... Provider BlockProvider EventStreamProvider ScrollAwareImageProvider TickerProviderStateMixin Bloc 대규모 상태관리에 적합 BlocProvider BlocBase BlocBuilder BlocConsumer BlocEventSink BloKistener BlocSelector Widget에 함수를 구현하게 되는 경우 context내에 있는 Bloc을 읽어 와서 연결하고자 하는 event를 붙여줌 FloatingActionButton(onPressed: () => context.read().add(Increment())), FloatingActionButton : Widget CounterBloc : Bloc Inc..
BLoC Presentation Layer와 business Logic 을 분리하여 코드 작성 가능하게 함 스트림을 이용하여 만들어 짐 위젯은 Sinks(입구)를 통하여 BLoC에 이벤트를 보냄 BLoC객체는 위젯으로부터 이벤트를 전달받으면 필요한 Repository 등으로부터 데이터를 전달받아 business Logic을 처리함 business Logic을 처리한 후, BLoC 객체를 구독 중인 UI 객체들에게 상태를 전달함 UI에서 여러 BLoC이 존재 함 UI와 business 로직을 분리하여 관리함 BLoC은 여러 UI에서 구독할 수 있음 설치 flutter pub add flutter_bloc flutter pub get사용 import 'package:flutter_bloc/flutte..