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

@@ -56,38 +56,40 @@ class _NoteListPageState extends State<NoteListPage>
@override
Widget buildPage(ThemeData theme) {
return MiniScaffold(
body: Column(
children: [
SizedBox(
height: 45,
child: AppBar(
primary: false,
automaticallyImplyLeading: false,
titleSpacing: 16,
toolbarHeight: 45,
backgroundColor: Colors.transparent,
title: Obx(() {
final count = _controller.count.value;
return Text('笔记${count == -1 ? '' : '($count)'}');
}),
shape: Border(
bottom: BorderSide(
color: theme.colorScheme.outline.withValues(alpha: 0.1),
return Material(
child: MiniScaffold(
body: Column(
children: [
SizedBox(
height: 45,
child: AppBar(
primary: false,
automaticallyImplyLeading: false,
titleSpacing: 16,
toolbarHeight: 45,
backgroundColor: Colors.transparent,
title: Obx(() {
final count = _controller.count.value;
return Text('笔记${count == -1 ? '' : '($count)'}');
}),
shape: Border(
bottom: BorderSide(
color: theme.colorScheme.outline.withValues(alpha: 0.1),
),
),
actions: [
IconButton(
tooltip: '关闭',
icon: const Icon(Icons.close, size: 20),
onPressed: Get.back,
),
const SizedBox(width: 2),
],
),
actions: [
IconButton(
tooltip: '关闭',
icon: const Icon(Icons.close, size: 20),
onPressed: Get.back,
),
const SizedBox(width: 2),
],
),
),
Expanded(child: enableSlide ? slideList(theme) : buildList(theme)),
],
Expanded(child: enableSlide ? slideList(theme) : buildList(theme)),
],
),
),
);
}