Преглед изворни кода

Merge pull request #31 from CaiJingLong/fix-video-badge

fix video badge
C пре 6 година
родитељ
комит
61165a4d7d
No account linked to committer's email address
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      lib/src/delegate/badge_delegate.dart

+ 2
- 2
lib/src/delegate/badge_delegate.dart Прегледај датотеку

50
   @override
50
   @override
51
   Widget buildBadge(BuildContext context, AssetType type, Duration duration) {
51
   Widget buildBadge(BuildContext context, AssetType type, Duration duration) {
52
     if (type == AssetType.video) {
52
     if (type == AssetType.video) {
53
-      var s = duration.inSeconds;
54
-      var m = duration.inMinutes;
53
+      var s = duration.inSeconds % 60;
54
+      var m = duration.inMinutes % 60;
55
       var h = duration.inHours;
55
       var h = duration.inHours;
56
 
56
 
57
       String text =
57
       String text =