Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Align chat tiles to top of chat view

hunteraraujoc08165c66a55
diff --git a/lib/views/chat/chat_view.dart b/lib/views/chat/chat_view.dart
index aeadb1dcfb..4efb819efc 100644
--- a/lib/views/chat/chat_view.dart
+++ b/lib/views/chat/chat_view.dart
@@ -34,11 +34,9 @@ class _ChatViewState extends State<ChatView> {
// Chat messages list
Expanded(
child: ListView.builder(
- reverse: true,
itemCount: widget.viewModel.chats.length,
itemBuilder: (context, index) {
- final reversedChats = widget.viewModel.chats.reversed.toList();
- final chat = reversedChats[index];
+ final chat = widget.viewModel.chats[index];
if (chat.messageType == MessageType.user) {
return UserMessageTile(message: chat.message);
} else {