Unverified Commit 5ec33654 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

fix transform assert (#31568)

* fix transform assert
parent 36d7e79e
...@@ -163,7 +163,10 @@ class MatrixUtils { ...@@ -163,7 +163,10 @@ class MatrixUtils {
/// 0.0 before computing its bounding rect. /// 0.0 before computing its bounding rect.
static Rect inverseTransformRect(Matrix4 transform, Rect rect) { static Rect inverseTransformRect(Matrix4 transform, Rect rect) {
assert(rect != null); assert(rect != null);
assert(transform.determinant != 0.0); // As exposed by `unrelated_type_equality_checks`, this assert was a no-op.
// Fixing it introduces a bunch of runtime failures; for more context see:
// https://github.com/flutter/flutter/pull/31568
// assert(transform.determinant != 0.0);
if (isIdentity(transform)) if (isIdentity(transform))
return rect; return rect;
transform = Matrix4.copy(transform)..invert(); transform = Matrix4.copy(transform)..invert();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment