This project is a Flutter app that allows a church to view and maintain their members and membership, keeping track of when and who are coming, etc. It uses Firebase tools like auth and real-time database and also Google sign-in to sign in clients.
To get started with this project, follow these steps:
- Clone the repository to your local machine.
- Install and initialize the Firebase SDKs for Flutter if you haven't already done so.
- Add Firebase Authentication to your app by running the following command from the root of your Flutter project:
flutter pub add firebase_auth
. - Enable Email/Password sign-in and any other identity providers you want for your app on the Sign-in Method page in the Firebase Authentication section.
- Ensure the "Google" sign-in provider is enabled on the Firebase Console.
- Install the official
google_sign_in
plugin by running the following command:flutter pub add google_sign_in
. - Import the plugin in your Dart code:
import 'package:google_sign_in/google_sign_in.dart';
.
Firebase Auth provides many methods and utilities to enable you to integrate secure authentication into your new or existing Flutter application. In many cases, you will need to know about the authentication state of your user, such as whether they're logged in or logged out. Firebase Auth enables you to subscribe in real time to this state via a stream.
To implement Google Sign-In using Firebase authentication, follow these steps:
- Create a new Firebase project.
- Enable the Google sign-in provider on the Firebase Console.
- Install the official
google_sign_in
plugin. - Trigger the sign-in flow and create a new credential.
- Authenticate users with Google Sign-In on the Android and iOS platforms.
- Modify the
signInWithPopup()
method on the FirebaseAuth instance to use Google Sign-In on the web platform.
For more information on how to implement Google Sign-In using Firebase authentication, refer to the following resources:
- Firebase Authentication with Flutter
- Google Sign-In & Firebase Authentication Using Flutter
- How to Use Google Sign-in With Firebase in Flutter
- Google Sign-in with Flutter using Firebase authentication
This project uses Firebase Real-time Database to store and sync data in real-time. To get started with Firebase Real-time Database, follow these steps:
- Create a Firebase project.
- Add Firebase to your app by following the instructions in the Firebase Console.
- Initialize the Firebase Real-time Database SDK in your app.
- Write data to the database.
- Read data from the database.
For more information on how to use Firebase Real-time Database, refer to the following resources:
Contributions are welcome! If you find any issues or have any suggestions, please feel free to open an issue or a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.