Publish to my blog (weekly)
-
Flutter Riverpod 2.0: The Ultimate Guide
- ConsumerStatefulWidget
- ConsumerState
- final helloWorld = ref.read(helloWorldProvider);
- final helloWorld = ref.watch(helloWorldProvider);
-
-
- BlocProvider
- BlocBuilder<CounterCubit, int>( //count를 사용할 곳에 BlocBuilder를 사용하여 감싸준다. builder: (context, count) => Center(child: Text('$count')), ),
- context.read<CounterCubit>().increment(),
- context.read<CounterCubit>().decrement(),
- condition이 false를 반환하면 builder를 호출하지 않는다.
- condition
- MultiBlocProvider
- condition
- 성능: GetX는 성능 및 최소 리소스 소비에 중점을 둔다. Stream 또는 ChangeNotifier을 사용하지 않는다.
- 생산성: GetX는 쉽고 쾌적한 구문을 사용한다. 개발 시간을 절약하고 응용 프로그램이 제공할 수 있는 최대 성능을 제공할 수 있다.
-
댓글