💫 Animated attachment preview progress bar

This commit is contained in:
2026-01-11 13:42:55 +08:00
parent b7d5aa5dfb
commit a984cba2fa

View File

@@ -392,7 +392,12 @@ class AttachmentPreview extends HookConsumerWidget {
),
Gap(6),
Center(
child: LinearProgressIndicator(value: progress),
child: TweenAnimationBuilder<double>(
tween: Tween<double>(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,
);
}
}
}