Fixed sorting on files, removed some logging

This commit is contained in:
2023-07-16 22:15:24 +02:00
parent 575343ff82
commit a5b2242dc3
17 changed files with 210 additions and 180 deletions

View File

@ -1,4 +1,3 @@
import 'dart:developer';
import 'package:flutter/material.dart';
@ -37,7 +36,6 @@ class _MessageReactionsState extends State<MessageReactions> {
future: data,
builder: (context, snapshot) {
if(snapshot.data == null) return const LoadingSpinner();
log(snapshot.data!.toJson().toString());
return ListView(
children: [
...snapshot.data!.data.entries.map<Widget>((entry) {
@ -48,7 +46,7 @@ class _MessageReactionsState extends State<MessageReactions> {
collapsedIconColor: Theme.of(context).colorScheme.onSurface,
subtitle: const Text("Tippe für mehr"),
leading: Text(entry.key),
leading: CenteredLeading(Text(entry.key)),
title: Text("${entry.value.length} mal reagiert"),
children: entry.value.map((e) {
bool isSelf = AccountData().getUsername() == e.actorId;