Support for pinned messages #49

Merged
Henry-Hiles merged 24 commits from istalri/nexus:support_pinned_messages into main 2026-07-14 19:29:47 -04:00
Showing only changes of commit edc1f95b8d - Show all commits

fix "No pinned messages" message

Henry Hiles 2026-07-14 22:52:55 +00:00
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

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