sort groups by creation date in GroupsView
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m12s
Pull Request Pipeline / lint (pull_request) Successful in 2m12s

This commit is contained in:
2025-11-22 22:55:19 +01:00
parent 692b412fe2
commit c170aa1775

View File

@@ -69,9 +69,9 @@ class _GroupsViewState extends State<GroupsView> {
} }
final bool isLoading = final bool isLoading =
snapshot.connectionState == ConnectionState.waiting; snapshot.connectionState == ConnectionState.waiting;
final List<Group> groups = isLoading final List<Group> groups =
? skeletonData isLoading ? skeletonData : (snapshot.data ?? [])
: (snapshot.data ?? []); ..sort((a, b) => b.createdAt.compareTo(a.createdAt));
return Skeletonizer( return Skeletonizer(
effect: PulseEffect( effect: PulseEffect(
from: Colors.grey[800]!, from: Colors.grey[800]!,