zero analyzer issues

This commit is contained in:
Renan Araujo
2019-03-23 15:02:17 -03:00
parent aacb3fcb65
commit 6696373bd7
18 changed files with 50 additions and 42 deletions

View File

@ -16,7 +16,7 @@ TextConfig tiny = regular.withFontSize(12.0);
class MyTextBox extends TextBoxComponent {
MyTextBox(String text)
: super(text, config: tiny, boxConfig: TextBoxConfig(timePerChar: 0.05));
: super(text, config: tiny, boxConfig: const TextBoxConfig(timePerChar: 0.05));
@override
void drawBackground(Canvas c) {
@ -35,7 +35,7 @@ class MyGame extends BaseGame {
_start();
}
_start() async {
void _start() async {
final Size size = await Flame.util.initialDimensions();
add(TextComponent('Hello, Flame', config: regular)