fix heic pics

This commit is contained in:
Salvatore Giordano
2020-11-27 15:08:29 +01:00
parent 06f3803e45
commit 1c2f916070
5 changed files with 35 additions and 49 deletions
+12 -2
View File
@@ -37,7 +37,6 @@ class _MediaListViewState extends State<MediaListView> {
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
),
cacheExtent: 1000,
itemBuilder: (
context,
position,
@@ -88,7 +87,7 @@ class _MediaListViewState extends State<MediaListView> {
),
),
),
if (media.type == AssetType.video)
if (media.type == AssetType.video) ...[
Positioned(
left: 8,
bottom: 10,
@@ -97,6 +96,17 @@ class _MediaListViewState extends State<MediaListView> {
package: 'stream_chat_flutter',
),
),
Positioned(
right: 4,
bottom: 10,
child: Text(
'${media.videoDuration.inMinutes}:${media.videoDuration.inSeconds.toString().padLeft(2, '0')}',
style: TextStyle(
color: Colors.white,
),
),
),
]
],
),
onTap: () {