enabled togglable chat history (during runtime) that uses different api endpoints.

This commit is contained in:
Joshua
2024-07-08 13:03:15 -06:00
parent 8956ed7885
commit ff4a54fbbc
4 changed files with 99 additions and 84 deletions
@@ -9,7 +9,7 @@ class ChatBubbleWidget extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: c.isMe ? MainAxisAlignment.end : MainAxisAlignment.start,
mainAxisAlignment: c.role ? MainAxisAlignment.end : MainAxisAlignment.start,
children: [
Container(
padding: const EdgeInsets.all(16.0),
@@ -18,14 +18,14 @@ class ChatBubbleWidget extends StatelessWidget{
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(12.0),
topRight: const Radius.circular(12.0),
bottomLeft: c.isMe ? const Radius.circular(12.0) : const Radius
bottomLeft: c.role ? const Radius.circular(12.0) : const Radius
.circular(0.0),
bottomRight: c.isMe ? const Radius.circular(12.0) : const Radius
bottomRight: c.role ? const Radius.circular(12.0) : const Radius
.circular(0.0),
),
color: c.isMe ? Colors.blue[200] : Colors.grey[200],
color: c.role ? Colors.blue[200] : Colors.grey[200],
),
child: Text(c.message),
child: Text(c.content),
),
],
);