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

Unified Diff: sky/sdk/lib/framework/rendering/box.dart

Issue 1146913005: Give the Stocks2 App a new improved toolbar. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
Index: sky/sdk/lib/framework/rendering/box.dart
diff --git a/sky/sdk/lib/framework/rendering/box.dart b/sky/sdk/lib/framework/rendering/box.dart
index b3ee6cddf6301afcd9e11f8c81bb8c84460ba568..803c85b2b884b7e1d962cfa6940fd2f753dd3fc5 100644
--- a/sky/sdk/lib/framework/rendering/box.dart
+++ b/sky/sdk/lib/framework/rendering/box.dart
@@ -14,6 +14,15 @@ class EdgeDims {
const EdgeDims.all(double value)
: top = value, right = value, bottom = value, left = value;
+ const EdgeDims.onlyLeft(double value)
+ : top = 0.0, right = 0.0, bottom = 0.0, left = value;
+ const EdgeDims.onlyRight(double value)
+ : top = 0.0, right = value, bottom = 0.0, left = 0.0;
+ const EdgeDims.onlyTop(double value)
+ : top = value, right = 0.0, bottom = 0.0, left = 0.0;
+ const EdgeDims.onlyBottom(double value)
+ : top = 0.0, right = 0.0, bottom = value, left = 0.0;
abarth-chromium 2015/06/02 23:09:04 These indents aren't consistent.
+
final double top;
final double right;
final double bottom;
@@ -148,7 +157,7 @@ abstract class RenderProxyBox extends RenderBox with RenderNodeWithChildMixin<Re
class RenderSizedBox extends RenderProxyBox {
RenderSizedBox({
- RenderBox child,
+ RenderBox child,
sky.Size desiredSize: const sky.Size.infinite()
}) : super(child) {
assert(desiredSize != null);

Powered by Google App Engine
This is Rietveld 408576698