fix group images

This commit is contained in:
Salvatore Giordano
2020-11-12 18:52:10 +01:00
parent 7eb9a9dfd9
commit 0eb3aee421
+14
View File
@@ -46,10 +46,17 @@ class GroupImage extends StatelessWidget {
.take(2) .take(2)
.map((url) => Flexible( .map((url) => Flexible(
fit: FlexFit.tight, fit: FlexFit.tight,
child: FittedBox(
fit: BoxFit.cover,
clipBehavior: Clip.antiAlias,
child: Transform.scale(
scale: 1.2,
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: url, imageUrl: url,
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
),
),
)) ))
.toList(), .toList(),
), ),
@@ -64,10 +71,17 @@ class GroupImage extends StatelessWidget {
.skip(2) .skip(2)
.map((url) => Flexible( .map((url) => Flexible(
fit: FlexFit.tight, fit: FlexFit.tight,
child: FittedBox(
fit: BoxFit.cover,
clipBehavior: Clip.antiAlias,
child: Transform.scale(
scale: 1.2,
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: url, imageUrl: url,
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
),
),
)) ))
.toList(), .toList(),
), ),