Browse Source

Video player working correctly

Alex Tran 3 years ago
parent
commit
211d627a96

+ 1 - 1
mobile/lib/modules/home/ui/image_grid.dart

@@ -30,7 +30,7 @@ class ImageGrid extends ConsumerWidget {
                           child: Row(
                             children: [
                               Text(
-                                assetGroup[index].duration.toString().substring(0, 7),
+                                assetGroup[index].duration.toString(),
                                 style: const TextStyle(
                                   color: Colors.white,
                                   fontSize: 10,

+ 1 - 1
mobile/lib/modules/home/ui/thumbnail_image.dart

@@ -47,7 +47,7 @@ class ThumbnailImage extends HookWidget {
           cacheKey: "${asset.id}-${cacheKey.value}",
           width: 300,
           height: 300,
-          memCacheHeight: asset.type == 'IMAGE' ? 250 : 500,
+          memCacheHeight: asset.type == 'IMAGE' ? 200 : 500,
           fit: BoxFit.cover,
           imageUrl: thumbnailRequestUrl,
           httpHeaders: {"Authorization": "Bearer ${box.get(accessTokenKey)}"},