Merge pull request #107 from GetStream/hotfix/example

fix single conversation example
This commit is contained in:
Salvatore Giordano
2020-10-20 10:23:14 +02:00
committed by GitHub
2 changed files with 10 additions and 7 deletions
+9 -6
View File
@@ -52,12 +52,15 @@ class MyApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
home: StreamChat( builder: (context, widget) {
client: client, return StreamChat(
child: StreamChannel( child: widget,
channel: channel, client: client,
child: ChannelPage(), );
), },
home: StreamChannel(
channel: channel,
child: ChannelPage(),
), ),
); );
} }
+1 -1
View File
@@ -1,6 +1,6 @@
name: example name: example
description: A new Flutter project. description: A new Flutter project.
version: 1.0.20+21 version: 1.0.21+22
environment: environment:
sdk: ">=2.2.2 <3.0.0" sdk: ">=2.2.2 <3.0.0"