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.
This commit is contained in:
@@ -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(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user