Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

3. Best practice

Mircea-Tiberiu MATEI edited this page May 1, 2019 · 1 revision

Checks before committing

dartfmt -w --fix src
dartfmt -w --fix example

Committing

All the commits must be prefixed with an issue number. For example for issue #14 do:

git commit -am "#14. Fix"

Debugging

Read about Observatory, a nice debugger and profiler for Dart. Read about Dart DevTools, a suite of performance tools for Dart and Flutter

Debugging tests

cd src
pub run test
cd ..
cd example
flutter test
flutter drive --target=test_driver/app.dart

Publishing

Open an Issue

Open a templated Publish Issue to track publish steps

Fix format

dartfmt -w --fix src

Update the CHANGELOG.md

Read the guiding principles on https://keepachangelog.com/en/1.0.0/

Update the version

Update the version in src/pubspec.yaml

Dry run

cd src
pub publish --dry-run

Just do it

pub publish