Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
314 views
in Technique[技术] by (71.8m points)

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 : https://github.com/flutter/flutter/issues/49860 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 {


@override
  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..

question from:https://stackoverflow.com/questions/65874418/latex-not-rendering-with-canvaskit-flutter

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...