display single tile
This commit is contained in:
17
src/tutFun.dart
Normal file
17
src/tutFun.dart
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user