mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Previously, the fn "Text" class rendered as a single block of text. Now, there's a "Paragraph" class that contains "TextFragment"s, and "Text" is just a component that places a single TextFragment into a single Paragraph. This allows other components, notably the Input component, to build more complicated paragraphs of styled text, without using 'display'. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1139123007
12 lines
475 B
Plaintext
12 lines
475 B
Plaintext
<div debug="Instance of 'TestApp'">
|
|
<div debug="Instance of 'Container'" class="" style="background-color: green">
|
|
<div debug="Instance of 'Paragraph'" class=" style1" style="">
|
|
<div debug="Instance of 'TextFragment'" class=" style2" style="">I am Text</div>
|
|
</div>
|
|
<img debug="Instance of 'Image'" src="resources/united.jpg" class="" style=""></img>
|
|
</div>
|
|
</div>
|
|
<style>.style1 { display:paragraph }</style>
|
|
<style>.style2 { display:inline }</style>
|
|
|