From 4bec0c533a72976df3844d1d9ba6cb0c4557ea3d Mon Sep 17 00:00:00 2001 From: krawieck Date: Sun, 13 Sep 2020 15:42:39 +0200 Subject: [PATCH] Remove useless inkwell --- lib/widgets/markdown_text.dart | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/lib/widgets/markdown_text.dart b/lib/widgets/markdown_text.dart index fbe395e..d3b4af2 100644 --- a/lib/widgets/markdown_text.dart +++ b/lib/widgets/markdown_text.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_markdown/flutter_markdown.dart'; import 'package:markdown/markdown.dart' as md; -import '../pages/media_view.dart'; import '../url_launcher.dart'; import 'fullscreenable_image.dart'; @@ -28,22 +27,15 @@ class MarkdownText extends StatelessWidget { ), ))); }, - imageBuilder: (uri, title, alt) => InkWell( - onTap: () { - Navigator.of(context).push(MaterialPageRoute( - builder: (context) => MediaViewPage(uri.toString()), - )); - }, - child: FullscreenableImage( - url: uri.toString(), - child: CachedNetworkImage( - imageUrl: uri.toString(), - errorWidget: (context, url, error) => Row( - children: [ - Icon(Icons.warning), - Text("couldn't load image, ${error.toString()}") - ], - ), + imageBuilder: (uri, title, alt) => FullscreenableImage( + url: uri.toString(), + child: CachedNetworkImage( + imageUrl: uri.toString(), + errorWidget: (context, url, error) => Row( + children: [ + Icon(Icons.warning), + Text("couldn't load image, ${error.toString()}") + ], ), ), ),