znjameswu / flutter_math

Math rendering and editing in pure Flutter.
https://znjameswu.github.io/flutter_math_demo/
Apache License 2.0
123 stars 52 forks source link

Setting default color to black. Should fix #18. #19

Closed Skyost closed 3 years ago

Skyost commented 3 years ago

The Math widget may try to use a color that doesn't exist in the resolved TextStyle. As everyone isn't overriding the default text color, it may result in a NPE.

See this comment for more info.

codecov-io commented 3 years ago

Codecov Report

Merging #19 (e870dd6) into master (427e4ef) will not change coverage. The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #19   +/-   ##
=======================================
  Coverage   75.59%   75.59%           
=======================================
  Files         135      135           
  Lines        6608     6608           
=======================================
  Hits         4995     4995           
  Misses       1613     1613           
Impacted Files Coverage Δ
lib/src/widgets/math.dart 40.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 427e4ef...e870dd6. Read the comment docs.