mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Rename Container's desiredSize argument to width and height arguments.
Also change SizedBox. This makes the code that uses Container() and SizedBox() much more readable. The underlying RenderSizedBox is not affected by this change. R=abarth@chromium.org, eseidel@chromium.org Review URL: https://codereview.chromium.org/1166203002
This commit is contained in:
parent
e9d5b13415
commit
086c921ccd
@ -24,13 +24,13 @@ class ContainerApp extends App {
|
||||
new Container(
|
||||
padding: new EdgeDims.all(10.0),
|
||||
margin: new EdgeDims.all(10.0),
|
||||
desiredSize: new sky.Size(double.INFINITY, 100.0),
|
||||
height: 100.0,
|
||||
decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)),
|
||||
child: new BlockContainer(
|
||||
children: [
|
||||
new Container(
|
||||
decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFFFFFF00)),
|
||||
desiredSize: new sky.Size(double.INFINITY, 20.0)
|
||||
height: 20.0,
|
||||
),
|
||||
new Image(src: "https://www.dartlang.org/logos/dart-logo.png",
|
||||
size: new sky.Size(300.0, 300.0),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user