Unverified Commit e85d0992 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Apply media padding to Contacts demo (#13628)

Applies horizontal safe area insets to the Contacts 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 2e1b0a7f
...@@ -20,6 +20,9 @@ class _ContactCategory extends StatelessWidget { ...@@ -20,6 +20,9 @@ class _ContactCategory extends StatelessWidget {
), ),
child: new DefaultTextStyle( child: new DefaultTextStyle(
style: Theme.of(context).textTheme.subhead, style: Theme.of(context).textTheme.subhead,
child: new SafeArea(
top: false,
bottom: false,
child: new Row( child: new Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
...@@ -29,9 +32,10 @@ class _ContactCategory extends StatelessWidget { ...@@ -29,9 +32,10 @@ class _ContactCategory extends StatelessWidget {
child: new Icon(icon, color: themeData.primaryColor) child: new Icon(icon, color: themeData.primaryColor)
), ),
new Expanded(child: new Column(children: children)) new Expanded(child: new Column(children: children))
] ],
) ),
) ),
),
); );
} }
} }
......
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