develop-fix-geolocation #91

Merged
Pupsi merged 3 commits from develop-fix-geolocation into develop 2025-10-01 17:08:17 +00:00
3 changed files with 8 additions and 3 deletions

View File

@@ -120,4 +120,5 @@ enum RichObjectStringObjectType {
@JsonValue('guest') guest, @JsonValue('guest') guest,
@JsonValue('highlight') highlight, @JsonValue('highlight') highlight,
@JsonValue('talk-poll') talkPoll, @JsonValue('talk-poll') talkPoll,
@JsonValue('geo-location') geoLocation,
} }

View File

@@ -113,4 +113,5 @@ const _$RichObjectStringObjectTypeEnumMap = {
RichObjectStringObjectType.guest: 'guest', RichObjectStringObjectType.guest: 'guest',
RichObjectStringObjectType.highlight: 'highlight', RichObjectStringObjectType.highlight: 'highlight',
RichObjectStringObjectType.talkPoll: 'talk-poll', RichObjectStringObjectType.talkPoll: 'talk-poll',
RichObjectStringObjectType.geoLocation: 'geo-location',
}; };

View File

@@ -13,8 +13,11 @@ class ParticipantsListView extends StatelessWidget {
lastname(participant) => participant.displayName.toString().split(' ').last; lastname(participant) => participant.displayName.toString().split(' ').last;
final participants = participantsResponse.data final participants = participantsResponse.data
.sorted((a, b) => lastname(a).compareTo(lastname(b))) .sorted((a, b) {
.sorted((a, b) => a.participantType.index.compareTo(b.participantType.index)); final typeComparison = a.participantType.index.compareTo(b.participantType.index);
MineTec marked this conversation as resolved Outdated

t benennen

`t` benennen
if (typeComparison != 0) return typeComparison;
return lastname(a).compareTo(lastname(b));
});
var groupedParticipants = participants.groupListsBy((participant) => participant.participantType); var groupedParticipants = participants.groupListsBy((participant) => participant.participantType);
return Scaffold( return Scaffold(
@@ -27,7 +30,7 @@ class ParticipantsListView extends StatelessWidget {
children: [ children: [
ListTile( ListTile(
title: Text(entry.key.prettyName), title: Text(entry.key.prettyName),
titleTextStyle: TextStyle(fontWeight: FontWeight.bold), titleTextStyle: Theme.of(context).textTheme.titleMedium
), ),
...entry.value.map((participant) => ListTile( ...entry.value.map((participant) => ListTile(
leading: UserAvatar(id: participant.actorId), leading: UserAvatar(id: participant.actorId),