Skip to content

Commit 0f430c7

Browse files
committed
Upgarde packages
1 parent a9bdfc1 commit 0f430c7

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

lib/game/dino.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Dino extends SpriteAnimationGroupComponent<DinoAnimationStates>
6464
bool isHit = false;
6565

6666
Dino(Image image, this.playerData)
67-
: super.fromFrameData(image, _animationMap);
67+
: super.fromFrameData(image, _animationMap);
6868

6969
@override
7070
void onMount() {

lib/main.dart

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ class DinoRunApp extends StatelessWidget {
6363
body: GameWidget<DinoRun>.controlled(
6464
// This will dislpay a loading bar until [DinoRun] completes
6565
// its onLoad method.
66-
loadingBuilder:
67-
(conetxt) => const Center(
68-
child: SizedBox(width: 200, child: LinearProgressIndicator()),
69-
),
66+
loadingBuilder: (conetxt) => const Center(
67+
child: SizedBox(width: 200, child: LinearProgressIndicator()),
68+
),
7069
// Register all the overlays that will be used by this game.
7170
overlayBuilderMap: {
7271
MainMenu.id: (_, game) => MainMenu(game),
@@ -77,15 +76,14 @@ class DinoRunApp extends StatelessWidget {
7776
},
7877
// By default MainMenu overlay will be active.
7978
initialActiveOverlays: const [MainMenu.id],
80-
gameFactory:
81-
() => DinoRun(
82-
// Use a fixed resolution camera to avoid manually
83-
// scaling and handling different screen sizes.
84-
camera: CameraComponent.withFixedResolution(
85-
width: 360,
86-
height: 180,
87-
),
88-
),
79+
gameFactory: () => DinoRun(
80+
// Use a fixed resolution camera to avoid manually
81+
// scaling and handling different screen sizes.
82+
camera: CameraComponent.withFixedResolution(
83+
width: 360,
84+
height: 180,
85+
),
86+
),
8987
),
9088
),
9189
);

pubspec.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ environment:
99
sdk: '>=3.3.4 <4.0.0'
1010

1111
dependencies:
12-
flame: 1.27.0
13-
flame_audio: 2.11.3
12+
flame: 1.30.0
13+
flame_audio: 2.11.7
1414
hive: 2.2.3
1515
path_provider: 2.1.5
16-
provider: 6.1.4
16+
provider: 6.1.5
1717
flutter:
1818
sdk: flutter
1919
cupertino_icons: 1.0.8
2020

2121
dev_dependencies:
2222
hive_generator: 2.0.1
23-
build_runner: 2.4.15
23+
build_runner: 2.5.4
2424
flutter_test:
2525
sdk: flutter
26-
flutter_lints: 5.0.0
26+
flutter_lints: 6.0.0
2727

2828
flutter:
2929
uses-material-design: true

0 commit comments

Comments
 (0)