Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: sky/examples/rendering/borders.dart

Issue 1189603003: Remove RenderSizedBox. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/examples/rendering/transform.dart » ('j') | sky/sdk/lib/widgets/basic.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/rendering/borders.dart
diff --git a/sky/examples/rendering/borders.dart b/sky/examples/rendering/borders.dart
index 7bc72f3c4a73ba3ce180a02f4477abf6487c5aa7..103100223d91000c7818b9de6e7c1f580fb4801f 100644
--- a/sky/examples/rendering/borders.dart
+++ b/sky/examples/rendering/borders.dart
@@ -16,8 +16,8 @@ void main() {
var root = new RenderBlock(children: [
new RenderPadding(
padding: new EdgeDims.all(10.0),
- child: new RenderSizedBox(
- desiredSize: new sky.Size.fromHeight(100.0),
+ child: new RenderConstrainedBox(
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0),
child: new RenderDecoratedBox(
decoration: new BoxDecoration(
backgroundColor: new sky.Color(0xFFFFFF00)
@@ -27,8 +27,8 @@ void main() {
),
new RenderPadding(
padding: new EdgeDims.all(10.0),
- child: new RenderSizedBox(
- desiredSize: new sky.Size.fromHeight(100.0),
+ child: new RenderConstrainedBox(
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0),
child: new RenderDecoratedBox(
decoration: new BoxDecoration(
border: new Border(
@@ -44,8 +44,8 @@ void main() {
),
new RenderPadding(
padding: new EdgeDims.all(10.0),
- child: new RenderSizedBox(
- desiredSize: new sky.Size.fromHeight(100.0),
+ child: new RenderConstrainedBox(
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0),
child: new RenderDecoratedBox(
decoration: new BoxDecoration(
backgroundColor: new sky.Color(0xFFFFFF00)
@@ -55,8 +55,8 @@ void main() {
),
new RenderPadding(
padding: new EdgeDims.all(10.0),
- child: new RenderSizedBox(
- desiredSize: new sky.Size.fromHeight(100.0),
+ child: new RenderConstrainedBox(
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0),
child: new RenderDecoratedBox(
decoration: new BoxDecoration(
backgroundColor: new sky.Color(0xFFFFFF00)
@@ -66,8 +66,8 @@ void main() {
),
new RenderPadding(
padding: new EdgeDims.all(10.0),
- child: new RenderSizedBox(
- desiredSize: new sky.Size.fromHeight(100.0),
+ child: new RenderConstrainedBox(
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0),
child: new RenderDecoratedBox(
decoration: new BoxDecoration(
backgroundColor: new sky.Color(0xFFFFFF00)
« no previous file with comments | « no previous file | sky/examples/rendering/transform.dart » ('j') | sky/sdk/lib/widgets/basic.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698