Merge branch 'master' of github.com:GetStream/stream-chat-flutter

This commit is contained in:
Tommaso Barbugli
2020-02-28 11:24:54 +01:00
11 changed files with 502 additions and 278 deletions
+14 -4
View File
@@ -17,8 +17,18 @@ void main() async {
// ignore: unawaited_futures
channel.watch();
runApp(
MaterialApp(
runApp(MyApp(client, channel));
}
class MyApp extends StatelessWidget {
final Client client;
final Channel channel;
MyApp(this.client, this.channel);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: StreamChat(
client: client,
child: StreamChannel(
@@ -26,8 +36,8 @@ void main() async {
child: ChannelPage(),
),
),
),
);
);
}
}
class ChannelPage extends StatelessWidget {