This document describes the steps and information to contribute to TrashyRoad
.
Assets are located in the assets directory.
- Include your new asset file inside the assets directory.
packages/
├─ trashy_road/
│ ├─ assets/
│ │ ├─ trash_can.png
│ ├─ pubspec.yaml
- Generate a new
Assets
class, with flutter_gen.
dart run build_runner build
- Use you new asset in code:
import 'package:trashy_road/gen/gen.dart';
void main() {
Assets.images.trashCan;
}
- Run the game tests:
flutter test