Phone Store is a Flutter application that leverages Firebase for phone authentication, Riverpod for state management, Hive for local storage, and Build Runner for Riverpod code generation.
- Getting Started
- Project Setup
- Firebase Setup
- Hive Setup
- Usage
- Running the App
- Contributing
- Contact
- License
If you are new to Flutter, please see the Flutter documentation to get started.
To setup the project on your local machine, please follow these instructions:
- Clone the repository:
git clone https://github.com/yourusername/flutter_mobile_shop.git
- Navigate to the project directory:
cd flutter_mobile_shop
- Get Flutter packages:
flutter pub get
- Generate the Riverpod code:
flutter packages pub run build_runner build
To setup Firebase:
- Create a new project on the Firebase Console.
- Follow the instructions to integrate Firebase with your Android and iOS projects.
- Enable phone authentication in your Firebase project by navigating to
Develop -> Authentication -> Sign-in Method -> Phone
. - Download your Firebase configuration files,
GoogleService-Info.plist
for iOS andgoogle-services.json
for Android, and place them in the respective directories.
*Note please do not forget to add your SH1 key to firebase.
Hive is a lightweight and blazingly fast key-value database written in pure Dart. No additional setup is required for Hive.
This project uses Riverpod for its state management. Each feature or functionality of the application that requires state management is isolated into its own "provider".
Phone authentication via Firebase has been integrated into this application. Users can authenticate themselves using their phone numbers.
Data persistence is achieved using Hive. Data is stored locally and can be retrieved even when the app is offline or restarted.
To run the app, navigate to the project's root directory and run:
flutter run