Skip to content

Project Setup

Pratik Canopas edited this page Dec 27, 2024 · 10 revisions

Ensure you have the latest stable versions of Flutter and Android Studio installed, along with the Flutter and Dart plugins. After that, you can either clone this repository or import the project directly into Android Studio by following the steps outlined in the documentation.

Firebase Setup

  1. Create a Firebase App

  2. Set up Firebase in your project

Note: Cloud Gallery uses the following Firebase services:

  • Analytics: This tracks user interactions and events in the app.
  • Crashlytics: This monitors crashes and errors to improve app stability.

Dropbox Setup

  1. Create a Dropbox App with scoped access and full Dropbox access type in the Dropbox App Console.
  2. Obtain your App Key and App Secret.

Secrets Configuration

Create a secrets.dart file at the following path inside the data/apis/network directory. This file will store your app secrets. Add the following class to manage them:

class AppSecrets {  
  static const dropBoxAppKey = 'YOUR DROPBOX APP KEY';  
  static const dropBoxAppSecret = 'YOUR DROPBOX APP SECRET';  
}  

Get Dependencies

  1. Run flutter pub get in the app, data, and style modules to fetch all required dependencies.
  2. Run ./build_watch in the base directory in a new terminal window to generate the necessary files.

Setup Complete! 🎉

You have successfully set up the project. Now, you can start developing and customizing the app. If you encounter any issues or need further assistance, refer to the documentation or use the discussion to reach out to us for help.

Clone this wiki locally