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

Unified Diff: sky/examples/rendering/touch_demo.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/render_paragraph.dart ('k') | sky/sdk/lib/editing2/editable_text.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/rendering/touch_demo.dart
diff --git a/sky/examples/rendering/touch_demo.dart b/sky/examples/rendering/touch_demo.dart
index 802ef59339044166932bc3907b14f83311e865d3..5f701fe32f5dcfa0474ee4f07ca0bf9057d1433b 100644
--- a/sky/examples/rendering/touch_demo.dart
+++ b/sky/examples/rendering/touch_demo.dart
@@ -80,13 +80,14 @@ class RenderTouchDemo extends RenderBox {
AppView app;
void main() {
- var para = new RenderParagraph(text: "Touch me!");
+ var paragraph = new RenderParagraph(new InlineText("Touch me!"));
var stack = new RenderStack(children: [
new RenderTouchDemo(),
- para,
+ paragraph,
]);
- // Make the paragraph not fill the whole screen so it doesn't eat events.
- para.parentData..top = 40.0
- ..left = 20.0;
+ // Prevent the RenderParagraph from filling the whole screen so
+ // that it doesn't eat events.
+ paragraph.parentData..top = 40.0
+ ..left = 20.0;
app = new AppView(root: stack);
}
« no previous file with comments | « sky/examples/rendering/render_paragraph.dart ('k') | sky/sdk/lib/editing2/editable_text.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698