Merge branch 'master' into feature/notifications
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
## 0.1.13
|
## 0.1.14
|
||||||
|
|
||||||
- Add automatic keep alive to streamchat
|
- Add automatic keep alive to streamchat
|
||||||
|
|
||||||
|
|||||||
+34
-15
@@ -54,29 +54,48 @@ 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(
|
||||||
filter: {
|
children: <Widget>[
|
||||||
'members': {
|
StreamChat(
|
||||||
'\$in': [StreamChat.of(context).user.id],
|
client: client,
|
||||||
}
|
child: Builder(
|
||||||
},
|
builder: (context) => ChannelListView(
|
||||||
sort: [SortOption('last_message_at')],
|
filter: {
|
||||||
pagination: PaginationParams(
|
'members': {
|
||||||
limit: 20,
|
'\$in': [StreamChat.of(context).user.id],
|
||||||
),
|
}
|
||||||
channelWidget: ChannelPage(),
|
},
|
||||||
|
sort: [SortOption('last_message_at')],
|
||||||
|
pagination: PaginationParams(
|
||||||
|
limit: 20,
|
||||||
|
),
|
||||||
|
channelWidget: ChannelPage(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
StreamChat(
|
||||||
|
client: client,
|
||||||
|
child: ChannelListView(
|
||||||
|
sort: [SortOption('last_message_at')],
|
||||||
|
pagination: PaginationParams(
|
||||||
|
limit: 20,
|
||||||
|
),
|
||||||
|
channelWidget: ChannelPage(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ class StreamChatState extends State<StreamChat>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
super.build(context);
|
||||||
final theme = _getTheme(context, widget.streamChatThemeData);
|
final theme = _getTheme(context, widget.streamChatThemeData);
|
||||||
return StreamChatTheme(
|
return StreamChatTheme(
|
||||||
data: theme,
|
data: theme,
|
||||||
|
|||||||
+1
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user