defaultAvatar static method

Widget defaultAvatar({
  1. double width = 30,
  2. double height = 30,
  3. Color? color,
  4. bool isGroup = false,
})

Implementation

static Widget defaultAvatar({
  double width = 30,
  double height = 30,
  Color? color,
  bool isGroup = false,
}) {
  return Image(
    gaplessPlayback: true,
    color: color,
    width: width,
    height: height,
    image: (isGroup
            ? ChatUIKitSettings.groupAvatarPlaceholder
            : ChatUIKitSettings.avatarPlaceholder) ??
        AssetImage('assets/images/avatar.png', package: packageName),
    fit: BoxFit.fill,
  );
}