From 0f527212c58f88ae575687f5b3de07e987222e24 Mon Sep 17 00:00:00 2001 From: krawieck Date: Tue, 6 Oct 2020 22:28:10 +0200 Subject: [PATCH] simplify --- lib/widgets/fullscreenable_image.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/widgets/fullscreenable_image.dart b/lib/widgets/fullscreenable_image.dart index 049a0ce..e7460f9 100644 --- a/lib/widgets/fullscreenable_image.dart +++ b/lib/widgets/fullscreenable_image.dart @@ -15,13 +15,9 @@ class FullscreenableImage extends StatelessWidget { @required this.child, }) : super(key: key); - _onTap(BuildContext c) { - goToMedia(c, url); - } - @override Widget build(BuildContext context) => InkWell( - onTap: () => _onTap(context), + onTap: () => goToMedia(context, url), child: Hero( tag: url, child: child,