mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
Linting
This commit is contained in:
@ -49,7 +49,7 @@ class AndroidComponent extends SvgComponent with Resizable {
|
||||
}
|
||||
|
||||
class MyGame extends BaseGame {
|
||||
final fpsTextConfig = const TextConfig(color: const Color(0xFFFFFFFF));
|
||||
final fpsTextConfig = TextConfig(color: const Color(0xFFFFFFFF));
|
||||
|
||||
@override
|
||||
bool debugMode() => true;
|
||||
|
||||
@ -16,8 +16,7 @@ void main() {
|
||||
}
|
||||
|
||||
class MyGame extends BaseGame with TapDetector {
|
||||
final TextConfig fpsTextConfig =
|
||||
const TextConfig(color: const Color(0xFFFFFFFF));
|
||||
final TextConfig fpsTextConfig = TextConfig(color: const Color(0xFFFFFFFF));
|
||||
|
||||
final paint = Paint()..color = const Color(0xFFE5E5E5E5);
|
||||
final List<String> _animations = ["Stand", "Wave", "Jump", "Dance"];
|
||||
|
||||
@ -43,7 +43,7 @@ class MyGame extends BaseGame {
|
||||
final Random rnd = Random();
|
||||
final StepTween steppedTween = StepTween(begin: 0, end: 5);
|
||||
final trafficLight = TrafficLightComponent();
|
||||
final TextConfig fpsTextConfig = const TextConfig(
|
||||
final TextConfig fpsTextConfig = TextConfig(
|
||||
color: const Color(0xFFFFFFFF),
|
||||
);
|
||||
|
||||
|
||||
@ -33,8 +33,7 @@ class GameWidget extends StatelessWidget {
|
||||
}
|
||||
|
||||
class RenderedTimeComponent extends TimerComponent {
|
||||
final TextConfig textConfig =
|
||||
const TextConfig(color: const Color(0xFFFFFFFF));
|
||||
final TextConfig textConfig = TextConfig(color: const Color(0xFFFFFFFF));
|
||||
|
||||
RenderedTimeComponent(Timer timer) : super(timer);
|
||||
|
||||
@ -58,8 +57,7 @@ class MyBaseGame extends BaseGame with TapDetector, DoubleTapDetector {
|
||||
}
|
||||
|
||||
class MyGame extends Game with TapDetector {
|
||||
final TextConfig textConfig =
|
||||
const TextConfig(color: const Color(0xFFFFFFFF));
|
||||
final TextConfig textConfig = TextConfig(color: const Color(0xFFFFFFFF));
|
||||
Timer countdown;
|
||||
Timer interval;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user