Unverified Commit 882eb24e authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

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.
parent d1c99ab4
...@@ -85,15 +85,19 @@ class VideoCard extends StatelessWidget { ...@@ -85,15 +85,19 @@ class VideoCard extends StatelessWidget {
Navigator.of(context).push(route); Navigator.of(context).push(route);
} }
return new Card( return new SafeArea(
child: new Column( top: false,
children: <Widget>[ bottom: false,
new ListTile(title: new Text(title), subtitle: new Text(subtitle)), child: new Card(
new GestureDetector( child: new Column(
onTap: pushFullScreenWidget, children: <Widget>[
child: _buildInlineVideo(), new ListTile(title: new Text(title), subtitle: new Text(subtitle)),
), new GestureDetector(
], onTap: pushFullScreenWidget,
child: _buildInlineVideo(),
),
],
),
), ),
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment