From 424a122e562703914804f59c1551157bf340d9eb Mon Sep 17 00:00:00 2001 From: Abhishek Ghaskata Date: Thu, 18 Feb 2021 04:16:05 +0530 Subject: [PATCH] Refactor Hero example (#75895) --- packages/flutter/lib/src/widgets/heroes.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/widgets/heroes.dart b/packages/flutter/lib/src/widgets/heroes.dart index c40ddbeaaa..f97459b598 100644 --- a/packages/flutter/lib/src/widgets/heroes.dart +++ b/packages/flutter/lib/src/widgets/heroes.dart @@ -118,7 +118,7 @@ enum HeroFlightDirection { /// return Column( /// crossAxisAlignment: CrossAxisAlignment.start, /// children: [ -/// SizedBox( +/// const SizedBox( /// height: 20.0, /// ), /// ListTile( @@ -127,7 +127,7 @@ enum HeroFlightDirection { /// child: _blueRectangle(Size(50,50)), /// ), /// 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( /// builder: (BuildContext context) => Scaffold( /// appBar: AppBar( -/// title: Text('second Page'), +/// title: const Text('second Page'), /// ), /// body: Center( /// child: Column(