AgentBubble constructor

const AgentBubble({
  1. Color bgColor = Colors.green,
  2. Color loaderColor = Colors.white,
  3. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 14),
  4. TextStyle timeTextStyle = const TextStyle(color: Colors.white70, fontSize: 8),
  5. AudioMessageStyle audioMessage = const AudioMessageStyle(playPauseIconColor: Colors.white, sliderColor: Colors.white70, downloadIconColor: Colors.white, durationStyle: TextStyle(color: Colors.white, fontSize: 12)),
  6. VideoMessageStyle videoMessage = const VideoMessageStyle(playButtonColor: Colors.black),
  7. 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,
  ),
});