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

Unified Diff: sky/examples/rendering/interactive_flex.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 | « no previous file | sky/examples/rendering/justify_content.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/rendering/interactive_flex.dart
diff --git a/sky/examples/rendering/interactive_flex.dart b/sky/examples/rendering/interactive_flex.dart
index 4aaed292c56b5ea5685b6f8af5bb64347718d92b..bdcf71580a4eb14fd93cf0ef284833690df6a822 100644
--- a/sky/examples/rendering/interactive_flex.dart
+++ b/sky/examples/rendering/interactive_flex.dart
@@ -75,8 +75,12 @@ porchetta bacon kevin meatball meatloaf pig beef ribs chicken. Brisket ribeye
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.""";
- RenderParagraph paragraph = new RenderParagraph(text: meatyString, color: const Color(0xFF009900));
- padding = new RenderPadding(padding: const EdgeDims.all(10.0), child: paragraph);
+ var text = new InlineStyle(
+ new TextStyle(color: const Color(0xFF009900)),
+ [new InlineText(meatyString)]);
+ padding = new RenderPadding(
+ padding: const EdgeDims.all(10.0),
+ child: new RenderParagraph(text));
column.add(padding);
// Bottom cell
« no previous file with comments | « no previous file | sky/examples/rendering/justify_content.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698