diff --git a/examples/flutter_gallery/lib/demo/animation/home.dart b/examples/flutter_gallery/lib/demo/animation/home.dart index 05b8d36d97..a2fe95d5ee 100644 --- a/examples/flutter_gallery/lib/demo/animation/home.dart +++ b/examples/flutter_gallery/lib/demo/animation/home.dart @@ -610,12 +610,16 @@ class _AnimationDemoHomeState extends State { left: 0.0, child: new IconTheme( data: const IconThemeData(color: Colors.white), - child: new IconButton( - icon: const BackButtonIcon(), - tooltip: 'Back', - onPressed: () { - _handleBackButton(appBarMidScrollOffset); - } + child: new SafeArea( + top: false, + bottom: false, + child: new IconButton( + icon: const BackButtonIcon(), + tooltip: 'Back', + onPressed: () { + _handleBackButton(appBarMidScrollOffset); + } + ), ), ), ), diff --git a/examples/flutter_gallery/lib/demo/animation/widgets.dart b/examples/flutter_gallery/lib/demo/animation/widgets.dart index 6404201c0f..13791a348d 100644 --- a/examples/flutter_gallery/lib/demo/animation/widgets.dart +++ b/examples/flutter_gallery/lib/demo/animation/widgets.dart @@ -142,7 +142,7 @@ class SectionDetailView extends StatelessWidget { item = new Container( height: 240.0, padding: const EdgeInsets.all(16.0), - child: image, + child: new SafeArea(top: false, bottom:false, child: image), ); } else { item = new ListTile(