mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 00:17:20 +08:00
feat: Move to Flutter 3.0.0 and Dart 2.17.0 (#1713)
This upgrades all packages to Flutter 3.0.0 and fixes all analyze issues that came from that.
This commit is contained in:
@ -186,11 +186,11 @@ class CollidablePolygon extends MyCollidable {
|
||||
|
||||
class CollidableRectangle extends MyCollidable {
|
||||
CollidableRectangle(
|
||||
Vector2 position,
|
||||
Vector2 size,
|
||||
Vector2 velocity,
|
||||
ScreenHitbox screenHitbox,
|
||||
) : super(position, size, velocity, screenHitbox) {
|
||||
super.position,
|
||||
super.size,
|
||||
super.velocity,
|
||||
super.screenHitbox,
|
||||
) {
|
||||
hitbox = RectangleHitbox()..renderShape = true;
|
||||
add(hitbox!);
|
||||
}
|
||||
@ -198,11 +198,11 @@ class CollidableRectangle extends MyCollidable {
|
||||
|
||||
class CollidableCircle extends MyCollidable {
|
||||
CollidableCircle(
|
||||
Vector2 position,
|
||||
Vector2 size,
|
||||
Vector2 velocity,
|
||||
ScreenHitbox screenHitbox,
|
||||
) : super(position, size, velocity, screenHitbox) {
|
||||
super.position,
|
||||
super.size,
|
||||
super.velocity,
|
||||
super.screenHitbox,
|
||||
) {
|
||||
hitbox = CircleHitbox()..renderShape = true;
|
||||
add(hitbox!);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user