- Breaking change: Flutter 3.29.0 required breaking change to the float_column package that this library depends on.
- Started adding support for right-to-left languages, still a work in progress.
- Updated to use latest float_column version that supports Flutter 3.24.0.
- Updated to use latest float_column version with build fixes for Flutter 3.19.0.
- Added optional
bool useExperimentalPopupMenu = false
parameter to the Selectable class.
- Updated to support Dart 3 and Flutter 3.10.0.
- Updated the
TaggedTextSpan
class'ssplitAtIndex
method to use the newcopyWithTextSpan
parameter ofdefaultSplitSpanAtIndex
to call the correctcopyWith
method, depending on the type.
- Updated to use latest float_column version with bug fix.
- Removed from SelectableController the deprecated properties
text
,selectionStart
,selectionEnd
, andrects
. - Added the ability to customize how the rectangles of selected text is converted to selection rectangles via the new SelectableController
setCustomRectifier
method. See the included example app for an example of its use. - Added
bool selectAll()
to the SelectableController class.
- Added
int? get startIndex
andint? get endIndex
to the Selection class. - Added
final IconData? icon
to the SelectableMenuItem class. - Updated the example app to show how to interact with the underlying text spans, for example, updating selected text spans to a different color.
- Deprecated
isWhitespaceRune
and addedisWhitespaceCharacter
andisNonWordCharacter
.
- Fixed Issue #7 "Crash when adjusting selection handles".
- Added
IgnoreSelectable
widget for wrapping widgets that should not be selectable.
- Fixed a bug where in some cases the selection wouldn't repaint in the correct location after a window resize.
- Updated so dragging a selection control with a finger places the point of contact above the finger.
- README updates.
- Some code cleanup, and update to the example app.
- Bug fixes and new features.
- Updated to create a SelectableController for use internally if one is not provided.
- Added
bool selectWordOnLongPress
andbool selectWordOnDoubleTap
to the Selectable constructor. To not break current usage, selectWordOnLongPress defaults to true, and selectWordOnDoubleTap defaults to false. - Updated the src/material/text_selection.dart buildHandle function to set the handle color to
TextSelectionTheme.of(context).selectionHandleColor ?? theme.colorScheme.primary
, which fixes #2 - Updated the default selection color to be:
TextSelectionTheme.of(context).selectionColor ?? (_selection.usingCupertinoControls ? CupertinoTheme.of(context).primaryColor.withOpacity(0.25) : Theme.of(context).colorScheme.primary.withOpacity(0.25))
- Example app updates.
- Initial release.