refactor: Upgrade to Flutter 3.0.0

This commit is contained in:
Christian Pauly 2022-05-12 11:25:34 +02:00
commit 22ad34ab0a
21 changed files with 116 additions and 87 deletions

View file

@ -71,7 +71,7 @@ class BackgroundPush {
bool upAction = false;
BackgroundPush._(this.client, {this.onFcmError}) {
BackgroundPush._(this.client) {
onLogin ??=
client.onLoginStateChanged.stream.listen(handleLoginStateChanged);
onRoomSync ??= client.onSync.stream

View file

@ -28,10 +28,8 @@ class VoipPlugin extends WidgetsBindingObserver implements WebRTCDelegate {
.catchError((e) => _currentConnectivity = ConnectivityResult.none);
if (!kIsWeb) {
final wb = WidgetsBinding.instance;
wb?.addObserver(this);
if (wb != null) {
didChangeAppLifecycleState(wb.lifecycleState!);
}
wb.addObserver(this);
didChangeAppLifecycleState(wb.lifecycleState!);
}
}