From a984cba2fa1290ce0619fa2e5984625387ed8f36 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 11 Jan 2026 13:42:55 +0800 Subject: [PATCH] :dizzy: Animated attachment preview progress bar --- lib/widgets/content/attachment_preview.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/widgets/content/attachment_preview.dart b/lib/widgets/content/attachment_preview.dart index 4920c693..28e771f3 100644 --- a/lib/widgets/content/attachment_preview.dart +++ b/lib/widgets/content/attachment_preview.dart @@ -392,7 +392,12 @@ class AttachmentPreview extends HookConsumerWidget { ), Gap(6), Center( - child: LinearProgressIndicator(value: progress), + child: TweenAnimationBuilder( + tween: Tween(begin: 0.0, end: progress), + duration: const Duration(milliseconds: 300), + curve: Curves.easeInOut, + builder: (context, value, child) => LinearProgressIndicator(value: value), + ), ), ], ), @@ -600,4 +605,4 @@ class AttachmentPreview extends HookConsumerWidget { child: contentWidget, ); } -} +} \ No newline at end of file