firefuel
Creates a Collection, Model Stub and optional Repository for the firefuel library.
Getting Started š
Prerequisites
- Ensure the
mason_cli
is installed globally by runningflutter pub global activate mason_cli
in your Terminal. - Run
mason init
inside of your Flutter app root directory. - Run
mason add firefuel
Using the package
Run mason make firefuel
and follow the prompts!
Prompt: Collection name?
The name of a Firebase Cloud Firestore Collection (plural form)
Ex. Provide Users
if you'd like to perform generation for your Users
collection.
Prompt: Document name? Commonly the singular form of your Collection name.
The name of a Firebase Cloud Firestore Document (singular form)
Ex. A Users
collection would contain User
documents.
Prompt: Would you like to generate a Repository?
Whether to create a Repository class to contain your data layer business logic.
i.e. persist data both locally and remote, create a readable name for multiple collection access, etc.
For more information, see the docs
Mason Resources š§±
This is a starting point for a new brick. A few resources to get you started if this is your first brick template: