migrate: flutter 3.10.0

This commit is contained in:
lollipopkit
2023-05-11 12:24:39 +08:00
parent 91f97e52b0
commit 9b0bb414db
6 changed files with 16 additions and 14 deletions

View File

@@ -23,7 +23,10 @@ bool isDarkMode(BuildContext context) =>
Theme.of(context).brightness == Brightness.dark;
void showSnackBar(BuildContext context, Widget child) =>
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: child));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: child,
behavior: SnackBarBehavior.floating,
));
void showSnackBarWithAction(
BuildContext context,