Git Product home page Git Product logo

Comments (6)

TheAlphamerc avatar TheAlphamerc commented on August 23, 2024 1

You want to create admin panel in app ? if yes then I suggest you to go for web admin panel.

from flutter_twitter_clone.

TheAlphamerc avatar TheAlphamerc commented on August 23, 2024 1

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.

TheAlphamerc avatar TheAlphamerc commented on August 23, 2024

Firebase is used for backend. No admin panel is created yet.

from flutter_twitter_clone.

ferrumzp avatar ferrumzp commented on August 23, 2024

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.

ferrumzp avatar ferrumzp commented on August 23, 2024

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.

pinkasey avatar pinkasey commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.