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

Missing dry layout support #32

Open creativecreatorormaybenot opened 3 years ago

creativecreatorormaybenot commented 3 years ago

There is a new dry layout contract that is currently unsupported by flutter_math.

See https://flutter.dev/docs/release/breaking-changes/renderbox-dry-layout.

creativecreatorormaybenot commented 3 years ago

@znjameswu I will probably open a PR to address this issue.

creativecreatorormaybenot commented 3 years ago

@znjameswu I started this on https://github.com/simpleclub-extended/flutter_math/commit/ea14ce741c2c749d8830174b1b8495773a5cbff4, however, I realized that I am not deep enough into the code in order to figure out how to deal with the baselines.

It might be that we need to introduce a layout mode that does not rely on the baselines for the dry layout pass.