feat: Bump to Flutter 2.10.0 (#1617)

This commit is contained in:
Lukas Klingsbo
2022-05-13 12:50:08 +02:00
committed by GitHub
parent c3bb14b7ca
commit beac901313
62 changed files with 107 additions and 102 deletions

View File

@ -1,3 +1,5 @@
// ignore_for_file: unused_element
import 'dart:ui';
import 'package:flame/collisions.dart';

View File

@ -6,8 +6,8 @@ publish_to: 'none'
version: 0.1.0
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1

View File

@ -4,8 +4,8 @@ version: 0.1.0
publish_to: 'none'
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame:

View File

@ -3,6 +3,7 @@ import 'package:flutter/widgets.dart' hide WidgetBuilder;
import 'game_loop.dart';
import 'mixins/game.dart';
//ignore_for_file: unnecessary_non_null_assertion
class GameRenderBox extends RenderBox with WidgetsBindingObserver {
BuildContext buildContext;

View File

@ -49,7 +49,7 @@ class GameWidget<T extends Game> extends StatefulWidget {
/// A map to show widgets overlay.
///
/// See also:
/// - [new GameWidget]
/// - [GameWidget]
/// - [Game.overlays]
final Map<String, OverlayWidgetBuilder<T>>? overlayBuilderMap;
@ -58,7 +58,7 @@ class GameWidget<T extends Game> extends StatefulWidget {
/// To control the overlays that are active use [Game.overlays].
///
/// See also:
/// - [new GameWidget]
/// - [GameWidget]
/// - [Game.overlays]
final List<String>? initialActiveOverlays;

View File

@ -193,7 +193,7 @@ Widget applyAdvancedGesturesDetectors(Game game, Widget child) {
if (game is MultiTapListener) {
addRecognizer(
() => MultiTapGestureRecognizer(),
MultiTapGestureRecognizer.new,
(MultiTapGestureRecognizer instance) {
final g = game as MultiTapListener;
instance.longTapDelay = Duration(
@ -210,7 +210,7 @@ Widget applyAdvancedGesturesDetectors(Game game, Widget child) {
void addDragRecognizer(Drag Function(int, DragStartInfo) config) {
addRecognizer(
() => ImmediateMultiDragGestureRecognizer(),
ImmediateMultiDragGestureRecognizer.new,
(ImmediateMultiDragGestureRecognizer instance) {
var lastGeneratedDragId = 0;
instance.onStart = (Offset o) {

View File

@ -18,8 +18,8 @@ abstract class TextRenderer {
/// If you add a new [TextRenderer] child, you can register it by adding it,
/// together with a provider lambda, to this map.
static Map<Type, TextRenderer Function()> defaultRenderersRegistry = {
TextRenderer: () => TextPaint(),
TextPaint: () => TextPaint(),
TextRenderer: TextPaint.new,
TextPaint: TextPaint.new,
};
final TextDirection textDirection;

View File

@ -53,6 +53,8 @@ class NineTileBoxWidget extends StatelessWidget {
final Widget? child;
final EdgeInsetsGeometry? padding;
/// A builder function that is called if the loading fails
final WidgetBuilder? errorBuilder;
@ -66,6 +68,7 @@ class NineTileBoxWidget extends StatelessWidget {
this.width,
this.height,
this.child,
this.padding,
this.errorBuilder,
this.loadingBuilder,
Key? key,
@ -80,6 +83,7 @@ class NineTileBoxWidget extends StatelessWidget {
this.width,
this.height,
this.child,
this.padding,
this.errorBuilder,
this.loadingBuilder,
Key? key,
@ -98,6 +102,7 @@ class NineTileBoxWidget extends StatelessWidget {
width: width,
height: height,
child: child,
padding: padding,
);
},
errorBuilder: errorBuilder,

View File

@ -4,8 +4,8 @@ version: 1.1.1
homepage: https://github.com/flame-engine/flame
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flutter:

View File

@ -11,7 +11,7 @@ Future<void> testCollidableGame(
String testName,
Future Function(HasCollidablesGame) testBody,
) {
return testWithGame(testName, () => HasCollidablesGame(), testBody);
return testWithGame(testName, HasCollidablesGame.new, testBody);
}
class TestHitbox extends RectangleHitbox {

View File

@ -34,7 +34,7 @@ class _ParentOnPrepareComponent extends _OnPrepareComponent {
}
void main() {
final prepareGame = FlameTester(() => _PrepareGame());
final prepareGame = FlameTester(_PrepareGame.new);
group('Component', () {
testWithFlameGame('children in the constructor', (game) async {

View File

@ -49,7 +49,7 @@ class _MyAsyncChild extends PositionComponent {
void main() {
final size = Vector2.all(300);
final withTappables = FlameTester(() => _HasTappablesGame());
final withTappables = FlameTester(_HasTappablesGame.new);
group('Composability', () {
testWithFlameGame(

View File

@ -25,7 +25,7 @@ class _DraggableComponent extends PositionComponent with Draggable {
}
void main() {
final withDraggables = FlameTester(() => _GameHasDraggables());
final withDraggables = FlameTester(_GameHasDraggables.new);
group('Draggables', () {
withDraggables.test(

View File

@ -22,7 +22,7 @@ class _BarComponent extends Component with HasGameRef<_MyGame> {}
class MockFlameGame extends Mock implements _MyGame {}
void main() {
final withHasGameRef = FlameTester(() => _MyGame());
final withHasGameRef = FlameTester(_MyGame.new);
group('HasGameRef', () {
withHasGameRef.test('simple test', (game) {

View File

@ -41,7 +41,7 @@ class _NonPropagatingComponent extends _HoverableComponent {
}
void main() {
final withHoverables = FlameTester(() => _GameWithHoverables());
final withHoverables = FlameTester(_GameWithHoverables.new);
group('Hoverable', () {
withHoverables.test(

View File

@ -8,7 +8,7 @@ import 'package:test/test.dart';
class _GameHasDraggables extends FlameGame with HasDraggables {}
void main() {
final withDraggables = FlameTester(() => _GameHasDraggables());
final withDraggables = FlameTester(_GameHasDraggables.new);
group('JoystickDirection tests', () {
withDraggables.test('can convert angle to JoystickDirection', (game) async {

View File

@ -80,8 +80,8 @@ class _SlowLoadParallaxGame extends FlameGame {
}
void main() {
final parallaxGame = FlameTester(() => _ParallaxGame());
final slowLoadParallaxGame = FlameTester(() => _SlowLoadParallaxGame());
final parallaxGame = FlameTester(_ParallaxGame.new);
final slowLoadParallaxGame = FlameTester(_SlowLoadParallaxGame.new);
group('parallax test', () {
parallaxGame.test(

View File

@ -33,8 +33,7 @@ void main() {
flameGame.test(
'components with different priorities are sorted in the list',
(game) async {
final priorityComponents =
List.generate(10, (i) => _PriorityComponent(i));
final priorityComponents = List.generate(10, _PriorityComponent.new);
priorityComponents.shuffle();
await game.ensureAddAll(priorityComponents);
componentsSorted(game.children);
@ -45,9 +44,8 @@ void main() {
'changing priority should reorder component list',
(game) async {
final firstComponent = _PriorityComponent(-1);
final priorityComponents =
List.generate(10, (i) => _PriorityComponent(i))
..add(firstComponent);
final priorityComponents = List.generate(10, _PriorityComponent.new)
..add(firstComponent);
priorityComponents.shuffle();
final components = game.children;
await game.ensureAddAll(priorityComponents);
@ -63,9 +61,8 @@ void main() {
'changing priority with the priority setter should reorder the list',
(game) async {
final firstComponent = _PriorityComponent(-1);
final priorityComponents =
List.generate(10, (i) => _PriorityComponent(i))
..add(firstComponent);
final priorityComponents = List.generate(10, _PriorityComponent.new)
..add(firstComponent);
priorityComponents.shuffle();
final components = game.children;
await game.ensureAddAll(priorityComponents);
@ -80,8 +77,7 @@ void main() {
flameGame.test(
'changing priorities should reorder component list',
(game) async {
final priorityComponents =
List.generate(10, (i) => _PriorityComponent(i));
final priorityComponents = List.generate(10, _PriorityComponent.new);
priorityComponents.shuffle();
final components = game.children;
await game.ensureAddAll(priorityComponents);
@ -102,8 +98,7 @@ void main() {
'changing child priority should reorder component list',
(game) async {
final parentComponent = _PriorityComponent(0);
final priorityComponents =
List.generate(10, (i) => _PriorityComponent(i));
final priorityComponents = List.generate(10, _PriorityComponent.new);
priorityComponents.shuffle();
await game.ensureAdd(parentComponent);
await parentComponent.ensureAddAll(priorityComponents);
@ -121,8 +116,7 @@ void main() {
'changing child priorities should reorder component list',
(game) async {
final parentComponent = _PriorityComponent(0);
final priorityComponents =
List.generate(10, (i) => _PriorityComponent(i));
final priorityComponents = List.generate(10, _PriorityComponent.new);
priorityComponents.shuffle();
await game.ensureAdd(parentComponent);
await parentComponent.ensureAddAll(priorityComponents);
@ -145,8 +139,7 @@ void main() {
(game) async {
final grandParentComponent = _PriorityComponent(0);
final parentComponent = _PriorityComponent(0);
final priorityComponents =
List.generate(10, (i) => _PriorityComponent(i));
final priorityComponents = List.generate(10, _PriorityComponent.new);
priorityComponents.shuffle();
await game.ensureAdd(grandParentComponent);
await grandParentComponent.ensureAdd(parentComponent);

View File

@ -30,7 +30,7 @@ class _NonRepeatingTimerComponent extends TimerComponent {
void main() {
group('TimerComponent', () {
final tester = FlameTester(() => FlameGame());
final tester = FlameTester(FlameGame.new);
tester.test('runs the tick method', (game) {
final timer = _MyTimerComponent();

View File

@ -315,7 +315,7 @@ void main() {
group('errors', () {
test('empty', () {
expect(
() => EffectController(),
EffectController.new,
failsAssert('Either duration or speed must be specified'),
);
});

View File

@ -46,7 +46,7 @@ void main() {
expect(viewport.containsLocalPoint(Vector2(300, 100)), true);
});
FlameTester(() => FlameGame()).testGameWidget(
FlameTester(FlameGame.new).testGameWidget(
'Clipping behavior',
setUp: (game, tester) async {
final world = World();

View File

@ -5,6 +5,7 @@ import 'package:flame_test/flame_test.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'projector_test.dart';
void main() {
@ -42,7 +43,7 @@ void main() {
testWithGame<_GameWithTappables>(
'Add component with onLoad function',
() => _GameWithTappables(),
_GameWithTappables.new,
(game) async {
final component = _MyAsyncComponent();
await game.ensureAdd(component);
@ -66,7 +67,7 @@ void main() {
testWithGame<_GameWithTappables>(
'component can be tapped',
() => _GameWithTappables(),
_GameWithTappables.new,
(game) async {
final component = _MyTappableComponent();
await game.ensureAdd(component);

View File

@ -49,9 +49,9 @@ class _PanGame extends FlameGame with PanDetector {
}
void main() {
final horizontalGame = FlameTester(() => _HorizontalDragGame());
final verticalGame = FlameTester(() => _VerticalDragGame());
final panGame = FlameTester(() => _PanGame());
final horizontalGame = FlameTester(_HorizontalDragGame.new);
final verticalGame = FlameTester(_VerticalDragGame.new);
final panGame = FlameTester(_PanGame.new);
group('GameWidget - HorizontalDragDetector', () {
horizontalGame.testGameWidget(

View File

@ -6,6 +6,7 @@ import 'package:flutter_test/flutter_test.dart';
class _Wrapper extends StatefulWidget {
const _Wrapper({
required this.child,
// ignore: unused_element
this.small = false,
});

View File

@ -29,8 +29,8 @@ class _DoubleTapGame extends FlameGame with DoubleTapDetector {
}
void main() {
final tapGame = FlameTester(() => _TapGame());
final doubleTapGame = FlameTester(() => _DoubleTapGame());
final tapGame = FlameTester(_TapGame.new);
final doubleTapGame = FlameTester(_DoubleTapGame.new);
group('GameWidget - TapDetectors', () {
tapGame.testGameWidget(

View File

@ -67,7 +67,7 @@ class _MyGame extends FlameGame {
FlameTester<_MyGame> myGame({required bool open}) {
return FlameTester(
() => _MyGame(),
_MyGame.new,
pumpWidget: (gameWidget, tester) async {
await tester.pumpWidget(_Wrapper(child: gameWidget, open: open));
},

View File

@ -56,7 +56,7 @@ class _DraggableComponent extends PositionComponent with Draggable {
}
void main() {
final withDraggables = FlameTester(() => _GameWithDraggables());
final withDraggables = FlameTester(_GameWithDraggables.new);
group('HasDraggables', () {
withDraggables.test(

View File

@ -71,7 +71,7 @@ class _TappableComponent extends PositionComponent with Tappable {
}
void main() {
final withTappables = FlameTester(() => _GameWithTappables());
final withTappables = FlameTester(_GameWithTappables.new);
group('HasTappables', () {
withTappables.test(

View File

@ -18,7 +18,7 @@ void main() {
..onGameResize(Vector2.all(100))
..onMount();
expect(
() => FlameGame(),
FlameGame.new,
failsAssert(
"Instance of 'FlameGame' instantiated, while another game "
"Instance of 'SingletonGame' declares itself to be a singleton",

View File

@ -10,7 +10,7 @@ import '_resources/load_image.dart';
void main() {
group('Sprite', () {
FlameTester(() => FlameGame()).testGameWidget(
FlameTester(FlameGame.new).testGameWidget(
'Render with anchor',
setUp: (game, tester) async {
game.add(MyComponent()..position = Vector2.all(25));

View File

@ -44,7 +44,7 @@ void main() {
test('custom renderer', () {
TextRenderer.defaultRenderersRegistry[_CustomTextRenderer] =
() => _CustomTextRenderer();
_CustomTextRenderer.new;
final tc = TextComponent<_CustomTextRenderer>(text: 'foo');
expect(tc.textRenderer, isA<_CustomTextRenderer>());
});

View File

@ -6,7 +6,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
flame:

View File

@ -3,6 +3,8 @@ import 'dart:io';
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/widgets.dart';
//ignore_for_file: invalid_null_aware_operator
/// {@template _bgm}
/// The looping background music class.
///

View File

@ -4,8 +4,8 @@ version: 1.0.2
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_audio
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1

View File

@ -6,7 +6,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
flutter:

View File

@ -4,8 +4,8 @@ version: 1.4.0
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_bloc
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flutter:

View File

@ -47,7 +47,7 @@ void main() {
});
final blocGame = FlameTester<MyBlocGame>(
() => MyBlocGame(),
MyBlocGame.new,
pumpWidget: (gameWidget, tester) async {
await tester.pumpWidget(
BlocProvider<InventoryCubit>.value(

View File

@ -87,7 +87,7 @@ void main() {
group('onRemove', () {
testWithFlameGame('dispose created blocs', (game) async {
final provider = FlameBlocProvider<InventoryCubit, InventoryState>(
create: () => InventoryCubit(),
create: InventoryCubit.new,
);
await game.ensureAdd(provider);
expect(provider.bloc.isClosed, isFalse);

View File

@ -6,7 +6,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
flutter:

View File

@ -4,8 +4,8 @@ version: 1.0.2
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_fire_atlas
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flutter:

View File

@ -4,8 +4,8 @@ publish_to: 'none'
version: 0.1.0
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame:

View File

@ -4,8 +4,8 @@ version: 1.1.1
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_flare
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1

View File

@ -6,8 +6,8 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flutter:

View File

@ -4,8 +4,8 @@ version: 0.11.0
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_forge2d
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1

View File

@ -5,7 +5,7 @@ homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_lint
publish_to: 'none'
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dev_dependencies:
dartdoc: ^4.1.0

View File

@ -26,9 +26,9 @@ class ExampleGame extends OxygenGame {
world.registerSystem(SpriteSystem());
world.registerSystem(KawabungaSystem());
world.registerComponent<TimerComponent, double>(() => TimerComponent());
world.registerComponent<TimerComponent, double>(TimerComponent.new);
world.registerComponent<VelocityComponent, Vector2>(
() => VelocityComponent(),
VelocityComponent.new,
);
final random = Random();

View File

@ -6,7 +6,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
flutter:

View File

@ -41,17 +41,17 @@ abstract class OxygenGame with Game {
@mustCallSuper
Future<void> onLoad() async {
// Registering default components.
world.registerComponent<SizeComponent, Vector2>(() => SizeComponent());
world.registerComponent<SizeComponent, Vector2>(SizeComponent.new);
world.registerComponent<PositionComponent, Vector2>(
() => PositionComponent(),
PositionComponent.new,
);
world.registerComponent<AngleComponent, double>(() => AngleComponent());
world.registerComponent<AnchorComponent, Anchor>(() => AnchorComponent());
world.registerComponent<AngleComponent, double>(AngleComponent.new);
world.registerComponent<AnchorComponent, Anchor>(AnchorComponent.new);
world.registerComponent<SpriteComponent, SpriteInit>(
() => SpriteComponent(),
SpriteComponent.new,
);
world.registerComponent<TextComponent, TextInit>(() => TextComponent());
world.registerComponent<FlipComponent, FlipInit>(() => FlipComponent());
world.registerComponent<TextComponent, TextInit>(TextComponent.new);
world.registerComponent<FlipComponent, FlipInit>(FlipComponent.new);
await init();
world.init();

View File

@ -4,8 +4,8 @@ version: 0.1.2
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_oxygen
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flutter:

View File

@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
rive: 0.8.4

View File

@ -4,8 +4,8 @@ homepage: https://github.com/flame-engine/flame
version: 1.2.0
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1

View File

@ -6,7 +6,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
flutter:

View File

@ -4,8 +4,8 @@ version: 1.2.0
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_svg
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1

View File

@ -5,7 +5,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
flutter:

View File

@ -2,7 +2,7 @@ import 'package:flame_test/flame_test.dart';
import 'package:flame_test_example/game.dart';
import 'package:flutter_test/flutter_test.dart';
final myGame = FlameTester(() => MyGame());
final myGame = FlameTester(MyGame.new);
void main() {
group('flameTest', () {
TestWidgetsFlutterBinding.ensureInitialized();

View File

@ -201,4 +201,4 @@ class FlameTester<T extends FlameGame> extends GameTester<T> {
/// Default instance of Flame Tester to be used when you don't care about
/// changing any configuration.
final flameGame = FlameTester<FlameGame>(() => FlameGame());
final flameGame = FlameTester<FlameGame>(FlameGame.new);

View File

@ -28,7 +28,7 @@ Future<void> testWithFlameGame(
String testName,
AsyncGameFunction<FlameGame> testBody,
) {
return testWithGame<FlameGame>(testName, () => FlameGame(), testBody);
return testWithGame<FlameGame>(testName, FlameGame.new, testBody);
}
/// Utility function for writing tests that require a custom game instance.

View File

@ -4,8 +4,8 @@ version: 1.4.0
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_test
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1

View File

@ -6,7 +6,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
group('Golden tests', () {
final tester = FlameTester(() => FlameGame());
final tester = FlameTester(FlameGame.new);
tester.testGameWidget(
'renders correctly',

View File

@ -18,7 +18,7 @@ void main() {
testWithGame<RecordedGame>(
'correct event sequence',
() => RecordedGame(),
RecordedGame.new,
(game) async {
var events = <String>[];
events = game.events;

View File

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.16.0 <3.0.0"
dependencies:
flame: ^1.1.1

View File

@ -4,8 +4,8 @@ version: 1.4.0
homepage: https://github.com/flame-engine/flame/tree/main/packages/flame_tiled
environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
dependencies:
flame: ^1.1.1