Skip to content

Commit

Permalink
Dart format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
astivi committed Jul 2, 2024
1 parent d00f503 commit 6716286
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
6 changes: 4 additions & 2 deletions packages/pinball_audio/lib/src/pinball_audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ void main() {
await game.pump(behavior);
},
verify: (game, _) async {
expect(game.descendants().whereType<PlungerReleasingBehavior>(),
isNotEmpty,);
expect(
game.descendants().whereType<PlungerReleasingBehavior>(),
isNotEmpty,
);
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ void main() {
await game.ensureAdd(component);
},
verify: (game, _) async {
expect(game.descendants().whereType<SpaceshipRampBase>().length,
equals(1),);
expect(
game.descendants().whereType<SpaceshipRampBase>().length,
equals(1),
);
},
);

Expand Down
4 changes: 2 additions & 2 deletions test/app/view/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions test/game/components/backbox/bloc/backbox_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions test/game/view/pinball_game_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
4 changes: 2 additions & 2 deletions test/helpers/pump_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down

0 comments on commit 6716286

Please sign in to comment.