math_keyboard icon indicating copy to clipboard operation
math_keyboard copied to clipboard

feat: Adds support for custom keyboard pages and other customizations

Open Sub6Resources opened this issue 2 years ago • 1 comments

Description

  • BREAKING: bool secondPage has been replaced with int page in MathFieldEditingController to allow for more than two pages.
  • Adds support for custom keyboard pages using the new customPages attribute that takes a list of CustomButtonPages.
    • Each CustomButtonPage takes a List<List<KeyboardButtonConfig>> as well as an optional label or icon to be shown using the PageButtonConfig.
    • The existing pages were wrapped in this class.
  • Adds a fontSize attribute to MathKeyboard and a keyboardButtonFontSize attribute to MathField to allow the font size of the keyboard buttons to be adjusted.
  • Adds a heightFactor attribute to KeyboardButtonConfig to allow for customization of the height of keyboard rows.
  • Adds widget tests for MathKeyboard to 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_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.
  • [x] All required checks pass.

Sub6Resources avatar Aug 08 '23 02:08 Sub6Resources

@Sub6Resources @edhom this is a very useful PR can it be merged

absar avatar Jul 21 '24 13:07 absar

CLA assistant check
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.

CLAassistant avatar Nov 19 '24 23:11 CLAassistant