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

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

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!!
@alejandrogonzalez5192
@alejandrogonzalez5192 3 жыл бұрын
Hey Andrea, thanks for the tutorial! Would you suggest going for Freezed + StateNotifier for a production app?
@aloussase
@aloussase 7 ай бұрын
Im not sure when sealed classes came out, but today id think that is the way to go for modeling state
@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...
@bashiruibrahim8443
@bashiruibrahim8443 3 жыл бұрын
Wow thank you Sir
@SharpSangalli
@SharpSangalli 3 жыл бұрын
Very helpful!
@sumayyariyas8564
@sumayyariyas8564 3 жыл бұрын
Hi.. Could you please share a video how to integrate google fit to flutter app? Really want this.. Thanks in advance
@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!
@BrendansReasons
@BrendansReasons 3 жыл бұрын
explanation of maybeWhen at 19:30 was unclear to me
@m.husnulaqib1458
@m.husnulaqib1458 2 жыл бұрын
thanks
@BrendansReasons
@BrendansReasons 3 жыл бұрын
you cut through the crap, thank you
@meansnada
@meansnada 3 жыл бұрын
whats the theme you use? looks amazing
@CodeWithAndrea
@CodeWithAndrea 3 жыл бұрын
Dracula theme
@mohamedeltaher1611
@mohamedeltaher1611 3 жыл бұрын
thank u
@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
@ashishranjan7586
@ashishranjan7586 3 жыл бұрын
a explaination video of movie app..🥺🥺
@hameedhabeeblahi576
@hameedhabeeblahi576 3 жыл бұрын
api key file is missing pl
@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.
@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) ?
@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
@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
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,9 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 137 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 12 МЛН
Best State Management for Flutter | Flutter State Management
8:18
AI with Flutter
Рет қаралды 10 М.
Moving from setState to Riverpod in Flutter Part 1
36:00
The Flutter Factory
Рет қаралды 18 М.
Flutter Freezed Tutorial - Setup & Basics
6:37
Nepali Programmer
Рет қаралды 1,6 М.
Starter Architecture for Flutter & Firebase Apps
19:41
Andrea Bizzotto
Рет қаралды 40 М.
Doomsday Glacier collapse! Time for MORE human intervention??
13:42
Just Have a Think
Рет қаралды 202 М.
Freezed ❄ - Data Class & Union in One Dart Package
36:28
Reso Coder
Рет қаралды 58 М.
Riverpod Simplified | Easy State Management
14:17
Tadas Petra
Рет қаралды 44 М.
Learn Flutter Hooks and Maximize Your Code Reuse
10:36
Robert Brunhage
Рет қаралды 62 М.
I built 3 apps in record time using this AI IDE (it's insane)
5:21
Runtime Snippets
Рет қаралды 2,1 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,9 МЛН