Video player working correctly

This commit is contained in:
Alex Tran 2022-02-05 23:55:05 -06:00
parent 782621c7b9
commit 211d627a96
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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)}"},