Flutter Firebase Starter project
Made with from Nepal
A project you can clone to build your next project with Flutter with Firebase services.
What Firebase features are implemented?
- Firebase Authentication
- Email based sign up/in
- Google Sign in
- Cloud Firestore
- Firebase Messaging
- Firebase analytics
- Properly track screen names
- Ability to track custom events
- Properly set userid and user properties
- Firebase Crashlytics
- Remote Config
- Provider State management
- Firebase Storage
What other features are provided?
- Localization ready
- Flavors for Dev and Prod environment (can use different firebase projects based on flavor)
- Google Fonts
- Image picker
- Image cropper
- Device info (saved in user’s profile)
- Package info
- Flutter Auth buttons
- User’s profile management
- Android release signing config
Getting Started
How to start your project based on this.
- Clone this repository locally. The folder structure is somewhat based on clean code architecture
- Delete
.git
folder to clear git history - Using
change_app_package_name
package change the package name to whatever you want your package name to be - For changing iOS package name use the text editors Find and Replace in whole project folder where you need to find
com.popupbits.firebasestarter
and with the package name you want - Using the same Find and replace in whole project folder search for
firebasestarter
(package name for dart/flutter project) and replace it with your own suitable name. (check the flutter package naming standards for acceptable format) - Using the same Find and replace in whole project folder search for
Firebase Starter
(display name, launcher name) and replace it with your own suitable name for your app - Copy
google-services.json
for dev firebase project inandroid/app/src/dev/
and prod firebase project inandroid/app/src/prod/
- Copy
GoogleService-Info.plist
for dev firebase project inios/Runner/firebase/dev/
and prod firebase project inios/Runner/firebase/prod
- For android signing, modify
android/key.properties
with your signing details and replacekeys/keystore.jks
with your own keystore or provide different location inandroid/key.properties
for your keystore - For google sign in to work copy value of
REVERSED_CLIENT_ID
from appropriate (dev, prod)GoogleService-Info.plist
and paste in Xcode->Target Runner->Build Settings tab -> GSI_CLIENT_ID user defined variable. Value forDebug-dev
andRelease-dev
configuration should be the one from devGoogleService-Info.plist
and rest should be from prodGoogleService-Info.plist
- For push notifications to work on iOS, you need to follow following two steps as described in firebase_messaging iOS integration section
- Generate the certificates required by Apple for receiving push notifications following this guide in the Firebase docs. You can skip the section titled “Create the Provisioning Profile”.
- Follow the steps in the “Upload your APNs certificate” section of the Firebase docs.
Contribution
Contribution (suggestions, issues, feature request, pull requests) are highly welcome. Also looking for help in making it testable by adding unit, widget and integration tests.
Download Source code on GitHub
Provides the list of the opensource Flutter apps collection with GitHub repository.