forked from Nexus/nexus
fix "No pinned messages" message
This commit is contained in:
parent
b0c5dd5b11
commit
edc1f95b8d
1 changed files with 5 additions and 7 deletions
|
|
@ -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,
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue