chore: Follow up other party has no keys

This commit is contained in:
Krille 2025-01-13 16:08:08 +01:00
commit 2fef6faa1a
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 11 additions and 1 deletions

View file

@ -131,9 +131,15 @@ class SendFileDialogState extends State<SendFileDialog> {
scaffoldMessenger.clearSnackBars();
} catch (e) {
scaffoldMessenger.clearSnackBars();
final theme = Theme.of(context);
scaffoldMessenger.showSnackBar(
SnackBar(
content: Text(e.toLocalizedString(widget.outerContext)),
backgroundColor: theme.colorScheme.errorContainer,
closeIconColor: theme.colorScheme.onErrorContainer,
content: Text(
e.toLocalizedString(widget.outerContext),
style: TextStyle(color: theme.colorScheme.onErrorContainer),
),
duration: const Duration(seconds: 30),
showCloseIcon: true,
),