add customize_channel_preview example

This commit is contained in:
Salvatore Giordano
2020-02-25 12:09:17 +01:00
parent 81f0381a96
commit 65d9d7889d
7 changed files with 156 additions and 91 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ void main() async {
final client = Client('qk4nn7rpcn75');
await client.setUser(
User(id: "wild-breeze-7"),
User(id: 'wild-breeze-7'),
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoid2lsZC1icmVlemUtNyJ9.VM2EX1EXOfgqa-bTH_3JzeY0T99ngWzWahSauP3dBMo',
);
@@ -29,7 +29,7 @@ class ChannelListPage extends StatelessWidget {
'\$in': [StreamChat.of(context).user.id],
}
},
sort: [SortOption("last_message_at")],
sort: [SortOption('last_message_at')],
pagination: PaginationParams(
limit: 20,
),