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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user