Commit 406446a 1 parent aada65d commit 406446a Copy full SHA for 406446a
File tree 3 files changed +19
-8
lines changed
3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:provider/provider.dart' ;
2
2
import 'package:fluent_ui/fluent_ui.dart' ;
3
3
import 'package:mesh_gradient/mesh_gradient.dart' ;
4
+ import 'package:animated_flip_counter/animated_flip_counter.dart' ;
4
5
5
6
import '../../utils/color_brightness.dart' ;
6
7
import '../../messages/library_manage.pb.dart' ;
@@ -68,17 +69,18 @@ class _ScanningPageState extends State<ScanningPage>
68
69
textAlign: TextAlign .center,
69
70
),
70
71
const SizedBox (height: 12 ),
71
- Text (
72
- count > 1
73
- ? task == ScanTaskType .IndexFiles
74
- ? '$count tracks found'
75
- : '$count cover arts collected'
76
- : "Sit back and relax" ,
77
- style: typography.bodyLarge? .apply (
72
+ AnimatedFlipCounter (
73
+ value: count,
74
+ duration: const Duration (milliseconds: 400 ),
75
+ curve: Curves .easeInOut,
76
+ suffix: task == ScanTaskType .IndexFiles
77
+ ? ' tracks found'
78
+ : ' cover arts collected' ,
79
+ textStyle: typography.bodyLarge? .apply (
78
80
color: Colors .white,
79
81
fontWeightDelta: - 50 ,
80
82
),
81
- )
83
+ ),
82
84
],
83
85
),
84
86
),
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ packages:
22
22
url: "https://pub.dev"
23
23
source: hosted
24
24
version: "6.7.0"
25
+ animated_flip_counter:
26
+ dependency: "direct main"
27
+ description:
28
+ name: animated_flip_counter
29
+ sha256: "73f852d84c461c3e4c1ddf320bee334dde8dba89441922ab11a8013be0b2fad1"
30
+ url: "https://pub.dev"
31
+ source: hosted
32
+ version: "0.3.4"
25
33
args:
26
34
dependency: transitive
27
35
description:
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ dependencies:
72
72
device_info_plus : ^10.1.2
73
73
macos_secure_bookmarks : ^0.2.1
74
74
permission_handler : ^11.3.1
75
+ animated_flip_counter : ^0.3.4
75
76
76
77
dev_dependencies :
77
78
build_runner : ^2.4.11
You can’t perform that action at this time.
0 commit comments