@@ -91,7 +91,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
|
||||
|
||||
Widget buildRaisedButton(BuildContext context) {
|
||||
return new Container(
|
||||
margin: const EdgeDims.symmetric(vertical: 16.0),
|
||||
margin: const EdgeInsets.symmetric(vertical: 16.0),
|
||||
child: new Column(
|
||||
children: <Widget>[
|
||||
new RaisedButton(
|
||||
@@ -108,7 +108,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
|
||||
]
|
||||
.map((Widget child) {
|
||||
return new Container(
|
||||
margin: const EdgeDims.symmetric(vertical: 8.0),
|
||||
margin: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: child
|
||||
);
|
||||
})
|
||||
@@ -119,7 +119,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
|
||||
|
||||
Widget buildFlatButton(BuildContext context) {
|
||||
return new Container(
|
||||
margin: const EdgeDims.symmetric(vertical: 16.0),
|
||||
margin: const EdgeInsets.symmetric(vertical: 16.0),
|
||||
child: new ButtonTheme(
|
||||
color: ButtonColor.accent,
|
||||
child: new Column(
|
||||
@@ -138,7 +138,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
|
||||
]
|
||||
.map((Widget child) {
|
||||
return new Container(
|
||||
margin: const EdgeDims.symmetric(vertical: 8.0),
|
||||
margin: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: child
|
||||
);
|
||||
})
|
||||
@@ -183,7 +183,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
|
||||
children: <Widget>[
|
||||
demo.builder(context),
|
||||
new Padding(
|
||||
padding: const EdgeDims.symmetric(horizontal: 32.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 32.0),
|
||||
child: new Text(demo.text, style: textStyle)
|
||||
)
|
||||
]
|
||||
|
||||
@@ -80,7 +80,7 @@ class TravelDestinationItem extends StatelessComponent {
|
||||
// description and share/expore buttons
|
||||
new Flexible(
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.all(16.0),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: new Column(
|
||||
justifyContent: FlexJustifyContent.start,
|
||||
alignItems: FlexAlignItems.start,
|
||||
@@ -96,7 +96,7 @@ class TravelDestinationItem extends StatelessComponent {
|
||||
alignItems: FlexAlignItems.end,
|
||||
children: <Widget>[
|
||||
new Padding(
|
||||
padding: const EdgeDims.only(right: 16.0),
|
||||
padding: const EdgeInsets.only(right: 16.0),
|
||||
child: new Text('SHARE', style: buttonStyle)
|
||||
),
|
||||
new Text('EXPLORE', style: buttonStyle)
|
||||
@@ -121,10 +121,10 @@ class CardsDemo extends StatelessComponent {
|
||||
center: new Text("Travel Stream")
|
||||
),
|
||||
body: new Block(
|
||||
padding: const EdgeDims.only(top: 8.0, left: 8.0, right: 8.0),
|
||||
padding: const EdgeInsets.only(top: 8.0, left: 8.0, right: 8.0),
|
||||
children: destinations.map((TravelDestination destination) {
|
||||
return new Container(
|
||||
margin: const EdgeDims.only(bottom: 8.0),
|
||||
margin: const EdgeInsets.only(bottom: 8.0),
|
||||
child: new TravelDestinationItem(destination: destination)
|
||||
);
|
||||
})
|
||||
|
||||
@@ -57,7 +57,7 @@ class ColorItem extends StatelessComponent {
|
||||
Widget build(BuildContext context) {
|
||||
return new Container(
|
||||
height: kColorItemHeight,
|
||||
padding: const EdgeDims.symmetric(horizontal: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
decoration: new BoxDecoration(backgroundColor: color),
|
||||
child: new Row(
|
||||
justifyContent: FlexJustifyContent.spaceBetween,
|
||||
|
||||
@@ -32,7 +32,7 @@ class DialogDemoItem extends StatelessComponent {
|
||||
return new InkWell(
|
||||
onTap: onPressed,
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.symmetric(vertical: 8.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: new Row(
|
||||
justifyContent: FlexJustifyContent.start,
|
||||
alignItems: FlexAlignItems.center,
|
||||
@@ -43,7 +43,7 @@ class DialogDemoItem extends StatelessComponent {
|
||||
color: color
|
||||
),
|
||||
new Padding(
|
||||
padding: const EdgeDims.only(left: 16.0),
|
||||
padding: const EdgeInsets.only(left: 16.0),
|
||||
child: new Text(text)
|
||||
)
|
||||
]
|
||||
@@ -84,7 +84,7 @@ class DialogDemoState extends State<DialogDemo> {
|
||||
center: new Text('Dialogs')
|
||||
),
|
||||
body: new Block(
|
||||
padding: const EdgeDims.symmetric(vertical: 24.0, horizontal: 72.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 24.0, horizontal: 72.0),
|
||||
children: <Widget>[
|
||||
new RaisedButton(
|
||||
child: new Text('ALERT'),
|
||||
|
||||
@@ -102,11 +102,11 @@ class _FitnessDemoContentsState extends State<_FitnessDemoContents> {
|
||||
)
|
||||
),
|
||||
new Padding(
|
||||
padding: new EdgeDims.only(top: 20.0),
|
||||
padding: new EdgeInsets.only(top: 20.0),
|
||||
child: new Text("JUMPING JACKS", style: Theme.of(context).textTheme.title)
|
||||
),
|
||||
new Padding(
|
||||
padding: new EdgeDims.only(top: 20.0, bottom: 20.0),
|
||||
padding: new EdgeInsets.only(top: 20.0, bottom: 20.0),
|
||||
child: new Row(
|
||||
justifyContent: FlexJustifyContent.center,
|
||||
children: <Widget>[
|
||||
@@ -117,7 +117,7 @@ class _FitnessDemoContentsState extends State<_FitnessDemoContents> {
|
||||
)
|
||||
),
|
||||
new Padding(
|
||||
padding: new EdgeDims.only(bottom: 16.0),
|
||||
padding: new EdgeInsets.only(bottom: 16.0),
|
||||
child: new SizedBox(
|
||||
width: 300.0,
|
||||
height: 72.0,
|
||||
|
||||
@@ -13,7 +13,7 @@ class _ContactCategory extends StatelessComponent {
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
return new Container(
|
||||
padding: const EdgeDims.symmetric(vertical: 16.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0),
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(bottom: new BorderSide(color: Theme.of(context).dividerColor))
|
||||
),
|
||||
@@ -58,7 +58,7 @@ class _ContactItem extends StatelessComponent {
|
||||
));
|
||||
}
|
||||
return new Padding(
|
||||
padding: const EdgeDims.symmetric(vertical: 16.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0),
|
||||
child: new Row(
|
||||
justifyContent: FlexJustifyContent.spaceBetween,
|
||||
children: rowChildren
|
||||
@@ -109,7 +109,7 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> {
|
||||
),
|
||||
body: new Block(
|
||||
scrollableKey: scrollableKey,
|
||||
padding: new EdgeDims.only(top: appBarHeight),
|
||||
padding: new EdgeInsets.only(top: appBarHeight),
|
||||
children: <Widget>[
|
||||
new _ContactCategory(
|
||||
icon: Icons.call,
|
||||
|
||||
@@ -36,7 +36,7 @@ class DateTimeItem extends StatelessComponent {
|
||||
children: <Widget>[
|
||||
new Flexible(
|
||||
child: new Container(
|
||||
padding: const EdgeDims.symmetric(vertical: 8.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(bottom: new BorderSide(color: theme.dividerColor))
|
||||
),
|
||||
@@ -63,8 +63,8 @@ class DateTimeItem extends StatelessComponent {
|
||||
)
|
||||
),
|
||||
new Container(
|
||||
margin: const EdgeDims.only(left: 8.0),
|
||||
padding: const EdgeDims.symmetric(vertical: 8.0),
|
||||
margin: const EdgeInsets.only(left: 8.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(bottom: new BorderSide(color: theme.dividerColor))
|
||||
),
|
||||
@@ -157,14 +157,14 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> {
|
||||
]
|
||||
),
|
||||
body: new Padding(
|
||||
padding: const EdgeDims.all(16.0),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: new ScrollableViewport(
|
||||
child: new Column(
|
||||
alignItems: FlexAlignItems.stretch,
|
||||
justifyContent: FlexJustifyContent.collapse,
|
||||
children: <Widget>[
|
||||
new Container(
|
||||
padding: const EdgeDims.symmetric(vertical: 8.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(bottom: new BorderSide(color: theme.dividerColor))
|
||||
),
|
||||
@@ -174,7 +174,7 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> {
|
||||
)
|
||||
),
|
||||
new Container(
|
||||
padding: const EdgeDims.symmetric(vertical: 8.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(bottom: new BorderSide(color: theme.dividerColor))
|
||||
),
|
||||
@@ -237,7 +237,7 @@ class FullScreenDialogDemoState extends State<FullScreenDialogDemo> {
|
||||
]
|
||||
.map((Widget child) {
|
||||
return new Container(
|
||||
padding: const EdgeDims.symmetric(vertical: 8.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
height: 96.0,
|
||||
child: child
|
||||
);
|
||||
|
||||
@@ -97,7 +97,7 @@ class GridListDemoGridDelegate extends FixedColumnCountGridDelegate {
|
||||
this.columnCount,
|
||||
double columnSpacing: 0.0,
|
||||
double rowSpacing: 0.0,
|
||||
EdgeDims padding: EdgeDims.zero,
|
||||
EdgeInsets padding: EdgeInsets.zero,
|
||||
this.tileHeightFactor: 2.75
|
||||
}) : super(columnSpacing: columnSpacing, rowSpacing: rowSpacing, padding: padding) {
|
||||
assert(columnCount != null && columnCount >= 0);
|
||||
@@ -153,7 +153,7 @@ class GridListDemoState extends State<GridListDemo> {
|
||||
)
|
||||
];
|
||||
|
||||
final EdgeDims padding = MediaQuery.of(context).padding;
|
||||
final EdgeInsets padding = MediaQuery.of(context).padding;
|
||||
final ModalPosition position = new ModalPosition(
|
||||
right: padding.right + 16.0,
|
||||
top: padding.top + 16.0
|
||||
@@ -187,7 +187,7 @@ class GridListDemoState extends State<GridListDemo> {
|
||||
columnCount: (orientation == Orientation.portrait) ? 2 : 3,
|
||||
rowSpacing: 4.0,
|
||||
columnSpacing: 4.0,
|
||||
padding: const EdgeDims.all(4.0),
|
||||
padding: const EdgeInsets.all(4.0),
|
||||
tileHeightFactor: (orientation == Orientation.portrait) ? 2.75 : 1.75
|
||||
),
|
||||
children: photos.map((Photo photo) {
|
||||
|
||||
@@ -72,7 +72,7 @@ class IconsDemoState extends State<IconsDemo> {
|
||||
body: new IconTheme(
|
||||
data: new IconThemeData(opacity: iconOpacity),
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.all(24.0),
|
||||
padding: const EdgeInsets.all(24.0),
|
||||
child: new Column(
|
||||
children: <Widget>[
|
||||
new Row(
|
||||
|
||||
@@ -156,7 +156,7 @@ class LeaveBehindDemoState extends State<LeaveBehindDemo> {
|
||||
]
|
||||
),
|
||||
body: new Block(
|
||||
padding: new EdgeDims.all(4.0),
|
||||
padding: new EdgeInsets.all(4.0),
|
||||
children: leaveBehindItems.map(buildItem).toList()
|
||||
)
|
||||
);
|
||||
|
||||
@@ -195,7 +195,7 @@ class ListDemoState extends State<ListDemo> {
|
||||
]
|
||||
),
|
||||
body: new Block(
|
||||
padding: new EdgeDims.all(_dense ? 4.0 : 8.0),
|
||||
padding: new EdgeInsets.all(_dense ? 4.0 : 8.0),
|
||||
children: listItems.toList()
|
||||
)
|
||||
);
|
||||
|
||||
@@ -79,7 +79,7 @@ class MenuDemoState extends State<MenuDemo> {
|
||||
]
|
||||
),
|
||||
body: new Block(
|
||||
padding: const EdgeDims.all(8.0),
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
children: <Widget>[
|
||||
// Pressing the PopupMenuButton on the right of this item shows
|
||||
// a simple menu with one disabled item. Typically the contents
|
||||
|
||||
@@ -24,7 +24,7 @@ class ModalBottomSheetDemo extends StatelessComponent {
|
||||
showModalBottomSheet/*<Null>*/(context: context, builder: (BuildContext context) {
|
||||
return new Container(
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.all(32.0),
|
||||
padding: const EdgeInsets.all(32.0),
|
||||
child: new Text("This is the modal bottom sheet. Click anywhere to dismiss.", style: textStyle)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -32,7 +32,7 @@ class PageSelectorDemo extends StatelessComponent {
|
||||
return new Column(
|
||||
children: <Widget>[
|
||||
new Container(
|
||||
margin: const EdgeDims.only(top: 16.0),
|
||||
margin: const EdgeInsets.only(top: 16.0),
|
||||
child: new Row(
|
||||
children: <Widget>[
|
||||
new IconButton(
|
||||
@@ -57,7 +57,7 @@ class PageSelectorDemo extends StatelessComponent {
|
||||
children: icons.map((IconData icon) {
|
||||
return new Container(
|
||||
key: new ObjectKey(icon),
|
||||
padding: const EdgeDims.all(12.0),
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
child: new Card(
|
||||
child: new Center(
|
||||
child: new Icon(icon: icon, size: 128.0, color: color)
|
||||
|
||||
@@ -19,7 +19,7 @@ class PersistentBottomSheetDemo extends StatelessComponent {
|
||||
border: new Border(top: new BorderSide(color: Colors.black26, width: 1.0))
|
||||
),
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.all(32.0),
|
||||
padding: const EdgeInsets.all(32.0),
|
||||
child: new Text("This is a Material persistent bottom sheet. Drag downwards to dismiss it.", style: textStyle)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -75,7 +75,7 @@ class _ProgressIndicatorDemoState extends State<ProgressIndicatorDemo> {
|
||||
];
|
||||
return new Column(
|
||||
children: indicators
|
||||
.map((Widget c) => new Container(child: c, margin: const EdgeDims.symmetric(vertical: 15.0, horizontal: 20.0)))
|
||||
.map((Widget c) => new Container(child: c, margin: const EdgeInsets.symmetric(vertical: 15.0, horizontal: 20.0)))
|
||||
.toList(),
|
||||
justifyContent: FlexJustifyContent.center
|
||||
);
|
||||
@@ -90,7 +90,7 @@ class _ProgressIndicatorDemoState extends State<ProgressIndicatorDemo> {
|
||||
onTap: _handleTap,
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: new Container(
|
||||
padding: const EdgeDims.symmetric(vertical: 12.0, horizontal: 8.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 12.0, horizontal: 8.0),
|
||||
child: new AnimatedBuilder(
|
||||
animation: animation,
|
||||
builder: _buildIndicators
|
||||
|
||||
@@ -23,7 +23,7 @@ class _BarGraphic extends StatelessComponent {
|
||||
return new Container(
|
||||
height: height,
|
||||
width: 200.0,
|
||||
padding: const EdgeDims.symmetric(horizontal: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
decoration: new BoxDecoration(backgroundColor: color),
|
||||
child: new DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.body1.copyWith(color: Colors.white),
|
||||
@@ -90,7 +90,7 @@ class _TechniqueItem extends StatelessComponent {
|
||||
child: new InkWell(
|
||||
onTap: () { showDemo(context); },
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.all(16.0),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: new Row(
|
||||
justifyContent: FlexJustifyContent.spaceBetween,
|
||||
children :<Widget>[
|
||||
@@ -115,11 +115,11 @@ class ScrollingTechniquesDemo extends StatelessComponent {
|
||||
return new Scaffold(
|
||||
toolBar: new ToolBar(center: new Text('Scrolling Techniques')),
|
||||
body: new Padding(
|
||||
padding: const EdgeDims.symmetric(horizontal: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: new Block(
|
||||
children: <Widget>[
|
||||
new Padding(
|
||||
padding: const EdgeDims.symmetric(horizontal: 16.0, vertical: 32.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 32.0),
|
||||
child: new Text(_introText, style: Theme.of(context).textTheme.caption)
|
||||
),
|
||||
new _TechniqueItem(
|
||||
|
||||
@@ -31,7 +31,7 @@ class _SliderDemoState extends State<SliderDemo> {
|
||||
}
|
||||
),
|
||||
new Container(
|
||||
padding: const EdgeDims.symmetric(horizontal: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: new Text(_value.round().toString().padLeft(3, '0'))
|
||||
),
|
||||
],
|
||||
@@ -47,7 +47,7 @@ class _SliderDemoState extends State<SliderDemo> {
|
||||
// Disabled, but tracking the slider above.
|
||||
new Slider(value: _value / 100.0),
|
||||
new Container(
|
||||
padding: const EdgeDims.symmetric(horizontal: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: new Text((_value / 100.0).toStringAsFixed(2))
|
||||
),
|
||||
],
|
||||
|
||||
@@ -22,7 +22,7 @@ class SnackBarDemo extends StatelessComponent {
|
||||
|
||||
Widget buildBody(BuildContext context) {
|
||||
return new Padding(
|
||||
padding: const EdgeDims.all(24.0),
|
||||
padding: const EdgeInsets.all(24.0),
|
||||
child: new Column(
|
||||
children: <Widget>[
|
||||
new Text(_text1),
|
||||
@@ -47,7 +47,7 @@ class SnackBarDemo extends StatelessComponent {
|
||||
]
|
||||
.map((Widget child) {
|
||||
return new Container(
|
||||
margin: const EdgeDims.symmetric(vertical: 12.0),
|
||||
margin: const EdgeInsets.symmetric(vertical: 12.0),
|
||||
child: child
|
||||
);
|
||||
})
|
||||
|
||||
@@ -42,7 +42,7 @@ class TabsDemo extends StatelessComponent {
|
||||
children: icons.map((IconData icon) {
|
||||
return new Container(
|
||||
key: new ObjectKey(icon),
|
||||
padding: const EdgeDims.all(12.0),
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
child: new Card(
|
||||
child: new Center(
|
||||
child: new Icon(
|
||||
|
||||
@@ -59,7 +59,7 @@ class _TabsFabDemoState extends State<TabsFabDemo> {
|
||||
border: new Border(top: new BorderSide(color: Theme.of(context).dividerColor))
|
||||
),
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.all(32.0),
|
||||
padding: const EdgeInsets.all(32.0),
|
||||
child: new Text(_explanatoryText, style: Theme.of(context).textTheme.subhead)
|
||||
)
|
||||
);
|
||||
@@ -77,7 +77,7 @@ class _TabsFabDemoState extends State<TabsFabDemo> {
|
||||
|
||||
return new Container(
|
||||
key: new ValueKey<String>(page.label),
|
||||
padding: const EdgeDims.TRBL(48.0, 48.0, 96.0, 48.0),
|
||||
padding: const EdgeInsets.TRBL(48.0, 48.0, 96.0, 48.0),
|
||||
child: new Card(
|
||||
child: new Center(
|
||||
child: new Text(page.label, style: textStyle)
|
||||
|
||||
@@ -66,7 +66,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
|
||||
center: new Text('Text Fields')
|
||||
),
|
||||
body: new Block(
|
||||
padding: const EdgeDims.all(8.0),
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
children: <Widget>[
|
||||
new Input(
|
||||
hintText: 'What do people call you?',
|
||||
|
||||
@@ -52,7 +52,7 @@ class TooltipDemo extends StatelessComponent {
|
||||
]
|
||||
.map((Widget widget) {
|
||||
return new Padding(
|
||||
padding: const EdgeDims.only(top: 16.0, left: 16.0, right: 16.0),
|
||||
padding: const EdgeInsets.only(top: 16.0, left: 16.0, right: 16.0),
|
||||
child: widget
|
||||
);
|
||||
})
|
||||
|
||||
@@ -9,7 +9,7 @@ class TwoLevelListDemo extends StatelessComponent {
|
||||
return new Scaffold(
|
||||
toolBar: new ToolBar(center: new Text('Expand/Collapse List Control')),
|
||||
body: new Padding(
|
||||
padding: const EdgeDims.all(0.0),
|
||||
padding: const EdgeInsets.all(0.0),
|
||||
child: new TwoLevelList(
|
||||
type: MaterialListType.oneLine,
|
||||
items: <Widget>[
|
||||
|
||||
@@ -20,7 +20,7 @@ class TextStyleItem extends StatelessComponent {
|
||||
final ThemeData theme = Theme.of(context);
|
||||
final TextStyle nameStyle = theme.textTheme.body1.copyWith(color: theme.textTheme.caption.color);
|
||||
return new Padding(
|
||||
padding: const EdgeDims.symmetric(horizontal: 8.0, vertical: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 16.0),
|
||||
child: new Row(
|
||||
alignItems: FlexAlignItems.start,
|
||||
children: <Widget>[
|
||||
|
||||
@@ -140,7 +140,7 @@ class WeatherButton extends StatelessComponent {
|
||||
color = const Color(0x33000000);
|
||||
|
||||
return new Padding(
|
||||
padding: const EdgeDims.all(15.0),
|
||||
padding: const EdgeInsets.all(15.0),
|
||||
child: new Material(
|
||||
color: color,
|
||||
type: MaterialType.circle,
|
||||
|
||||
@@ -53,7 +53,7 @@ class GalleryHomeState extends State<GalleryHome> {
|
||||
toolBar: new ToolBar(
|
||||
flexibleSpace: (BuildContext context) {
|
||||
return new Container(
|
||||
padding: const EdgeDims.only(left: 16.0, bottom: 24.0),
|
||||
padding: const EdgeInsets.only(left: 16.0, bottom: 24.0),
|
||||
height: 128.0,
|
||||
child: new Align(
|
||||
alignment: const FractionalOffset(0.0, 1.0),
|
||||
@@ -63,7 +63,7 @@ class GalleryHomeState extends State<GalleryHome> {
|
||||
}
|
||||
),
|
||||
body: new Block(
|
||||
padding: const EdgeDims.all(4.0),
|
||||
padding: const EdgeInsets.all(4.0),
|
||||
children: <Widget>[
|
||||
new Row(
|
||||
children: <Widget>[
|
||||
|
||||
@@ -45,7 +45,7 @@ class GallerySection extends StatelessComponent {
|
||||
body: new Material(
|
||||
child: new MaterialList(
|
||||
scrollableKey: scrollableKey,
|
||||
scrollablePadding: new EdgeDims.only(top: appBarHeight),
|
||||
scrollablePadding: new EdgeInsets.only(top: appBarHeight),
|
||||
type: MaterialListType.oneLine,
|
||||
children: (demos ?? const <GalleryDemo>[]).map((GalleryDemo demo) {
|
||||
return new ListItem(
|
||||
@@ -75,13 +75,13 @@ class GallerySection extends StatelessComponent {
|
||||
onTap: () { showDemos(context); },
|
||||
child: new Container(
|
||||
height: 256.0,
|
||||
margin: const EdgeDims.all(4.0),
|
||||
margin: const EdgeInsets.all(4.0),
|
||||
decoration: new BoxDecoration(backgroundColor: theme.primaryColor),
|
||||
child: new Column(
|
||||
children: <Widget>[
|
||||
new Flexible(
|
||||
child: new Padding(
|
||||
padding: const EdgeDims.symmetric(horizontal: 12.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: new AssetImage(
|
||||
name: image,
|
||||
alignment: const FractionalOffset(0.5, 0.5),
|
||||
@@ -90,7 +90,7 @@ class GallerySection extends StatelessComponent {
|
||||
)
|
||||
),
|
||||
new Padding(
|
||||
padding: const EdgeDims.all(16.0),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: new Align(
|
||||
alignment: const FractionalOffset(0.0, 1.0),
|
||||
child: new Text(title, style: titleTextStyle)
|
||||
|
||||
Reference in New Issue
Block a user