refactor: Upgrade to Flutter 3.0.0
This commit is contained in:
parent
4e497f5c39
commit
22ad34ab0a
21 changed files with 116 additions and 87 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue