Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-31 23:06:09 +08:00
parent f90d1789cc
commit 97769b9450
2 changed files with 135 additions and 134 deletions

View File

@@ -86,8 +86,7 @@ class _DynMentionPanelState
final theme = Theme.of(context); final theme = Theme.of(context);
final padding = MediaQuery.paddingOf(context).bottom; final padding = MediaQuery.paddingOf(context).bottom;
final viewInset = MediaQuery.viewInsetsOf(context).bottom; final viewInset = MediaQuery.viewInsetsOf(context).bottom;
return SimpleScaffold( return Column(
body: Column(
children: [ children: [
SizedBox( SizedBox(
height: 35, height: 35,
@@ -150,10 +149,9 @@ class _DynMentionPanelState
..enableClear.value = false ..enableClear.value = false
..controller.clear() ..controller.clear()
..onRefresh().whenComplete( ..onRefresh().whenComplete(
() => WidgetsBinding.instance () =>
.addPostFrameCallback( WidgetsBinding.instance.addPostFrameCallback(
(_) => (_) => widget.scrollController?.jumpToTop(),
widget.scrollController?.jumpToTop(),
), ),
), ),
), ),
@@ -168,7 +166,8 @@ class _DynMentionPanelState
), ),
), ),
Expanded( Expanded(
child: NotificationListener<ScrollNotification>( child: SimpleScaffold(
body: NotificationListener<ScrollNotification>(
onNotification: (notification) { onNotification: (notification) {
if (notification is UserScrollNotification) { if (notification is UserScrollNotification) {
if (_controller.focusNode.hasFocus) { if (_controller.focusNode.hasFocus) {
@@ -191,9 +190,6 @@ class _DynMentionPanelState
], ],
), ),
), ),
),
],
),
fab: Obx(() { fab: Obx(() {
return Padding( return Padding(
padding: .only( padding: .only(
@@ -222,6 +218,9 @@ class _DynMentionPanelState
), ),
); );
}), }),
),
),
],
); );
} }

View File

@@ -56,7 +56,8 @@ class _NoteListPageState extends State<NoteListPage>
@override @override
Widget buildPage(ThemeData theme) { Widget buildPage(ThemeData theme) {
return MiniScaffold( return Material(
child: MiniScaffold(
body: Column( body: Column(
children: [ children: [
SizedBox( SizedBox(
@@ -89,6 +90,7 @@ class _NoteListPageState extends State<NoteListPage>
Expanded(child: enableSlide ? slideList(theme) : buildList(theme)), Expanded(child: enableSlide ? slideList(theme) : buildList(theme)),
], ],
), ),
),
); );
} }