fix: Dialog using wrong Navigator
This commit is contained in:
parent
57f81a3aa3
commit
1a167bebe7
30 changed files with 240 additions and 193 deletions
|
|
@ -90,12 +90,13 @@ class ChatListItem extends StatelessWidget {
|
|||
if (Matrix.of(context).shareContent['msgtype'] ==
|
||||
'chat.fluffy.shared_file') {
|
||||
await showDialog(
|
||||
context: context,
|
||||
builder: (c) => SendFileDialog(
|
||||
file: Matrix.of(context).shareContent['file'],
|
||||
room: room,
|
||||
l10n: L10n.of(context),
|
||||
));
|
||||
context: context,
|
||||
builder: (c) => SendFileDialog(
|
||||
file: Matrix.of(context).shareContent['file'],
|
||||
room: room,
|
||||
),
|
||||
useRootNavigator: false,
|
||||
);
|
||||
} else {
|
||||
unawaited(room.sendEvent(Matrix.of(context).shareContent));
|
||||
}
|
||||
|
|
@ -124,6 +125,7 @@ class ChatListItem extends StatelessWidget {
|
|||
title: L10n.of(context).areYouSure,
|
||||
okLabel: L10n.of(context).yes,
|
||||
cancelLabel: L10n.of(context).no,
|
||||
useRootNavigator: false,
|
||||
);
|
||||
if (confirmed == OkCancelResult.cancel) return;
|
||||
await showFutureLoadingDialog(
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ class ParticipantListItem extends StatelessWidget {
|
|||
context: context,
|
||||
builder: (c) => UserBottomSheet(
|
||||
user: user,
|
||||
l10n: L10n.of(context),
|
||||
),
|
||||
),
|
||||
title: Row(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue