feat: replace mail protocol with smolmail and rebuild the UI

This commit is contained in:
randogoth 2026-09-26 22:45:38 +03:00
parent cb24b68069
commit e94e4158cc
93 changed files with 6387 additions and 3479 deletions

View file

@ -0,0 +1,15 @@
import "package:flutter/material.dart";
/// Errors get the error color explicitly — the theme's default SnackBar is
/// neutral, so a plain SnackBar(content: ...) is *not* red anymore.
void showErrorSnackBar(BuildContext context, String message,
{Duration? duration}) {
final scheme = Theme.of(context).colorScheme;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
backgroundColor: scheme.error,
duration: duration ?? const Duration(seconds: 4),
content: Text(message, style: TextStyle(color: scheme.onError)),
),
);
}