Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

fix "No pinned messages" message

This commit is contained in:
Henry Hiles 2026-07-14 22:52:55 +00:00
commit edc1f95b8d
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -24,30 +24,28 @@ class PinnedEventsDrawer extends HookConsumerWidget {
appBar: AppBar(
scrolledUnderElevation: 0,
leading: Icon(Icons.push_pin),
title: Text("Pinned Messages"),
title: Text("Pinned Events"),
actionsPadding: .only(right: 4),
actions: [
IconButton(
onPressed: Scaffold.of(context).closeEndDrawer,
icon: Icon(Icons.close),
tooltip: "Close pinned messages",
tooltip: "Close pinned events",
),
],
),
body: switch (pinsProvider) {
AsyncData(:final value) when value.isEmpty => Center(
child: Column(
mainAxisSize: .min,
children: [
Icon(
Icons.push_pin_outlined,
size: 48,
color: theme.colorScheme.surfaceContainerHigh,
color: theme.colorScheme.onSurface,
),
SizedBox(height: 12),
Text(
"No pinned messages.",
style: theme.textTheme.headlineSmall,
),
Text("No pinned events", style: theme.textTheme.headlineSmall),
],
),
),