Skip to content

Commit

Permalink
refactor: Fix lint issues across the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Aug 24, 2023
1 parent d172146 commit ee0c7fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doc/flame/examples/lib/ember.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ class EmberPlayer extends SpriteAnimationComponent with TapCallbacks {
EmberPlayer({
required super.position,
required super.size,
void Function(EmberPlayer)? onTap,
void Function(EmberPlayer player)? onTap,
}) : _onTap = onTap,
super();

Vector2 velocity = Vector2(0, 0);
final void Function(EmberPlayer)? _onTap;
final void Function(EmberPlayer player)? _onTap;

@override
Future<void> onLoad() async {
Expand Down
10 changes: 2 additions & 8 deletions packages/flame_lottie/test/flame_lottie_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,17 @@ void main() {

final mockAsset = FakeAssetBundle({'logo.json': logoData});

LottieComposition? composition;

final asset = Lottie.asset(
'logo.json',
bundle: mockAsset,
onLoaded: (c) {
composition = c;
},
);

composition = await loadLottie(asset);
final composition = await loadLottie(asset);

await game.ready();

expect(composition, isNotNull);
expect(
composition!.duration,
composition.duration,
const Duration(seconds: 5, milliseconds: 966),
);
},
Expand Down

0 comments on commit ee0c7fc

Please sign in to comment.