This commit is contained in:
Erick Zanardo
2020-06-30 23:56:24 -03:00
parent 629fbb7247
commit 861918c823
4 changed files with 5 additions and 8 deletions

View File

@ -49,7 +49,7 @@ class AndroidComponent extends SvgComponent with Resizable {
} }
class MyGame extends BaseGame { class MyGame extends BaseGame {
final fpsTextConfig = const TextConfig(color: const Color(0xFFFFFFFF)); final fpsTextConfig = TextConfig(color: const Color(0xFFFFFFFF));
@override @override
bool debugMode() => true; bool debugMode() => true;

View File

@ -16,8 +16,7 @@ void main() {
} }
class MyGame extends BaseGame with TapDetector { class MyGame extends BaseGame with TapDetector {
final TextConfig fpsTextConfig = final TextConfig fpsTextConfig = TextConfig(color: const Color(0xFFFFFFFF));
const TextConfig(color: const Color(0xFFFFFFFF));
final paint = Paint()..color = const Color(0xFFE5E5E5E5); final paint = Paint()..color = const Color(0xFFE5E5E5E5);
final List<String> _animations = ["Stand", "Wave", "Jump", "Dance"]; final List<String> _animations = ["Stand", "Wave", "Jump", "Dance"];

View File

@ -43,7 +43,7 @@ class MyGame extends BaseGame {
final Random rnd = Random(); final Random rnd = Random();
final StepTween steppedTween = StepTween(begin: 0, end: 5); final StepTween steppedTween = StepTween(begin: 0, end: 5);
final trafficLight = TrafficLightComponent(); final trafficLight = TrafficLightComponent();
final TextConfig fpsTextConfig = const TextConfig( final TextConfig fpsTextConfig = TextConfig(
color: const Color(0xFFFFFFFF), color: const Color(0xFFFFFFFF),
); );

View File

@ -33,8 +33,7 @@ class GameWidget extends StatelessWidget {
} }
class RenderedTimeComponent extends TimerComponent { class RenderedTimeComponent extends TimerComponent {
final TextConfig textConfig = final TextConfig textConfig = TextConfig(color: const Color(0xFFFFFFFF));
const TextConfig(color: const Color(0xFFFFFFFF));
RenderedTimeComponent(Timer timer) : super(timer); RenderedTimeComponent(Timer timer) : super(timer);
@ -58,8 +57,7 @@ class MyBaseGame extends BaseGame with TapDetector, DoubleTapDetector {
} }
class MyGame extends Game with TapDetector { class MyGame extends Game with TapDetector {
final TextConfig textConfig = final TextConfig textConfig = TextConfig(color: const Color(0xFFFFFFFF));
const TextConfig(color: const Color(0xFFFFFFFF));
Timer countdown; Timer countdown;
Timer interval; Timer interval;