AvatarWidget.support constructor
- UserId? me,
- Key? key,
- AvatarRadius? radius,
- double opacity = 1,
- AvatarShape shape = AvatarShape.circle,
- bool isOnline = false,
- bool isAway = false,
- BoxConstraints? constraints,
Builds an AvatarWidget for a User-support.
Implementation
factory AvatarWidget.support({
UserId? me,
Key? key,
AvatarRadius? radius,
double opacity = 1,
AvatarShape shape = AvatarShape.circle,
bool isOnline = false,
bool isAway = false,
BoxConstraints? constraints,
}) {
return AvatarWidget(
color: 0,
label: LayoutBuilder(
builder: (context, constraints) {
return SvgImage.asset(
'assets/images/support.svg',
width: constraints.maxHeight * 0.8,
height: constraints.maxHeight * 0.8,
);
},
),
isOnline: isOnline,
isAway: isAway,
key: key,
radius: radius,
opacity: opacity,
shape: shape,
constraints: constraints,
);
}