Skip to content

Commit

Permalink
TW-730: support full screen for images
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn authored and hoangdat committed Oct 5, 2023
1 parent b52157d commit b011162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/mxc_image.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:typed_data';
import 'package:fluffychat/pages/image_viewer/image_viewer.dart';
import 'package:fluffychat/utils/interactive_viewer_gallery.dart';
import 'package:fluffychat/utils/platform_infos.dart';
import 'package:fluffychat/widgets/hero_page_route.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
Expand Down Expand Up @@ -196,7 +197,7 @@ class _MxcImageState extends State<MxcImage>
void _onTap(BuildContext context) async {
if (widget.onTapPreview != null) {
widget.onTapPreview!();
Navigator.of(context).push(
Navigator.of(context, rootNavigator: PlatformInfos.isWeb).push(
HeroPageRoute(
builder: (context) {
return InteractiveViewerGallery(
Expand Down

0 comments on commit b011162

Please sign in to comment.