add default channel image to theme

This commit is contained in:
Salvatore Giordano
2020-04-23 15:43:49 +02:00
parent 706c3d70b4
commit 81ec083378
5 changed files with 19 additions and 2 deletions
+7
View File
@@ -92,6 +92,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(),
),