AvatarWidget.support constructor

AvatarWidget.support({
  1. UserId? me,
  2. Key? key,
  3. AvatarRadius? radius,
  4. double opacity = 1,
  5. AvatarShape shape = AvatarShape.circle,
  6. bool isOnline = false,
  7. bool isAway = false,
  8. 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,
  );
}