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 {
Navigator.of(context).push(route);
}
return new Card(
child: new Column(
children: <Widget>[
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: <Widget>[
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