Split duration to the second
This commit is contained in:
parent
4a57a4c603
commit
ecfb9d7c16
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ class ImageGrid extends ConsumerWidget {
|
|||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
assetGroup[index].duration.toString(),
|
||||
assetGroup[index].duration.toString().substring(0, 7),
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 10,
|
||||
|
|
|
@ -47,7 +47,7 @@ class ThumbnailImage extends HookWidget {
|
|||
cacheKey: "${asset.id}-${cacheKey.value}",
|
||||
width: 300,
|
||||
height: 300,
|
||||
memCacheHeight: asset.type == 'IMAGE' ? 200 : 500,
|
||||
memCacheHeight: asset.type == 'IMAGE' ? 250 : 400,
|
||||
fit: BoxFit.cover,
|
||||
imageUrl: thumbnailRequestUrl,
|
||||
httpHeaders: {"Authorization": "Bearer ${box.get(accessTokenKey)}"},
|
||||
|
|
Loading…
Add table
Reference in a new issue