display single tile
This commit is contained in:
1 parent
471d81bca0
commit
2bcea6ab15
3 files changed
+57
-13
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user