Skip to content

Commit 0ef2959

Browse files
Upgrade to 7.3.1
1 parent 6984b78 commit 0ef2959

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# [7.3.1]
2+
- Added case sensitive and whole word search parameters.
3+
- Added wrap around.
4+
- Moved search dialog to the bottom in order not to override the editor and the text found.
5+
- Other minor search dialog enhancements.
6+
17
# [7.3.0]
28
- Add default attributes to basic factory.
39

lib/src/models/documents/document.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class Document {
232232
pattern = r'\b' + pattern + r'\b';
233233
}
234234
final searchExpression = RegExp(pattern, caseSensitive: caseSensitive);
235-
while (true) {
235+
while (true) {
236236
index = lineText.indexOf(searchExpression, index + 1);
237237
if (index < 0) {
238238
break;

lib/src/widgets/toolbar/search_dialog.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class _SearchDialogState extends State<SearchDialog> {
5858
child: Row(
5959
children: [
6060
Tooltip(
61-
message: 'Case sensitivity and whole word search',
61+
message: 'Case sensitivity and whole word search'.i18n,
6262
child: ToggleButtons(
63-
onPressed: (int index) {
63+
onPressed: (index) {
6464
if (index == 0) {
6565
_changeCaseSensitivity();
6666
} else if (index == 1) {
@@ -108,19 +108,19 @@ class _SearchDialogState extends State<SearchDialog> {
108108
if (_offsets == null)
109109
IconButton(
110110
icon: const Icon(Icons.search),
111-
tooltip: 'Find text',
111+
tooltip: 'Find text'.i18n,
112112
onPressed: _findText,
113113
),
114114
if (_offsets != null)
115115
IconButton(
116116
icon: const Icon(Icons.keyboard_arrow_up),
117-
tooltip: 'Move to previous occurrence',
117+
tooltip: 'Move to previous occurrence'.i18n,
118118
onPressed: (_offsets!.isNotEmpty) ? _moveToPrevious : null,
119119
),
120120
if (_offsets != null)
121121
IconButton(
122122
icon: const Icon(Icons.keyboard_arrow_down),
123-
tooltip: 'Move to next occurrence',
123+
tooltip: 'Move to next occurrence'.i18n,
124124
onPressed: (_offsets!.isNotEmpty) ? _moveToNext : null,
125125
),
126126
],

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_quill
22
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.
3-
version: 7.3.0
3+
version: 7.3.1
44
homepage: https://bulletjournal.us/home/index.html
55
repository: https://github.com/singerdmx/flutter-quill
66

0 commit comments

Comments
 (0)