Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

chore: update leap git dependency #164

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/game/dash_run_game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class DashRunGame extends LeapGame
final AudioController audioController;
final List<VoidCallback> _inputListener = [];

late final SimpleCombinedInput input;
late final SpriteSheet itemsSpritesheet;
final bool inMapTester;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,17 @@ class _CardContent extends StatelessWidget {
),
),
const SizedBox(height: 12),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 24,
),
child: Text(
description,
textAlign: TextAlign.center,
style: theme.textTheme.bodyLarge?.copyWith(
color: Colors.white,
Expanded(
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 24,
),
child: Text(
description,
textAlign: TextAlign.center,
style: theme.textTheme.bodyLarge?.copyWith(
color: Colors.white,
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependency_overrides:
leap:
git:
url: https://github.com/kurtome/leap.git
ref: feat/tiled-options-use-atlas
ref: 02f2be0c9d47cf2ce51ee2109fbe21a42dcd7457
path: packages/leap

flutter:
Expand Down
4 changes: 2 additions & 2 deletions test/game/dash_run_game_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import 'package:bloc_test/bloc_test.dart';
import 'package:dash_run/audio/audio.dart';
import 'package:dash_run/game/game.dart';
import 'package:flame/components.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:leap/leap.dart';
import 'package:mocktail/mocktail.dart';

class _MockGameBloc extends MockBloc<GameEvent, GameState>
Expand Down Expand Up @@ -65,7 +65,7 @@ void main() {
await game.ready();
},
verify: (game, tester) async => expect(
game.descendants().whereType<SimpleCombinedInput>(),
game.descendants().whereType<KeyboardListenerComponent>(),
isNotNull,
),
);
Expand Down