From 882eb24e1e246868cc1c5fa2399e344fff733015 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 2 Jan 2018 12:33:36 -0800 Subject: [PATCH] Apply media padding to Gallery video demo (#13847) Applies horizontal safe area insets to the video demo in the Gallery. This is to support the iPhone X sensor housing notch and other similarly creative display features when in landscape orientation. --- .../flutter_gallery/lib/demo/video_demo.dart | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/video_demo.dart b/examples/flutter_gallery/lib/demo/video_demo.dart index f291be55a4..9348983410 100644 --- a/examples/flutter_gallery/lib/demo/video_demo.dart +++ b/examples/flutter_gallery/lib/demo/video_demo.dart @@ -85,15 +85,19 @@ class VideoCard extends StatelessWidget { Navigator.of(context).push(route); } - return new Card( - child: new Column( - children: [ - new ListTile(title: new Text(title), subtitle: new Text(subtitle)), - new GestureDetector( - onTap: pushFullScreenWidget, - child: _buildInlineVideo(), - ), - ], + return new SafeArea( + top: false, + bottom: false, + child: new Card( + child: new Column( + children: [ + new ListTile(title: new Text(title), subtitle: new Text(subtitle)), + new GestureDetector( + onTap: pushFullScreenWidget, + child: _buildInlineVideo(), + ), + ], + ), ), ); }