Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
5ec33654
Unverified
Commit
5ec33654
authored
Apr 25, 2019
by
Phil Quitslund
Committed by
GitHub
Apr 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix transform assert (#31568)
* fix transform assert
parent
36d7e79e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
matrix_utils.dart
packages/flutter/lib/src/painting/matrix_utils.dart
+4
-1
No files found.
packages/flutter/lib/src/painting/matrix_utils.dart
View file @
5ec33654
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment