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,7 +85,10 @@ class VideoCard extends StatelessWidget { ...@@ -85,7 +85,10 @@ class VideoCard extends StatelessWidget {
Navigator.of(context).push(route); Navigator.of(context).push(route);
} }
return new Card( return new SafeArea(
top: false,
bottom: false,
child: new Card(
child: new Column( child: new Column(
children: <Widget>[ children: <Widget>[
new ListTile(title: new Text(title), subtitle: new Text(subtitle)), new ListTile(title: new Text(title), subtitle: new Text(subtitle)),
...@@ -95,6 +98,7 @@ class VideoCard extends StatelessWidget { ...@@ -95,6 +98,7 @@ class VideoCard extends StatelessWidget {
), ),
], ],
), ),
),
); );
} }
} }
......
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