mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: dynamic detail/html page
Closes #26 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -26,7 +26,7 @@ Widget articleContent({
|
|||||||
text: item.word?.words,
|
text: item.word?.words,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
letterSpacing: 0.3,
|
letterSpacing: 0.3,
|
||||||
fontSize: FontSize.large.value,
|
fontSize: 17,
|
||||||
height: LineHeight.percent(125).size,
|
height: LineHeight.percent(125).size,
|
||||||
fontStyle:
|
fontStyle:
|
||||||
item.word?.style?.italic == true ? FontStyle.italic : null,
|
item.word?.style?.italic == true ? FontStyle.italic : null,
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ Widget htmlRender({
|
|||||||
],
|
],
|
||||||
style: {
|
style: {
|
||||||
'html': Style(
|
'html': Style(
|
||||||
fontSize: FontSize.large,
|
fontSize: FontSize(17),
|
||||||
lineHeight: LineHeight.percent(160),
|
lineHeight: LineHeight.percent(160),
|
||||||
letterSpacing: 0.3,
|
letterSpacing: 0.3,
|
||||||
),
|
),
|
||||||
@@ -91,7 +91,7 @@ Widget htmlRender({
|
|||||||
// margin: Margins.zero,
|
// margin: Margins.zero,
|
||||||
),
|
),
|
||||||
'span': Style(
|
'span': Style(
|
||||||
fontSize: FontSize.medium,
|
fontSize: FontSize.large,
|
||||||
height: Height(1.8),
|
height: Height(1.8),
|
||||||
),
|
),
|
||||||
'div': Style(height: Height.auto()),
|
'div': Style(height: Height.auto()),
|
||||||
@@ -109,12 +109,12 @@ Widget htmlRender({
|
|||||||
margin: Margins.only(bottom: 8),
|
margin: Margins.only(bottom: 8),
|
||||||
),
|
),
|
||||||
'h3,h4,h5': Style(
|
'h3,h4,h5': Style(
|
||||||
fontSize: FontSize.large,
|
fontSize: FontSize(17),
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
margin: Margins.only(bottom: 4),
|
margin: Margins.only(bottom: 4),
|
||||||
),
|
),
|
||||||
'figcaption': Style(
|
'figcaption': Style(
|
||||||
fontSize: FontSize.medium,
|
fontSize: FontSize.large,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
// margin: Margins.only(top: 4),
|
// margin: Margins.only(top: 4),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import 'package:PiliPalaX/pages/video/detail/reply/widgets/reply_item.dart';
|
|||||||
import 'package:PiliPalaX/pages/video/detail/reply/widgets/reply_item_grpc.dart';
|
import 'package:PiliPalaX/pages/video/detail/reply/widgets/reply_item_grpc.dart';
|
||||||
import 'package:PiliPalaX/utils/extension.dart';
|
import 'package:PiliPalaX/utils/extension.dart';
|
||||||
import 'package:PiliPalaX/utils/global_data.dart';
|
import 'package:PiliPalaX/utils/global_data.dart';
|
||||||
|
import 'package:PiliPalaX/utils/storage.dart';
|
||||||
import 'package:PiliPalaX/utils/utils.dart';
|
import 'package:PiliPalaX/utils/utils.dart';
|
||||||
import 'package:easy_debounce/easy_throttle.dart';
|
import 'package:easy_debounce/easy_throttle.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -47,6 +48,8 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
int? opusId;
|
int? opusId;
|
||||||
bool isOpusId = false;
|
bool isOpusId = false;
|
||||||
|
|
||||||
|
late final List<double> _ratio = GStorage.dynamicDetailRatio;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
@@ -202,7 +205,53 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
// actions: _detailModel != null ? appBarAction() : [],
|
actions: context.orientation == Orientation.landscape
|
||||||
|
? [
|
||||||
|
IconButton(
|
||||||
|
tooltip: '页面比例调节',
|
||||||
|
onPressed: () {
|
||||||
|
showDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (context) => Align(
|
||||||
|
alignment: Alignment.topRight,
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.only(
|
||||||
|
top: 56,
|
||||||
|
right: 16,
|
||||||
|
),
|
||||||
|
width: context.width / 4,
|
||||||
|
height: 32,
|
||||||
|
child: Builder(
|
||||||
|
builder: (context) => Slider(
|
||||||
|
min: 1,
|
||||||
|
max: 100,
|
||||||
|
value: _ratio.first,
|
||||||
|
onChanged: (value) async {
|
||||||
|
if (value >= 10 && value <= 90) {
|
||||||
|
_ratio[0] = value;
|
||||||
|
_ratio[1] = 100 - value;
|
||||||
|
await GStorage.setting.put(
|
||||||
|
SettingBoxKey.dynamicDetailRatio,
|
||||||
|
_ratio,
|
||||||
|
);
|
||||||
|
(context as Element).markNeedsBuild();
|
||||||
|
setState(() {});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
icon: Transform.rotate(
|
||||||
|
angle: pi / 2,
|
||||||
|
child: Icon(Icons.splitscreen),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 16),
|
||||||
|
]
|
||||||
|
: null,
|
||||||
),
|
),
|
||||||
body: refreshIndicator(
|
body: refreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
@@ -239,41 +288,42 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
flex: _ratio[0].toInt(),
|
||||||
child: CustomScrollView(
|
child: CustomScrollView(
|
||||||
controller: ScrollController(),
|
controller: ScrollController(),
|
||||||
physics: const AlwaysScrollableScrollPhysics(),
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: EdgeInsets.only(left: padding / 2),
|
padding: EdgeInsets.only(left: padding / 4),
|
||||||
sliver: SliverToBoxAdapter(
|
sliver: SliverToBoxAdapter(
|
||||||
child: DynamicPanel(
|
child: DynamicPanel(
|
||||||
item: _dynamicDetailController.item,
|
item: _dynamicDetailController.item,
|
||||||
source: 'detail',
|
source: 'detail',
|
||||||
),
|
|
||||||
)),
|
|
||||||
]),
|
|
||||||
),
|
|
||||||
Expanded(
|
|
||||||
child: CustomScrollView(
|
|
||||||
controller:
|
|
||||||
_dynamicDetailController.scrollController,
|
|
||||||
physics: const AlwaysScrollableScrollPhysics(),
|
|
||||||
slivers: [
|
|
||||||
SliverPadding(
|
|
||||||
padding: EdgeInsets.only(right: padding / 2),
|
|
||||||
sliver: replyPersistentHeader(context)),
|
|
||||||
SliverPadding(
|
|
||||||
padding: EdgeInsets.only(right: padding / 2),
|
|
||||||
sliver: Obx(
|
|
||||||
() => replyList(_dynamicDetailController
|
|
||||||
.loadingState.value),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
|
||||||
// .map<Widget>(
|
|
||||||
// (e) => SliverPadding(padding: padding, sliver: e))
|
|
||||||
// .toList(),
|
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
flex: _ratio[1].toInt(),
|
||||||
|
child: CustomScrollView(
|
||||||
|
controller: _dynamicDetailController.scrollController,
|
||||||
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
|
slivers: [
|
||||||
|
SliverPadding(
|
||||||
|
padding: EdgeInsets.only(right: padding / 4),
|
||||||
|
sliver: replyPersistentHeader(context),
|
||||||
|
),
|
||||||
|
SliverPadding(
|
||||||
|
padding: EdgeInsets.only(right: padding / 4),
|
||||||
|
sliver: Obx(
|
||||||
|
() => replyList(_dynamicDetailController
|
||||||
|
.loadingState.value),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -61,9 +61,9 @@ class Content extends StatelessWidget {
|
|||||||
selectionControls: MaterialTextSelectionControls(),
|
selectionControls: MaterialTextSelectionControls(),
|
||||||
child: Text.rich(
|
child: Text.rich(
|
||||||
/// fix 默认20px高度
|
/// fix 默认20px高度
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
height: 0,
|
height: 0,
|
||||||
fontSize: 15,
|
fontSize: source == 'detail' ? 16 : 15,
|
||||||
),
|
),
|
||||||
richNode(item, context),
|
richNode(item, context),
|
||||||
maxLines: source == 'detail' ? 999 : 6,
|
maxLines: source == 'detail' ? 999 : 6,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import 'package:PiliPalaX/pages/video/detail/reply/widgets/reply_item.dart';
|
|||||||
import 'package:PiliPalaX/pages/video/detail/reply/widgets/reply_item_grpc.dart';
|
import 'package:PiliPalaX/pages/video/detail/reply/widgets/reply_item_grpc.dart';
|
||||||
import 'package:PiliPalaX/utils/extension.dart';
|
import 'package:PiliPalaX/utils/extension.dart';
|
||||||
import 'package:PiliPalaX/utils/global_data.dart';
|
import 'package:PiliPalaX/utils/global_data.dart';
|
||||||
|
import 'package:PiliPalaX/utils/storage.dart';
|
||||||
import 'package:easy_debounce/easy_throttle.dart';
|
import 'package:easy_debounce/easy_throttle.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
@@ -42,6 +43,8 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
bool _isFabVisible = true;
|
bool _isFabVisible = true;
|
||||||
late AnimationController fabAnimationCtr;
|
late AnimationController fabAnimationCtr;
|
||||||
|
|
||||||
|
late final List<double> _ratio = GStorage.dynamicDetailRatio;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
@@ -134,6 +137,49 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
title: Text(title),
|
title: Text(title),
|
||||||
actions: [
|
actions: [
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
|
if (context.orientation == Orientation.landscape)
|
||||||
|
IconButton(
|
||||||
|
tooltip: '页面比例调节',
|
||||||
|
onPressed: () {
|
||||||
|
showDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (context) => Align(
|
||||||
|
alignment: Alignment.topRight,
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.only(
|
||||||
|
top: 56,
|
||||||
|
right: 16,
|
||||||
|
),
|
||||||
|
width: context.width / 4,
|
||||||
|
height: 32,
|
||||||
|
child: Builder(
|
||||||
|
builder: (context) => Slider(
|
||||||
|
min: 1,
|
||||||
|
max: 100,
|
||||||
|
value: _ratio.first,
|
||||||
|
onChanged: (value) async {
|
||||||
|
if (value >= 10 && value <= 90) {
|
||||||
|
_ratio[0] = value;
|
||||||
|
_ratio[1] = 100 - value;
|
||||||
|
await GStorage.setting.put(
|
||||||
|
SettingBoxKey.dynamicDetailRatio,
|
||||||
|
_ratio,
|
||||||
|
);
|
||||||
|
(context as Element).markNeedsBuild();
|
||||||
|
setState(() {});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
icon: Transform.rotate(
|
||||||
|
angle: pi / 2,
|
||||||
|
child: Icon(Icons.splitscreen),
|
||||||
|
),
|
||||||
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
tooltip: '用内置浏览器打开',
|
tooltip: '用内置浏览器打开',
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
@@ -217,6 +263,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
flex: _ratio[0].toInt(),
|
||||||
child: CustomScrollView(
|
child: CustomScrollView(
|
||||||
controller: orientation == Orientation.portrait
|
controller: orientation == Orientation.portrait
|
||||||
? _htmlRenderCtr.scrollController
|
? _htmlRenderCtr.scrollController
|
||||||
@@ -225,7 +272,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: orientation == Orientation.portrait
|
padding: orientation == Orientation.portrait
|
||||||
? EdgeInsets.symmetric(horizontal: padding)
|
? EdgeInsets.symmetric(horizontal: padding)
|
||||||
: EdgeInsets.only(left: padding / 2),
|
: EdgeInsets.only(left: padding / 4),
|
||||||
sliver: SliverToBoxAdapter(
|
sliver: SliverToBoxAdapter(
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => _htmlRenderCtr.loaded.value
|
() => _htmlRenderCtr.loaded.value
|
||||||
@@ -237,21 +284,31 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: orientation == Orientation.portrait
|
padding: orientation == Orientation.portrait
|
||||||
? EdgeInsets.symmetric(horizontal: padding)
|
? EdgeInsets.symmetric(horizontal: padding)
|
||||||
: EdgeInsets.only(left: padding / 2),
|
: EdgeInsets.only(left: padding / 4),
|
||||||
sliver: _buildContent,
|
sliver: _buildContent,
|
||||||
),
|
),
|
||||||
if (orientation == Orientation.portrait) ...[
|
if (orientation == Orientation.portrait) ...[
|
||||||
SliverToBoxAdapter(
|
SliverPadding(
|
||||||
child: Divider(
|
padding: EdgeInsets.symmetric(horizontal: padding),
|
||||||
thickness: 8,
|
sliver: SliverToBoxAdapter(
|
||||||
color: Theme.of(context)
|
child: Divider(
|
||||||
.dividerColor
|
thickness: 8,
|
||||||
.withOpacity(0.05),
|
color: Theme.of(context)
|
||||||
|
.dividerColor
|
||||||
|
.withOpacity(0.05),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SliverToBoxAdapter(child: replyHeader()),
|
SliverPadding(
|
||||||
Obx(
|
padding: EdgeInsets.symmetric(horizontal: padding),
|
||||||
() => replyList(_htmlRenderCtr.loadingState.value),
|
sliver: SliverToBoxAdapter(child: replyHeader()),
|
||||||
|
),
|
||||||
|
SliverPadding(
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: padding),
|
||||||
|
sliver: Obx(
|
||||||
|
() =>
|
||||||
|
replyList(_htmlRenderCtr.loadingState.value),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
@@ -263,17 +320,18 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
color:
|
color:
|
||||||
Theme.of(context).dividerColor.withOpacity(0.05)),
|
Theme.of(context).dividerColor.withOpacity(0.05)),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
flex: _ratio[1].toInt(),
|
||||||
child: CustomScrollView(
|
child: CustomScrollView(
|
||||||
controller: _htmlRenderCtr.scrollController,
|
controller: _htmlRenderCtr.scrollController,
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: EdgeInsets.only(right: padding / 2),
|
padding: EdgeInsets.only(right: padding / 4),
|
||||||
sliver: SliverToBoxAdapter(
|
sliver: SliverToBoxAdapter(
|
||||||
child: replyHeader(),
|
child: replyHeader(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: EdgeInsets.only(right: padding / 2),
|
padding: EdgeInsets.only(right: padding / 4),
|
||||||
sliver: Obx(
|
sliver: Obx(
|
||||||
() =>
|
() =>
|
||||||
replyList(_htmlRenderCtr.loadingState.value),
|
replyList(_htmlRenderCtr.loadingState.value),
|
||||||
|
|||||||
@@ -8,8 +8,17 @@ import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
|||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
|
||||||
// ignore: constant_identifier_names
|
enum WebviewMenuItem { refresh, copy, openInBrowser, clearCache, goBack }
|
||||||
enum WebviewMenuItem { Refresh, Copy, Open_In_Browser, Clear_Cache, Go_Back }
|
|
||||||
|
extension WebviewMenuItemExt on WebviewMenuItem {
|
||||||
|
String get title => [
|
||||||
|
'刷新',
|
||||||
|
'复制链接',
|
||||||
|
'浏览器中打开',
|
||||||
|
'清除缓存',
|
||||||
|
'返回',
|
||||||
|
][index];
|
||||||
|
}
|
||||||
|
|
||||||
class WebviewPageNew extends StatefulWidget {
|
class WebviewPageNew extends StatefulWidget {
|
||||||
const WebviewPageNew({super.key});
|
const WebviewPageNew({super.key});
|
||||||
@@ -63,22 +72,22 @@ class _WebviewPageNewState extends State<WebviewPageNew> {
|
|||||||
PopupMenuButton(
|
PopupMenuButton(
|
||||||
onSelected: (item) async {
|
onSelected: (item) async {
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case WebviewMenuItem.Refresh:
|
case WebviewMenuItem.refresh:
|
||||||
_webViewController?.reload();
|
_webViewController?.reload();
|
||||||
break;
|
break;
|
||||||
case WebviewMenuItem.Copy:
|
case WebviewMenuItem.copy:
|
||||||
WebUri? uri = await _webViewController?.getUrl();
|
WebUri? uri = await _webViewController?.getUrl();
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
Utils.copyText(uri.toString());
|
Utils.copyText(uri.toString());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WebviewMenuItem.Open_In_Browser:
|
case WebviewMenuItem.openInBrowser:
|
||||||
WebUri? uri = await _webViewController?.getUrl();
|
WebUri? uri = await _webViewController?.getUrl();
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
Utils.launchURL(uri.toString());
|
Utils.launchURL(uri.toString());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WebviewMenuItem.Clear_Cache:
|
case WebviewMenuItem.clearCache:
|
||||||
try {
|
try {
|
||||||
await InAppWebViewController.clearAllCache();
|
await InAppWebViewController.clearAllCache();
|
||||||
await _webViewController?.clearHistory();
|
await _webViewController?.clearHistory();
|
||||||
@@ -87,9 +96,11 @@ class _WebviewPageNewState extends State<WebviewPageNew> {
|
|||||||
SmartDialog.showToast(e.toString());
|
SmartDialog.showToast(e.toString());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WebviewMenuItem.Go_Back:
|
case WebviewMenuItem.goBack:
|
||||||
if (await _webViewController?.canGoBack() == true) {
|
if (await _webViewController?.canGoBack() == true) {
|
||||||
_webViewController?.goBack();
|
_webViewController?.goBack();
|
||||||
|
} else {
|
||||||
|
Get.back();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -99,9 +110,9 @@ class _WebviewPageNewState extends State<WebviewPageNew> {
|
|||||||
(item) => PopupMenuItem(value: item, child: Text(item.name))),
|
(item) => PopupMenuItem(value: item, child: Text(item.name))),
|
||||||
const PopupMenuDivider(),
|
const PopupMenuDivider(),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: WebviewMenuItem.Go_Back,
|
value: WebviewMenuItem.goBack,
|
||||||
child: Text(
|
child: Text(
|
||||||
WebviewMenuItem.Go_Back.name,
|
WebviewMenuItem.goBack.name,
|
||||||
style:
|
style:
|
||||||
TextStyle(color: Theme.of(context).colorScheme.error),
|
TextStyle(color: Theme.of(context).colorScheme.error),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -108,6 +108,9 @@ class GStorage {
|
|||||||
static bool get grpcReply =>
|
static bool get grpcReply =>
|
||||||
setting.get(SettingBoxKey.grpcReply, defaultValue: true);
|
setting.get(SettingBoxKey.grpcReply, defaultValue: true);
|
||||||
|
|
||||||
|
static List<double> get dynamicDetailRatio =>
|
||||||
|
setting.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]);
|
||||||
|
|
||||||
static MemberTabType get memberTab => MemberTabType
|
static MemberTabType get memberTab => MemberTabType
|
||||||
.values[setting.get(SettingBoxKey.memberTab, defaultValue: 0)];
|
.values[setting.get(SettingBoxKey.memberTab, defaultValue: 0)];
|
||||||
|
|
||||||
@@ -310,6 +313,7 @@ class SettingBoxKey {
|
|||||||
memberTab = 'memberTab',
|
memberTab = 'memberTab',
|
||||||
subtitleFontScale = 'subtitleFontScale',
|
subtitleFontScale = 'subtitleFontScale',
|
||||||
subtitleFontScaleFS = 'subtitleFontScaleFS',
|
subtitleFontScaleFS = 'subtitleFontScaleFS',
|
||||||
|
dynamicDetailRatio = 'dynamicDetailRatio',
|
||||||
|
|
||||||
// 代理host port
|
// 代理host port
|
||||||
systemProxyHost = 'systemProxyHost',
|
systemProxyHost = 'systemProxyHost',
|
||||||
|
|||||||
Reference in New Issue
Block a user