Closes #1050

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-20 22:04:39 +08:00
parent e096ebcbba
commit 76f1d0129b
171 changed files with 2190 additions and 2063 deletions

View File

@@ -1,5 +1,6 @@
import 'dart:async';
import 'package:PiliPlus/common/widgets/view_safe_area.dart';
import 'package:PiliPlus/http/search.dart';
import 'package:PiliPlus/models/common/video/source_type.dart';
import 'package:PiliPlus/pages/subscription_detail/view.dart';
@@ -123,6 +124,7 @@ class PiliScheme {
'id': commentSecondaryId,
},
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: const Text('评论详情'),
actions: [
@@ -139,9 +141,7 @@ class PiliScheme {
),
],
),
body: SafeArea(
top: false,
bottom: false,
body: ViewSafeArea(
child: VideoReplyReplyPanel(
enableSlide: false,
oid: int.parse(oid),
@@ -260,6 +260,7 @@ class PiliScheme {
'enterUri': queryParameters['enterUri'],
},
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: const Text('评论详情'),
actions: [
@@ -279,9 +280,7 @@ class PiliScheme {
),
],
),
body: SafeArea(
top: false,
bottom: false,
body: ViewSafeArea(
child: VideoReplyReplyPanel(
enableSlide: false,
oid: oid,
@@ -309,6 +308,7 @@ class PiliScheme {
'type': type,
},
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: const Text('评论详情'),
actions: [
@@ -329,9 +329,7 @@ class PiliScheme {
),
],
),
body: SafeArea(
top: false,
bottom: false,
body: ViewSafeArea(
child: VideoReplyReplyPanel(
enableSlide: false,
oid: oid,
@@ -384,6 +382,7 @@ class PiliScheme {
'id': commentSecondaryId,
},
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: const Text('评论详情'),
actions: [
@@ -394,9 +393,7 @@ class PiliScheme {
),
],
),
body: SafeArea(
top: false,
bottom: false,
body: ViewSafeArea(
child: VideoReplyReplyPanel(
enableSlide: false,
oid: oid ?? int.parse(dynId),
@@ -781,6 +778,7 @@ class PiliScheme {
'id': commentSecondaryId,
},
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: const Text('评论详情'),
actions: pageType == '1'
@@ -795,9 +793,7 @@ class PiliScheme {
]
: null,
),
body: SafeArea(
top: false,
bottom: false,
body: ViewSafeArea(
child: VideoReplyReplyPanel(
enableSlide: false,
oid: int.parse(oid),

View File

@@ -28,7 +28,7 @@ extension ContextExtensions on BuildContext {
TextTheme get textTheme => Theme.of(this).textTheme;
/// similar to [MediaQuery.of(context).padding]
EdgeInsets get mediaQueryPadding => MediaQuery.paddingOf(this);
EdgeInsets get mediaQueryPadding => MediaQuery.viewPaddingOf(this);
/// similar to [MediaQuery.of(context).padding]
MediaQueryData get mediaQuery => MediaQuery.of(this);

View File

@@ -185,7 +185,6 @@ class SettingBoxKey {
enableSingleRow = 'enableSingleRow',
displayMode = 'displayMode',
smallCardWidth = 'smallCardWidth',
videoPlayerRemoveSafeArea = 'videoPlayerRemoveSafeArea',
dynamicsWaterfallFlow = 'dynamicsWaterfallFlow',
upPanelPosition = 'upPanelPosition',
dynamicsShowAllFollowedUp = 'dynamicsShowAllFollowedUp',

View File

@@ -604,11 +604,6 @@ class Pref {
static bool get enableVerticalExpand =>
_setting.get(SettingBoxKey.enableVerticalExpand, defaultValue: false);
static bool get removeSafeArea => _setting.get(
SettingBoxKey.videoPlayerRemoveSafeArea,
defaultValue: false,
);
static double get defaultTextScale =>
_setting.get(SettingBoxKey.defaultTextScale, defaultValue: 1.0);