I got an error if(state is UploadPictureSuccess) { setState(() { context.read().state.user!.picture = state.userImage; ---> this line }); The error is: 'picture' can't be used as a setter because it's final. Try finding a different setter, or making 'picture' non-final.
i have got an error image: DecorationImage( image: NetworkImage( state.user!.picture!, -----> this line the error is _TypeError (Null check operator used on a null value) I can't solve the error
I'll make an entire video explaining why but in the big lines, because you don't want you MyUserState to change because the UI displays something if the state is "success"
@@Romain_Girou but what about adding UserImageChangeSuccess as another state to MyUserState. It won't activate e.g. GetUserSuccess. It is too much states and ruin clean architecture?
I subscribed! Good video! Can't wait for more awesome tutorial!
Thank you so much sir.Your explaination is so clear.
Make a project on authentication with Restful Api and bloc pattern 👍🏼🙏🏼
I got an error
if(state is UploadPictureSuccess) {
setState(() {
context.read().state.user!.picture = state.userImage; ---> this line
});
The error is:
'picture' can't be used as a setter because it's final.
Try finding a different setter, or making 'picture' non-final.
One doubt while closing an app or signing off from the user account, is the uploaded image gets changed or not?
i have got an error
image: DecorationImage(
image: NetworkImage(
state.user!.picture!, -----> this line
the error is _TypeError (Null check operator used on a null value)
I can't solve the error
Why do we have to create new bloc [update_user_info_block] instead of using my_user_block?
I'll make an entire video explaining why but in the big lines, because you don't want you MyUserState to change because the UI displays something if the state is "success"
@@Romain_Girou but what about adding UserImageChangeSuccess as another state to MyUserState. It won't activate e.g. GetUserSuccess. It is too much states and ruin clean architecture?
why apps closed, when i want to pickimage and cropimage ?, i'm using android devices
Perhaps you didn’t setup the package correctly !
@@Romain_Girou I also facing same issue