Comments (6)
You want to create admin panel in app ? if yes then I suggest you to go for web admin panel.
from flutter_twitter_clone.
It's been a long time since this issue is created, now it seems like I have no future plans to create a web admin panel for this project so closing this issue for now. If anyone interested in creating an admin panel and wants to contribute to this project feel free to open this issue again.
from flutter_twitter_clone.
Firebase is used for backend. No admin panel is created yet.
from flutter_twitter_clone.
Hello. I want to make admin panel for this app. Can you help me?
I add field called "role" in Cloud Firestore. But what will be next - don't know.
My code in AuthState.dart
//get Logged in user role getRole(BuildContext context) async { user = await _firebaseAuth.currentUser(); kfirestore .collection(USERS_COLLECTION) .document(userId) .get() .then((documentSnapshot) { if (documentSnapshot.data['role'] == 'admin') { Navigator.push(context, MaterialPageRoute(builder: (BuildContext context)=>AdminPage()));} }).catchError((error) {}); }
Can you help?
from flutter_twitter_clone.
No. I want to create auth by user role and dashboard with admin function CRUD etc..
But I canβt understand how to correctly write a method for checking user roles.
I learnig flutter for 3 months and my knowledge is really poor
from flutter_twitter_clone.
No. I want to create auth by user role and dashboard with admin function CRUD etc..
But I canβt understand how to correctly write a method for checking user roles.
I learnig flutter for 3 months and my knowledge is really poor
Excuse me for barging in,
I'm also new to Flutter and Firebase,
but I think you need to look for your answers in Firebase documentation.
from flutter_twitter_clone.
Related Issues (20)
- ios pod install error HOT 5
- not opening HOT 3
- App not launching ! HOT 1
- Failed to build app HOT 3
- great work π, but how to get prefetched tweets , do i need to add the data or do we have any source to get that, currently app is in Loading state after adding my firebase to this project HOT 1
- Adding multiple languages HOT 2
- failed to build app HOT 3
- Account deletion ? HOT 4
- I can't build HOT 2
- Video Upload HOT 8
- FirebaseAuthException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ] HOT 2
- I cant build due to Google Services HOT 3
- Remote config issue HOT 2
- FCM API is no longer supported HOT 1
- feed imageview not loading image HOT 4
- App not loading HOT 2
- supportedBuild in Remote Config doesn't work
- update to twitter x theme
- NULL CHECKER USED ON A NULL VALUE
- Moments feature is disabled in sidebar menu and in settings also many features are disabled HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_twitter_clone.