CometChatAudioBubbleStyle class
CometChatAudioBubbleStyle is a data class that has styling-related properties to customize the appearance of CometChatAudioBubble
CometChatAudioBubbleStyle(
playIconColor: Colors.white,
playIconBackgroundColor: Colors.red,
backgroundColor: Colors.white,
border: Border.all(color: Colors.red),
borderRadius: BorderRadius.circular(10),
);
- Inheritance
-
- Object
- ThemeExtension<
CometChatAudioBubbleStyle> - CometChatAudioBubbleStyle
Constructors
- CometChatAudioBubbleStyle.new({Color? playIconColor, Color? playIconBackgroundColor, Color? backgroundColor, BoxBorder? border, BorderRadiusGeometry? borderRadius, Color? downloadIconColor, Color? audioBarColor, CometChatAvatarStyle? messageBubbleAvatarStyle, CometChatDateStyle? messageBubbleDateStyle, DecorationImage? messageBubbleBackgroundImage, TextStyle? threadedMessageIndicatorTextStyle, Color? threadedMessageIndicatorIconColor, TextStyle? senderNameTextStyle, CometChatMessageReceiptStyle? messageReceiptStyle, Color? durationTextColor, TextStyle? durationTextStyle})
-
const
Properties
- audioBarColor → Color?
-
audioBarColor provides color to the audio bar visualizer
final
- backgroundColor → Color?
-
backgroundColor provides background color to the audio bubble
final
- border → BoxBorder?
-
border provides border to the audio bubble
final
- borderRadius → BorderRadiusGeometry?
-
borderRadius provides border radius to the audio bubble
final
- downloadIconColor → Color?
-
downloadIconColor provides color to the download icon
final
- durationTextColor → Color?
-
durationTextColor provides color to the duration text
final
- durationTextStyle → TextStyle?
-
durationTextStyle provides style to the duration text
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageBubbleAvatarStyle → CometChatAvatarStyle?
-
messageBubbleAvatarStyle provides style to the avatar of the sender
final
- messageBubbleBackgroundImage → DecorationImage?
-
messageBubbleBackgroundImage provides background image to the message bubble of the sent message
final
- messageBubbleDateStyle → CometChatDateStyle?
-
messageBubbleDateStyle provides style to the date of the message bubble
final
- messageReceiptStyle → CometChatMessageReceiptStyle?
-
messageReceiptStyle provides style to the message receipt
final
- playIconBackgroundColor → Color?
-
playIconBackgroundColor provides background color to the audio bubble
final
- playIconColor → Color?
-
playIconColor provides color to the audio play/pause icon
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderNameTextStyle → TextStyle?
-
senderNameTextStyle provides style to the sender name of the message
final
- threadedMessageIndicatorIconColor → Color?
-
threadedMessageIndicatorIconColor provides color to the threaded message icon
final
- threadedMessageIndicatorTextStyle → TextStyle?
-
threadedMessageIndicatorTextStyle provides text style to the threaded message indicator
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{Color? playIconColor, Color? backgroundColor, BoxBorder? border, BorderRadiusGeometry? borderRadius, Color? playIconBackgroundColor, Color? downloadIconColor, Color? audioBarColor, CometChatAvatarStyle? messageBubbleAvatarStyle, CometChatDateStyle? messageBubbleDateStyle, DecorationImage? messageBubbleBackgroundImage, TextStyle? threadedMessageIndicatorTextStyle, Color? threadedMessageIndicatorIconColor, TextStyle? senderNameTextStyle, CometChatMessageReceiptStyle? messageReceiptStyle, Color? durationTextColor, TextStyle? durationTextStyle}) → CometChatAudioBubbleStyle -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant CometChatAudioBubbleStyle? other, double t) → CometChatAudioBubbleStyle -
Linearly interpolate with another ThemeExtension object.
override
-
merge(
CometChatAudioBubbleStyle? style) → CometChatAudioBubbleStyle -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → CometChatAudioBubbleStyle