mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 20:36:31 +08:00
Linting
This commit is contained in:
@ -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;
|
||||||
|
|||||||
@ -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"];
|
||||||
|
|||||||
@ -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),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user