Do Widgets tutorial (#1)

This commit is contained in:
2026-06-04 17:59:48 +02:00
parent 2ba63a4f0e
commit c7e80406b1
8 changed files with 460 additions and 20 deletions

17
src/tutFun.dart Normal file
View File

@@ -0,0 +1,17 @@
library;
import 'package:flutter/material.dart';
import 'game.dart';
Color tutTileColor(HitType t) {
if (t == HitType.hit) {
return Colors.green;
}
if (t == HitType.partial) {
return Colors.yellow;
}
if (t == HitType.miss) {
return Colors.grey;
}
return Colors.white;
}