fix: Dialog using wrong Navigator
This commit is contained in:
parent
57f81a3aa3
commit
1a167bebe7
30 changed files with 240 additions and 193 deletions
|
|
@ -10,7 +10,7 @@ extension LocalizedBody on Event {
|
|||
void openFile(BuildContext context, {bool downloadOnly = false}) async {
|
||||
if (!downloadOnly &&
|
||||
[MessageTypes.Image, MessageTypes.Sticker].contains(messageType)) {
|
||||
await Navigator.of(context).push(
|
||||
await Navigator.of(context, rootNavigator: false).push(
|
||||
MaterialPageRoute(builder: (_) => ImageView(this)),
|
||||
);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ abstract class PlatformInfos {
|
|||
var version = await PlatformInfos.getVersion();
|
||||
showAboutDialog(
|
||||
context: context,
|
||||
useRootNavigator: false,
|
||||
children: [
|
||||
Text('Version: $version'),
|
||||
RaisedButton(
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ class UrlLauncher {
|
|||
if (await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
title: 'Join room $roomIdOrAlias',
|
||||
useRootNavigator: false,
|
||||
) ==
|
||||
OkCancelResult.ok) {
|
||||
roomId = roomIdOrAlias;
|
||||
|
|
@ -116,6 +117,7 @@ class UrlLauncher {
|
|||
if (await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
title: 'Message user ${user.id}',
|
||||
useRootNavigator: false,
|
||||
) ==
|
||||
OkCancelResult.ok) {
|
||||
roomId = (await showFutureLoadingDialog(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue