Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 77 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Loading