Merge branch 'master' into feature/notifications

This commit is contained in:
Salvatore Giordano
2020-04-02 11:28:19 +02:00
5 changed files with 11 additions and 300 deletions
+5 -1
View File
@@ -59,7 +59,8 @@ class StreamChat extends StatefulWidget {
}
}
class StreamChatState extends State<StreamChat> with WidgetsBindingObserver {
class StreamChatState extends State<StreamChat>
with WidgetsBindingObserver, AutomaticKeepAliveClientMixin {
final List<StreamSubscription> _subscriptions = [];
Client get client => widget.client;
final GlobalKey<NavigatorState> _navigatorKey = GlobalKey<NavigatorState>();
@@ -239,4 +240,7 @@ class StreamChatState extends State<StreamChat> with WidgetsBindingObserver {
WidgetsBinding.instance.removeObserver(this);
super.dispose();
}
@override
bool get wantKeepAlive => true;
}