Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

math_keyboard

math_keyboard is a flutter package that allows editing math expressions using a typeset input field (so-called “math field”) and a custom-made fully integrated math keyboard in flutter only – no plugins, no web views.

the math_keyboard package provides a widget that behaves like a flutter textfield with the same full integration, i.e. focus tree support, input decoration support, and both an on-screen software keyboard as well as physical keyboard input support. on top of that, the math field typesetting uses tex and the package supports converting to math expressions (that e.g. can be used for calculation).

math_keyboard is an open source project with the aim of providing a way to edit math expression providing the best user experience in terms of input and ui as well as allowing accurate evaluation of the mathematical expressions entered by the user. this is used by the simpleclub app, hence, the association.

implementation

in the following, some high-level information regarding the implementation of the package is
described. this is useful in case you are curious or intend to contribute.

for information on implementing math_keyboard into your own app, please see the
package readme.

math expressions

notice how the math_keyboard package includes a major feature that allows working with the input
expressions in a mathematical matter, i.e. by converting them into “math expressions” (this is how
we refer to the format in the context of this project).

we achieve this by essentially working with two formats:

  • the typeset display format, powered by tex (see below).
  • a data format, i.e. math expressions.

this “data format” depends on the math_expressions package. handling the
expressions in this format allows you to e.g. evaluate the expressions.

tex typesetting

both the math field content, i.e. the expressions typed by the user, as well as some symbols on the
keyboard itself are typeset using tex. for tex typesetting in flutter, we created our own proof of
concept renderer in early 2020, called catex. this project is on-hold for now and in the
meantime, we collaborated on the flutter_math package that aims to achieve something similar.
due to lack of maintenance on that repo, we are currently using our forked version,
flutter_math_fork. note that our ultimate goal is fully integrating the math_keyboard package
with the catex package, which would give us maximum control over the rendering of the typeset math.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.