fluttergoogle-cloud-firestorematerialpageroute

Get MaterialPageRoute from Firestore - Flutter


I don't know whether it's possible or not but I want to get the new page for my navigator from the firestore database. Let me explain:

I have the following code:

onTap: () {
   Navigator.of(context).push(MaterialPageRoute(
   builder: (context) => Example()));
                      },

I don't want to have a fixed page here like "Example()". I want to get the information on which page I have to use somewhere from my database. Is that possible? Thanks for your answers. You're great :)


Solution