Fehlerkorrekturen

This commit is contained in:
Sven committed 2024-02-28 20:42:22 +01:00
1 parent 5411da55b7
commit 4070fc81a6
6 files changed
+706 -26

No files matched your search

+3 -1
View File
@@ -130,7 +130,7 @@ class _MessagesPageState extends State<MessagesPage> {
}
text = text.trim();
_messages.insert(0, types.TextMessage(
_messages.add(types.TextMessage(
author: message.from == _sid ? _user : _central,
createdAt: DateTime
.parse(message.time)
@@ -139,6 +139,8 @@ class _MessagesPageState extends State<MessagesPage> {
text: text,
));
_messages.sort((a, b) => b.createdAt! > a.createdAt! ? 1 : 0);
message.read = true;
MyApp.isarInstance.writeTxnSync(() {
MyApp.isarInstance.messages.putSync(message);
+11 -6
View File
@@ -163,12 +163,16 @@ class _TaskListPageState extends State<TaskListPage> {
),
),
const SizedBox(height: 5),
Text(
taskInfo.additionalText ?? '',
textAlign: TextAlign.left,
style: TextStyle(
color: textColor,
fontSize: 12.0,
SizedBox(
width: MediaQuery.of(context).size.width * 0.7,
child: Text(
taskInfo.additionalText ?? '',
textAlign: TextAlign.left,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: textColor,
fontSize: 12.0,
),
),
),
],
@@ -317,6 +321,7 @@ class _TaskListPageState extends State<TaskListPage> {
answer.val = notice;
taskInfo.answer = jsonEncode(answer.toJson());
taskInfo.additionalText = notice;
taskInfo.completed = true;
_finishTaskProcessing(taskInfo);