diff --git a/lib/pages/home/media/media_logic.dart b/lib/pages/home/media/media_logic.dart index 0a08e22..8d87eb8 100644 --- a/lib/pages/home/media/media_logic.dart +++ b/lib/pages/home/media/media_logic.dart @@ -66,7 +66,7 @@ class MediaLogic extends GetxController with GetSingleTickerProviderStateMixin { Future cleanFile() async { state.isCleaning = true; update(['modal']); - await compute(FileUtil.cleanFile, FileUtil.getRealPath('database', '')); + await FileUtil.cleanFile(FileUtil.getRealPath('database', '')); await getFilePath(state.mediaType.value); state.isCleaning = false; update(['modal']); diff --git a/lib/utils/data/pref.dart b/lib/utils/data/pref.dart index 5f21fe2..85b8dec 100644 --- a/lib/utils/data/pref.dart +++ b/lib/utils/data/pref.dart @@ -121,7 +121,7 @@ class PrefUtil { /// 修复同步失败导致本地分类丢失 /// 视频缩略图重复生成 if (appVersion != null && appVersion.split('+')[0].compareTo('2.6.3') < 0) { - await compute(FileUtil.cleanFile, FileUtil.getRealPath('database', '')); + await FileUtil.cleanFile(FileUtil.getRealPath('database', '')); await MediaUtil.regenerateMissingThumbnails(); await compute(IsarUtil.fixV2_6_3, FileUtil.getRealPath('database', '')); } diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index dcc6d68..2c55091 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -35,7 +35,7 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { BitsdojoWindowPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("BitsdojoWindowPlugin")); ConnectivityPlusWindowsPluginRegisterWithRegistrar( - registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); + registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); DynamicColorPluginCApiRegisterWithRegistrar( registry->GetRegistrarForPlugin("DynamicColorPluginCApi")); FcNativeVideoThumbnailPluginCApiRegisterWithRegistrar( @@ -43,7 +43,7 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { FileSelectorWindowsRegisterWithRegistrar( registry->GetRegistrarForPlugin("FileSelectorWindows")); GalPluginCApiRegisterWithRegistrar( - registry->GetRegistrarForPlugin("GalPluginCApi")); + registry->GetRegistrarForPlugin("GalPluginCApi")); GeolocatorWindowsRegisterWithRegistrar( registry->GetRegistrarForPlugin("GeolocatorWindows")); IsarFlutterLibsPluginRegisterWithRegistrar( @@ -61,7 +61,7 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { RecordWindowsPluginCApiRegisterWithRegistrar( registry->GetRegistrarForPlugin("RecordWindowsPluginCApi")); RivePluginRegisterWithRegistrar( - registry->GetRegistrarForPlugin("RivePlugin")); + registry->GetRegistrarForPlugin("RivePlugin")); ScreenBrightnessWindowsPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("ScreenBrightnessWindowsPlugin")); SharePlusWindowsPluginCApiRegisterWithRegistrar( diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index b90a8d0..5ed5b97 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -6,11 +6,11 @@ list(APPEND FLUTTER_PLUGIN_LIST app_links audioplayers_windows bitsdojo_window_windows - connectivity_plus + connectivity_plus dynamic_color fc_native_video_thumbnail file_selector_windows - gal + gal geolocator_windows isar_flutter_libs local_auth_windows @@ -19,7 +19,7 @@ list(APPEND FLUTTER_PLUGIN_LIST objectbox_flutter_libs permission_handler_windows record_windows - rive_common + rive_common screen_brightness_windows share_plus url_launcher_windows