Flutter: Firebase Tutorial Part 3 | Firestore Role based UI

preview_player
Показать описание


⭐⭐⭐ SUPPORT ME ⭐⭐⭐

⭐⭐⭐ CONNECT WITH ME ON SOCIAL MEDIA ⭐⭐⭐

⭐⭐⭐ SETUP ⭐⭐⭐
⌨️ Keyboard: Ducky Shine 3 (brown switches)

Рекомендации по теме
Комментарии
Автор

Great tutorial, Robert!
For those saying that they have an error with 'user.uid', simply change it to 'widget.user.uid'. Like what we did in ep.1 with the email!

andreacarrara
Автор

Finally! A clear tutorial about auth without fancy UI. You sir made me understand flutter. THANK YOU

gasletel
Автор

Great tutorial!
I was in trouble at moment "Loading.." To fix it, just go to Database -> Rules -> Change allow read, write: if false; to true;

VinnydaimeOWND
Автор

thanks for this. I was waiting for this and YES PLEASE DO A more in depth one :-) cheers

MsSplashIt
Автор

Updated...

checkRole(DocumentSnapshot snapshot) {
if (snapshot.get('role') == 'rider') {
return const RiderScreen();
} else {
return const CaptainScreen();
}
}

this returns users based on their role correctly..

sadam_khan
Автор

very helpful, you give us an important points in short time :) thank you so much

djamilafiguir
Автор

Great tutorial please have this topiv more in depth ... it would be better to see the whole app and those changes that an admin can have on some certain part of the app would be really exciting to see

delarammajestic
Автор

Thanks you brother, this is so useful

felipemartinezleiva
Автор

Hey, thanks for the insight. This is a great implementation for additional information for the users meta since the default firebase auth won't let us modify any of its data :)

Cheers!

permanar_
Автор

Thanks for this.
But i've got one issue
I can't access the firebase datase and get the name using uid

dragonknight
Автор

there is an error on role
The operator '[ ]' isn't defined for the type 'Map<String, dynamic> Function()'.
Try defining the operator '[ ]'.
tel what to do after 0.18.0 updation???

pulscare
Автор

hey nice video! I can see a lot of videos about role based and show different pages, but what if "staff" need to login to same account as the "admin"?
Let's say there is an inventory app where staff need to manage the products of the Admin shop, how can make staff login in the same account and share same data but different permissions? Thanks!!

JoBj
Автор

hello could you plss help me it says this: Could not load class

XGbroTM
Автор

Excellent video that was really helpful. I was wondering how you could combine this with the Visibility widget to show or not show widgets or buttons based on the user's level, admin to show if else not show.

josiahmendes
Автор

if you can make another video about firebase prediction it will be so good ;)

djamilafiguir
Автор

Nice tutorial but I guess this solution can result to big costs if we're queuing the database for everything we display every time.. isn't there a way to not query the firebase that much?

flutterkhouse
Автор

How to fix this error ?

The getter 'uid' was called on null.
Receiver: null
Tried calling: uid

nameisdeee
Автор

Hi @Robert, do you know it is possible to hide/show fragments based on firebase user role?

nicolapigozzo
Автор

I got an error in widget_test.dart saying that the function CustomTextField() is not defined. Whether there is any definition for CustomTextField()

santhoshkumar-rpii
Автор

User.uid giving some error a red line is there. In stream part

utkarshraj