fix: Correct context for Image Bubble

This commit is contained in:
Christian Pauly 2021-06-06 15:23:21 +02:00
parent b85270b58a
commit afa1003e44
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter_svg/flutter_svg.dart';
import '../../utils/matrix_sdk_extensions.dart/event_extension.dart';
import '../matrix.dart';
class ImageBubble extends StatefulWidget {
final Event event;
@ -238,7 +239,7 @@ class _ImageBubbleState extends State<ImageBubble> {
onTap: () {
if (!widget.tapToView) return;
showDialog(
context: context,
context: Matrix.of(context).navigatorContext,
builder: (_) => ImageViewer(widget.event, onLoaded: () {
// If the original file didn't load yet, we want to do that now.
// This is so that the original file displays after going on the image viewer,