Skip to content

An open-source cross-platform alternative to AirDrop

feat: decrease animation duration for progress bar

Tien Do Nam838c84115e1d
diff --git a/app/lib/pages/progress_page.dart b/app/lib/pages/progress_page.dart
index 9953edc2..42be909f 100644
--- a/app/lib/pages/progress_page.dart
+++ b/app/lib/pages/progress_page.dart
@@ -432,9 +432,9 @@ class _ProgressPageState extends State<ProgressPage> with Refena {
style: const TextStyle(fontSize: 20),
),
const SizedBox(height: 5),
- TweenAnimationBuilder<double>(
+ TweenAnimationBuilder(
tween: Tween<double>(begin: 0, end: _totalBytes == 0 ? 0 : currBytes / _totalBytes),
- duration: Duration(seconds: 1),
+ duration: const Duration(milliseconds: 200),
curve: Curves.easeOut,
builder: (context, value, child) {
return CustomProgressBar(