Add notifications on missing functionality

This commit is contained in:
Mike Schwörer 2025-06-07 20:38:12 +02:00
parent 038287ba4c
commit 9862fda9e5
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
3 changed files with 20 additions and 4 deletions

View File

@ -214,7 +214,13 @@ class _ChannelViewPageState extends State<ChannelViewPage> {
Navi.push(context, () => ChannelMessageViewPage(channel: channel)); Navi.push(context, () => ChannelMessageViewPage(channel: channel));
}, },
), ),
if (channel.ownerUserID == userAccUserID) UI.button(text: "Delete Channel", onPressed: () {/*TODO*/}, color: Colors.red[900]), if (channel.ownerUserID == userAccUserID)
UI.button(
text: "Delete Channel",
onPressed: () {
Toaster.info("Not Implemented", "... will be implemented in a later version"); // TODO
},
color: Colors.red[900]),
], ],
), ),
), ),

View File

@ -210,7 +210,13 @@ class _MessageViewPageState extends State<MessageViewPage> {
values: [_prettyPrintPriority(message.priority)], values: [_prettyPrintPriority(message.priority)],
mainAction: () => Navi.push(context, () => FilteredMessageViewPage(title: "Priority ${message.priority}", filter: MessageFilter(priority: [message.priority]))), mainAction: () => Navi.push(context, () => FilteredMessageViewPage(title: "Priority ${message.priority}", filter: MessageFilter(priority: [message.priority]))),
), ),
if (message.senderUserID == userAccUserID) UI.button(text: "Delete Message", onPressed: () {/*TODO*/}, color: Colors.red[900]), if (message.senderUserID == userAccUserID)
UI.button(
text: "Delete Message",
onPressed: () {
Toaster.info("Not Implemented", "... will be implemented in a later version"); // TODO
},
color: Colors.red[900]),
], ],
), ),
); );

View File

@ -220,7 +220,9 @@ class _SettingsRootPageState extends State<SettingsRootPage> {
leading: Icon(FontAwesomeIcons.solidWaveform), leading: Icon(FontAwesomeIcons.solidWaveform),
title: Text('Notification Sound'), title: Text('Notification Sound'),
value: Text(ncf.sound ?? '(Default)'), value: Text(ncf.sound ?? '(Default)'),
onPressed: (context) => {/*TODO*/}, onPressed: (context) => {
Toaster.info("Not Implemented", "... will be implemented in a later version") // TODO
},
), ),
SettingsTile.switchTile( SettingsTile.switchTile(
initialValue: ncf.playSound, initialValue: ncf.playSound,
@ -238,7 +240,9 @@ class _SettingsRootPageState extends State<SettingsRootPage> {
leading: Icon(FontAwesomeIcons.solidStopwatch20), leading: Icon(FontAwesomeIcons.solidStopwatch20),
title: Text('Auto Timeout'), title: Text('Auto Timeout'),
value: Text((ncf.timeoutAfter != null) ? "${ncf.timeoutAfter} sec" : "(None)"), value: Text((ncf.timeoutAfter != null) ? "${ncf.timeoutAfter} sec" : "(None)"),
onPressed: (context) => {/*TODO*/}, onPressed: (context) => {
Toaster.info("Not Implemented", "... will be implemented in a later version") // TODO
},
), ),
]; ];
} }