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
+6 -3
View File
@@ -52,13 +52,16 @@ class MyApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
home: StreamChat( builder: (context, widget) {
return StreamChat(
child: widget,
client: client, client: client,
child: StreamChannel( );
},
home: StreamChannel(
channel: channel, channel: channel,
child: ChannelPage(), 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"