From 67162864b5f83a3b355c3f4ce15a389c3481e0ee Mon Sep 17 00:00:00 2001 From: Alvaro Almeida Freire Stivi Date: Tue, 2 Jul 2024 19:06:21 +0000 Subject: [PATCH] Dart format fixes --- packages/pinball_audio/lib/src/pinball_audio.dart | 6 ++++-- .../plunger/behaviors/plunger_releasing_behavior_test.dart | 6 ++++-- .../src/components/spaceship_ramp/spaceship_ramp_test.dart | 6 ++++-- test/app/view/app_test.dart | 4 ++-- .../behaviors/android_spaceship_bonus_behavior_test.dart | 4 ++-- test/game/components/backbox/bloc/backbox_bloc_test.dart | 4 ++-- test/game/view/pinball_game_page_test.dart | 4 ++-- test/helpers/pump_app.dart | 4 ++-- 8 files changed, 22 insertions(+), 16 deletions(-) diff --git a/packages/pinball_audio/lib/src/pinball_audio.dart b/packages/pinball_audio/lib/src/pinball_audio.dart index 3e564bc2e..34933c3a7 100644 --- a/packages/pinball_audio/lib/src/pinball_audio.dart +++ b/packages/pinball_audio/lib/src/pinball_audio.dart @@ -194,11 +194,13 @@ class _RandomABAudio extends _Audio { await Future.wait( [ createAudioPool( - source: DeviceFileSource(prefixFile(audioAssetA), mimeType: 'audio/mpeg'), + source: + DeviceFileSource(prefixFile(audioAssetA), mimeType: 'audio/mpeg'), maxPlayers: 4, ).then((pool) => audioA = pool), createAudioPool( - source: DeviceFileSource(prefixFile(audioAssetB), mimeType: 'audio/mpeg'), + source: + DeviceFileSource(prefixFile(audioAssetB), mimeType: 'audio/mpeg'), maxPlayers: 4, ).then((pool) => audioB = pool), ], diff --git a/packages/pinball_components/test/src/components/plunger/behaviors/plunger_releasing_behavior_test.dart b/packages/pinball_components/test/src/components/plunger/behaviors/plunger_releasing_behavior_test.dart index 693cb9a3f..d61640ede 100644 --- a/packages/pinball_components/test/src/components/plunger/behaviors/plunger_releasing_behavior_test.dart +++ b/packages/pinball_components/test/src/components/plunger/behaviors/plunger_releasing_behavior_test.dart @@ -54,8 +54,10 @@ void main() { await game.pump(behavior); }, verify: (game, _) async { - expect(game.descendants().whereType(), - isNotEmpty,); + expect( + game.descendants().whereType(), + isNotEmpty, + ); }, ); diff --git a/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart b/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart index 0b92641fb..1d300ac2a 100644 --- a/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart +++ b/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart @@ -156,8 +156,10 @@ void main() { await game.ensureAdd(component); }, verify: (game, _) async { - expect(game.descendants().whereType().length, - equals(1),); + expect( + game.descendants().whereType().length, + equals(1), + ); }, ); diff --git a/test/app/view/app_test.dart b/test/app/view/app_test.dart index d719767ef..2440fdf58 100644 --- a/test/app/view/app_test.dart +++ b/test/app/view/app_test.dart @@ -13,8 +13,8 @@ class _MockAuthenticationRepository extends Mock class _MockPinballAudioPlayer extends Mock implements PinballAudioPlayer {} -class _MockLeaderboardRepository extends Mock implements LeaderboardRepository { -} +class _MockLeaderboardRepository extends Mock + implements LeaderboardRepository {} class _MockShareRepository extends Mock implements ShareRepository {} diff --git a/test/game/components/android_acres/behaviors/android_spaceship_bonus_behavior_test.dart b/test/game/components/android_acres/behaviors/android_spaceship_bonus_behavior_test.dart index e8ef68f80..2f95001b8 100644 --- a/test/game/components/android_acres/behaviors/android_spaceship_bonus_behavior_test.dart +++ b/test/game/components/android_acres/behaviors/android_spaceship_bonus_behavior_test.dart @@ -67,8 +67,8 @@ class _TestGame extends Forge2DGame { class _MockGameBloc extends Mock implements GameBloc {} -class _MockAndroidSpaceshipCubit extends Mock implements AndroidSpaceshipCubit { -} +class _MockAndroidSpaceshipCubit extends Mock + implements AndroidSpaceshipCubit {} void main() { TestWidgetsFlutterBinding.ensureInitialized(); diff --git a/test/game/components/backbox/bloc/backbox_bloc_test.dart b/test/game/components/backbox/bloc/backbox_bloc_test.dart index 050307dc0..9d411395a 100644 --- a/test/game/components/backbox/bloc/backbox_bloc_test.dart +++ b/test/game/components/backbox/bloc/backbox_bloc_test.dart @@ -7,8 +7,8 @@ import 'package:mocktail/mocktail.dart'; import 'package:pinball/game/components/backbox/bloc/backbox_bloc.dart'; import 'package:pinball_theme/pinball_theme.dart'; -class _MockLeaderboardRepository extends Mock implements LeaderboardRepository { -} +class _MockLeaderboardRepository extends Mock + implements LeaderboardRepository {} void main() { late LeaderboardRepository leaderboardRepository; diff --git a/test/game/view/pinball_game_page_test.dart b/test/game/view/pinball_game_page_test.dart index da52bbd04..c6501cd6a 100644 --- a/test/game/view/pinball_game_page_test.dart +++ b/test/game/view/pinball_game_page_test.dart @@ -64,8 +64,8 @@ class _MockAppLocalizations extends Mock implements AppLocalizations { class _MockPinballAudioPlayer extends Mock implements PinballAudioPlayer {} -class _MockLeaderboardRepository extends Mock implements LeaderboardRepository { -} +class _MockLeaderboardRepository extends Mock + implements LeaderboardRepository {} class _MockShareRepository extends Mock implements ShareRepository {} diff --git a/test/helpers/pump_app.dart b/test/helpers/pump_app.dart index c057bc831..eed0b750a 100644 --- a/test/helpers/pump_app.dart +++ b/test/helpers/pump_app.dart @@ -17,8 +17,8 @@ import 'package:share_repository/share_repository.dart'; class _MockAssetsManagerCubit extends Mock implements AssetsManagerCubit {} -class _MockLeaderboardRepository extends Mock implements LeaderboardRepository { -} +class _MockLeaderboardRepository extends Mock + implements LeaderboardRepository {} class _MockShareRepository extends Mock implements ShareRepository {}