mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
Fixes build (tests), adding ditance method to position, fix linting (formating, quotes), removed uneeded new keywords everywhere
This commit is contained in:
@ -9,7 +9,7 @@ import 'package:flame/palette.dart';
|
||||
import 'package:flame/text_config.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() => runApp(new MyGame().widget);
|
||||
void main() => runApp(MyGame());
|
||||
|
||||
TextConfig regular = TextConfig(color: BasicPalette.white.color);
|
||||
TextConfig tiny = regular.withFontSize(12.0);
|
||||
@ -21,10 +21,10 @@ class MyTextBox extends TextBoxComponent {
|
||||
@override
|
||||
void drawBackground(Canvas c) {
|
||||
Rect rect = Rect.fromLTWH(0, 0, width, height);
|
||||
c.drawRect(rect, new Paint()..color = Color(0xFFFF00FF));
|
||||
c.drawRect(rect, Paint()..color = Color(0xFFFF00FF));
|
||||
c.drawRect(
|
||||
rect.deflate(boxConfig.margin),
|
||||
new Paint()
|
||||
Paint()
|
||||
..color = BasicPalette.black.color
|
||||
..style = PaintingStyle.stroke);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user