Skip to content

Commit

Permalink
Upgrade packages and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ufrshubham committed Jan 28, 2024
1 parent f07ba47 commit 2b9d62f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Future<void> initHive() async {

// The main widget for this game.
class DinoRunApp extends StatelessWidget {
const DinoRunApp({Key? key}) : super(key: key);
const DinoRunApp({super.key});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/game_over_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GameOverMenu extends StatelessWidget {
// Reference to parent game.
final DinoRun game;

const GameOverMenu(this.game, {Key? key}) : super(key: key);
const GameOverMenu(this.game, {super.key});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/hud.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Hud extends StatelessWidget {
// Reference to parent game.
final DinoRun game;

const Hud(this.game, {Key? key}) : super(key: key);
const Hud(this.game, {super.key});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/main_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MainMenu extends StatelessWidget {
// Reference to parent game.
final DinoRun game;

const MainMenu(this.game, {Key? key}) : super(key: key);
const MainMenu(this.game, {super.key});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/pause_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PauseMenu extends StatelessWidget {
// Reference to parent game.
final DinoRun game;

const PauseMenu(this.game, {Key? key}) : super(key: key);
const PauseMenu(this.game, {super.key});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/settings_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SettingsMenu extends StatelessWidget {
// Reference to parent game.
final DinoRun game;

const SettingsMenu(this.game, {Key? key}) : super(key: key);
const SettingsMenu(this.game, {super.key});

@override
Widget build(BuildContext context) {
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
flame: 1.10.0
flame_audio: 2.1.2
flame: 1.14.0
flame_audio: 2.1.7
hive: 2.2.3
path_provider: 2.1.1
provider: 6.0.5
path_provider: 2.1.2
provider: 6.1.1
flutter:
sdk: flutter
cupertino_icons: 1.0.6

dev_dependencies:
hive_generator: 2.0.1
build_runner: 2.4.6
build_runner: 2.4.8
flutter_test:
sdk: flutter
flutter_lints: ^2.0.3
flutter_lints: 3.0.1

flutter:
uses-material-design: true
Expand Down
7 changes: 6 additions & 1 deletion windows/flutter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
# https://github.com/flutter/flutter/issues/57146.
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")

# Set fallback configurations for older versions of the flutter tool.
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
set(FLUTTER_TARGET_PLATFORM "windows-x64")
endif()

# === Flutter Library ===
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")

Expand Down Expand Up @@ -91,7 +96,7 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E env
${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG>
${FLUTTER_TARGET_PLATFORM} $<CONFIG>
VERBATIM
)
add_custom_target(flutter_assemble DEPENDS
Expand Down

0 comments on commit 2b9d62f

Please sign in to comment.