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
17ef9488
Commit
17ef9488
authored
Jan 08, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transition callers from 'concat' to 'transform'
See:
https://github.com/flutter/flutter/issues/1080
parent
606887a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
painting.dart
examples/raw/painting.dart
+1
-1
material.dart
packages/flutter/lib/src/material/material.dart
+2
-2
object.dart
packages/flutter/lib/src/rendering/object.dart
+1
-1
sprite_box.dart
packages/flutter_sprites/lib/src/sprite_box.dart
+1
-1
No files found.
examples/raw/painting.dart
View file @
17ef9488
...
...
@@ -39,7 +39,7 @@ ui.Picture paint(ui.Rect paintBounds) {
0.0
,
0.0
,
1.0
,
0.0
,
0.0
,
0.0
,
0.0
,
1.0
,
]);
canvas
.
concat
(
scaleMatrix
);
canvas
.
transform
(
scaleMatrix
);
paint
.
color
=
const
ui
.
Color
.
fromARGB
(
128
,
0
,
255
,
0
);
canvas
.
drawCircle
(
ui
.
Point
.
origin
,
radius
,
paint
);
...
...
packages/flutter/lib/src/material/material.dart
View file @
17ef9488
...
...
@@ -379,7 +379,7 @@ class _InkSplash extends InkFeature implements InkSplash {
Offset
originOffset
=
MatrixUtils
.
getAsTranslation
(
transform
);
if
(
originOffset
==
null
)
{
canvas
.
save
();
canvas
.
concat
(
transform
.
storage
);
canvas
.
transform
(
transform
.
storage
);
if
(
clipToReferenceBox
)
canvas
.
clipRect
(
Point
.
origin
&
referenceBox
.
size
);
if
(
repositionToReferenceBox
)
...
...
@@ -465,7 +465,7 @@ class _InkHighlight extends InkFeature implements InkHighlight {
Offset
originOffset
=
MatrixUtils
.
getAsTranslation
(
transform
);
if
(
originOffset
==
null
)
{
canvas
.
save
();
canvas
.
concat
(
transform
.
storage
);
canvas
.
transform
(
transform
.
storage
);
_paintHighlight
(
canvas
,
Point
.
origin
&
referenceBox
.
size
,
paint
);
canvas
.
restore
();
}
else
{
...
...
packages/flutter/lib/src/rendering/object.dart
View file @
17ef9488
...
...
@@ -278,7 +278,7 @@ class PaintingContext {
Matrix4
offsetMatrix
=
new
Matrix4
.
translationValues
(
offset
.
dx
,
offset
.
dy
,
0.0
);
Matrix4
transformWithOffset
=
offsetMatrix
*
transform
;
canvas
.
save
();
canvas
.
concat
(
transformWithOffset
.
storage
);
canvas
.
transform
(
transformWithOffset
.
storage
);
painter
(
this
,
Offset
.
zero
);
canvas
.
restore
();
}
...
...
packages/flutter_sprites/lib/src/sprite_box.dart
View file @
17ef9488
...
...
@@ -337,7 +337,7 @@ class SpriteBox extends RenderBox {
// Move to correct coordinate space before drawing
canvas
.
translate
(
offset
.
dx
,
offset
.
dy
);
canvas
.
concat
(
transformMatrix
.
storage
);
canvas
.
transform
(
transformMatrix
.
storage
);
// Draw the sprite tree
Matrix4
totalMatrix
=
new
Matrix4
.
fromFloat64List
(
canvas
.
getTotalMatrix
());
...
...
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