forked from firka/student-legacy
made ad tile image circular
This commit is contained in:
parent
c4dc03f41d
commit
056bf7ab58
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user