Skip to content

TexParser.parse() fails #86

Description

@CarlosGamezSynergy

Bug description

When following the example in the documentation, the TexParser(value).parse() method throws a ParserException.

The following ParserException was thrown while dispatching notifications for
MathFieldEditingController:
Instance of 'ParserException': end of input expected (at 1:5)

To Reproduce

Steps to reproduce the behavior:

  1. Setup an empty flutter project
  2. Install math_keyboard
  3. Create a MathField widget as per the math_keyboard documentation
  4. Setup printing the parsed output on the onChanged method as follows:
onChanged: (String value) {
  Expression parsedExpression = TeXParser(value).parse();
  print(parsedExpression.simplify().toString());
},
  1. Throws error described above

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions