Fix getExtentEndpointForSelection

pull/13/head
singerdmx 4 years ago
parent 486b823d35
commit 7c2da544c9
  1. 5
      CHANGELOG.md
  2. 3
      lib/widgets/text_line.dart
  3. 2
      pubspec.yaml

@ -42,4 +42,7 @@
* Handle url with trailing spaces. * Handle url with trailing spaces.
## [0.1.5] ## [0.1.5]
* Support text alignment. * Support text alignment.
## [0.1.6]
* Fix getExtentEndpointForSelection.

@ -564,7 +564,8 @@ class RenderEditableTextLine extends RenderEditableBox {
assert(boxes.isNotEmpty); assert(boxes.isNotEmpty);
TextBox targetBox = first ? boxes.first : boxes.last; TextBox targetBox = first ? boxes.first : boxes.last;
return TextSelectionPoint( return TextSelectionPoint(
Offset(targetBox.start, targetBox.bottom), targetBox.direction); Offset(first ? targetBox.start : targetBox.end, targetBox.bottom),
targetBox.direction);
} }
@override @override

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: One client and affiliated collaborator of Flutter Quill is Bullet Journal App. description: One client and affiliated collaborator of Flutter Quill is Bullet Journal App.
version: 0.1.5 version: 0.1.6
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill.git repository: https://github.com/singerdmx/flutter-quill.git

Loading…
Cancel
Save