Skip to content

Commit

Permalink
fix: bug fix
Browse files Browse the repository at this point in the history
1. webdav不兼容alist
2. filepicker不显示ripple效果,请求错误后点击返回按钮会返回两级目录
3. 长按下拉菜单会显示无用的tips
4. poster显示为placeholder时图标颜色错误

Closes #1
  • Loading branch information
GhostenEditor committed Nov 5, 2024
1 parent dec7607 commit ef45802
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 41 deletions.
6 changes: 1 addition & 5 deletions lib/const.dart
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -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<dynamic> downloaderStream = port.asBroadcastStream();
1 change: 1 addition & 0 deletions lib/pages/account/account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class _AccountManageState extends State<AccountManage> {
childBuilder: (context, item, {required onPage, required onSubmit, required onRefresh, groupValue}) {
return PopupMenuButton(
offset: const Offset(1, 0),
tooltip: '',
itemBuilder: (context) => [
PopupMenuItem(
autofocus: kIsAndroidTV,
Expand Down
10 changes: 9 additions & 1 deletion lib/pages/detail/episode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ class _EpisodeDetailState extends State<EpisodeDetail> with DetailPageMixin<TVEp

@override
Widget buildFloatImage(BuildContext context, TVEpisode item) {
return AspectRatio(aspectRatio: 1.667, child: item.poster != null ? AsyncImage(item.poster!) : const Icon(Icons.image_not_supported, size: 50));
return AspectRatio(
aspectRatio: 1.667,
child: item.poster != null
? AsyncImage(item.poster!)
: Icon(
Icons.image_not_supported,
size: 50,
color: Theme.of(context).colorScheme.primaryFixedDim,
));
}

@override
Expand Down
5 changes: 3 additions & 2 deletions lib/pages/detail/season.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ class _SeasonDetailState extends State<SeasonDetail> with DetailPageMixin<TVSeas
child: item.poster != null
? AsyncImage(item.poster!, ink: true)
: Container(
color: Theme.of(context).colorScheme.onSurface.withAlpha(0x11),
child: const Center(child: Icon(Icons.image_not_supported_outlined, size: 50)))),
color: Theme.of(context).colorScheme.primary.withAlpha(0x11),
child: Center(
child: Icon(Icons.image_not_supported_outlined, size: 50, color: Theme.of(context).colorScheme.secondaryContainer)))),
);
}),
],
Expand Down
1 change: 1 addition & 0 deletions lib/pages/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class SettingsPage extends StatelessWidget {
}) {
return PopupMenuButton<T>(
offset: const Offset(1, 0),
tooltip: '',
onSelected: onSelected,
itemBuilder: itemBuilder,
child: ListTile(
Expand Down
17 changes: 11 additions & 6 deletions packages/file_picker/lib/src/file_picker_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class _FilePickerDialogState<T> extends State<FilePickerDialog<T>> {
animation: primaryAnimation,
secondaryAnimation: secondaryAnimation,
transitionType: SharedAxisTransitionType.horizontal,
fillColor: Colors.transparent,
child: child,
);
},
Expand Down Expand Up @@ -132,6 +133,7 @@ class _FilePickerDialogState<T> extends State<FilePickerDialog<T>> {
_routes.add(item);
_stream.add(res);
} catch (e) {
_routes.add(null);
_stream.addError(e);
}
}
Expand Down Expand Up @@ -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,
),
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/file_picker/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
50 changes: 25 additions & 25 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit ef45802

Please sign in to comment.