Refactor Hero example (#75895)

This commit is contained in:
Abhishek Ghaskata 2021-02-18 04:16:05 +05:30 committed by GitHub
parent 6757c7dd47
commit 424a122e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ enum HeroFlightDirection {
/// return Column( /// return Column(
/// crossAxisAlignment: CrossAxisAlignment.start, /// crossAxisAlignment: CrossAxisAlignment.start,
/// children: <Widget>[ /// children: <Widget>[
/// SizedBox( /// const SizedBox(
/// height: 20.0, /// height: 20.0,
/// ), /// ),
/// ListTile( /// ListTile(
@ -127,7 +127,7 @@ enum HeroFlightDirection {
/// child: _blueRectangle(Size(50,50)), /// child: _blueRectangle(Size(50,50)),
/// ), /// ),
/// onTap: () => _gotoDetailsPage(context), /// onTap: () => _gotoDetailsPage(context),
/// title: Text('Tap on the icon to view hero animation transition.'), /// title: const Text('Tap on the icon to view hero animation transition.'),
/// ), /// ),
/// ], /// ],
/// ); /// );
@ -145,7 +145,7 @@ enum HeroFlightDirection {
/// Navigator.of(context).push(MaterialPageRoute( /// Navigator.of(context).push(MaterialPageRoute(
/// builder: (BuildContext context) => Scaffold( /// builder: (BuildContext context) => Scaffold(
/// appBar: AppBar( /// appBar: AppBar(
/// title: Text('second Page'), /// title: const Text('second Page'),
/// ), /// ),
/// body: Center( /// body: Center(
/// child: Column( /// child: Column(