♻️ Refactored all ScaffoldMessager to use unifined snackbar API

This commit is contained in:
2025-11-22 18:42:12 +08:00
parent f50a19f573
commit 5deb910fa4
13 changed files with 36 additions and 111 deletions

View File

@@ -751,12 +751,7 @@ class ComposeLogic {
return post;
} catch (err) {
// Show error message if context is mounted
if (context.mounted) {
ScaffoldMessenger.of(
context,
).showSnackBar(SnackBar(content: Text('Error: $err')));
}
showErrorAlert(err);
rethrow;
} finally {
state.submitting.value = false;