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

@@ -22,7 +22,9 @@ class _WhisperPageState extends State<WhisperPage> {
@override
Widget build(BuildContext context) {
final padding = MediaQuery.viewPaddingOf(context);
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: const Text('消息'),
actions: [
@@ -77,11 +79,9 @@ class _WhisperPageState extends State<WhisperPage> {
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
_buildTopItems,
_buildTopItems(padding),
SliverPadding(
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom + 100,
),
padding: EdgeInsets.only(bottom: padding.bottom + 100),
sliver: Obx(() => _buildBody(_controller.loadingState.value)),
),
],
@@ -131,11 +131,10 @@ class _WhisperPageState extends State<WhisperPage> {
};
}
Widget get _buildTopItems {
Widget _buildTopItems(EdgeInsets padding) {
final ThemeData theme = Theme.of(context);
return SliverSafeArea(
top: false,
bottom: false,
return SliverPadding(
padding: EdgeInsets.only(left: padding.left, right: padding.right),
sliver: SliverToBoxAdapter(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,