refactor: Migrate to flutter 2

This commit is contained in:
Christian Pauly 2021-03-04 12:28:06 +01:00
commit b0ada828aa
39 changed files with 257 additions and 315 deletions

View file

@ -99,7 +99,7 @@ class UrlLauncher {
}
} else {
await AdaptivePageLayout.of(context)
.pushNamedAndRemoveUntilIsFirst('/discover/${roomIdOrAlias}');
.pushNamedAndRemoveUntilIsFirst('/discover/$roomIdOrAlias');
}
} else if (identityParts.primaryIdentifier.sigil == '@') {
final user = User(
@ -109,7 +109,7 @@ class UrlLauncher {
var roomId = matrix.client.getDirectChatFromUserId(user.id);
if (roomId != null) {
await AdaptivePageLayout.of(context)
.pushNamedAndRemoveUntilIsFirst('/rooms/${roomId}');
.pushNamedAndRemoveUntilIsFirst('/rooms/$roomId');
return;
}
@ -128,7 +128,7 @@ class UrlLauncher {
if (roomId != null) {
await AdaptivePageLayout.of(context)
.pushNamedAndRemoveUntilIsFirst('/rooms/${roomId}');
.pushNamedAndRemoveUntilIsFirst('/rooms/$roomId');
}
}
}