made ad tile image circular

This commit is contained in:
Kima 2023-09-18 20:33:20 +02:00
parent c4dc03f41d
commit 056bf7ab58

View File

@ -35,12 +35,15 @@ class AdTile extends StatelessWidget {
], ],
), ),
leading: ad.logoUrl != null leading: ad.logoUrl != null
? Image.network( ? ClipRRect(
ad.logoUrl.toString(), borderRadius: BorderRadius.circular(50.0),
errorBuilder: (context, error, stackTrace) { child: Image.network(
ad.logoUrl = null; ad.logoUrl.toString(),
return const SizedBox(); errorBuilder: (context, error, stackTrace) {
}, ad.logoUrl = null;
return const SizedBox();
},
),
) )
: null, : null,
trailing: const Icon(FeatherIcons.externalLink), trailing: const Icon(FeatherIcons.externalLink),