chore: pre-commit ci hook, dart format

This commit is contained in:
edde746
2026-04-18 12:40:35 +02:00
parent 2bd9e6655f
commit 3da51f9d64
128 changed files with 2056 additions and 2048 deletions
-7
View File
@@ -65,13 +65,6 @@ void showGlobalErrorSnackBar(String message) {
);
}
/// Shows an info snackbar using the root ScaffoldMessenger (survives navigation).
void showGlobalSnackBar(String message, {Duration duration = const Duration(seconds: 2)}) {
rootScaffoldMessengerKey.currentState
?..removeCurrentSnackBar()
..showSnackBar(SnackBar(content: Text(message), duration: duration));
}
/// Shows an info snackbar through the main-screen messenger when available
/// (so it floats above the mobile NavigationBar), falling back to the root
/// messenger when the main screen is not mounted.