Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

UI improvement

ErBW_s15113cb94c98
diff --git a/lib/pages/plugin_editor/plugin_shop_page.dart b/lib/pages/plugin_editor/plugin_shop_page.dart
index bb3b3c8e..e1dffeed 100644
--- a/lib/pages/plugin_editor/plugin_shop_page.dart
+++ b/lib/pages/plugin_editor/plugin_shop_page.dart
@@ -80,7 +80,7 @@ class _PluginShopPageState extends State<PluginShopPage> {
itemCount: pluginsController.pluginHTTPList.length,
itemBuilder: (context, index) {
return Card(
- margin: const EdgeInsets.all(8.0),
+ margin: const EdgeInsets.fromLTRB(8, 8, 8, 0),
child: ListTile(
title: Row(
children: [
diff --git a/lib/pages/plugin_editor/plugin_view_page.dart b/lib/pages/plugin_editor/plugin_view_page.dart
index 1df0d019..ac7fe72a 100644
--- a/lib/pages/plugin_editor/plugin_view_page.dart
+++ b/lib/pages/plugin_editor/plugin_view_page.dart
@@ -143,11 +143,11 @@ class _PluginViewPageState extends State<PluginViewPage> {
appBar: SysAppBar(
title: const Text('规则管理'),
actions: [
- (Utils.isCompact()) ? IconButton(
+ IconButton(
onPressed: () {
_handleAdd();
},
- icon: const Icon(Icons.add)) : Container()
+ icon: const Icon(Icons.add))
],
),
body: Observer(builder: (context) {
@@ -244,12 +244,6 @@ class _PluginViewPageState extends State<PluginViewPage> {
},
);
}),
- floatingActionButton: (!Utils.isCompact()) ? FloatingActionButton(
- onPressed: () {
- _handleAdd();
- },
- child: const Icon(Icons.add),
- ) : null,
),
);
}
diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart
index 3711b144..a3c32493 100644
--- a/lib/utils/utils.dart
+++ b/lib/utils/utils.dart
@@ -618,9 +618,12 @@ class Utils {
Box setting = GStorage.setting;
bool haEnable =
await setting.get(SettingBoxKey.hAenable, defaultValue: true);
- if ((Platform.isIOS || Platform.isMacOS) && haEnable) {
+ if (Platform.isIOS && haEnable) {
return 'AVPlayer';
}
+ if (Platform.isMacOS && haEnable) {
+ return 'Video Toolbox';
+ }
if (Platform.isAndroid && haEnable) {
return 'ExoPlayer';
}