From 7a1eec2df0f5311ff03c6261948f1717485de062 Mon Sep 17 00:00:00 2001 From: Amos Date: Tue, 6 Aug 2024 16:28:51 +0800 Subject: [PATCH] Upgrade: Packages --- lib/db/preferences_db.dart | 64 ++++++--------- .../application/application_provider.dart | 24 +++--- lib/providers/mood/mood_provider.dart | 4 +- .../mini_fantasy/components/human_player.dart | 12 ++- .../game/mini_fantasy/components/orc.dart | 11 ++- .../laboratory/game/mini_fantasy/index.dart | 4 +- .../game/mini_game/components/boss.dart | 11 ++- .../mini_game/components/human_player.dart | 47 ++++++----- .../game/mini_game/components/orc.dart | 11 ++- pubspec.lock | 80 +++++++++---------- pubspec.yaml | 14 ++-- 11 files changed, 152 insertions(+), 130 deletions(-) diff --git a/lib/db/preferences_db.dart b/lib/db/preferences_db.dart index 3477d05..dc135eb 100644 --- a/lib/db/preferences_db.dart +++ b/lib/db/preferences_db.dart @@ -7,10 +7,9 @@ import 'package:moodexample/themes/app_theme.dart'; /// shared_preferences class PreferencesDB { PreferencesDB._(); - static final PreferencesDB db = PreferencesDB._(); - SharedPreferences? _db; - Future get database async => - _db ??= await SharedPreferences.getInstance(); + static final PreferencesDB instance = PreferencesDB._(); + SharedPreferencesAsync? _instance; + SharedPreferencesAsync get db => _instance ??= SharedPreferencesAsync(); /*** APP相关 ***/ @@ -47,53 +46,46 @@ class PreferencesDB { /*** shared_preferences ***/ /// 设置-是否填充完成【心情类别】表默认值 - Future setInitMoodCategoryDefaultType(bool value) async { - final SharedPreferences prefs = await database; - return prefs.setBool(initMoodCategoryDefaultType, value); + Future setInitMoodCategoryDefaultType(bool value) async { + await db.setBool(initMoodCategoryDefaultType, value); } /// 获取-是否填充完成【心情类别】表默认值 Future getInitMoodCategoryDefaultType() async { - final SharedPreferences prefs = await database; - return prefs.getBool(initMoodCategoryDefaultType) ?? false; + return await db.getBool(initMoodCategoryDefaultType) ?? false; } /// 设置-主题外观模式 - Future setAppThemeDarkMode(ThemeMode themeMode) async { - final SharedPreferences prefs = await database; - return prefs.setString(appThemeDarkMode, themeMode.name); + Future setAppThemeDarkMode(ThemeMode themeMode) async { + await db.setString(appThemeDarkMode, themeMode.name); } /// 获取-主题外观模式 Future getAppThemeDarkMode() async { - final SharedPreferences prefs = await database; - final String themeDarkMode = prefs.getString(appThemeDarkMode) ?? 'system'; + final String themeDarkMode = + await db.getString(appThemeDarkMode) ?? 'system'; return darkThemeMode(themeDarkMode); } /// 设置-多主题模式 - Future setMultipleThemesMode(String value) async { - final SharedPreferences prefs = await database; - return prefs.setString(appMultipleThemesMode, value); + Future setMultipleThemesMode(String value) async { + await db.setString(appMultipleThemesMode, value); } /// 获取-多主题模式 Future getMultipleThemesMode() async { - final SharedPreferences prefs = await database; - return prefs.getString(appMultipleThemesMode) ?? 'default'; + return await db.getString(appMultipleThemesMode) ?? 'default'; } /// 设置-APP地区语言 - Future setAppLocale(Locale locale) async { - final SharedPreferences prefs = await database; + Future setAppLocale(Locale locale) async { print(locale.toLanguageTag()); - return prefs.setString(appLocale, locale.toLanguageTag()); + await db.setString(appLocale, locale.toLanguageTag()); } /// 获取-APP地区语言 Future getAppLocale() async { - final SharedPreferences prefs = await database; - final String getAppLocale = prefs.getString(appLocale) ?? 'zh'; + final String getAppLocale = await db.getString(appLocale) ?? 'zh'; final appLocaleList = getAppLocale.split('-'); return Locale( appLocaleList[0], @@ -102,38 +94,32 @@ class PreferencesDB { } /// 设置-APP地区语言是否跟随系统 - Future setAppIsLocaleSystem(bool isLocaleSystem) async { - final SharedPreferences prefs = await database; - return prefs.setBool(appIsLocaleSystem, isLocaleSystem); + Future setAppIsLocaleSystem(bool isLocaleSystem) async { + await db.setBool(appIsLocaleSystem, isLocaleSystem); } /// 获取-APP地区语言是否跟随系统 Future getAppIsLocaleSystem() async { - final SharedPreferences prefs = await database; - return prefs.getBool(appIsLocaleSystem) ?? true; + return await db.getBool(appIsLocaleSystem) ?? true; } /// 设置-安全-密码 - Future setAppKeyPassword(String keyPassword) async { - final SharedPreferences prefs = await database; - return prefs.setString(appKeyPassword, keyPassword); + Future setAppKeyPassword(String keyPassword) async { + await db.setString(appKeyPassword, keyPassword); } /// 获取-安全-密码 Future getAppKeyPassword() async { - final SharedPreferences prefs = await database; - return prefs.getString(appKeyPassword) ?? ''; + return await db.getString(appKeyPassword) ?? ''; } /// 设置-安全-生物特征识别是否开启 - Future setAppKeyBiometric(bool keyBiometric) async { - final SharedPreferences prefs = await database; - return prefs.setBool(appKeyBiometric, keyBiometric); + Future setAppKeyBiometric(bool keyBiometric) async { + await db.setBool(appKeyBiometric, keyBiometric); } /// 获取-安全-生物特征识别是否开启 Future getAppKeyBiometric() async { - final SharedPreferences prefs = await database; - return prefs.getBool(appKeyBiometric) ?? false; + return await db.getBool(appKeyBiometric) ?? false; } } diff --git a/lib/providers/application/application_provider.dart b/lib/providers/application/application_provider.dart index 2beb3ff..5ad0703 100644 --- a/lib/providers/application/application_provider.dart +++ b/lib/providers/application/application_provider.dart @@ -27,79 +27,79 @@ class ApplicationProvider extends ChangeNotifier { /// 获取-主题模式 Future loadThemeMode() async { - _themeMode = await PreferencesDB.db.getAppThemeDarkMode(); + _themeMode = await PreferencesDB.instance.getAppThemeDarkMode(); notifyListeners(); } /// 设置-主题模式 set themeMode(ThemeMode themeMode) { - PreferencesDB.db.setAppThemeDarkMode(themeMode); + PreferencesDB.instance.setAppThemeDarkMode(themeMode); _themeMode = themeMode; notifyListeners(); } /// 获取-多主题模式 Future loadMultipleThemesMode() async { - _multipleThemesMode = await PreferencesDB.db.getMultipleThemesMode(); + _multipleThemesMode = await PreferencesDB.instance.getMultipleThemesMode(); notifyListeners(); } /// 设置-多主题模式 set multipleThemesMode(String multipleThemesMode) { - PreferencesDB.db.setMultipleThemesMode(multipleThemesMode); + PreferencesDB.instance.setMultipleThemesMode(multipleThemesMode); _multipleThemesMode = multipleThemesMode; notifyListeners(); } /// 获取-语言是否跟随系统 Future loadLocaleSystem() async { - _localeSystem = await PreferencesDB.db.getAppIsLocaleSystem(); + _localeSystem = await PreferencesDB.instance.getAppIsLocaleSystem(); notifyListeners(); } /// 设置-语言是否跟随系统 set localeSystem(bool localeSystem) { - PreferencesDB.db.setAppIsLocaleSystem(localeSystem); + PreferencesDB.instance.setAppIsLocaleSystem(localeSystem); _localeSystem = localeSystem; notifyListeners(); } /// 获取-语言 Future loadLocale() async { - _locale = await PreferencesDB.db.getAppLocale(); + _locale = await PreferencesDB.instance.getAppLocale(); notifyListeners(); } /// 设置-语言 set locale(Locale locale) { localeSystem = false; - PreferencesDB.db.setAppLocale(locale); + PreferencesDB.instance.setAppLocale(locale); _locale = locale; notifyListeners(); } /// 获取-安全-密码内容 Future loadKeyPassword() async { - _keyPassword = await PreferencesDB.db.getAppKeyPassword(); + _keyPassword = await PreferencesDB.instance.getAppKeyPassword(); notifyListeners(); } /// 设置-安全-密码内容 set keyPassword(String keyPassword) { - PreferencesDB.db.setAppKeyPassword(keyPassword); + PreferencesDB.instance.setAppKeyPassword(keyPassword); _keyPassword = keyPassword; notifyListeners(); } /// 获取-安全-生物特征识别是否开启 Future loadKeyBiometric() async { - _keyBiometric = await PreferencesDB.db.getAppKeyBiometric(); + _keyBiometric = await PreferencesDB.instance.getAppKeyBiometric(); notifyListeners(); } /// 设置-安全-生物特征识别是否开启 set keyBiometric(bool keyBiometric) { - PreferencesDB.db.setAppKeyBiometric(keyBiometric); + PreferencesDB.instance.setAppKeyBiometric(keyBiometric); _keyBiometric = keyBiometric; notifyListeners(); } diff --git a/lib/providers/mood/mood_provider.dart b/lib/providers/mood/mood_provider.dart index 9ed7787..b09b49b 100644 --- a/lib/providers/mood/mood_provider.dart +++ b/lib/providers/mood/mood_provider.dart @@ -29,14 +29,14 @@ class MoodProvider extends ChangeNotifier { /// 设置心情类别默认值 static Future setMoodCategoryDefault() async { final bool initMoodCategoryDefaultType = - await PreferencesDB.db.getInitMoodCategoryDefaultType(); + await PreferencesDB.instance.getInitMoodCategoryDefaultType(); print('心情类别默认值初始化:$initMoodCategoryDefaultType'); if (!initMoodCategoryDefaultType) { print('开始心情类别默认值初始化'); MoodService.setCategoryDefault(); /// 已赋值默认值标记 - await PreferencesDB.db.setInitMoodCategoryDefaultType(true); + await PreferencesDB.instance.setInitMoodCategoryDefaultType(true); } return true; } diff --git a/lib/views/settings/laboratory/game/mini_fantasy/components/human_player.dart b/lib/views/settings/laboratory/game/mini_fantasy/components/human_player.dart index b5685b0..182f18e 100644 --- a/lib/views/settings/laboratory/game/mini_fantasy/components/human_player.dart +++ b/lib/views/settings/laboratory/game/mini_fantasy/components/human_player.dart @@ -118,10 +118,19 @@ class HumanPlayer extends SimplePlayer super.onJoystickChangeDirectional(event); } + /// 处理攻击 + @override + bool handleAttack(AttackOriginEnum attacker, double damage, identify) { + return super.handleAttack(attacker, damage, identify); + } + /// 受伤触发 @override - bool receiveDamage(AttackOriginEnum attacker, double damage, dynamic from) { + void onReceiveDamage(AttackOriginEnum attacker, double damage, dynamic from) { if (!isDead) { + super.onReceiveDamage(attacker, damage, from); + + /// 伤害显示 showDamage( damage, initVelocityVertical: -2, @@ -138,7 +147,6 @@ class HumanPlayer extends SimplePlayer // gameRef.lighting?.animateToColor(Colors.black.withOpacity(0.7)); // }); } - return super.receiveDamage(attacker, damage, from); } @override diff --git a/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart b/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart index 9344752..c594064 100644 --- a/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart +++ b/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart @@ -118,10 +118,18 @@ class Orc extends SimpleEnemy super.onDie(); } + /// 处理攻击 + @override + bool handleAttack(AttackOriginEnum attacker, double damage, identify) { + return super.handleAttack(attacker, damage, identify); + } + /// 受伤触发 @override - bool receiveDamage(AttackOriginEnum attacker, double damage, identify) { + void onReceiveDamage(AttackOriginEnum attacker, double damage, identify) { if (!isDead) { + super.onReceiveDamage(attacker, damage, identify); + /// 伤害显示 showDamage( damage, @@ -132,7 +140,6 @@ class Orc extends SimpleEnemy /// 受伤动画 // _addDamageAnimation(); } - return super.receiveDamage(attacker, damage, identify); } /// 攻击动画 diff --git a/lib/views/settings/laboratory/game/mini_fantasy/index.dart b/lib/views/settings/laboratory/game/mini_fantasy/index.dart index a148038..0d3ffe1 100644 --- a/lib/views/settings/laboratory/game/mini_fantasy/index.dart +++ b/lib/views/settings/laboratory/game/mini_fantasy/index.dart @@ -73,7 +73,9 @@ class Game extends StatelessWidget { showCollisionArea: false, playerControllers: [ Joystick( - directional: JoystickDirectional(), + directional: JoystickDirectional( + margin: const EdgeInsets.all(65), + ), actions: [ JoystickAction( actionId: 1, diff --git a/lib/views/settings/laboratory/game/mini_game/components/boss.dart b/lib/views/settings/laboratory/game/mini_game/components/boss.dart index bbf5e7e..7d27f95 100644 --- a/lib/views/settings/laboratory/game/mini_game/components/boss.dart +++ b/lib/views/settings/laboratory/game/mini_game/components/boss.dart @@ -95,10 +95,18 @@ class Boss extends SimpleEnemy super.onDie(); } + /// 处理攻击 + @override + bool handleAttack(AttackOriginEnum attacker, double damage, identify) { + return super.handleAttack(attacker, damage, identify); + } + /// 受伤触发 @override - bool receiveDamage(AttackOriginEnum attacker, double damage, identify) { + void onReceiveDamage(AttackOriginEnum attacker, double damage, identify) { if (!isDead) { + super.onReceiveDamage(attacker, damage, identify); + /// 伤害显示 showDamage( damage, @@ -106,7 +114,6 @@ class Boss extends SimpleEnemy config: TextStyle(color: Colors.amberAccent, fontSize: tileSize / 2), ); } - return super.receiveDamage(attacker, damage, identify); } /// 攻击 diff --git a/lib/views/settings/laboratory/game/mini_game/components/human_player.dart b/lib/views/settings/laboratory/game/mini_game/components/human_player.dart index 2c55665..3d06177 100644 --- a/lib/views/settings/laboratory/game/mini_game/components/human_player.dart +++ b/lib/views/settings/laboratory/game/mini_game/components/human_player.dart @@ -190,11 +190,34 @@ class HumanPlayer extends SimplePlayer super.onJoystickChangeDirectional(event); } + /// 处理攻击 + @override + bool handleAttack(AttackOriginEnum attacker, double damage, identify) { + return super.handleAttack(attacker, damage, identify); + } + /// 受伤触发 @override - bool receiveDamage(AttackOriginEnum attacker, double damage, dynamic from) { - handleReceiveDamage(damage); - return super.receiveDamage(attacker, damage, from); + void onReceiveDamage(AttackOriginEnum attacker, double damage, dynamic from) { + if (!isDead) { + super.onReceiveDamage(attacker, damage, from); + + /// 伤害显示 + showDamage( + damage, + initVelocityVertical: -2, + config: TextStyle(color: Colors.white, fontSize: tileSize / 2), + ); + // lockMove = true; + /// 屏幕变红 + // gameRef.lighting + // ?.animateToColor(const Color.fromARGB(255, 26, 0, 0).withOpacity(0.7)); + // idle(); + // addDamageAnimation(() { + // lockMove = false; + // gameRef.lighting?.animateToColor(Colors.black.withOpacity(0.7)); + // }); + } } /// 死亡 @@ -204,24 +227,6 @@ class HumanPlayer extends SimplePlayer super.onDie(); } - /// 受伤触发 - void handleReceiveDamage(double damage) { - showDamage( - damage, - initVelocityVertical: -2, - config: TextStyle(color: Colors.white, fontSize: tileSize / 2), - ); - // lockMove = true; - /// 屏幕变红 - // gameRef.lighting - // ?.animateToColor(const Color.fromARGB(255, 26, 0, 0).withOpacity(0.7)); - // idle(); - // addDamageAnimation(() { - // lockMove = false; - // gameRef.lighting?.animateToColor(Colors.black.withOpacity(0.7)); - // }); - } - /// 第一次游玩对话 void firstPlayerSay() { if (!firstPlayer) { diff --git a/lib/views/settings/laboratory/game/mini_game/components/orc.dart b/lib/views/settings/laboratory/game/mini_game/components/orc.dart index 2565955..721140a 100644 --- a/lib/views/settings/laboratory/game/mini_game/components/orc.dart +++ b/lib/views/settings/laboratory/game/mini_game/components/orc.dart @@ -118,10 +118,18 @@ class Orc extends SimpleEnemy super.onDie(); } + /// 处理攻击 + @override + bool handleAttack(AttackOriginEnum attacker, double damage, identify) { + return super.handleAttack(attacker, damage, identify); + } + /// 受伤触发 @override - bool receiveDamage(AttackOriginEnum attacker, double damage, identify) { + void onReceiveDamage(AttackOriginEnum attacker, double damage, identify) { if (!isDead) { + super.onReceiveDamage(attacker, damage, identify); + /// 伤害显示 showDamage( damage, @@ -132,7 +140,6 @@ class Orc extends SimpleEnemy /// 受伤动画 // addDamageAnimation(); } - return super.receiveDamage(attacker, damage, identify); } /// 攻击动画 diff --git a/pubspec.lock b/pubspec.lock index 2ebb3d5..b137ff9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: "direct main" description: name: bonfire - sha256: "0ebf17580b66ffbc682cc471cfaaec705ac4034938ee6408eb63cfb06264099a" + sha256: "50812db7de528bf5e1989bcf09d6331789f97a29d35d959868952afa3ea728b6" url: "https://pub.dev" source: hosted - version: "3.9.7" + version: "3.9.8" boolean_selector: dependency: transitive description: @@ -101,10 +101,10 @@ packages: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.4+2" crypto: dependency: transitive description: @@ -273,10 +273,10 @@ packages: dependency: "direct main" description: name: flutter_tilt - sha256: "602b29205d2fdcbc05ff2d4272ed101c14e2b33296c9bd75ec8c9945d06f1791" + sha256: "5d19967f12561f1762044b4828a79073e2602f97af4340d767ca146f990ca396" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.3" flutter_timezone: dependency: "direct main" description: @@ -392,10 +392,10 @@ packages: dependency: "direct main" description: name: local_auth_darwin - sha256: e424ebf90d5233452be146d4a7da4bcd7a70278b67791592f3fde1bda8eef9e2 + sha256: "7ba5738c874ca2b910d72385d00d2bebad9d4e807612936cf5e32bc01a048c71" url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.4.0" local_auth_platform_interface: dependency: transitive description: @@ -480,18 +480,18 @@ packages: dependency: "direct main" description: name: path_provider - sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 + sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378 url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: e84c8a53fe1510ef4582f118c7b4bdf15b03002b51d7c2b66983c65843d61193 + sha256: "490539678396d4c3c0b06efdaab75ae60675c3e0c66f72bc04c2e2c1e0e2abeb" url: "https://pub.dev" source: hosted - version: "2.2.8" + version: "2.2.9" path_provider_foundation: dependency: transitive description: @@ -584,90 +584,90 @@ packages: dependency: transitive description: name: sensors_plus - sha256: "6898cd4490ffc27fea4de5976585e92fae55355175d46c6c3b3d719d42f9e230" + sha256: "142212b10316640e9b14fe508e2a292707d5f264aed3b1d6dabe61b8cb15e839" url: "https://pub.dev" source: hosted - version: "5.0.1" + version: "6.0.0" sensors_plus_platform_interface: dependency: transitive description: name: sensors_plus_platform_interface - sha256: bc472d6cfd622acb4f020e726433ee31788b038056691ba433fec80e448a094f + sha256: b6cacfe243cbeb16403ba688cb0d7054ad4dccb946dcd1254bebdf345fe4b187 url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "2.0.0" share_plus: dependency: "direct main" description: name: share_plus - sha256: ef3489a969683c4f3d0239010cc8b7a2a46543a8d139e111c06c558875083544 + sha256: "59dfd53f497340a0c3a81909b220cfdb9b8973a91055c4e5ab9b9b9ad7c513c0" url: "https://pub.dev" source: hosted - version: "9.0.0" + version: "10.0.0" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface - sha256: "0f9e4418835d1b2c3ae78fdb918251959106cefdbc4dd43526e182f80e82f6d4" + sha256: "6ababf341050edff57da8b6990f11f4e99eaba837865e2e6defe16d039619db5" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "5.0.0" shared_preferences: dependency: "direct main" description: name: shared_preferences - sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 + sha256: c272f9cabca5a81adc9b0894381e9c1def363e980f960fa903c604c471b22f68 url: "https://pub.dev" source: hosted - version: "2.2.3" + version: "2.3.1" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: "3d4571b3c5eb58ce52a419d86e655493d0bc3020672da79f72fa0c16ca3a8ec1" + sha256: "041be4d9d2dc6079cf342bc8b761b03787e3b71192d658220a56cac9c04a0294" url: "https://pub.dev" source: hosted - version: "2.2.4" + version: "2.3.0" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7" + sha256: "671e7a931f55a08aa45be2a13fe7247f2a41237897df434b30d2012388191833" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.5.0" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux - sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" + sha256: "2ba0510d3017f91655b7543e9ee46d48619de2a2af38e5c790423f7007c7ccc1" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.0" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface - sha256: "034650b71e73629ca08a0bd789fd1d83cc63c2d1e405946f7cef7bc37432f93a" + sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" shared_preferences_web: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: "59dc807b94d29d52ddbb1b3c0d3b9d0a67fc535a64e62a5542c8db0513fcb6c2" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.1" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows - sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" + sha256: "398084b47b7f92110683cac45c6dc4aae853db47e470e5ddcd52cab7f7196ab2" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.0" simple_gesture_detector: dependency: transitive description: @@ -821,10 +821,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a" + sha256: a36e2d7981122fa185006b216eb6b5b97ede3f9a54b7a511bc966971ab98d049 url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" url_launcher_windows: dependency: transitive description: @@ -885,10 +885,10 @@ packages: dependency: transitive description: name: webview_flutter_android - sha256: "060e1a621add859dc822f3e4c59b01468e8515ea78cfc5ac4c6b28bc903b5f74" + sha256: c66651fba15f9d7ddd31daec42da8d6bce46c85610a7127e3ebcb39a4395c3c9 url: "https://pub.dev" source: hosted - version: "3.16.5" + version: "3.16.6" webview_flutter_platform_interface: dependency: transitive description: @@ -909,10 +909,10 @@ packages: dependency: transitive description: name: win32 - sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4 + sha256: "015002c060f1ae9f41a818f2d5640389cc05283e368be19dc8d77cecb43c40c9" url: "https://pub.dev" source: hosted - version: "5.5.1" + version: "5.5.3" xdg_directories: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index a28eb04..a5d56df 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: moodexample description: 管理自己的情绪,记录当下所见所想。 publish_to: 'none' -version: 1.9.10+458 +version: 1.9.10+459 environment: sdk: ">=3.4.4 <4.0.0" @@ -13,11 +13,11 @@ dependencies: sdk: flutter intl: ^0.19.0 # i18n/l10n 处理 path: ^1.9.0 - path_provider: ^2.1.3 # 路径 + path_provider: ^2.1.4 # 路径 flutter_screenutil: ^5.9.3 # UI 自适应工具 provider: ^6.1.2 # 状态管理 sqflite: ^2.3.3+1 # 数据库 - shared_preferences: ^2.2.3 # 共享存储 + shared_preferences: ^2.3.1 # 共享存储 fluro: ^2.0.5 # 路由管理 flutter_zoom_drawer: ^3.2.0 # 缩放抽屉 flutter_smart_dialog: ^4.9.7+9 # Dialog @@ -26,7 +26,7 @@ dependencies: card_swiper: ^3.0.1 # 轮播 fl_chart: ^0.68.0 # 图表 excel: ^4.0.3 # Excel - share_plus: ^9.0.0 # 分享 + share_plus: ^10.0.0 # 分享 file_picker: ^8.0.6 # 文件选择 webview_flutter: ^4.8.0 # WebView ditredi: ^2.0.2 # 3D 数据集显示 @@ -34,13 +34,13 @@ dependencies: awesome_notifications: ^0.9.3+1 # 本地通知 flutter_timezone: ^2.1.0 # 时区 animations: ^2.0.11 # 动画 - bonfire: 3.9.7 # 游戏引擎相关 + bonfire: 3.9.8 # 游戏引擎相关 flame: 1.17.0 # 游戏引擎相关 flutter_screen_lock: ^9.1.0 # 密码锁 local_auth: ^2.2.0 # 本地认证 local_auth_android: ^1.0.43 # 本地认证 - local_auth_darwin: ^1.3.1 # 本地认证 - flutter_tilt: ^3.0.2 # 倾斜视差 + local_auth_darwin: ^1.4.0 # 本地认证 + flutter_tilt: ^3.0.3 # 倾斜视差 remixicon: ^1.2.0 # Remixicon # https://dart.dev/tools/pub/dependencies#dependency-overrides