simplify
This commit is contained in:
parent
33ab5324c4
commit
0f527212c5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue