math_keyboard
math_keyboard copied to clipboard
feat: Adds support for custom keyboard pages and other customizations
Description
- BREAKING:
bool secondPagehas been replaced withint pageinMathFieldEditingControllerto allow for more than two pages. - Adds support for custom keyboard pages using the new
customPagesattribute that takes a list ofCustomButtonPages.- Each
CustomButtonPagetakes aList<List<KeyboardButtonConfig>>as well as an optionallabeloriconto be shown using thePageButtonConfig. - The existing pages were wrapped in this class.
- Each
- Adds a
fontSizeattribute toMathKeyboardand akeyboardButtonFontSizeattribute toMathFieldto allow the font size of the keyboard buttons to be adjusted. - Adds a
heightFactorattribute toKeyboardButtonConfigto allow for customization of the height of keyboard rows. - Adds widget tests for
MathKeyboardto test the functionality of custom and default pages on the keyboard.
Related issues & PRs
None
Checklist
- [x] I have made myself familiar with the CaTeX contributing guide.
- [x] I added a PR description.
- [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_keyboardorexamplepackage (also README etc.), I created an entry inCHANGELOG.md(## UPCOMING RELEASEif the change on its own is not worth an update). - [x] If this PR includes a notable change in the
math_keyboardpackage, 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.
- [x] All required checks pass.
@Sub6Resources @edhom this is a very useful PR can it be merged
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.