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 > applicationId
in 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.json
insideandroid > 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
ChaiWala
which return aWrapper
widget - The
Wrapper
widget checks for the user current status(if authenticated or not).- If the user is not authenticated, it shows the
Authentication
widget.- The
Authentication
widget returns 2 widgets,SignIn
andRegister
. - To listen to the authentication changes, we use a stream
- The
- If user is authenticated, it shows the
Home
widget.- The
Home
widget returns 2 widgets,BrewList
andSettings
.
- The
- If the user is not authenticated, it shows the