सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक उच्च प्रदर्शन वाला Dart और Flutter पैकेज जो सटीकता और गति के साथ TeX गणितीय समीकरणों को रेंडर करता है। flutter_math के एक फॉर्क के रूप में बनाया गया, यह शुद्ध Dart का उपयोग करके Flutter ऐप्स में गणितीय अभिव्यक्तियों को बिना किसी बाधा के एकीकृत करने की अनुमति देता है, जिससे यह Android, iOS, Web, macOS, Windows और Linux सहित सभी प्रमुख प्लेटफॉर्मों पर संगतता सुनिश्चित होती है। शैक्षिक ऐप्स, वैज्ञानिक उपकरणों और किसी भी ऐप के लिए आदर्श जिसमें सटीक समीकरण प्रदर्शन की आवश्यकता हो।
उपयोग
शैक्षिक ऐप्स
वैज्ञानिक कैलकुलेटर
गणितीय सामग्री निरूपण
इंटरएक्टिव लर्निंग प्लेटफॉर्म
दस्तावेज़ दर्शक
मुख्य विशेषताएँ
शुद्ध Dart कार्यान्वयन
उच्च गति रेंडरिंग
क्रॉस-प्लेटफ़ॉर्म समर्थन
TeX सिंटैक्स सामंजस्यता
कस्टमाइज़ किए गए स्टाइल
इनके लिए उपयुक्त
गणित-भारी एप्लिकेशन बना रहे विकासक
शैक्षिक प्रौद्योगिकी परियोजनाएँ
सटीक समीकरण प्रदर्शन की आवश्यकता वाले ऐप
हल्के गणित प्रदर्शन की तलाश में Flutter विकासकर्ता
विचार योग्य बातें
मूल टेक्स सुविधाओं तक सीमित
उन्नत लैटेक पैकेज का समर्थन नहीं है
रेंडरिंग गुणवत्ता फ़ॉन्ट उपलब्धता पर निर्भर करती है
जटिल समीकरणों के लिए ट्यूनिंग की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Flutter Math
⚠ fork
This is a fork of flutter_math addressing compatibility
problems while flutter_math is not being maintained.
Math equation rendering in pure Dart & Flutter.
This project aims to achieve maximum compatibility and fidelity with regard to the KaTeX project, while maintaining the performance advantage of Dart and Flutter. A further UnicodeMath-style equation editing support will be experimented in the future.
The TeX parser is a Dart port of the KaTeX parser. There are only a few unsupported features and parsing differences compared to the original KaTeX parser. List of some unsupported features can be found here.
\hat f(\xi) = \int_{-\infty}^\infty f(x)e^{- 2\pi i \xi x}\mathrm{d}x
How to use
Add flutter_math to your pubspec.yaml dependencies
Mobile
Currently only Android platform has been tested. If you encounter any issues with iOS, please file them.
Web
Web support is added in v0.1.6. It is tested for DomCanvas backend. In general it should behave largely the same with mobile. It is expected to break with CanvasKit backend. Check out the Online Demo
API usage (v0.2.0)
The usage is straightforward. Just Math.tex(r'\frac a b'). There is also optional arguments of TexParserSettings settings, which corresponds to Settings in KaTeX and support a subset of its features.
Display-style equations:
Math.tex(r'\frac a b', mathStyle: MathStyle.display) // Default
In-line equations
Math.tex(r'\frac a b', mathStyle: MathStyle.text)
The default size of the equation is obtained from the build context. If you wish to specify the size, you can use textStyle. Note: this parameter will also change how big 1cm/1pt/1inch is rendered on the screen. If you wish to specify the size of those absolute units, use logicalPpi
There is also a selectable variant SelectableMath that creates selectable and copy-able equations on both mobile and web. (EXPERIMENTAL) Users can select part of the equation and obtain the encoded TeX strings. The usage is similar to Flutter's SelectableText.
SelectableMath.tex(r'\frac a b', textStyle: TextStyle(fontSize: 42))
If you would like to display custom styled error message, you should use onErrorFallback parameter. You can also process the errors in this function. But beware this function is called in build function.