opt article page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-23 15:30:07 +08:00
parent 9c2f3d3f86
commit 70b55e5fdd
2 changed files with 93 additions and 86 deletions

View File

@@ -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),
],
),
),
);
}

View File

@@ -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;
}
}