Skip to content

Commit

Permalink
Upgrade: Flutter 3.22.0, Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed May 16, 2024
1 parent a03bf32 commit 9195164
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '../sprite_sheet/sprite_sheet_orc.dart';
double tileSize = 20.0;

class Orc extends SimpleEnemy
with AutomaticRandomMovement, BlockMovementCollision, UseLifeBar {
with RandomMovement, BlockMovementCollision, UseLifeBar {
Orc(Vector2 position)
: super(
position: position,
Expand Down Expand Up @@ -89,7 +89,7 @@ class Orc extends SimpleEnemy
runRandomMovement(
dt,
speed: speed / 3,
maxDistance: (tileSize * 2).toInt(),
maxDistance: tileSize * 2,
);
return false;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'orc.dart';
double tileSize = 20.0;

class Boss extends SimpleEnemy
with AutomaticRandomMovement, BlockMovementCollision, UseLifeBar {
with RandomMovement, BlockMovementCollision, UseLifeBar {
Boss(Vector2 position)
: super(
position: position,
Expand Down Expand Up @@ -76,7 +76,7 @@ class Boss extends SimpleEnemy
runRandomMovement(
dt,
speed: speed / 1.5,
maxDistance: (tileSize * 100).toInt(),
maxDistance: tileSize * 100,
);
return false;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'boss.dart';
double tileSize = 20.0;

class Orc extends SimpleEnemy
with AutomaticRandomMovement, BlockMovementCollision, UseLifeBar {
with RandomMovement, BlockMovementCollision, UseLifeBar {
Orc(Vector2 position)
: super(
position: position,
Expand Down Expand Up @@ -89,7 +89,7 @@ class Orc extends SimpleEnemy
runRandomMovement(
dt,
speed: speed,
maxDistance: (tileSize * 100).toInt(),
maxDistance: tileSize * 100,
);
return false;
},
Expand Down
25 changes: 12 additions & 13 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ packages:
dependency: "direct main"
description:
name: bonfire
sha256: "55b1506fd18b62239bfe96686ba15888b7bad500410b8368ebd07f5b16c71f8e"
sha256: a9e663a20bb1073dd987fbde6b98bb1351b819e5e7c894ffe3c021bf010ff021
url: "https://pub.dev"
source: hosted
version: "3.8.5"
version: "3.8.7"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -235,20 +235,19 @@ packages:
flutter_screen_lock:
dependency: "direct main"
description:
path: "."
ref: HEAD
resolved-ref: "9df6900d6998ab5f359ed2477197d4a38bc9fc95"
url: "https://github.com/Allenxuxu/flutter_screen_lock"
source: git
version: "9.0.2"
name: flutter_screen_lock
sha256: "5c09314747a70d8e1259a1d787f49f4f29d6eae224cd9b2f045e513e8408cbcc"
url: "https://pub.dev"
source: hosted
version: "9.0.3"
flutter_screenutil:
dependency: "direct main"
description:
name: flutter_screenutil
sha256: "8cf100b8e4973dc570b6415a2090b0bfaa8756ad333db46939efc3e774ee100d"
sha256: b372c35a772a1dc84142a3b9c5ee89a390834bd258e5e6a450d9b975b985d1c9
url: "https://pub.dev"
source: hosted
version: "5.9.0"
version: "5.9.1"
flutter_slidable:
dependency: "direct main"
description:
Expand Down Expand Up @@ -910,10 +909,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb"
sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4
url: "https://pub.dev"
source: hosted
version: "5.5.0"
version: "5.5.1"
xdg_directories:
dependency: transitive
description:
Expand All @@ -931,5 +930,5 @@ packages:
source: hosted
version: "6.5.0"
sdks:
dart: ">=3.3.0 <4.0.0"
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.19.0"
9 changes: 4 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.9.10+455

environment:
sdk: ">=3.3.0 <4.0.0"
sdk: ">=3.4.0 <4.0.0"

dependencies:
flutter:
Expand All @@ -14,7 +14,7 @@ dependencies:
intl: ^0.19.0 # i18n/l10n 处理
path: ^1.9.0
path_provider: ^2.1.3 # 路径
flutter_screenutil: ^5.9.0 # UI 自适应工具
flutter_screenutil: ^5.9.1 # UI 自适应工具
provider: ^6.1.2 # 状态管理
sqflite: ^2.3.3+1 # 数据库
shared_preferences: ^2.2.3 # 共享存储
Expand All @@ -34,10 +34,9 @@ dependencies:
awesome_notifications: ^0.9.3+1 # 本地通知
flutter_timezone: ^1.0.8 # 时区
animations: ^2.0.11 # 动画
bonfire: 3.8.5 # 游戏引擎相关
bonfire: 3.8.7 # 游戏引擎相关
flame: 1.17.0 # 游戏引擎相关
flutter_screen_lock: # ^9.0.2 # 密码锁
git: https://github.com/Allenxuxu/flutter_screen_lock
flutter_screen_lock: ^9.0.3 # 密码锁
local_auth: ^2.2.0 # 本地认证
local_auth_android: ^1.0.38 # 本地认证
local_auth_darwin: ^1.3.0 # 本地认证
Expand Down

0 comments on commit 9195164

Please sign in to comment.