Skip to content

v4.1.0

@ronjb ronjb tagged this 03 Jul 16:22
* Fixed a bug where text that wrapped around floated widgets ignored the ambient MediaQuery text scaler, breaking accessibility font scaling for the wrapped portion of the paragraph.
* Fixed a crash when a WrappableText with a non-null maxLines started with one or more line feeds. Leading line feeds now render like they do in a Text widget.
* Fixed a crash when a floated inline widget was beyond the point where its paragraph was truncated by maxLines. Truncated floated widgets are now hidden, consistent with the rest of the truncated content.
* Fixed a bug where floated inline widgets were positioned 5 pixels above the top of their anchor line, which could cause a float on the first line to paint above the top edge of the FloatColumn.
* Floated children now honor their full margin box, like CSS: margin.top and margin.bottom offset the float vertically, and sibling content wraps around the margin box instead of directly against the padding box.
* Fixed duplicate key detection, which previously did not detect duplicate keys on widget children.
* Keyed widget children now preserve their state when reordered.
* When a text span is split (to wrap around floated widgets), its semanticsLabel is now kept on the first part only, so assistive technologies announce it once instead of once per part. Also fixed a debug-mode crash when splitting a span with a semanticsLabel at the boundary between its text and its children.
* In debug mode, querying a FloatColumn's intrinsic dimensions now throws a descriptive error instead of silently collapsing the column to zero size.
* Improved layout performance for paragraphs that do not contain floated inline widgets.
* Updated the README with accurate, compile-checked examples, including floated widgets in WidgetSpans.
* Added tests covering text scaling, maxLines edge cases, float positioning and margins, key handling, semanticsLabel splitting, and intrinsic sizing.
Assets 2
Loading