diff --git a/CHANGELOG.md b/CHANGELOG.md index 75179c2..5d9200b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - 补全控制器销毁逻辑,避免内存泄露 - 修复了网页端中无法通过文件导入数据的问题 - 修复了单词推送不截止的问题 +- 修复了二次点击选项时真误颜色消失的问题 ## v1.0.0 - 2026-3-18 - (100000) diff --git a/android/.gitignore b/android/.gitignore index 676e0c8..d01e224 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -7,6 +7,7 @@ gradle-wrapper.jar GeneratedPluginRegistrant.java .cxx/ build/ +.kotlin/ # Remember to never publicly share your keystore. # See https://flutter.dev/to/reference-keystore diff --git a/android/gradle.properties b/android/gradle.properties index f018a61..475a628 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,3 +1,7 @@ org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true +# This builtInKotlin flag was added automatically by Flutter migrator +android.builtInKotlin=false +# This newDsl flag was added automatically by Flutter migrator +android.newDsl=false diff --git a/lib/funcs/ui.dart b/lib/funcs/ui.dart index 1fdda31..c606b6a 100644 --- a/lib/funcs/ui.dart +++ b/lib/funcs/ui.dart @@ -429,6 +429,8 @@ class ChooseButtonBox extends StatefulWidget { } class _ChooseButtonBoxState extends State { Color? color; + bool isChoosed = false; + @override Widget build(BuildContext context) { color ??= widget.cl ?? Theme.of(context).colorScheme.primaryContainer.withAlpha(150); @@ -443,6 +445,8 @@ class _ChooseButtonBoxState extends State { child: ElevatedButton( onPressed: () { setState(() { + if(isChoosed) return; + isChoosed = true; bool? ans = widget.chose(widget.index); if(ans != null) { if(widget.isAnimated) { @@ -464,7 +468,7 @@ class _ChooseButtonBoxState extends State { } } } else { - color = Theme.of(context).colorScheme.onPrimary.withAlpha(150); + color = Theme.of(context).colorScheme.primaryContainer.withAlpha(150); } }); }, diff --git a/lib/pages/setting_page.dart b/lib/pages/setting_page.dart index 20ca8b3..5516996 100644 --- a/lib/pages/setting_page.dart +++ b/lib/pages/setting_page.dart @@ -215,15 +215,14 @@ class _SettingPage extends State { ), onPressed: () async { context.read().uiLogger.info("选择手动导入单词"); - FilePickerResult? result = - await FilePicker.pickFiles( - allowMultiple: false, + PlatformFile? result = + await FilePicker.pickFile( type: FileType.custom, allowedExtensions: ['json'], ); if (result != null) { String jsonString; - PlatformFile platformFile = result.files.first; + PlatformFile platformFile = result; try { jsonString = await platformFile.xFile .readAsString(); diff --git a/lib/sub_pages_builder/setting_pages/sync_page.dart b/lib/sub_pages_builder/setting_pages/sync_page.dart index 226ea07..1b7180d 100644 --- a/lib/sub_pages_builder/setting_pages/sync_page.dart +++ b/lib/sub_pages_builder/setting_pages/sync_page.dart @@ -240,16 +240,15 @@ class _DataSyncPage extends State { ElevatedButton( onPressed: () async { context.read().uiLogger.info("导入软件数据"); - FilePickerResult? result = await FilePicker.pickFiles( - allowMultiple: false, + PlatformFile? result = await FilePicker.pickFile( type: FileType.custom, allowedExtensions: ['json'], ); if (result != null) { String jsonString; - PlatformFile platformFile = result.files.first; - if (platformFile.bytes != null){ - jsonString = utf8.decode(platformFile.bytes!); + PlatformFile platformFile = result; + if ((await platformFile.readAsBytes()).isNotEmpty){ + jsonString = utf8.decode(await platformFile.readAsBytes()); } else if (platformFile.path != null && !kIsWeb) { jsonString = await io.File(platformFile.path!).readAsString(); } else { diff --git a/pubspec.lock b/pubspec.lock index b36d8ca..f4d8a51 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,18 +5,18 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: "8d7ff3948166b8ec5da0fbb5962000926b8e02f2ed9b3e51d1738905fbd4c98d" + sha256: "1dd467c7e56541bea70bbd35d537e3aa12dfba81f39e2a75bb6a61fc5595985b" url: "https://pub.dev" source: hosted - version: "93.0.0" + version: "97.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: de7148ed2fcec579b19f122c1800933dfa028f6d9fd38a152b04b1516cec120b + sha256: "041602214e3ec5a02ba85c08fe8e381aa25ac5367db17d03fbb6d22d851d4bba" url: "https://pub.dev" source: hosted - version: "10.0.1" + version: "11.0.0" archive: dependency: "direct main" description: @@ -117,10 +117,10 @@ packages: dependency: transitive description: name: code_assets - sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687" + sha256: bf394f466ba9205f1812a0433b392d6af280f155f56651eda7c18cc32ed493b8 url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.2.1" collection: dependency: transitive description: @@ -141,10 +141,10 @@ packages: dependency: transitive description: name: coverage - sha256: "5da775aa218eaf2151c721b16c01c7676fbfdd99cebba2bf64e8b807a28ff94d" + sha256: "956a3de0725ca232ad353565a8290d3357592bf4250f6f298a185e2d949c5d3d" url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.15.1" cross_file: dependency: transitive description: @@ -197,10 +197,10 @@ packages: dependency: transitive description: name: dbus - sha256: d0c98dcd4f5169878b6cf8f6e0a52403a9dff371a3e2f019697accbf6f44a270 + sha256: "0ce9b0a839e6dee59a37a623d2fc26a35bbbe6404213e419b0d6411023d62645" url: "https://pub.dev" source: hosted - version: "0.7.12" + version: "0.7.14" dio: dependency: "direct main" description: @@ -233,6 +233,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.0" + ffi_leak_tracker: + dependency: transitive + description: + name: ffi_leak_tracker + sha256: "4093d4ef9ca06ffe2786e73bfb25e22aa92112b9bb4ec941f11e3e6b61489a97" + url: "https://pub.dev" + source: hosted + version: "0.1.2" file: dependency: transitive description: @@ -245,10 +253,10 @@ packages: dependency: "direct main" description: name: file_picker - sha256: f13a03000d942e476bc1ff0a736d2e9de711d2f89a95cd4c1d88f861c3348387 + sha256: fc83774ce5bd7ce08168333b5e53dbe9090ec04eb21e7aa7cd7bac921032c934 url: "https://pub.dev" source: hosted - version: "11.0.2" + version: "12.0.0-beta.5" fixnum: dependency: transitive description: @@ -282,34 +290,42 @@ packages: dependency: "direct main" description: name: flutter_local_notifications - sha256: "0d9035862236fe38250fe1644d7ed3b8254e34a21b2c837c9f539fbb3bba5ef1" + sha256: a0d7141f14cabcee42967470a858dfc99dd6cfb70d3cab404bacfcafa9e84e70 url: "https://pub.dev" source: hosted - version: "21.0.0" + version: "22.0.1" flutter_local_notifications_linux: dependency: transitive description: name: flutter_local_notifications_linux - sha256: e0f25e243c6c44c825bbbc6b2b2e76f7d9222362adcfe9fd780bf01923c840bd + sha256: "9ca97e63776f29ab1b955725c09999fc2c150523269db150c39274f2a43c5a8b" url: "https://pub.dev" source: hosted - version: "8.0.0" + version: "8.0.1" flutter_local_notifications_platform_interface: dependency: transitive description: name: flutter_local_notifications_platform_interface - sha256: e7db3d5b49c2b7ecc68deba4aaaa67a348f92ee0fef34c8e4b4459dbef0d7307 + sha256: ff0013eae795e8dc8fad4a8992a209e64d3ba2fbd8bf5e43c36bf448f95bd814 url: "https://pub.dev" source: hosted - version: "11.0.0" + version: "12.0.0" + flutter_local_notifications_web: + dependency: transitive + description: + name: flutter_local_notifications_web + sha256: "516afaf97a2d1e67a036c6617321b00d205d72f7a67b6eccf936cd565f985878" + url: "https://pub.dev" + source: hosted + version: "1.0.0" flutter_local_notifications_windows: dependency: transitive description: name: flutter_local_notifications_windows - sha256: "3a2654ba104fbb52c618ebed9def24ef270228470718c43b3a6afcd5c81bef0c" + sha256: "6f43bdd03b171b7a90f22647506fea33e2bb12294b7c7c7a3d690e960a382945" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.1.1" flutter_markdown_plus: dependency: "direct main" description: @@ -322,10 +338,10 @@ packages: dependency: transitive description: name: flutter_plugin_android_lifecycle - sha256: "38d1c268de9097ff59cf0e844ac38759fc78f76836d37edad06fa21e182055a0" + sha256: "3854fe5e3bff0b113c658f260b90c95dea17c92db0f2addeac2e343dd9969785" url: "https://pub.dev" source: hosted - version: "2.0.34" + version: "2.0.35" flutter_test: dependency: "direct dev" description: flutter @@ -348,10 +364,10 @@ packages: dependency: "direct main" description: name: flutter_webrtc - sha256: c7b0a67ca2c878575fc5c146d801cd874f58f5f1ef5fa6e8eb0c93d413beb948 + sha256: c4e8db6ed337b8c30d76cd7cd8c91693f5495e1aeb556cbcb73f1e5d5bdcf020 url: "https://pub.dev" source: hosted - version: "1.4.1" + version: "1.5.1" frontend_server_client: dependency: transitive description: @@ -380,10 +396,10 @@ packages: dependency: transitive description: name: hooks - sha256: e79ed1e8e1929bc6ecb6ec85f0cb519c887aa5b423705ded0d0f2d9226def388 + sha256: "9a62a50b50b769a737bc0a8ff381f333529df3ab746b2f6b02e83760231455ba" url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "2.0.2" html: dependency: transitive description: @@ -420,10 +436,10 @@ packages: dependency: "direct main" description: name: idb_shim - sha256: "6cd94b71a33f1223b01ea2b359c3a6fde5980872b23b31d176a64c74d4dede57" + sha256: "65d2fbda05f707f9c6e0b502bc4bf411d9f799d391f709c121aeb44d0dc0fd2a" url: "https://pub.dev" source: hosted - version: "2.8.5+2" + version: "2.9.4" image: dependency: transitive description: @@ -468,10 +484,10 @@ packages: dependency: transitive description: name: json_annotation - sha256: cb09e7dac6210041fad964ed7fbee004f14258b4eca4040f72d1234062ace4c8 + sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80" url: "https://pub.dev" source: hosted - version: "4.11.0" + version: "4.12.0" just_audio: dependency: "direct main" description: @@ -600,14 +616,6 @@ packages: url: "https://pub.dev" source: hosted version: "7.2.0" - native_toolchain_c: - dependency: transitive - description: - name: native_toolchain_c - sha256: "6ba77bb18063eebe9de401f5e6437e95e1438af0a87a3a39084fbd37c90df572" - url: "https://pub.dev" - source: hosted - version: "0.17.6" nested: dependency: transitive description: @@ -620,18 +628,18 @@ packages: dependency: "direct main" description: name: network_info_plus - sha256: "2866dadcbee2709e20d67737a1556f5675b8b0cdcf2c1659ba74bc21bffede4f" + sha256: f424bad71994a1dc8594b00a6f71a665f7714ee7b32d397656d592c030d8555f url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "8.1.0" network_info_plus_platform_interface: dependency: transitive description: name: network_info_plus_platform_interface - sha256: "7e7496a8a9d8136859b8881affc613c4a21304afeb6c324bcefc4bd0aff6b94b" + sha256: "210b58064bc08e04b3a2b608f1f999cf768871fbd531961dc33a91720869d182" url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "3.1.0" nm: dependency: transitive description: @@ -652,10 +660,10 @@ packages: dependency: transitive description: name: objective_c - sha256: "100a1c87616ab6ed41ec263b083c0ef3261ee6cd1dc3b0f35f8ddfa4f996fe52" + sha256: "6cb691c686fa2838c6deb34980d426145c2a5d537491cb83d463c33cdbc726ed" url: "https://pub.dev" source: hosted - version: "9.3.0" + version: "9.4.1" package_config: dependency: transitive description: @@ -668,18 +676,18 @@ packages: dependency: transitive description: name: package_info_plus - sha256: "468c26b4254ab01979fa5e4a98cb343ea3631b9acee6f21028997419a80e1a20" + sha256: "4bf625947f6c7713ee242296a682e23e44823c09cf9d79e4f1238923c92db852" url: "https://pub.dev" source: hosted - version: "9.0.1" + version: "10.1.0" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: "202a487f08836a592a6bd4f901ac69b3a8f146af552bbd14407b6b41e1c3f086" + sha256: db762cb2f4f25ee60fb6359773861b0f199e00b90d237bd85a76a1e806b46ef4 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "4.1.0" pana: dependency: transitive description: @@ -700,10 +708,10 @@ packages: dependency: "direct main" description: name: path_provider - sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" + sha256: a7f4874f987173da295a61c181b8ee71dab59b332a486b391babf26a1b884825 url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.1.6" path_provider_android: dependency: transitive description: @@ -732,10 +740,10 @@ packages: dependency: transitive description: name: path_provider_platform_interface - sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" + sha256: "484838772624c3a4b94f1e44a3e19897fee738f2d5c4ce448443b0417f7c9dda" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" path_provider_windows: dependency: transitive description: @@ -824,6 +832,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.1.0" + record_use: + dependency: transitive + description: + name: record_use + sha256: "2551bd8eecfe95d14ae75f6021ad0248be5c27f138c2ec12fcb52b500b3ba1ed" + url: "https://pub.dev" + source: hosted + version: "0.6.0" retry: dependency: transitive description: @@ -852,50 +868,50 @@ packages: dependency: transitive description: name: screen_retriever - sha256: "570dbc8e4f70bac451e0efc9c9bb19fa2d6799a11e6ef04f946d7886d2e23d0c" + sha256: "42cc3b402a0f67d2455a0d067553d0f13453f6a008d98eababf8b63958d506bd" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.2.1" screen_retriever_linux: dependency: transitive description: name: screen_retriever_linux - sha256: f7f8120c92ef0784e58491ab664d01efda79a922b025ff286e29aa123ea3dd18 + sha256: "2a476f1a5538065bc5badf376cfdc83d6ecf07d77eb2391b9c2bff5a76970048" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.2.1" screen_retriever_macos: dependency: transitive description: name: screen_retriever_macos - sha256: "71f956e65c97315dd661d71f828708bd97b6d358e776f1a30d5aa7d22d78a149" + sha256: b5abb900fcb86614ff10b738b34e37b9e1d03b0447280668e2bc8a98bdc7bd59 url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.2.1" screen_retriever_platform_interface: dependency: transitive description: name: screen_retriever_platform_interface - sha256: ee197f4581ff0d5608587819af40490748e1e39e648d7680ecf95c05197240c0 + sha256: "3af22d926bedf20c2caa308eea376776451a3af125919ce072e56525fded8901" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.2.1" screen_retriever_windows: dependency: transitive description: name: screen_retriever_windows - sha256: "449ee257f03ca98a57288ee526a301a430a344a161f9202b4fcc38576716fe13" + sha256: c44b38a4c4bab34af259180a70a4eee1e29384e7b82e627c9faa68afcdab2e73 url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.2.1" sembast: dependency: transitive description: name: sembast - sha256: "139cf71496105de32e7a08a4e3a1ead0f81c4a616ec9703ed07e8f0d10cdd505" + sha256: "60746eb3377fe953367c10d549e9d99a3e0bccb464f32d0528d4e44933898597" url: "https://pub.dev" source: hosted - version: "3.8.6" + version: "3.8.9" shared_preferences: dependency: "direct main" description: @@ -908,10 +924,10 @@ packages: dependency: transitive description: name: shared_preferences_android - sha256: e8d4762b1e2e8578fc4d0fd548cebf24afd24f49719c08974df92834565e2c53 + sha256: "93ae5884a9df5d3bb696825bceb3a17590754548b5d740eba51500afc8d088f5" url: "https://pub.dev" source: hosted - version: "2.4.23" + version: "2.4.26" shared_preferences_foundation: dependency: transitive description: @@ -988,50 +1004,74 @@ packages: dependency: "direct main" description: name: sherpa_onnx - sha256: c10a1052bf03b9e68562e5be7d3a60568738c8356f3607012f0260f88ea11f08 + sha256: "2177e58a3ac54f14440268af71a1118bde037f0ceb3a83f97ff6abcd9831a82e" + url: "https://pub.dev" + source: hosted + version: "1.13.3" + sherpa_onnx_android_arm64: + dependency: transitive + description: + name: sherpa_onnx_android_arm64 + sha256: "4f51639037b0dd951a0e1af4632038e03ac9ffa226a5b92c6d8fdc495ce8a491" url: "https://pub.dev" source: hosted - version: "1.12.36" - sherpa_onnx_android: + version: "1.13.3" + sherpa_onnx_android_armeabi: dependency: transitive description: - name: sherpa_onnx_android - sha256: "03a70665e83c026ccf4d853fe87d011321bc66810c5ea108ea08a128f95d862a" + name: sherpa_onnx_android_armeabi + sha256: "845d4087fbc88b142ae632a9cd27a538a9064ab84de24537e62d80c5e405de11" url: "https://pub.dev" source: hosted - version: "1.12.36" + version: "1.13.3" + sherpa_onnx_android_x86: + dependency: transitive + description: + name: sherpa_onnx_android_x86 + sha256: d6f1813d6a7ec28c32bc5a4e641680c574ca012a49f253a00e20bab13e16d318 + url: "https://pub.dev" + source: hosted + version: "1.13.3" + sherpa_onnx_android_x86_64: + dependency: transitive + description: + name: sherpa_onnx_android_x86_64 + sha256: "5815b7d14804158a82615dc5381d23b3765eb29328496d6fd0888ba59168a24c" + url: "https://pub.dev" + source: hosted + version: "1.13.3" sherpa_onnx_ios: dependency: transitive description: name: sherpa_onnx_ios - sha256: d00ae34a1b0da6f05b7caffc2eb72edf5766bd538b6b1b68edeba8efc6798332 + sha256: "8c6cbd44157caf6389640640e0f40d20eb32d49f786bf455a457c47a4c6fd095" url: "https://pub.dev" source: hosted - version: "1.12.37" + version: "1.13.3" sherpa_onnx_linux: dependency: transitive description: name: sherpa_onnx_linux - sha256: "55cf0071730f0c1f9aa1f8ae8aa1606719a47d899a2e1e1ec3336bc6c3d8cfab" + sha256: bfb7e75568a8a104c54a49601b0818ab014aa3b20d59e94c6c050f3baf22acb8 url: "https://pub.dev" source: hosted - version: "1.12.37" + version: "1.13.3" sherpa_onnx_macos: dependency: transitive description: name: sherpa_onnx_macos - sha256: cd2f5310d3be0a72f616857ac5b1ed4183bb4a94ca9f1b4920362d80571614f2 + sha256: "9972de65e3014d47211e581d126439c4d9b67878527bf27a2fb0fb73466751bd" url: "https://pub.dev" source: hosted - version: "1.12.37" + version: "1.13.3" sherpa_onnx_windows: dependency: transitive description: name: sherpa_onnx_windows - sha256: b793d42bbc5ac48c0bb78170ac8c626397d45eb9d0f1aa9b431bec15ac651f66 + sha256: aa69acb8334509f345b17c6527dc1b5920a6e5cc4d14bcba22767ae22b0ae0ad url: "https://pub.dev" source: hosted - version: "1.12.37" + version: "1.13.3" sky_engine: dependency: transitive description: flutter @@ -1089,10 +1129,10 @@ packages: dependency: transitive description: name: synchronized - sha256: c254ade258ec8282947a0acbbc90b9575b4f19673533ee46f2f6e9b3aeefd7c0 + sha256: "93b153dcb6a26dcddee6ca087dd634b53e38c10b5aa163e8e49501a776456153" url: "https://pub.dev" source: hosted - version: "3.4.0" + version: "3.4.1" term_glyph: dependency: transitive description: @@ -1153,10 +1193,10 @@ packages: dependency: transitive description: name: url_launcher_android - sha256: "3bb000251e55d4a209aa0e2e563309dc9bb2befea2295fd0cec1f51760aac572" + sha256: b413d49b73867ac08dd2f9890efd3cc11f2a0e577618d50843440a1fb3776c32 url: "https://pub.dev" source: hosted - version: "6.3.29" + version: "6.3.32" url_launcher_ios: dependency: transitive description: @@ -1193,10 +1233,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: d0412fcf4c6b31ecfdb7762359b7206ffba3bbffd396c6d9f9c4616ece476c1f + sha256: "85c81589622fbc87c1c683aaea164d3604a7777495a79d91e39ffcdec39ddb34" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.4.3" url_launcher_windows: dependency: transitive description: @@ -1225,26 +1265,26 @@ packages: dependency: transitive description: name: vm_service - sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + sha256: "0016aef94fc66495ac78af5859181e3f3bf2026bd8eecc72b9565601e19ab360" url: "https://pub.dev" source: hosted - version: "15.0.2" + version: "15.2.0" wakelock_plus: dependency: "direct main" description: name: wakelock_plus - sha256: "8b12256f616346910c519a35606fb69b1fe0737c06b6a447c6df43888b097f39" + sha256: "824c5bba0f800e86d32e57d3d1843c531f090005cc89d9a837933e6601093d53" url: "https://pub.dev" source: hosted - version: "1.5.1" + version: "1.6.1" wakelock_plus_platform_interface: dependency: transitive description: name: wakelock_plus_platform_interface - sha256: "24b84143787220a403491c2e5de0877fbbb87baf3f0b18a2a988973863db4b03" + sha256: b13f99e992e7ae6a152e16c5559d3c07ff445b13330192662494e614ca3e7d7b url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.5.1" watcher: dependency: transitive description: @@ -1305,10 +1345,10 @@ packages: dependency: transitive description: name: win32 - sha256: d7cb55e04cd34096cd3a79b3330245f54cb96a370a1c27adb3c84b917de8b08e + sha256: ba6f4bba816c8d7e3c1580e170f3786d216951cc6b94babc3b814c08d2cb2738 url: "https://pub.dev" source: hosted - version: "5.15.0" + version: "6.3.0" window_manager: dependency: "direct main" description: @@ -1374,5 +1414,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" - flutter: ">=3.38.4" + dart: ">=3.12.0 <4.0.0" + flutter: ">=3.44.0" diff --git a/pubspec.yaml b/pubspec.yaml index 4c4a5cf..5c87637 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -33,7 +33,7 @@ dependencies: window_manager: ^0.5.1 #no support [android,iOS,Web] acceptable path_provider: ^2.1.5 #no support [Web] UNacceptable provider: ^6.0.1 - file_picker: ^11.0.2 #no completely support [Web] UNacceptable + file_picker: ^12.0.0-beta.5 #no completely support [Web] UNacceptable flutter_tts: ^4.2.5 just_audio: ^0.10.5 just_audio_windows: ^0.2.2 #just_audio's windows addon @@ -48,10 +48,10 @@ dependencies: flutter_markdown_plus: ^1.0.5 webdav_client: ^1.2.2 logging: ^1.3.0 - flutter_local_notifications: ^21.0.0 + flutter_local_notifications: ^22.0.1 workmanager: ^0.9.0+3 flutter_webrtc: ^1.3.1 - network_info_plus: ^7.0.0 + network_info_plus: ^8.1.0 crypto: ^3.0.7 qr_flutter: ^4.1.0 mobile_scanner: ^7.2.0 diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 398d2cf..c8e5fd2 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -32,6 +32,8 @@ set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") # Use Unicode for all projects. add_definitions(-DUNICODE -D_UNICODE) +add_definitions(-D_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS) + # Compilation settings that should be applied to most targets. # # Be cautious about adding new options here, as plugins use this function by @@ -41,6 +43,7 @@ function(APPLY_STANDARD_SETTINGS TARGET) target_compile_features(${TARGET} PUBLIC cxx_std_17) target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_options(${TARGET} PRIVATE /await) target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") endfunction()