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(
borderRadius: BorderRadius.circular(50.0),
child: Image.network(
ad.logoUrl.toString(), ad.logoUrl.toString(),
errorBuilder: (context, error, stackTrace) { errorBuilder: (context, error, stackTrace) {
ad.logoUrl = null; ad.logoUrl = null;
return const SizedBox(); return const SizedBox();
}, },
),
) )
: null, : null,
trailing: const Icon(FeatherIcons.externalLink), trailing: const Icon(FeatherIcons.externalLink),