From 8de83dc4e8eb4e3bedde4144fb2073494e760d17 Mon Sep 17 00:00:00 2001 From: Illia Aihistov Date: Tue, 8 Sep 2026 18:03:27 +0300 Subject: [PATCH] feat: release 1.0.0 --- CHANGELOG.md | 103 ++++++++++++++++++++++++++++++++++++++------------- pubspec.yaml | 2 +- 2 files changed, 78 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a28345..929b743 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,33 +1,71 @@ +## 1.0.0 + +- trigger `onChanged` when selecting recommended text + ([#106](https://github.com/solid-software/languagetool_textfield/pull/106)) +- add supported platforms + ([#103](https://github.com/solid-software/languagetool_textfield/pull/103)) +- migrate to `solid_lints` 1.0.0 plugin and fix lints + ([#105](https://github.com/solid-software/languagetool_textfield/pull/105)) + ## 1.0.0-dev.1 ### BREAKING CHANGES -- `build!`: require Flutter 3.27.0 or higher and Dart 3.0.0 or higher ([#91](https://github.com/solid-software/languagetool_textfield/pull/91)) -- `LanguageToolTextField` now extends Flutter's `TextField` instead of `StatefulWidget` ([#90](https://github.com/solid-software/languagetool_textfield/pull/90)) -- rename `LanguageToolTextField` parameters to match `TextField`'s naming ([#90](https://github.com/solid-software/languagetool_textfield/pull/90)) +- `build!`: require Flutter 3.27.0 or higher and Dart 3.0.0 or higher + ([#91](https://github.com/solid-software/languagetool_textfield/pull/91)) +- `LanguageToolTextField` now extends Flutter's `TextField` instead of + `StatefulWidget` + ([#90](https://github.com/solid-software/languagetool_textfield/pull/90)) +- rename `LanguageToolTextField` parameters to match `TextField`'s naming + ([#90](https://github.com/solid-software/languagetool_textfield/pull/90)) - `autoFocus` -> `autofocus` - `onTextChange` -> `onChanged` - `onTextSubmitted` -> `onSubmitted` -- rename language check services and move them to `wrappers/` ([#93](https://github.com/solid-software/languagetool_textfield/pull/93), [9157f8c](https://github.com/solid-software/languagetool_textfield/commit/9157f8c39b0defe6c3dda6d6e2945980fad67594)) +- rename language check services and move them to `wrappers/` + ([#93](https://github.com/solid-software/languagetool_textfield/pull/93), + [9157f8c](https://github.com/solid-software/languagetool_textfield/commit/9157f8c39b0defe6c3dda6d6e2945980fad67594)) - `LangToolService` -> `LanguageToolService` - `DebounceLangToolService` -> `DebounceLanguageCheckService` - `ThrottlingLangToolService` -> `ThrottlingLanguageCheckService` -- hide `baseService`, `debouncing` and `throttling` fields from the debouncing and throttling wrappers ([#93](https://github.com/solid-software/languagetool_textfield/pull/93), [9157f8c](https://github.com/solid-software/languagetool_textfield/commit/9157f8c39b0defe6c3dda6d6e2945980fad67594)) -- remove `delayType` and `delay` fields from `LanguageToolController`; they remain constructor parameters ([#93](https://github.com/solid-software/languagetool_textfield/pull/93)) -- `LanguageCheckService` implementations must now provide a `language` getter and setter ([#93](https://github.com/solid-software/languagetool_textfield/pull/93), [8f2b230](https://github.com/solid-software/languagetool_textfield/commit/8f2b230cadf60f2886fc009c396528bbdf1c99ba)) +- hide `baseService`, `debouncing` and `throttling` fields from the debouncing + and throttling wrappers + ([#93](https://github.com/solid-software/languagetool_textfield/pull/93), + [9157f8c](https://github.com/solid-software/languagetool_textfield/commit/9157f8c39b0defe6c3dda6d6e2945980fad67594)) +- remove `delayType` and `delay` fields from `LanguageToolController`; they + remain constructor parameters + ([#93](https://github.com/solid-software/languagetool_textfield/pull/93)) +- `LanguageCheckService` implementations must now provide a `language` getter + and setter + ([#93](https://github.com/solid-software/languagetool_textfield/pull/93), + [8f2b230](https://github.com/solid-software/languagetool_textfield/commit/8f2b230cadf60f2886fc009c396528bbdf1c99ba)) - group `HighlightStyle`'s mistake colors into a `MistakeColors` object -- group `Match`'s position fields (`offset`, `length`, `sentence`) into a `MatchLocation` object -- group `LanguageToolMistakePopup`'s layout and styling fields into a `MistakePopupStyle` object +- group `Match`'s position fields (`offset`, `length`, `sentence`) into a + `MatchLocation` object +- group `LanguageToolMistakePopup`'s layout and styling fields into a + `MistakePopupStyle` object ### New Features -- allow overriding `languageCheckService` on `LanguageToolController` for full control over how text is analyzed ([#93](https://github.com/solid-software/languagetool_textfield/pull/93)) -- add `isEnabled` to toggle spell check ([#92](https://github.com/solid-software/languagetool_textfield/pull/92)) -- support adding words to dictionary through the `addWordToDictionary` callback in `LanguageToolMistakePopup` ([#95](https://github.com/solid-software/languagetool_textfield/pull/95), [9de4a15](https://github.com/solid-software/languagetool_textfield/commit/9de4a153a381959713ef971932afd8cef83a69cc)) -- add `FilteredLanguageCheckService` to drop mistakes matching a custom predicate ([#95](https://github.com/solid-software/languagetool_textfield/pull/95)) -- add `LanguageToolController.recheckText()` to force a recheck without changing the text ([#95](https://github.com/solid-software/languagetool_textfield/pull/95), [9de4a15](https://github.com/solid-software/languagetool_textfield/commit/9de4a153a381959713ef971932afd8cef83a69cc)) -- export `Result` to allow custom `LanguageCheckService` implementations ([#95](https://github.com/solid-software/languagetool_textfield/pull/95)) -- add missing properties from Flutter's `TextField` ([#90](https://github.com/solid-software/languagetool_textfield/pull/90)) +- allow overriding `languageCheckService` on `LanguageToolController` for full + control over how text is analyzed + ([#93](https://github.com/solid-software/languagetool_textfield/pull/93)) +- add `isEnabled` to toggle spell check + ([#92](https://github.com/solid-software/languagetool_textfield/pull/92)) +- support adding words to dictionary through the `addWordToDictionary` callback + in `LanguageToolMistakePopup` + ([#95](https://github.com/solid-software/languagetool_textfield/pull/95), + [9de4a15](https://github.com/solid-software/languagetool_textfield/commit/9de4a153a381959713ef971932afd8cef83a69cc)) +- add `FilteredLanguageCheckService` to drop mistakes matching a custom + predicate + ([#95](https://github.com/solid-software/languagetool_textfield/pull/95)) +- add `LanguageToolController.recheckText()` to force a recheck without changing + the text + ([#95](https://github.com/solid-software/languagetool_textfield/pull/95), + [9de4a15](https://github.com/solid-software/languagetool_textfield/commit/9de4a153a381959713ef971932afd8cef83a69cc)) +- export `Result` to allow custom `LanguageCheckService` implementations + ([#95](https://github.com/solid-software/languagetool_textfield/pull/95)) +- add missing properties from Flutter's `TextField` + ([#90](https://github.com/solid-software/languagetool_textfield/pull/90)) - autofillHints - buildCounter - canRequestFocus @@ -73,14 +111,27 @@ ### Fixes -- mistake popup is now themed with the app's `ColorScheme`, fixing visibility in dark mode ([#88](https://github.com/solid-software/languagetool_textfield/pull/88)) -- recheck text when the language changes ([#96](https://github.com/solid-software/languagetool_textfield/pull/96), [cae2cba](https://github.com/solid-software/languagetool_textfield/commit/cae2cba337ac9c2973d534159265f072c3a050ea)) -- clear mistakes that fall out of the new text range, fixing a `RangeError` when changing text programmatically ([#97](https://github.com/solid-software/languagetool_textfield/pull/97)) -- prevent notifying listeners after an async gap when the controller is disposed ([#97](https://github.com/solid-software/languagetool_textfield/pull/97)) -- `ThrottlingLanguageCheckService` now discards mistakes with offsets outside the checked text's range ([#95](https://github.com/solid-software/languagetool_textfield/pull/95)) -- avoid setting `scrollOffset` before the scroll controller is attached ([#100](https://github.com/solid-software/languagetool_textfield/pull/100)) -- select the correct mistake in a scrolled multiline field, where `scrollOffset` was applied as a horizontal shift -- `style`: use the default `IconButton` padding in the mistake popup ([#95](https://github.com/solid-software/languagetool_textfield/pull/95), [9de4a15](https://github.com/solid-software/languagetool_textfield/commit/9de4a153a381959713ef971932afd8cef83a69cc)) +- mistake popup is now themed with the app's `ColorScheme`, fixing visibility in + dark mode + ([#88](https://github.com/solid-software/languagetool_textfield/pull/88)) +- recheck text when the language changes + ([#96](https://github.com/solid-software/languagetool_textfield/pull/96), + [cae2cba](https://github.com/solid-software/languagetool_textfield/commit/cae2cba337ac9c2973d534159265f072c3a050ea)) +- clear mistakes that fall out of the new text range, fixing a `RangeError` when + changing text programmatically + ([#97](https://github.com/solid-software/languagetool_textfield/pull/97)) +- prevent notifying listeners after an async gap when the controller is disposed + ([#97](https://github.com/solid-software/languagetool_textfield/pull/97)) +- `ThrottlingLanguageCheckService` now discards mistakes with offsets outside + the checked text's range + ([#95](https://github.com/solid-software/languagetool_textfield/pull/95)) +- avoid setting `scrollOffset` before the scroll controller is attached + ([#100](https://github.com/solid-software/languagetool_textfield/pull/100)) +- select the correct mistake in a scrolled multiline field, where `scrollOffset` + was applied as a horizontal shift +- `style`: use the default `IconButton` padding in the mistake popup + ([#95](https://github.com/solid-software/languagetool_textfield/pull/95), + [9de4a15](https://github.com/solid-software/languagetool_textfield/commit/9de4a153a381959713ef971932afd8cef83a69cc)) ## 0.1.1 @@ -90,8 +141,8 @@ - Moved implementation into the `src` directory - Updated dependencies -- Add some properties (cursorColor, onTextChange, focusNode, onTextSubmitted, ...) for TextField - Credits: @dab246 +- Add some properties (cursorColor, onTextChange, focusNode, onTextSubmitted, + ...) for TextField Credits: @dab246 - Replace deprecated MaterialStateMouseCursor ## 0.0.6 diff --git a/pubspec.yaml b/pubspec.yaml index a31dc05..936be1a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: languagetool_textfield description: The LanguageTool TextField package is a spell-checker designed for Flutter apps. This is useful for apps that need text input like messaging, notes, and email. -version: 1.0.0-dev.1 +version: 1.0.0 homepage: https://github.com/solid-software/languagetool_textfield/ platforms: android: