AgentBubble constructor
const
AgentBubble({
- Color bgColor = Colors.green,
- Color loaderColor = Colors.white,
- TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 14),
- TextStyle timeTextStyle = const TextStyle(color: Colors.white70, fontSize: 8),
- AudioMessageStyle audioMessage = const AudioMessageStyle(playPauseIconColor: Colors.white, sliderColor: Colors.white70, downloadIconColor: Colors.white, durationStyle: TextStyle(color: Colors.white, fontSize: 12)),
- VideoMessageStyle videoMessage = const VideoMessageStyle(playButtonColor: Colors.black),
- DocumentMessageStyle documentMessage = const DocumentMessageStyle(attachmentIconColor: Colors.black, textStyle: TextStyle(color: Colors.black, fontSize: 14), copyIconColor: Colors.grey, downloadIconColor: Colors.black),
Implementation
const AgentBubble({
this.bgColor = Colors.green,
this.loaderColor = Colors.white,
this.textStyle = const TextStyle(
color: Colors.white,
fontSize: 14,
),
this.timeTextStyle = const TextStyle(
color: Colors.white70,
fontSize: 8,
),
this.audioMessage = const AudioMessageStyle(
playPauseIconColor: Colors.white,
sliderColor: Colors.white70,
downloadIconColor: Colors.white,
durationStyle: TextStyle(color: Colors.white, fontSize: 12),
),
this.videoMessage = const VideoMessageStyle(
playButtonColor: Colors.black,
),
this.documentMessage = const DocumentMessageStyle(
attachmentIconColor: Colors.black,
textStyle: TextStyle(color: Colors.black, fontSize: 14),
copyIconColor: Colors.grey,
downloadIconColor: Colors.black,
),
});