|
|
|
|
@ -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,
|
|
|
|
|
|