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

Apply media padding in Color, Typography demos (#13592)

parent dd943fef
...@@ -64,6 +64,9 @@ class ColorItem extends StatelessWidget { ...@@ -64,6 +64,9 @@ class ColorItem extends StatelessWidget {
height: kColorItemHeight, height: kColorItemHeight,
padding: const EdgeInsets.symmetric(horizontal: 16.0), padding: const EdgeInsets.symmetric(horizontal: 16.0),
color: color, color: color,
child: new SafeArea(
top: false,
bottom: false,
child: new Row( child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
...@@ -72,6 +75,7 @@ class ColorItem extends StatelessWidget { ...@@ -72,6 +75,7 @@ class ColorItem extends StatelessWidget {
new Text(colorString()), new Text(colorString()),
], ],
), ),
),
); );
} }
} }
......
...@@ -71,7 +71,11 @@ class TypographyDemo extends StatelessWidget { ...@@ -71,7 +71,11 @@ class TypographyDemo extends StatelessWidget {
return new Scaffold( return new Scaffold(
appBar: new AppBar(title: const Text('Typography')), appBar: new AppBar(title: const Text('Typography')),
body: new ListView(children: styleItems) body: new SafeArea(
top: false,
bottom: false,
child: new ListView(children: styleItems),
),
); );
} }
} }
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