add default channel image to theme

This commit is contained in:
Salvatore Giordano
2020-04-23 12:02:24 +02:00
parent 60f48177e4
commit 019d0aded8
5 changed files with 19 additions and 2 deletions
+7
View File
@@ -28,6 +28,13 @@ class MyApp extends StatelessWidget {
themeMode: ThemeMode.system,
home: Container(
child: StreamChat(
streamChatThemeData: StreamChatThemeData(
defaultChannelImage: (context, channel) {
return Center(
child: Text('AAA'),
);
},
),
client: client,
child: ChannelListPage(),
),