Skip to content

TexParser.parse() failsΒ #86

@CarlosGamezSynergy

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

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