add onLongPress to channel preview

This commit is contained in:
Salvatore Giordano
2020-05-06 10:34:29 +02:00
parent aadb5277bd
commit daf0989f2d
4 changed files with 22 additions and 5 deletions
+3 -3
View File
@@ -68,6 +68,7 @@ void main() async {
's2dxdhpxd94g',
logLevel: Level.INFO,
showLocalNotification: Platform.isAndroid ? showLocalNotification : null,
backgroundKeepAlive: Duration.zero,
);
await client.setUser(
@@ -87,13 +88,12 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = ThemeData();
return MaterialApp(
theme: theme,
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
themeMode: ThemeMode.system,
home: Container(
child: StreamChat(
streamChatThemeData: StreamChatThemeData.fromTheme(theme),
client: client,
child: ChannelListPage(),
),