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

Latest commit

 

History

History
45 lines (30 loc) · 733 Bytes

CONTRIBUTING.md

File metadata and controls

45 lines (30 loc) · 733 Bytes

Contributing to Trashy Road

This document describes the steps and information to contribute to TrashyRoad.

Assets

Assets are located in the assets directory.

Adding assets

  1. Include your new asset file inside the assets directory.
packages/
├─ trashy_road/
│  ├─ assets/
│  │  ├─ trash_can.png
│  ├─ pubspec.yaml
  1. Generate a new Assets class, with flutter_gen.
dart run build_runner build
  1. Use you new asset in code:
import 'package:trashy_road/gen/gen.dart';

void main() {
  Assets.images.trashCan;
}

Testing

Running tests

  1. Run the game tests:
flutter test