mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 09:28:41 +00:00
sort users
This commit is contained in:
parent
6abfecb4f3
commit
6ec26c089f
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ class HeadLineComponent extends StatelessWidget {
|
|||
padding: EdgeInsets.symmetric(horizontal: 4.0, vertical: 10),
|
||||
child: Text(
|
||||
text,
|
||||
style: TextStyle(fontSize: 20),
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ class UserList extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
// Step 1: Sort the users alphabetically
|
||||
users
|
||||
.sort((a, b) => a.lastMessageExchange.compareTo(b.lastMessageExchange));
|
||||
.sort((a, b) => b.lastMessageExchange.compareTo(a.lastMessageExchange));
|
||||
|
||||
return ListView.builder(
|
||||
restorationId: 'new_message_users_list',
|
||||
|
|
|
|||
Loading…
Reference in a new issue