turn function into expression

This commit is contained in:
krawieck 2020-09-11 21:21:58 +02:00
parent ac70400c38
commit 676d1a4696
1 changed files with 7 additions and 9 deletions

View File

@ -19,13 +19,11 @@ class FullscreenableImage extends StatelessWidget {
}
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () => _onTap(context),
child: Hero(
tag: url,
child: child,
),
);
}
Widget build(BuildContext context) => InkWell(
onTap: () => _onTap(context),
child: Hero(
tag: url,
child: child,
),
);
}