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

Side by Side Diff: sky/sdk/lib/editing2/editable_text.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 unified diff | Download patch
« no previous file with comments | « sky/examples/rendering/touch_demo.dart ('k') | sky/sdk/lib/rendering/paragraph.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import '../widgets/basic.dart'; 7 import '../widgets/basic.dart';
8 import 'editable_string.dart'; 8 import 'editable_string.dart';
9 9
10 class EditableText extends Component { 10 class EditableText extends Component {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // if (!afterComposing.isEmpty) 86 // if (!afterComposing.isEmpty)
87 // children.add(new TextFragment(afterComposing)); 87 // children.add(new TextFragment(afterComposing));
88 } 88 }
89 89
90 // if (_showCursor) 90 // if (_showCursor)
91 // children.add(new Container( 91 // children.add(new Container(
92 // key: 'cursor', 92 // key: 'cursor',
93 // // style: _cursorStyle 93 // // style: _cursorStyle
94 // )); 94 // ));
95 95
96 return new Paragraph( 96 return new Text(hack);
97 text: hack
98 );
99 } 97 }
100 } 98 }
OLDNEW
« no previous file with comments | « sky/examples/rendering/touch_demo.dart ('k') | sky/sdk/lib/rendering/paragraph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698