https://github.com/srinivasayush/flutter_firebase_riverpod_boilerplate
A flutter boilerplate app incorporating riverpod state management and firebase functionality
https://github.com/srinivasayush/flutter_firebase_riverpod_boilerplate
android firebase firebase-console firebase-functionality flutter ios riverpod template
Last synced: about 1 year ago
JSON representation
A flutter boilerplate app incorporating riverpod state management and firebase functionality
- Host: GitHub
- URL: https://github.com/srinivasayush/flutter_firebase_riverpod_boilerplate
- Owner: srinivasayush
- License: apache-2.0
- Created: 2021-03-13T05:37:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-29T04:30:34.000Z (about 5 years ago)
- Last Synced: 2024-11-15T06:21:34.029Z (over 1 year ago)
- Topics: android, firebase, firebase-console, firebase-functionality, flutter, ios, riverpod, template
- Language: Dart
- Homepage:
- Size: 67.4 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_firebase_riverpod_boilerplate
A Flutter boilerplate app incorporating riverpod state management and firebase functionality
## Getting Started
1. Add your google_services.json file in the android/app directory
2. Delete the .gitignore file in the android/app directory
3. Go to the android/app/build.gradle file and change the `applicationId` field to your unique [Android Application Id](https://developer.android.com/studio/build/application-id)
4. Re-create the flutter app within the root directory
```powershell
flutter create .
```
5. Go to the [Firebase Console](https://console.firebase.google.com/) and enable Google Authentication, and Cloud Firestore
6. Go to the [Firebase Console](https://console.firebase.google.com/) and add a new Android App
- When creating the app in console, it will ask you for an optional SHA-1 certificate.
- This app uses Google Sign In, so it requires an SHA-1 certifiate
- Generate an SHA-1 certificate for Google Sign In with
```powershell
cd android
gradlew signingReport
```
- Scroll to the bottom of the output and copy paste the SHA-1 certificate under the `debugAndroidTest` variant
7. Get all dependencies for the app with
```powershell
flutter pub get
```
8. Run the flutter app with flutter run
```powershell
flutter run
```
## Implemented Features
Authentication
- Google Sign In
- Email and Password
Cloud Firestore
- Adding users to users collection
- Getting and displaying logged in user data from users collection
- Getting and displaying list of users
Riverpod
- State management with Riverpod library
- Able to access state from anywhere in Flutter application
## Future Features
Authentication
- Other authentication methods such as Twitter, Github, etc.
Cloud Storage
- Upload multimedia files
This project is a starting point for a Flutter application with Riverpod and Firebase.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
- [FlutterFire Documentation](https://firebase.flutter.dev/docs/overview/)
- [Riverpod Documentation](https://riverpod.dev/docs/getting_started/)
For help getting started with Flutter, view its
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.