Fix member list
This commit is contained in:
parent
76b81ab8c4
commit
919e8d11b2
1 changed files with 23 additions and 17 deletions
|
|
@ -25,25 +25,31 @@ class AvatarOrHash extends StatelessWidget {
|
||||||
color: ColorHash(title).color,
|
color: ColorHash(title).color,
|
||||||
child: Center(child: Text(title[0])),
|
child: Center(child: Text(title[0])),
|
||||||
);
|
);
|
||||||
return Center(
|
return SizedBox(
|
||||||
|
width: height,
|
||||||
|
height: height,
|
||||||
|
child: Center(
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||||
child: Badge(
|
child: Badge(
|
||||||
isLabelVisible: hasBadge,
|
isLabelVisible: hasBadge,
|
||||||
smallSize: 10,
|
smallSize: 10,
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
|
child: SizedBox(
|
||||||
|
width: height,
|
||||||
|
height: height,
|
||||||
child: avatar == null
|
child: avatar == null
|
||||||
? fallback ?? box
|
? fallback ?? box
|
||||||
: Image.network(
|
: Image.network(
|
||||||
avatar.toString(),
|
avatar.toString(),
|
||||||
headers: headers,
|
headers: headers,
|
||||||
width: height,
|
|
||||||
height: height,
|
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
errorBuilder: (_, _, _) => box,
|
errorBuilder: (_, _, _) => box,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue