mirror of
https://github.com/flutter/flutter.git
synced 2026-02-14 23:02:04 +08:00
Apply media padding in Color, Typography demos (#13592)
This commit is contained in:
parent
dd943fefe0
commit
dc9c95375f
@ -64,13 +64,17 @@ class ColorItem extends StatelessWidget {
|
||||
height: kColorItemHeight,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
color: color,
|
||||
child: new Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Text('$prefix$index'),
|
||||
new Text(colorString()),
|
||||
],
|
||||
child: new SafeArea(
|
||||
top: false,
|
||||
bottom: false,
|
||||
child: new Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Text('$prefix$index'),
|
||||
new Text(colorString()),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@ -71,7 +71,11 @@ class TypographyDemo extends StatelessWidget {
|
||||
|
||||
return new Scaffold(
|
||||
appBar: new AppBar(title: const Text('Typography')),
|
||||
body: new ListView(children: styleItems)
|
||||
body: new SafeArea(
|
||||
top: false,
|
||||
bottom: false,
|
||||
child: new ListView(children: styleItems),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user