When the field is empty, currentEditingValue returns a TeX \Box as a placeholder. This was also passed to onChanged and onSubmitted, which is not expected by users. This PR adds a parameter placeholderWhenEmpty to fix the behavior.
[x] I linked all related issues and PRs I could find (no links if there are none).
[x] If this PR changes anything about the main math_keyboard or example package
(also README etc.), I created an entry in CHANGELOG.md (## UPCOMING RELEASE if the change
on its own is not worth an update).
[x] If this PR includes a notable change in the math_keyboard package, I updated the version
according to Dart's semantic versioning.
[x] If there is new functionality in code, I added tests covering all my additions.
Description
When the field is empty,
currentEditingValue
returns a TeX\Box
as a placeholder. This was also passed toonChanged
andonSubmitted
, which is not expected by users. This PR adds a parameterplaceholderWhenEmpty
to fix the behavior.Related issues & PRs
n/a
Checklist
math_keyboard
orexample
package (also README etc.), I created an entry inCHANGELOG.md
(## UPCOMING RELEASE
if the change on its own is not worth an update).math_keyboard
package, I updated the version according to Dart's semantic versioning.