mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This exposes the last hooks needed to implement flexbox layout. For now, I didn't worry too much about the exact API we're exposing since this will all change with the upcoming redesign (e.g. https://codereview.chromium.org/1093633002). minContentWidth == the width if the element were to wrap at every wrapping point (not including border/padding) maxContentWidth == the width if the element were to only wrap at hard wrapping points (e.g. \n inside a whitespace: pre). R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1101793003
17 lines
443 B
Plaintext
17 lines
443 B
Plaintext
<import src="../resources/dump-as-render-tree.sky" />
|
|
|
|
<block>hello</block>
|
|
|
|
<script>
|
|
import 'dart:sky';
|
|
|
|
void main() {
|
|
// This tests custom layout of text nodes inside non-paragraphs.
|
|
// They shouldn't show up in the render tree at all, so they
|
|
// don't need laying out.
|
|
// This test passes if it doesn't crash and the render tree
|
|
// has no RenderTexts.
|
|
document.querySelector('block').setLayoutManager(() {}, () {});
|
|
}
|
|
</script>
|