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