flutter_math 0.2.1
flutter_math: ^0.2.1 copied to clipboard

Flutter Android iOS web

Fast and high-quality TeX math equation rendering with pure Dart & Flutter.

23
likes
90 / 110
pub points
85 %
popularity

We analyzed this package on Jan 16, 2021, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

10/10 points: Package has an example

  • Found example at: example/lib/main.dart

0/10 points: Failed to run dartdoc

  • Running dartdoc failed with the following output:
  warning: unresolved doc reference [x], from package-flutter_math: file:///tmp/pub-dartlang-dartdocYCDHCD/pkg
  warning: unresolved doc reference [x+y], from tex.TexParser.parseGroup: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/parser/tex/parser.dart:345:13)
  error: failed to write file at: ast/MathStyleExt/reduceTable-constant.html, for symbol ast.MathStyleExt.reduceTable: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/style.dart:48:16)
            Dartdoc generates a path and filename to write to for each symbol.
            ast.MathStyleExt.reduceTable conflicts with another symbol in the generated path, and
            therefore can not be written out.  Changing the name, library name, or
            class name (if appropriate) of one of the conflicting items can resolve
            the conflict.   Alternatively, use the @nodoc tag in one symbol's
            documentation comments to hide it.
  error: failed to write file at: ast/MathStyleExtOnSize/sizeStyleMap-constant.html, for symbol ast.MathStyleExtOnSize.sizeStyleMap: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/style.dart:88:16)
  warning: Comment reference resolution inside extension methods is not yet implemented, from ast.GreenNodeWrappingExt.expandEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:748:19)
  warning: unresolved doc reference [EquationRowNode], from ast.GreenNodeWrappingExt.expandEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:748:19)
  warning: Comment reference resolution inside extension methods is not yet implemented, from ast.GreenNodeWrappingExt.unwrapEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:762:13)
  warning: unresolved doc reference [EquationRowNode], from ast.GreenNodeWrappingExt.unwrapEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:762:13)
  warning: Comment reference resolution inside extension methods is not yet implemented, from ast.GreenNodeWrappingExt.wrapWithEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:739:19)
  warning: unresolved doc reference [EquationRowNode], from ast.GreenNodeWrappingExt.wrapWithEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:739:19)
  warning: Comment reference resolution inside extension methods is not yet implemented, from ast.GreenNodeListWrappingExt.wrapWithEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:779:19)
  warning: unresolved doc reference [GreenNode], from ast.GreenNodeListWrappingExt.wrapWithEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:779:19)
  warning: unresolved doc reference [EquationRowNode], from ast.GreenNodeListWrappingExt.wrapWithEquationRow: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/ast/syntax_tree.dart:779:19)
  warning: undefined macro [flutter_math.widgets.math.mathStyle], from flutter_math.SelectableMath.mathStyle: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/widgets/selectable.dart:135:19)
  warning: unresolved doc reference [parseError]
    from flutter_math.SelectableMath.onErrorFallback: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/widgets/selectable.dart:141:25)
    in documentation inherited from flutter_math.SelectableMath.onErrorFallback: (file:///tmp/pub-dartlang-dartdocYCDHCD/pkg/lib/src/widgets/selectable.dart:141:25)
  warning: dartdoc generated a broken link to: ast/UnitExt/parse.html
  warning: dartdoc generated a broken link to: doc/unsupported.md, linked to from package-flutter_math: file:///tmp/pub-dartlang-dartdocYCDHCD/pkg
  warning: dartdoc generated a broken link to: www.mathjax.org, linked to from package-flutter_math: file:///tmp/pub-dartlang-dartdocYCDHCD/pkg
  warning: dartdoc generated a broken link to: doc/design.md, linked to from package-flutter_math: file:///tmp/pub-dartlang-dartdocYCDHCD/pkg
found 17 warnings and 2 errors
Unhandled exception:
dartdoc encountered 2 errors while processing.
#0      Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:231:9)
<asynchronous suspension>
#1      main (file:///project/pkg/pub_dartdoc/bin/pub_dartdoc.dart:32:33)
<asynchronous suspension>
#2      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#3      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Support multiple platforms
20 / 20

20/20 points: Supports 3 of 3 possible platforms (iOS, Android, Web)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 5 issues. Showing the first 2:

INFO: 'useTextSelectionTheme' is deprecated and shouldn't be used. No longer used by the framework, please remove any reference to it. This feature was deprecated after v1.23.0-4.0.pre..

lib/src/widgets/selectable.dart:293:19

    ╷
293 │         if (theme.useTextSelectionTheme) {
    │                   ^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/widgets/selectable.dart

INFO: 'textSelectionColor' is deprecated and shouldn't be used. Use TextSelectionThemeData.selectionColor instead. This feature was deprecated after v1.23.0-4.0.pre..

lib/src/widgets/selectable.dart:300:34

    ╷
300 │           selectionColor = theme.textSelectionColor;
    │                                  ^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/widgets/selectable.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
flutter_svg^0.19.00.19.2+10.19.2+1
meta^1.2.31.3.0-nullsafety.61.3.0-nullsafety.6
provider^4.3.2+24.3.2+44.3.2+4
tuple^1.0.31.0.31.0.3
Transitive dependencies
PackageConstraintCompatibleLatest
characters-1.1.0-nullsafety.51.1.0-nullsafety.5
charcode-1.1.31.2.0-nullsafety.3
collection-1.15.0-nullsafety.51.15.0-nullsafety.5
convert-2.1.12.1.1
matcher-0.12.90.12.10-nullsafety.3
nested-0.0.40.0.4
path-1.7.01.8.0-nullsafety.3
path_drawing-0.4.1+10.4.1+1
path_parsing-0.1.40.1.4
petitparser-3.1.03.1.0
quiver-2.1.52.1.5
stack_trace-1.9.61.10.0-nullsafety.6
typed_data-1.3.0-nullsafety.51.3.0-nullsafety.5
vector_math-2.1.0-nullsafety.52.1.0-nullsafety.5
xml-4.5.14.5.1

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

23
likes
90
pub points
85%
popularity

Fast and high-quality TeX math equation rendering with pure Dart & Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

znjameswu@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter, flutter_svg, meta, provider, tuple

More

Packages that depend on flutter_math