Latex not rendering with canvaskit flutter


I’m using flutter wub with flutter run -d chrome –dart-define=FLUTTER_WEB_USE_SKIA=true
I need canvaskit for my richtext editor, there are some know issues if you don’t use it :
if you test this example app on flutter web with

flutter run -d chrome --dart-define=FLUTTER_WEB_USE_SKIA=true 

import 'package:flutter/material.dart';
import 'package:catex/catex.dart';

class CatexExample extends StatelessWidget {

  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: CaTeX(r'\sum'),

you need :

catex: ^0.0.1+7

if anyone has a solution to display latex with canvaskit enabled..


Okay if anyone has the same problem, i switched to flutter_math and it works!

Answered By – Paul Cbt

Answer Checked By – Mildred Charles (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.