👋🏻 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?
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!
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.
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.
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
This must go on official flutter channel. Complex topic explained easily.
Thanks for the tutorial. Very easy and deep understanding.
Im not sure when sealed classes came out, but today id think that is the way to go for modeling state
why google didn't hire you yet?
Hey Andrea, thanks for the tutorial!
Would you suggest going for Freezed + StateNotifier for a production app?
Great video... thanks for making this...
explanation of maybeWhen at 19:30 was unclear to me
Very helpful!
a explaination video of movie app..🥺🥺
you cut through the crap, thank you
One of the best flutter channels ..... respect :)
thanks
Hi.. Could you please share a video how to integrate google fit to flutter app? Really want this.. Thanks in advance
this is f***ing gold, highly appreciated!!
👋🏻 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?
thank u
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!
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.
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.
@@CodeWithAndrea if i want to edit the profile, upon success which state will it be? data (user) ?
api key file is missing pl
whats the theme you use? looks amazing
Dracula theme
Wow thank you Sir
Sir does the courses on your site give certificate after completion?
Yes, all courses come with a completion certificate.
How did you made the screen cast video on the beginning of your great tutorial?
Recorded the app with QuickTime, rendered with Rotato
@@CodeWithAndrea Thank you. It looks really nice
from the code on github, api key file is missing
Read the instructions on the README on the GitHub repo
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