From 390724d90eee5c3a18f9d42e77119edeac1cb8e6 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sat, 22 Jul 2023 11:44:43 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E4=BE=9D=E8=B5=96=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Podfile.lock | 6 --- lib/pages/video/detail/controller.dart | 1 + macos/Flutter/GeneratedPluginRegistrant.swift | 2 - pubspec.lock | 44 +++---------------- pubspec.yaml | 17 +++---- 5 files changed, 16 insertions(+), 54 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 656da14e..fabc511d 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -34,8 +34,6 @@ PODS: - sqflite (0.0.2): - Flutter - FMDB (>= 2.7.5) - - url_launcher_ios (0.0.1): - - Flutter - volume_controller (0.0.1): - Flutter - wakelock (0.0.1): @@ -60,7 +58,6 @@ DEPENDENCIES: - share_plus (from `.symlinks/plugins/share_plus/ios`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`) - sqflite (from `.symlinks/plugins/sqflite/ios`) - - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) - volume_controller (from `.symlinks/plugins/volume_controller/ios`) - wakelock (from `.symlinks/plugins/wakelock/ios`) - webview_cookie_manager (from `.symlinks/plugins/webview_cookie_manager/ios`) @@ -100,8 +97,6 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/shared_preferences_foundation/ios" sqflite: :path: ".symlinks/plugins/sqflite/ios" - url_launcher_ios: - :path: ".symlinks/plugins/url_launcher_ios/ios" volume_controller: :path: ".symlinks/plugins/volume_controller/ios" wakelock: @@ -128,7 +123,6 @@ SPEC CHECKSUMS: share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68 shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 - url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4 volume_controller: 531ddf792994285c9b17f9d8a7e4dcdd29b3eae9 wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f webview_cookie_manager: eaf920722b493bd0f7611b5484771ca53fed03f7 diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index fad0ea59..efa83b37 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -98,6 +98,7 @@ class VideoDetailController extends GetxController } playerInit(source, audioSource, {Duration defaultST = Duration.zero}) { + meeduPlayerController.onVideoFitChange(BoxFit.cover); meeduPlayerController.setDataSource( DataSource( type: DataSourceType.network, diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index c4791877..bc7c9f97 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -17,7 +17,6 @@ import screen_retriever import share_plus import shared_preferences_foundation import sqflite -import url_launcher_macos import wakelock_macos import window_manager @@ -34,7 +33,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) - UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin")) WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin")) } diff --git a/pubspec.lock b/pubspec.lock index d569f2a3..6908f366 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -213,10 +213,10 @@ packages: dependency: "direct main" description: name: crypto - sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.3" cupertino_icons: dependency: "direct main" description: @@ -301,10 +301,10 @@ packages: dependency: "direct main" description: name: dynamic_color - sha256: bbebb1b7ebed819e0ec83d4abdc2a8482d934f6a85289ffc1c6acf7589fa2aad + sha256: de4798a7069121aee12d5895315680258415de9b00e717723a1bd73d58f0126d url: "https://pub.dev" source: hosted - version: "1.6.3" + version: "1.6.6" extended_image: dependency: "direct main" description: @@ -432,10 +432,10 @@ packages: dependency: "direct main" description: name: flutter_smart_dialog - sha256: da7ed8fe78e301e3c2cdaa533d13ed3edcf1853c1ba1a7383b481739569f7b2a + sha256: "8ba9eeb5b0b380bec368c5c8a324e1dab0cd88965c2dd83e64237441140bc599" url: "https://pub.dev" source: hosted - version: "4.9.0+6" + version: "4.9.3+2" flutter_spinkit: dependency: transitive description: @@ -1227,30 +1227,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.2" - url_launcher: - dependency: "direct main" - description: - name: url_launcher - sha256: "75f2846facd11168d007529d6cd8fcb2b750186bea046af9711f10b907e1587e" - url: "https://pub.dev" - source: hosted - version: "6.1.10" - url_launcher_android: - dependency: transitive - description: - name: url_launcher_android - sha256: "22f8db4a72be26e9e3a4aa3f194b1f7afbc76d20ec141f84be1d787db2155cbd" - url: "https://pub.dev" - source: hosted - version: "6.0.31" - url_launcher_ios: - dependency: transitive - description: - name: url_launcher_ios - sha256: "9af7ea73259886b92199f9e42c116072f05ff9bea2dcb339ab935dfc957392c2" - url: "https://pub.dev" - source: hosted - version: "6.1.4" url_launcher_linux: dependency: transitive description: @@ -1259,14 +1235,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.5" - url_launcher_macos: - dependency: transitive - description: - name: url_launcher_macos - sha256: "91ee3e75ea9dadf38036200c5d3743518f4a5eb77a8d13fda1ee5764373f185e" - url: "https://pub.dev" - source: hosted - version: "3.0.5" url_launcher_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 2f51a143..83827a54 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -34,9 +34,9 @@ dependencies: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.2 + cupertino_icons: ^1.0.5 # 动态取色 - dynamic_color: ^1.6.2 + dynamic_color: ^1.6.6 get: ^4.6.5 @@ -63,18 +63,20 @@ dependencies: permission_handler: ^10.2.0 # 分享 share_plus: ^6.3.1 - # webView - url_launcher: ^6.1.9 # cookie 管理 webview_cookie_manager: ^2.0.6 # 浏览器 webview_flutter: ^4.2.0 # 解决sliver滑动不同步 extended_nested_scroll_view: ^6.0.0 + # 上拉加载 + loading_more_list: ^5.0.3 + # 下拉刷新 + pull_to_refresh_notification: ^3.0.1 # 图标 font_awesome_flutter: ^10.4.0 # toast - flutter_smart_dialog: ^4.9.0+6 + flutter_smart_dialog: ^4.9.3+2 # 下滑关闭 dismissible_page: ^1.0.2 # 媒体播放 @@ -85,9 +87,8 @@ dependencies: ref: feature-custom path: package custom_sliding_segmented_control: ^1.7.5 - loading_more_list: ^5.0.3 - crypto: any - pull_to_refresh_notification: ^3.0.1 + # 加密 + crypto: ^3.0.3 dev_dependencies: flutter_test: