mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 07:36:14 +08:00
opt article page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -249,7 +249,10 @@ class _ArticlePageState extends State<ArticlePage>
|
||||
return Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
appBar: _buildAppBar,
|
||||
body: Stack(
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
bottom: false,
|
||||
child: Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
SafeArea(
|
||||
@@ -257,7 +260,8 @@ class _ArticlePageState extends State<ArticlePage>
|
||||
bottom: false,
|
||||
child: Builder(
|
||||
builder: (context) {
|
||||
final isPortrait = context.orientation == Orientation.portrait;
|
||||
final isPortrait =
|
||||
context.orientation == Orientation.portrait;
|
||||
double padding =
|
||||
max(context.width / 2 - Grid.smallCardWidth, 0);
|
||||
if (isPortrait) {
|
||||
@@ -273,7 +277,8 @@ class _ArticlePageState extends State<ArticlePage>
|
||||
SliverToBoxAdapter(
|
||||
child: Divider(
|
||||
thickness: 8,
|
||||
color: theme.dividerColor.withValues(alpha: 0.05),
|
||||
color:
|
||||
theme.dividerColor.withValues(alpha: 0.05),
|
||||
),
|
||||
),
|
||||
_buildReplyHeader(theme),
|
||||
@@ -326,7 +331,8 @@ class _ArticlePageState extends State<ArticlePage>
|
||||
padding: EdgeInsets.only(right: padding / 4),
|
||||
child: CustomScrollView(
|
||||
controller: _articleCtr.scrollController,
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
physics:
|
||||
const AlwaysScrollableScrollPhysics(),
|
||||
slivers: [
|
||||
_buildReplyHeader(theme),
|
||||
Obx(() => _buildReplyList(
|
||||
@@ -346,6 +352,7 @@ class _ArticlePageState extends State<ArticlePage>
|
||||
_buildBottom(theme),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class _WebviewPageState extends State<WebviewPage> {
|
||||
super.initState();
|
||||
if (Get.arguments is Map) {
|
||||
_inApp = Get.arguments['inApp'];
|
||||
_off = Get.arguments['off'];
|
||||
_off = Get.arguments['off'] ?? false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user