fix: UI 细节调整

This commit is contained in:
2024-03-13 22:40:28 +08:00
parent b7ccf80d2a
commit 7e8177bdf5
4 changed files with 31 additions and 26 deletions

View File

@@ -96,20 +96,25 @@ class IndexUI extends HookConsumerWidget {
List<NavigationPaneItem> getNavigationPaneItems(
ValueNotifier<int> curIndexState) {
// width = 64
return [
for (final kv in pageMenus.entries)
PaneItem(
icon: Padding(
padding: const EdgeInsets.only(top: 6, bottom: 6, left: 4),
child: Column(
children: [
Icon(kv.key, size: 18),
const SizedBox(height: 3),
Text(
kv.value,
style: const TextStyle(fontSize: 11),
)
],
padding: const EdgeInsets.only(top: 6, bottom: 6),
child: SizedBox(
width: 32,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(kv.key, size: 18),
const SizedBox(height: 3),
Text(
kv.value,
style: const TextStyle(fontSize: 11),
)
],
),
),
),
// title: Text(kv.value),