1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-07 04:02:13 +00:00

Add shared analysis_options.yaml to animation samples (#145)

This commit is contained in:
Thea Flowers
2019-09-27 14:36:38 -07:00
committed by GitHub
parent 22ca7f462b
commit e3338726c6
6 changed files with 85 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ class Grid extends StatelessWidget {
}
Route _createRoute(BuildContext parentContext, String image) {
return PageRouteBuilder(
return PageRouteBuilder<void>(
pageBuilder: (context, animation, secondaryAnimation) {
return _SecondPage(image);
},
@@ -74,7 +74,7 @@ class SmallCard extends StatelessWidget {
child: InkWell(
onTap: () {
var nav = Navigator.of(context);
nav.push(_createRoute(context, imageAssetName));
nav.push<void>(_createRoute(context, imageAssetName));
},
child: Image.asset(
imageAssetName,