This app was originally created by Marco L. Napoli (@JediPixels) in his book entitled "Beginning Flutter: A Hands On Guide To App Development" and slightly modified by me.
If you want to try to run this app on your own, you should follow the steps below.
Go to Firebase and create a new project. Important things to do:
- Download the
google-services.json
file and replace the one found in\JournalApp\android\app
by the downloaded one. - Go to the Authentication tab on the Firebase console and enable the Email/Password option.
- Go to the Database and create one. For the Security Rules, choose "Start in locked mode" and paste the following code:
service cloud.firestore {
match /databases/{database}/documents {
match /journals/{document=**} {
allow read, write: if resource.data.uid == request.auth.uid;
allow create: if request.auth.uid != null;
}
}
}
-
Open the file
\JournalApp\android\app\build.gradle
-
In the line 41, replace the Android Package Name (in double quotes)
applicationId "com.domainname.journal"
with the one you chose in the firebase project configuration.
Login Page, Home Page, and Add/Edit Page, respectively.
BLoC Pattern + Provider (InheritedWidget) + Firebase (Authentication Service + Cloud Firestore Service)