[Flutter] Fix snacbar behavior

This commit is contained in:
Erdem Yerebasmaz
2024-05-24 12:27:10 +03:00
parent 10fa1929df
commit 1777a7bfe2
6 changed files with 28 additions and 11 deletions

View File

@@ -106,7 +106,7 @@ class _HomePageState extends State<HomePage> {
final errMsg = "Failed to sync wallet. $e";
debugPrint(errMsg);
if (context.mounted) {
final snackBar = SnackBar(content: Text(errMsg));
final snackBar = SnackBar(behavior: SnackBarBehavior.floating, content: Text(errMsg));
ScaffoldMessenger.of(context).showSnackBar(snackBar);
}
}