-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore
getMinIntrinsicWidth
error during table rendering (#1067)
Also: * Apply middle vertical align for `DETAILS` marker * Fix conflict between `vertical-align` and `display: inline-block` * Update `BuildOp.inline` for better compatibility * [core] v0.14.3 * [enhanced] v0.14.3
- Loading branch information
1 parent
9332ace
commit 942ad5d
Showing
22 changed files
with
226 additions
and
69 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-39 Bytes
(98%)
demo_app/test/sizing/_guessChildSize/sized_inline_block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,49 @@ void main() { | |
}); | ||
|
||
group('possible conflict', () { | ||
testWidgets('display: inline', (WidgetTester tester) async { | ||
const html = 'Foo <span style="display: inline; ' | ||
'vertical-align: top">bar</span>'; | ||
final explained = await explain(tester, html); | ||
expect(explained, equals('[RichText:(:Foo [RichText:(:bar)]@top)]')); | ||
}); | ||
|
||
testWidgets('display: inline-block', (WidgetTester tester) async { | ||
const html = 'Foo <span style="display: inline-block; ' | ||
'vertical-align: top">bar</span>'; | ||
final explained = await explain(tester, html); | ||
expect(explained, equals('[RichText:(:Foo [RichText:(:bar)]@top)]')); | ||
}); | ||
|
||
testWidgets('display: block', (WidgetTester tester) async { | ||
const html = 'Foo <span style="display: block; ' | ||
'vertical-align: top">bar</span>'; | ||
final explained = await explain(tester, html); | ||
expect( | ||
explained, | ||
equals( | ||
'[Column:children=' | ||
'[RichText:(:Foo)],' | ||
'[Align:alignment=topLeft,widthFactor=1.0,child=' | ||
'[CssBlock:child=[RichText:(:bar)]]' | ||
']]', | ||
), | ||
); | ||
}); | ||
|
||
testWidgets('renders with A tag', (WidgetTester tester) async { | ||
const html = '<sup><a href="http://domain.com/foo">foo</a></sup>'; | ||
final explained = await explain(tester, html); | ||
expect( | ||
explained, | ||
equals( | ||
'[Align:alignment=topCenter,widthFactor=1.0,child=' | ||
'[Padding:(0,0,3,0),child=[RichText:(#[email protected]+onTap:foo)]]' | ||
']', | ||
), | ||
); | ||
}); | ||
|
||
group('image', () { | ||
const imgSrc = 'http://domain.com/image.png'; | ||
const imgRendered = | ||
|
@@ -214,19 +257,6 @@ void main() { | |
); | ||
}); | ||
}); | ||
|
||
testWidgets('renders with A tag', (WidgetTester tester) async { | ||
const html = '<sup><a href="http://domain.com/foo">foo</a></sup>'; | ||
final explained = await explain(tester, html); | ||
expect( | ||
explained, | ||
equals( | ||
'[Align:alignment=topCenter,widthFactor=1.0,child=' | ||
'[Padding:(0,0,3,0),child=[RichText:(#[email protected]+onTap:foo)]]' | ||
']', | ||
), | ||
); | ||
}); | ||
}); | ||
|
||
group('error handling', () { | ||
|
Oops, something went wrong.
942ad5d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Demo app
942ad5d APKs:
Web build has been deployed to https://example-abr37pmiz-flutter-widget-from-html.vercel.app. Quick links: