messageTextBuilder: (message, previousMessage, nextMessage) {
// You can detect if this message is from the bot or user
bool isUserMessage = [Link] == [Link];
return Container(
padding: const [Link](12),
margin: const [Link](vertical: 4, horizontal:
8),
decoration: BoxDecoration(
color: isUserMessage ? [Link] :
[Link][200],
borderRadius: [Link](16),
),
child: MarkdownBody( // <- render the [Link] as
Markdown
data: [Link] ?? "",
styleSheet: MarkdownStyleSheet(
p: TextStyle(
fontSize: 16,
color: isUserMessage ? [Link] : [Link],
),
h1: TextStyle(
fontSize: 22,
fontWeight: [Link],
color: isUserMessage ? [Link] : [Link],
),
h2: TextStyle(
fontSize: 20,
fontWeight: [Link],
color: isUserMessage ? [Link] : [Link],
),
h3: TextStyle(
fontSize: 18,
fontWeight: [Link],
color: isUserMessage ? [Link] : [Link],
),
listBullet: TextStyle(
fontSize: 16,
color: isUserMessage ? [Link] : [Link],
),
),
),
);
},