Upgrade to 7.3.1

pull/1342/head
Cheryl 2 years ago
parent 6984b78d7b
commit 0ef2959e4b
  1. 6
      CHANGELOG.md
  2. 2
      lib/src/models/documents/document.dart
  3. 10
      lib/src/widgets/toolbar/search_dialog.dart
  4. 2
      pubspec.yaml

@ -1,3 +1,9 @@
# [7.3.1]
- Added case sensitive and whole word search parameters.
- Added wrap around.
- Moved search dialog to the bottom in order not to override the editor and the text found.
- Other minor search dialog enhancements.
# [7.3.0] # [7.3.0]
- Add default attributes to basic factory. - Add default attributes to basic factory.

@ -232,7 +232,7 @@ class Document {
pattern = r'\b' + pattern + r'\b'; pattern = r'\b' + pattern + r'\b';
} }
final searchExpression = RegExp(pattern, caseSensitive: caseSensitive); final searchExpression = RegExp(pattern, caseSensitive: caseSensitive);
while (true) { while (true) {
index = lineText.indexOf(searchExpression, index + 1); index = lineText.indexOf(searchExpression, index + 1);
if (index < 0) { if (index < 0) {
break; break;

@ -58,9 +58,9 @@ class _SearchDialogState extends State<SearchDialog> {
child: Row( child: Row(
children: [ children: [
Tooltip( Tooltip(
message: 'Case sensitivity and whole word search', message: 'Case sensitivity and whole word search'.i18n,
child: ToggleButtons( child: ToggleButtons(
onPressed: (int index) { onPressed: (index) {
if (index == 0) { if (index == 0) {
_changeCaseSensitivity(); _changeCaseSensitivity();
} else if (index == 1) { } else if (index == 1) {
@ -108,19 +108,19 @@ class _SearchDialogState extends State<SearchDialog> {
if (_offsets == null) if (_offsets == null)
IconButton( IconButton(
icon: const Icon(Icons.search), icon: const Icon(Icons.search),
tooltip: 'Find text', tooltip: 'Find text'.i18n,
onPressed: _findText, onPressed: _findText,
), ),
if (_offsets != null) if (_offsets != null)
IconButton( IconButton(
icon: const Icon(Icons.keyboard_arrow_up), icon: const Icon(Icons.keyboard_arrow_up),
tooltip: 'Move to previous occurrence', tooltip: 'Move to previous occurrence'.i18n,
onPressed: (_offsets!.isNotEmpty) ? _moveToPrevious : null, onPressed: (_offsets!.isNotEmpty) ? _moveToPrevious : null,
), ),
if (_offsets != null) if (_offsets != null)
IconButton( IconButton(
icon: const Icon(Icons.keyboard_arrow_down), icon: const Icon(Icons.keyboard_arrow_down),
tooltip: 'Move to next occurrence', tooltip: 'Move to next occurrence'.i18n,
onPressed: (_offsets!.isNotEmpty) ? _moveToNext : null, onPressed: (_offsets!.isNotEmpty) ? _moveToNext : null,
), ),
], ],

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter. description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter.
version: 7.3.0 version: 7.3.1
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save