bump version

This commit is contained in:
Salvatore Giordano
2020-04-02 11:39:15 +02:00
parent 7f24650af9
commit 4eeb3dfc43
3 changed files with 36 additions and 17 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
## 0.1.13 ## 0.1.14
- Add automatic keep alive to streamchat - Add automatic keep alive to streamchat
+24 -5
View File
@@ -28,19 +28,24 @@ class MyApp extends StatelessWidget {
brightness: Brightness.light, brightness: Brightness.light,
), ),
), ),
home: StreamChat( home: ChannelListPage(client: client),
client: client,
child: ChannelListPage(),
),
); );
} }
} }
class ChannelListPage extends StatelessWidget { class ChannelListPage extends StatelessWidget {
final Client client;
ChannelListPage({this.client});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
body: ChannelListView( body: PageView(
children: <Widget>[
StreamChat(
client: client,
child: Builder(
builder: (context) => ChannelListView(
filter: { filter: {
'members': { 'members': {
'\$in': [StreamChat.of(context).user.id], '\$in': [StreamChat.of(context).user.id],
@@ -52,6 +57,20 @@ class ChannelListPage extends StatelessWidget {
), ),
channelWidget: ChannelPage(), channelWidget: ChannelPage(),
), ),
),
),
StreamChat(
client: client,
child: ChannelListView(
sort: [SortOption('last_message_at')],
pagination: PaginationParams(
limit: 20,
),
channelWidget: ChannelPage(),
),
),
],
),
); );
} }
} }
+1 -1
View File
@@ -1,7 +1,7 @@
name: stream_chat_flutter name: stream_chat_flutter
homepage: https://github.com/GetStream/stream-chat-flutter homepage: https://github.com/GetStream/stream-chat-flutter
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter. description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
version: 0.1.13 version: 0.1.14
environment: environment:
sdk: ">=2.3.0 <3.0.0" sdk: ">=2.3.0 <3.0.0"