- Cleaned up debug logging.
Refactored the code to utilize RichText widgets for rendering floated text instead of internally rendering it using TextPainters. This change offers several advantages, including reduced dependency on Flutter’s internal implementation of RenderParagraph and related selection features. Specifically, it enhances support for Flutter’s text selection capabilities, ensures compatibility with a wider range of Flutter versions, and significantly reduces code size by approximately one-third.
- Added two new required methods to SelectableFragment class:
int get contentLength
andSelectedContentRange? getSelection()
. These two new methods are defined in Flutter 3.29.0, so it is a breaking change. - Updated pubspec.yaml to depend on
flutter: '>=3.29.0'
.
- Updated pubspec.yaml to use
flutter: '>=3.24.0'
.
- Updated to compile with Flutter 3.24.0
- Updated TextRenderer to handle the case where
_painter.text
is null to avoid a possible exception.
- Another update to try to fix static analysis issues.
- More updates to try to fix static analysis issues.
- Updated to fix static analysis issue.
- Fixed compile issue with Flutter 3.19.0 and other bug fixes and updates.
- Fixed bug where if a Widget in a WidgetSpan changes its size, FloatColumn was not updating properly.
- Updated so it builds with Flutter 3.13.0.
- Fixed bug related to
maxLines
being set to a value greater than 1, andoverflow
being set toTextOverflow.ellipsis
, where the text would not be layed out correctly.
- Updated to support Dart 3 and Flutter 3.10.0.
- Updated how text renderers are cached for quicker access.
- Some code cleanup to RenderFloatColumn
hitTestChildren
and other code cleanup.
- Added support for Flutter's selection functionality.
- Added a
copyWithTextSpan
parameter to thedefaultSplitSpanAtIndex
extension method on theInlineSpan
class.
- Added optional an
bool ignoreFloatedWidgetSpans = false
parameter to thesplitAt
andsplitAtIndex
methods ofSplittableMixin
.
- Updated to remove warnings related to latest Flutter version.
- Updated
FloatColumn
to support children of typeTextSpan
,Text
, andRichText
.
- Added
TextOverflow overflow
andint? maxLines
toWrappableText
class.
- Fixed bug in the RenderObject extension method
visitChildrenAndTextRenderers
. It would not recursively visit children withVisitChildrenOfAnyTypeMixin
. Now it does.
- Code updates to fix warnings related to Flutter 3.0 release.
- Fixed bug related to when
markNeedsSemanticsUpdate
is called. Since it can immediately result in a call todescribeSemanticsConfiguration
, it needed to be moved outside of the loop updating the cached WrappableTextRenderer list.
- Fixed bug in RenderFloatColumn assembleSemanticsNode, it was using the
[]
operator of WrappableTextRenderer, when it should have been using therenderers
getter.
- Fixed #3 "WrappableText objects that contain TextSpans that have a recognizer (e.g. TapGestureRecognizer) aren't handled correctly, i.e. the recognizer is ignored for hit tests."
- Updated RenderFloatColumn to support standard
describeSemanticsConfiguration
andassembleSemanticsNode
methods.
- Fixed bug in RenderFloatColumn
visitChildrenOfAnyType
. - Added example Mac app, and updated examples.
- Updated to use
flutter_lints_plus
package and fix Flutter 2.5 lint warnings.
- Added support for floated inline widgets using WidgetSpan with Floatable child.
- Added code that shows overflow area and size in case of height overflow.
- Fixed bug where the layout was incorrect in some cases if line-feed characters were in the text.
- Updated README.md and released 1.0.0 version.
- Updated so the
textAlign
parameter of WrappableText works correctly.
- Updated so negative indent values work correctly.
- Added
RenderBox get renderBox
andOffset get offset
to RenderTextMixin.
- Added support for visiting the children (render objects and text renderers) of a RenderFloatColumn, via the
visitChildrenOfAnyType
function. - Added support for getting detailed info about each text renderer child (via the
RenderTextMixin
), similar to RenderParagraph. - Fixed a bug relating to WrappableText and unique keys.
- Added support for margins and padding to WrappableText and Floatable.
- Removed debug print statements, added more examples to readme file.
- Fixed a bug where a child widget with a width of zero would cause an exception.
- Fixed a bug where a child widget with an unconstrained width would cause an exception.
- Prerelease version with basic functionality, and probably a lot of bugs.