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,