mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
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.
This commit is contained in:
parent
2e1b0a7fd2
commit
e85d099229
|
@ -20,18 +20,22 @@ class _ContactCategory extends StatelessWidget {
|
|||
),
|
||||
child: new DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.subhead,
|
||||
child: new Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
new Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 24.0),
|
||||
width: 72.0,
|
||||
child: new Icon(icon, color: themeData.primaryColor)
|
||||
),
|
||||
new Expanded(child: new Column(children: children))
|
||||
]
|
||||
)
|
||||
)
|
||||
child: new SafeArea(
|
||||
top: false,
|
||||
bottom: false,
|
||||
child: new Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
new Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 24.0),
|
||||
width: 72.0,
|
||||
child: new Icon(icon, color: themeData.primaryColor)
|
||||
),
|
||||
new Expanded(child: new Column(children: children))
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue