Get Started
Welcome to the fam!
Who is this for?
This starter kit is for developers who want to use the Flutter + Firebase tech stack to build mobile apps quickly and efficiently. With this setup, you can focus on the core business logic of your application while worrying less about essential features like user authentication, payment integration, email support, and UI components.
If you are new to Flutter, this Flutter Tutorial will help you to get started.
Why Flutter, Dart, and Firebase?
Flutter: Flutter is a UI toolkit developed by Google for building natively compiled applications for mobile, web, and desktop from a single codebase. It uses the Dart programming language and offers a rich set of pre-designed widgets to create beautiful user interfaces. Dart is known for its fast performance and ease of learning.
Firebase: Firebase is a comprehensive app development platform that provides various backend services such as authentication, real-time databases, cloud storage, and more. Itโs an excellent choice for quickly setting up a robust backend for your app.
Project Structure
๐ย pubspec.yaml and pubspec.lock: These files contain all the project-related details like project name, description, version, dependencies, SDK version, assets used in the project, etc. If youโre from a web background, consider this similar to package.json
and package-lock.json
.
๐ย /lib: This folder contains all the project related Dart code - app pages, components, state management, services to interact with Firebase, Stripe, Mailgun, etc.
/pages
: This folder contains all the pages(screens) of the app. Example: Login page, Home page, Profile page, etc./components
: Components are reusable UI parts of the app. They can be used across multiple pages. Example: buttons, sliders, text input field, cards, etc./models
: Models are classes that define the structure of the data. It is used to validate we expect to receive from any service and also to define the structure of the data we are sending to any service. Example: User model, product model, etc./services
: Service classes contain the code to interact with Firebase, Stripe, Mailgun, etc. Example: Auth service, Firestore service, etc./theme
: This folder contains all the theme related code of the app. Example: Colors, Fonts, etc.firebase_options.dart
: This file contains the configuration for Firebase specific to this project. This Firebase config file contains unique, but non-secret identifiers for each platform you selected.
๐ย /android: This folder contains all the Android-related code and configurations. It contains the AndroidManifest.xml file for Android-specific configurations.
๐ย /ios: This folder contains all the iOS-related code and configurations of the app. Info.plist is the main file for iOS-specific configurations.
๐ย /assets: This folder contains all the assets and media used in the project, such as images and fonts.