mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: safearea
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -170,7 +170,10 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
titleSpacing: automaticallyImplyLeading ? null : 12,
|
titleSpacing: automaticallyImplyLeading ? null : 12,
|
||||||
automaticallyImplyLeading: automaticallyImplyLeading,
|
automaticallyImplyLeading: automaticallyImplyLeading,
|
||||||
),
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: VideoReplyReplyPanel(
|
||||||
id: id,
|
id: id,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
@@ -179,6 +182,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
firstFloor: replyItem,
|
firstFloor: replyItem,
|
||||||
onDispose: onDispose,
|
onDispose: onDispose,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
if (this.context.orientation == Orientation.portrait) {
|
if (this.context.orientation == Orientation.portrait) {
|
||||||
Get.to(
|
Get.to(
|
||||||
|
|||||||
@@ -92,7 +92,11 @@ class _HotPageState extends CommonPageState<HotPage, HotController>
|
|||||||
Get.to(
|
Get.to(
|
||||||
Scaffold(
|
Scaffold(
|
||||||
appBar: AppBar(title: const Text('排行榜')),
|
appBar: AppBar(title: const Text('排行榜')),
|
||||||
body: RankPage(),
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: RankPage(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -168,7 +168,10 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
titleSpacing: automaticallyImplyLeading ? null : 12,
|
titleSpacing: automaticallyImplyLeading ? null : 12,
|
||||||
automaticallyImplyLeading: automaticallyImplyLeading,
|
automaticallyImplyLeading: automaticallyImplyLeading,
|
||||||
),
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: VideoReplyReplyPanel(
|
||||||
id: id,
|
id: id,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
@@ -177,6 +180,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
firstFloor: replyItem,
|
firstFloor: replyItem,
|
||||||
onDispose: onDispose,
|
onDispose: onDispose,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
if (this.context.orientation == Orientation.portrait) {
|
if (this.context.orientation == Orientation.portrait) {
|
||||||
Get.to(
|
Get.to(
|
||||||
|
|||||||
@@ -277,13 +277,15 @@ class _LivePageState extends CommonPageState<LivePage, LiveController>
|
|||||||
() => Text('${controller.liveCount.value}人正在直播'),
|
() => Text('${controller.liveCount.value}人正在直播'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: CustomScrollView(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: CustomScrollView(
|
||||||
slivers: [
|
slivers: [
|
||||||
Obx(
|
Obx(() => _buildFollowListBody(controller.followListState.value)),
|
||||||
() => _buildFollowListBody(controller.followListState.value),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
Widget _buildFollowListBody(LoadingState loadingState) {
|
Widget _buildFollowListBody(LoadingState loadingState) {
|
||||||
|
|||||||
@@ -70,7 +70,10 @@ class _SeasonSeriesPageState extends State<SeasonSeriesPage>
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(item['meta']['name']),
|
title: Text(item['meta']['name']),
|
||||||
),
|
),
|
||||||
body: MemberVideo(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: MemberVideo(
|
||||||
type: isSeason
|
type: isSeason
|
||||||
? ContributeType.season
|
? ContributeType.season
|
||||||
: ContributeType.series,
|
: ContributeType.series,
|
||||||
@@ -81,6 +84,7 @@ class _SeasonSeriesPageState extends State<SeasonSeriesPage>
|
|||||||
title: item['meta']['name'],
|
title: item['meta']['name'],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -54,12 +54,14 @@ class _SysMsgPageState extends State<SysMsgPage> {
|
|||||||
|
|
||||||
Widget _buildBody(LoadingState<List<SystemNotifyList>?> loadingState) {
|
Widget _buildBody(LoadingState<List<SystemNotifyList>?> loadingState) {
|
||||||
return switch (loadingState) {
|
return switch (loadingState) {
|
||||||
Loading() => SliverList.builder(
|
Loading() => SliverSafeArea(
|
||||||
|
sliver: SliverList.builder(
|
||||||
itemCount: 12,
|
itemCount: 12,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return const MsgFeedSysMsgSkeleton();
|
return const MsgFeedSysMsgSkeleton();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Success() => loadingState.response?.isNotEmpty == true
|
Success() => loadingState.response?.isNotEmpty == true
|
||||||
? SliverList.separated(
|
? SliverList.separated(
|
||||||
itemCount: loadingState.response!.length,
|
itemCount: loadingState.response!.length,
|
||||||
|
|||||||
@@ -1528,7 +1528,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
),
|
),
|
||||||
|
|
||||||
// 锁
|
// 锁
|
||||||
Obx(
|
SafeArea(
|
||||||
|
child: Obx(
|
||||||
() => Visibility(
|
() => Visibility(
|
||||||
visible:
|
visible:
|
||||||
plPlayerController.videoType.value != 'live' && isFullScreen,
|
plPlayerController.videoType.value != 'live' && isFullScreen,
|
||||||
@@ -1549,8 +1550,9 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
plPlayerController.controlsLock.value
|
plPlayerController.controlsLock.value
|
||||||
? FontAwesomeIcons.lock
|
? FontAwesomeIcons.lock
|
||||||
: FontAwesomeIcons.lockOpen,
|
: FontAwesomeIcons.lockOpen,
|
||||||
semanticLabel:
|
semanticLabel: plPlayerController.controlsLock.value
|
||||||
plPlayerController.controlsLock.value ? '解锁' : '锁定',
|
? '解锁'
|
||||||
|
: '锁定',
|
||||||
size: 15,
|
size: 15,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
@@ -1563,15 +1565,18 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
|
||||||
// 截图
|
// 截图
|
||||||
Obx(
|
SafeArea(
|
||||||
|
child: Obx(
|
||||||
() => Align(
|
() => Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: FractionalTranslation(
|
child: FractionalTranslation(
|
||||||
translation: const Offset(-1, -0.4),
|
translation: const Offset(-1, -0.4),
|
||||||
child: Visibility(
|
child: Visibility(
|
||||||
visible: plPlayerController.showControls.value && isFullScreen,
|
visible:
|
||||||
|
plPlayerController.showControls.value && isFullScreen,
|
||||||
child: DecoratedBox(
|
child: DecoratedBox(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: const Color(0x45000000),
|
color: const Color(0x45000000),
|
||||||
@@ -1645,6 +1650,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
|
||||||
Obx(() {
|
Obx(() {
|
||||||
if (plPlayerController.dataStatus.loading ||
|
if (plPlayerController.dataStatus.loading ||
|
||||||
|
|||||||
@@ -133,7 +133,10 @@ class PiliScheme {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: VideoReplyReplyPanel(
|
||||||
oid: int.parse(oid),
|
oid: int.parse(oid),
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
source: 'routePush',
|
source: 'routePush',
|
||||||
@@ -145,6 +148,7 @@ class PiliScheme {
|
|||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -285,7 +289,10 @@ class PiliScheme {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: VideoReplyReplyPanel(
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rootId,
|
rpid: rootId,
|
||||||
id: rpId,
|
id: rpId,
|
||||||
@@ -294,6 +301,7 @@ class PiliScheme {
|
|||||||
firstFloor: null,
|
firstFloor: null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
} else if (path.startsWith("/msg_fold/")) {
|
} else if (path.startsWith("/msg_fold/")) {
|
||||||
@@ -331,7 +339,10 @@ class PiliScheme {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: VideoReplyReplyPanel(
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpId,
|
rpid: rpId,
|
||||||
source: 'routePush',
|
source: 'routePush',
|
||||||
@@ -339,6 +350,7 @@ class PiliScheme {
|
|||||||
firstFloor: null,
|
firstFloor: null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -393,7 +405,10 @@ class PiliScheme {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: SafeArea(
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
child: VideoReplyReplyPanel(
|
||||||
oid: oid ?? int.parse(dynId),
|
oid: oid ?? int.parse(dynId),
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
source: 'routePush',
|
source: 'routePush',
|
||||||
@@ -407,6 +422,7 @@ class PiliScheme {
|
|||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user