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

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

Issue 1174623002: Add boxShadow to BoxDecoration#toString (Closed) Base URL: git@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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3b2ac5ab2b32e3caf3a4957d05069442c2aec4e5..7765bf034d9d9d08b1d3a84074e570b6e391495a 100644
--- a/sky/sdk/lib/framework/rendering/box.dart
+++ b/sky/sdk/lib/framework/rendering/box.dart
@@ -662,8 +662,10 @@ class BoxDecoration {
result.add('${prefix}backgroundColor: $backgroundColor');
if (border != null)
result.add('${prefix}border: $border');
- // if (boxShadow != null)
- // result.add('${prefix}boxShadow: $boxShadow');
+ if (boxShadow != null) {
+ for (BoxShadow shadow in boxShadow)
+ result.add('${prefix}boxShadow: $shadow');
+ }
if (result.isEmpty)
return '${prefix}<no decorations specified>';
return result.join('\n');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698