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

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

Issue 1177833012: Styling for text fragments (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge 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 | « sky/examples/rendering/justify_content.dart ('k') | sky/examples/rendering/touch_demo.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/rendering/render_paragraph.dart
diff --git a/sky/examples/rendering/render_paragraph.dart b/sky/examples/rendering/render_paragraph.dart
index 7ed158ff4f789e307415c9d000fcc8777d7c3206..918cbcd33da67d725440b66f3890486521a36828 100644
--- a/sky/examples/rendering/render_paragraph.dart
+++ b/sky/examples/rendering/render_paragraph.dart
@@ -31,9 +31,12 @@ andouille leberkas capicola meatloaf. Chicken pig ball tip pork picanha bresaola
alcatra. Pork pork belly alcatra, flank chuck drumstick biltong doner jowl.
Pancetta meatball tongue tenderloin rump tail jowl boudin.""";
+ var text = new InlineStyle(
+ new TextStyle(color: const Color(0xFF009900)),
+ [new InlineText(meatyString)]);
child = new RenderDecoratedBox(
decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFFFF)),
- child: new RenderParagraph(text: meatyString, color: const Color(0xFF009900))
+ child: new RenderParagraph(text)
);
flexRoot.add(child);
child.parentData.flex = 1;
« no previous file with comments | « sky/examples/rendering/justify_content.dart ('k') | sky/examples/rendering/touch_demo.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698