CometChatAudioBubble is the content view for a MediaMessage if the media sent is an audio.
Properties
| Properties | Type | Description |
|---|---|---|
| audioUrl | String | the path of the image to display |
| placeholderImage | String | the path of the image from assets to display when the actual image is being fetched |
| placeHolderImagePackageName | String | the package of the asset image to display when the actual image is being fetched |
| title | String | a text to display as name of the audio file |
| subtitle | String | a text to display below the name of the audio file |
| style | AudioBubbleStyle | used to customize appearance of this widget |
| theme | CometChatTheme | used to set custom theme |
| playIcon | Icon | customize the icon to display to play the audio |
| pauseIcon | Icon | customize the icon to display to pause the audio |
AudioBubbleStyle
AudioBubbleStyle is the class containing attributes to customize appearance of this widget.| Properties | Type | Description |
|---|---|---|
| titleStyle | TextStyle | used to set style of the name of the audio file |
| subtitleStyle | TextStyle | used to set style of the text below the name of the audio file |
| playIconTint | Color | used to provide color to the audio play icon |
| pauseIconTint | Color | used to provide color to the audio pause icon |
| height | double | used to set height |
| width | double | used to set width |
| background | Color | used to set background color |
| gradient | Gradient | used to set a gradient background |
| border | BoxBorder | used to set border |
| borderRadius | double | used to set border radius |
Usage
- Dart