From a7960da36281c532646a9f80622968f000ed263c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 30 Nov 2025 17:29:20 +0800 Subject: [PATCH] :dizzy: Adjust snackbar animation --- lib/widgets/alert.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/widgets/alert.dart b/lib/widgets/alert.dart index b8f4b5ab..f3a9cdb5 100644 --- a/lib/widgets/alert.dart +++ b/lib/widgets/alert.dart @@ -31,7 +31,11 @@ void showSnackBar(String message, {SnackBarAction? action}) { ), ), ), - curve: Curves.easeInOut, + displayDuration: const Duration(milliseconds: 1500), + animationDuration: const Duration(milliseconds: 300), + reverseAnimationDuration: const Duration(milliseconds: 300), + curve: Curves.fastLinearToSlowEaseIn, + dismissType: DismissType.onTap, snackBarPosition: SnackBarPosition.bottom, ); }