Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 2.36 KB

docs.md

File metadata and controls

70 lines (54 loc) · 2.36 KB

Documentation

Installation

Spooky is developed using the latest version of Flutter:

If you have a different version on your machine, consider:

fvm flutter pub get
fvm flutter run

Code Generation

Build runner

We use build_runner to generate model, route, etc. To generate, run following command:

fvm flutter pub run build_runner build --delete-conflicting-outputs

See more:

Asset generation

We use flutter_gen to get rid of all String-based APIs. Motivation:

// String-based practice - bad practice
Image.asset('assets/images/profile.jpeg');

// Better practice
Image.asset(Assets.images.profile.path);

See more:

User Interface

Spooky is powered by Material 3 design system. Basic usages of theme:

M3TextTheme.of(context).bodySmall
M3Color.of(context).primary

For more advance usages, theme usage: theme.md

Semantic Versioning

We use Semantic Versioning to numbering each release. Example. the current version is 1.0.0. Given the version number MAJOR.MINOR.PATCH then increment the:

  • MAJOR version when we make incompatible API changes. → version = 2.0.0
  • MINOR version when we add functionality in a backward-compatible manner. → version = 1.1.0
  • PATCH version when we make backward-compatible bug fixes. → version = 1.0.1

Use the following commands to release them to the remote repository:

git tag 1.0.6
git push 1.0.6

Extending Documentation

For better managing our documents, we move most part to "docs/" directory. In case you want to add more documentation, consider:

  1. Create new file docs/document_category/your_doc.md
  2. Link them in main README.md