This commit is contained in:
2023-02-20 13:32:14 +01:00
parent fea36b9a6d
commit edd8c1600a
27 changed files with 17 additions and 87 deletions

View File

@ -1,4 +1,3 @@
import 'dart:developer';
import 'package:bubble/bubble.dart';
import 'package:flutter/material.dart';
@ -63,7 +62,6 @@ class _ChatViewState extends State<ChatView> {
List<Bubble> messages = List<Bubble>.empty(growable: true);
if(!data.primaryLoading()) {
String lastActor = "";
bool showMetadata = true;
data.getChatResponse.sortByTimestamp().forEach((element) {
@ -93,7 +91,7 @@ class _ChatViewState extends State<ChatView> {
child: Positioned(
top: 0,
left: 0,
child: Text("${element.actorDisplayName}", style: TextStyle(fontWeight: FontWeight.bold, color: Theme.of(context).primaryColor)),
child: Text(element.actorDisplayName, style: TextStyle(fontWeight: FontWeight.bold, color: Theme.of(context).primaryColor)),
),
),
Padding(
@ -114,8 +112,6 @@ class _ChatViewState extends State<ChatView> {
],
),
));
lastActor = element.actorId;
});
}