VRoomTheme.dark constructor

VRoomTheme.dark()

Implementation

factory VRoomTheme.dark() {
  return VRoomTheme._(
    scaffoldDecoration: const BoxDecoration(),
    muteIcon: const Icon(Icons.notifications_off),
    selectedRoomColor: Colors.white.withOpacity(.2),
    getChatTitle: (title) {
      return Text(
        title,
        style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 18),
        overflow: TextOverflow.ellipsis,
      );
    },
    getChatAvatar: ({
      required chatTitle,
      required imageUrl,
      required isOnline,
      required size,
    }) {
      return VChatAvatarImage(
        imageUrl: imageUrl,
        isOnline: isOnline,
        size: size,
        chatTitle: chatTitle,
      );
    },
    unSeenLastMessageTextStyle: const TextStyle(
      overflow: TextOverflow.ellipsis,
      fontWeight: FontWeight.w500,
      color: Colors.white,
    ),
    seenLastMessageTextStyle:
        const TextStyle(overflow: TextOverflow.ellipsis, color: Colors.grey),
    lastMessageStatus: const VMsgStatusTheme.dark(),
  );
}