Skip to main content

Card

CometChatCard is a prebuilt widget which is used to display a card with title, subtitle, avatar and bottom view.

Properties

PropertiesTypeDescription
titleStringused to set title for card
subtitleStringused to set sub title for card
avatarCometChatAvatarused to set avatar for card
cardStyleCardStyleused to set style for card
avatarStyleAvatarStyleused to set style for avatar
avatarNameStringused to set avatar name for avatar
avatarUrlStringused to set avatar url for avatar
bottomViewWidgetused to set bottom view for card

CardStyle

PropertiesTypeDescription
titleStyleTextStyleused to customise the appearance of the title
subtitleStyleTextStyleused to customise the appearance of the sub title
heightdoubleused to set height
widthdoubleused to set width
backgroundColorused to set the background color
borderBoxBorderused to set border
borderRadiusdoubleused to set border radius
gradientGradientused to set background gradient

Usage

CometChatCard(
title: 'Title',
subtitle: 'Subtitle',
avatar: CometChatAvatar(),
bottomView: Text('Bottom View'),
);