forked from firka/flutter
@@ -163,7 +163,10 @@ class MatrixUtils {
|
||||
/// 0.0 before computing its bounding rect.
|
||||
static Rect inverseTransformRect(Matrix4 transform, Rect rect) {
|
||||
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))
|
||||
return rect;
|
||||
transform = Matrix4.copy(transform)..invert();
|
||||
|
||||
Reference in New Issue
Block a user