Brewdy allows users of a team or gang to store thier beverage preferrences and use that to order online beverages in bulk for their evening snacks or mini parties
- Create firebase account
- Create a new project
- Setup app for android
- Provide the package name from
android > app > build.gradle > applicationIdin the register app. - Provide a nickname and register app
- Download the
google-service.json.This service file is an identifier that will tell the project which backend to connect to on firebase - Paste the
google-service.jsoninsideandroid > app - Add firebase sdk in your flutter project
- Copy the dependency classpath
classpath 'com.google.gms:google-services:4.0.1'and paste it inandroid > build.gradle > dependencies - Copy the plugin
apply plugin: 'com.google.gms.google-services'from App-lelve build.gradle and paste it inandroid > app > build.gradle
- Copy the dependency classpath
- Select authentication and get started
- Enable the service you want for authentication
- Brewdy has a main widget
ChaiWalawhich return aWrapperwidget - The
Wrapperwidget checks for the user current status(if authenticated or not).- If the user is not authenticated, it shows the
Authenticationwidget.- The
Authenticationwidget returns 2 widgets,SignInandRegister. - To listen to the authentication changes, we use a stream
- The
- If user is authenticated, it shows the
Homewidget.- The
Homewidget returns 2 widgets,BrewListandSettings.
- The
- If the user is not authenticated, it shows the