0

When I try to put Math.tex in a button, the font of the letters is automatically changed. Below is an image where on the left I created an InkWell with Math.tex (which maintains the classic Math.tex font), and on the right a TextButton with Math.tex.

flutter_math_fork

2

InkWell(
  onTap: () {},
  child: Align(
    alignment: Alignment.center,
    child: Math.tex(
      "abc",
    ),
  ),
),

TextButton(
  onPressed: () => {},
  child: Math.tex(
    "abc",
  ),
),

As you can see the fonts are different, I would like the classic Math.tex font to be kept in a button as well, how can I do this?

I also opened a bug report in their github project but maybe there is something simple I can do to fix it.

Francesco - FL
  • 603
  • 1
  • 4
  • 25

0 Answers0