Flutter State Management: Going from setState to Freezed & StateNotifier with Provider

  Рет қаралды 16,292

Andrea Bizzotto

Andrea Bizzotto

Күн бұрын

Пікірлер: 34
@nipunmadan1989
@nipunmadan1989 3 жыл бұрын
This must go on official flutter channel. Complex topic explained easily.
@flaasher
@flaasher 3 жыл бұрын
One of the best flutter channels ..... respect :)
@dantong8934
@dantong8934 3 жыл бұрын
Thanks for the tutorial. Very easy and deep understanding.
@Nackenschelle
@Nackenschelle 2 жыл бұрын
this is f***ing gold, highly appreciated!!
@aloussase
@aloussase 7 ай бұрын
Im not sure when sealed classes came out, but today id think that is the way to go for modeling state
@alejandrogonzalez5192
@alejandrogonzalez5192 3 жыл бұрын
Hey Andrea, thanks for the tutorial! Would you suggest going for Freezed + StateNotifier for a production app?
@julienlbrn
@julienlbrn 3 жыл бұрын
👋🏻 Andrea! Thank you for this tutorial. At 14:26, I needed to import 'package:flutter/foundation.dart' at the top of the file to make the command line generate the .freezed file. How could it work for you without it?
@akashkashyap8756
@akashkashyap8756 3 жыл бұрын
Great video... thanks for making this...
@meshkatshadik
@meshkatshadik 3 жыл бұрын
How can a single StateNotifier class produce two/more different states? Or do I just need the same number of StateNotifier classes for each state? I'm stuck with this problem for around 3 days. Still stuck!
@SharpSangalli
@SharpSangalli 3 жыл бұрын
Very helpful!
@KraasRas
@KraasRas 3 жыл бұрын
How did you made the screen cast video on the beginning of your great tutorial?
@CodeWithAndrea
@CodeWithAndrea 3 жыл бұрын
Recorded the app with QuickTime, rendered with Rotato
@KraasRas
@KraasRas 3 жыл бұрын
@@CodeWithAndrea Thank you. It looks really nice
@sumayyariyas8564
@sumayyariyas8564 3 жыл бұрын
Hi.. Could you please share a video how to integrate google fit to flutter app? Really want this.. Thanks in advance
@bashiruibrahim8443
@bashiruibrahim8443 3 жыл бұрын
Wow thank you Sir
@meansnada
@meansnada 3 жыл бұрын
whats the theme you use? looks amazing
@CodeWithAndrea
@CodeWithAndrea 3 жыл бұрын
Dracula theme
@BrendansReasons
@BrendansReasons 3 жыл бұрын
you cut through the crap, thank you
@ericchua3492
@ericchua3492 3 жыл бұрын
I need some help. What if the behavior is this i. Load Profile if any ii. Edit Profile How do you construct the ProfileState and ProfiileModel? I am struggling to have both Load and Edit in the same StateNotifier and how to manage the State (freezed). The unexpected behavior i. load profile ii. tap on save iii. profile saved iv. profile is hidden (profile is already loaded, why can't it stays on the screen??? ) my state freezed as below (not sure should I combine or mixed) @freezed abstract class EditProfileState with _$EditProfileState { // General const factory EditProfileState.error(String errorText) = _Error; // Edit const factory EditProfileState.loading() = _Loading; const factory EditProfileState.success() = _Success; // Load profile const factory EditProfileState.dataInitial() = _DataInitial; const factory EditProfileState.dataLoading() = _DataLoading; const factory EditProfileState.dataLoaded(User user) = _DataLoaded; } Do you have any sample codes to achieve the above? Thanks.
@CodeWithAndrea
@CodeWithAndrea 3 жыл бұрын
I would think the states you need are: - noData - data(user) - loading - error Maybe you should load the initial data from your DB before showing the profile page? Then you can initialize your initial state with noData or data(user) accordingly.
@ericchua3492
@ericchua3492 3 жыл бұрын
@@CodeWithAndrea if i want to edit the profile, upon success which state will it be? data (user) ?
@BrendansReasons
@BrendansReasons 3 жыл бұрын
explanation of maybeWhen at 19:30 was unclear to me
@techhublearn1
@techhublearn1 3 жыл бұрын
Sir does the courses on your site give certificate after completion?
@CodeWithAndrea
@CodeWithAndrea 3 жыл бұрын
Yes, all courses come with a completion certificate.
@hameedhabeeblahi576
@hameedhabeeblahi576 3 жыл бұрын
api key file is missing pl
@hameedhabeeblahi576
@hameedhabeeblahi576 3 жыл бұрын
from the code on github, api key file is missing
@CodeWithAndrea
@CodeWithAndrea 3 жыл бұрын
Read the instructions on the README on the GitHub repo
@ashishranjan7586
@ashishranjan7586 3 жыл бұрын
a explaination video of movie app..🥺🥺
@mohamedeltaher1611
@mohamedeltaher1611 3 жыл бұрын
thank u
@m.husnulaqib1458
@m.husnulaqib1458 2 жыл бұрын
thanks
@ilmtvtamil
@ilmtvtamil 3 жыл бұрын
why google didn't hire you yet?
@faheemahmadofficial7701
@faheemahmadofficial7701 3 жыл бұрын
dear brother please please please please please please make flutter series for beginners by using latest mini frameworks for like get tax and other and also teachers basic applications building instead of wasting time on dark
Flutter State Management with Riverpod: The Essential Guide
28:38
Andrea Bizzotto
Рет қаралды 27 М.
Flutter State Management: setState, BLoC, ValueNotifier, Provider
15:42
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 59 МЛН
Top 16 Dart Tips and Tricks Every Flutter Developer Should Know
11:44
Andrea Bizzotto
Рет қаралды 59 М.
Flutter Freezed | Code Generation
7:29
Flutter Guys
Рет қаралды 5 М.
Freezed ❄ - Data Class & Union in One Dart Package
36:28
Reso Coder
Рет қаралды 58 М.
Riverpod Simplified | Easy State Management
14:17
Tadas Petra
Рет қаралды 44 М.
Flutter Provider Tutorial - Flutter Provider State Management Guide
21:07
Learn Flutter Hooks and Maximize Your Code Reuse
10:36
Robert Brunhage
Рет қаралды 62 М.
Riverpod Tutorial 01 - Understanding the different notifiers
20:10
Fun with Flutter
Рет қаралды 31 М.
Starter Architecture for Flutter & Firebase Apps
19:41
Andrea Bizzotto
Рет қаралды 40 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,8 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН