1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-31 08:04:51 +01:00

fix: avatar size

This commit is contained in:
Rongjian Zhang 2020-02-03 14:41:24 +08:00
parent f856a1bfee
commit 12bb22bda9

View File

@ -30,7 +30,7 @@ class Avatar extends StatelessWidget {
final widget = ClipRRect(
borderRadius: borderRadius ?? BorderRadius.circular(size / 2),
child: url == null
? Image.asset(fallback)
? Image.asset(fallback, width: size, height: size)
: FadeInImage.assetNetwork(
placeholder: fallback,
image: url,