Przeglądaj źródła

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

fix video badge
C 5 lat temu
rodzic
commit
61165a4d7d
No account linked to committer's email address
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      lib/src/delegate/badge_delegate.dart

+ 2
- 2
lib/src/delegate/badge_delegate.dart Wyświetl plik

@@ -50,8 +50,8 @@ class DurationBadgeDelegate extends BadgeDelegate {
50 50
   @override
51 51
   Widget buildBadge(BuildContext context, AssetType type, Duration duration) {
52 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 55
       var h = duration.inHours;
56 56
 
57 57
       String text =