From ef458023e6a861530ab9a5c5aab6d8fae8ae1a18 Mon Sep 17 00:00:00 2001 From: GhostenEditor <> Date: Tue, 5 Nov 2024 15:54:24 +0800 Subject: [PATCH] fix: bug fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. webdav不兼容alist 2. filepicker不显示ripple效果,请求错误后点击返回按钮会返回两级目录 3. 长按下拉菜单会显示无用的tips 4. poster显示为placeholder时图标颜色错误 Closes https://github.com/GhostenEditor/Ghosten-Player/issues/1 --- lib/const.dart | 6 +-- lib/pages/account/account.dart | 1 + lib/pages/detail/episode.dart | 10 +++- lib/pages/detail/season.dart | 5 +- lib/pages/settings/settings.dart | 1 + .../lib/src/file_picker_dialog.dart | 17 ++++--- packages/file_picker/pubspec.yaml | 2 +- pubspec.lock | 50 +++++++++---------- pubspec.yaml | 2 +- 9 files changed, 53 insertions(+), 41 deletions(-) diff --git a/lib/const.dart b/lib/const.dart index 1f8f8f0..b538ff0 100644 --- a/lib/const.dart +++ b/lib/const.dart @@ -1,5 +1,3 @@ -import 'dart:isolate'; - const alphaVersion = bool.fromEnvironment('ALPHA_VERSION', defaultValue: false); const buildDate = String.fromEnvironment('BUILD_DATE', defaultValue: '2024-03-12'); const repoAuthor = String.fromEnvironment('REPO_AUTHOR', defaultValue: 'GhostenEditor'); @@ -10,7 +8,5 @@ const headerUserAgent = 'User-Agent'; const assetsLogo = 'assets/images/logo.png'; const assetsNoData = 'assets/images/no data.png'; const appName = 'Ghosten Player'; -const appVersion = '1.0.0'; +const appVersion = '1.0.1'; const double kQrSize = 240; -final ReceivePort port = ReceivePort(); -final Stream downloaderStream = port.asBroadcastStream(); diff --git a/lib/pages/account/account.dart b/lib/pages/account/account.dart index a14bd9a..a81934c 100644 --- a/lib/pages/account/account.dart +++ b/lib/pages/account/account.dart @@ -132,6 +132,7 @@ class _AccountManageState extends State { childBuilder: (context, item, {required onPage, required onSubmit, required onRefresh, groupValue}) { return PopupMenuButton( offset: const Offset(1, 0), + tooltip: '', itemBuilder: (context) => [ PopupMenuItem( autofocus: kIsAndroidTV, diff --git a/lib/pages/detail/episode.dart b/lib/pages/detail/episode.dart index 46aad42..4439df5 100644 --- a/lib/pages/detail/episode.dart +++ b/lib/pages/detail/episode.dart @@ -43,7 +43,15 @@ class _EpisodeDetailState extends State with DetailPageMixin with DetailPageMixin( offset: const Offset(1, 0), + tooltip: '', onSelected: onSelected, itemBuilder: itemBuilder, child: ListTile( diff --git a/packages/file_picker/lib/src/file_picker_dialog.dart b/packages/file_picker/lib/src/file_picker_dialog.dart index 2c1169a..fe6f83a 100644 --- a/packages/file_picker/lib/src/file_picker_dialog.dart +++ b/packages/file_picker/lib/src/file_picker_dialog.dart @@ -76,6 +76,7 @@ class _FilePickerDialogState extends State> { animation: primaryAnimation, secondaryAnimation: secondaryAnimation, transitionType: SharedAxisTransitionType.horizontal, + fillColor: Colors.transparent, child: child, ); }, @@ -132,6 +133,7 @@ class _FilePickerDialogState extends State> { _routes.add(item); _stream.add(res); } catch (e) { + _routes.add(null); _stream.addError(e); } } @@ -179,13 +181,16 @@ class _ListViewWithScrollbarState extends State<_ListViewWithScrollbar> { @override Widget build(BuildContext context) { - return Scrollbar( - controller: _scrollController, - child: ListView.separated( + return Theme( + data: Theme.of(context).copyWith(listTileTheme: const ListTileThemeData(contentPadding: EdgeInsetsDirectional.only(start: 16, end: 16))), + child: Scrollbar( controller: _scrollController, - itemBuilder: widget.itemBuilder, - separatorBuilder: widget.separatorBuilder, - itemCount: widget.itemCount, + child: ListView.separated( + controller: _scrollController, + itemBuilder: widget.itemBuilder, + separatorBuilder: widget.separatorBuilder, + itemCount: widget.itemCount, + ), ), ); } diff --git a/packages/file_picker/pubspec.yaml b/packages/file_picker/pubspec.yaml index 7fe8d3e..2f42761 100644 --- a/packages/file_picker/pubspec.yaml +++ b/packages/file_picker/pubspec.yaml @@ -1,6 +1,6 @@ name: file_picker description: "File Picker Plugin for Ghosten Player" -version: 1.0.0 +version: 1.0.1 environment: sdk: '>=3.4.3 <4.0.0' diff --git a/pubspec.lock b/pubspec.lock index ef8d8a3..1f22687 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -91,10 +91,10 @@ packages: dependency: transitive description: name: crypto - sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27 + sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.0.6" date_format: dependency: "direct main" description: @@ -139,25 +139,25 @@ packages: dependency: transitive description: name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "7.0.1" file_picker: dependency: "direct main" description: path: "packages/file_picker" relative: true source: path - version: "1.0.0" + version: "1.0.1" fixnum: dependency: transitive description: name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" flutter: dependency: "direct main" description: @@ -326,10 +326,10 @@ packages: dependency: transitive description: name: path_provider - sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378 + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.1.5" path_provider_android: dependency: transitive description: @@ -374,10 +374,10 @@ packages: dependency: transitive description: name: platform - sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" url: "https://pub.dev" source: hosted - version: "3.1.5" + version: "3.1.6" player_view: dependency: "direct main" description: @@ -445,10 +445,10 @@ packages: dependency: transitive description: name: shared_preferences_foundation - sha256: c4b35f6cb8f63c147312c054ce7c2254c8066745125264f0c88739c417fc9d9f + sha256: "07e050c7cd39bad516f8d64c455f04508d09df104be326d8c02551590a0d513d" url: "https://pub.dev" source: hosted - version: "2.5.2" + version: "2.5.3" shared_preferences_linux: dependency: transitive description: @@ -578,10 +578,10 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3" + sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" url: "https://pub.dev" source: hosted - version: "6.3.0" + version: "6.3.1" url_launcher_android: dependency: transitive description: @@ -610,10 +610,10 @@ packages: dependency: transitive description: name: url_launcher_macos - sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de" + sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672" url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "3.2.1" url_launcher_platform_interface: dependency: transitive description: @@ -634,18 +634,18 @@ packages: dependency: transitive description: name: url_launcher_windows - sha256: "49c10f879746271804767cb45551ec5592cdab00ee105c06dddde1a98f73b185" + sha256: "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4" url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" uuid: dependency: transitive description: name: uuid - sha256: f33d6bb662f0e4f79dcd7ada2e6170f3b3a2530c28fc41f49a411ddedd576a77 + sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.5.1" vector_math: dependency: transitive description: @@ -666,18 +666,18 @@ packages: dependency: transitive description: name: web - sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062 + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.1.0" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.1.0" sdks: dart: ">=3.4.3 <4.0.0" flutter: ">=3.22.0" diff --git a/pubspec.yaml b/pubspec.yaml index d9aaacb..2ca1609 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: ghosten_player description: "Ghosten Player: A Video Player" publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.0.0 +version: 1.0.1+2 environment: sdk: '>=3.4.3 <4.0.0' dependencies: