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