This commit is contained in:
krawieck 2020-10-06 22:28:10 +02:00
parent 33ab5324c4
commit 0f527212c5
1 changed files with 1 additions and 5 deletions

View File

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