Fix member list
This commit is contained in:
parent
76b81ab8c4
commit
919e8d11b2
1 changed files with 23 additions and 17 deletions
|
|
@ -25,23 +25,29 @@ 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(
|
||||||
child: ClipRRect(
|
width: height,
|
||||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
height: height,
|
||||||
child: Badge(
|
child: Center(
|
||||||
isLabelVisible: hasBadge,
|
child: ClipRRect(
|
||||||
smallSize: 10,
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
child: Badge(
|
||||||
child: avatar == null
|
isLabelVisible: hasBadge,
|
||||||
? fallback ?? box
|
smallSize: 10,
|
||||||
: Image.network(
|
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
avatar.toString(),
|
child: SizedBox(
|
||||||
headers: headers,
|
width: height,
|
||||||
width: height,
|
height: height,
|
||||||
height: height,
|
child: avatar == null
|
||||||
fit: BoxFit.contain,
|
? fallback ?? box
|
||||||
errorBuilder: (_, _, _) => box,
|
: Image.network(
|
||||||
),
|
avatar.toString(),
|
||||||
|
headers: headers,
|
||||||
|
fit: BoxFit.contain,
|
||||||
|
errorBuilder: (_, _, _) => box,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue