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
12147ad7
Unverified
Commit
12147ad7
authored
May 24, 2022
by
LongCatIsLooong
Committed by
GitHub
May 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `RenderObject.rotate` (#103092)
parent
ca176740
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
object.dart
packages/flutter/lib/src/rendering/object.dart
+0
-18
view.dart
packages/flutter/lib/src/rendering/view.dart
+0
-5
No files found.
packages/flutter/lib/src/rendering/object.dart
View file @
12147ad7
...
...
@@ -2119,24 +2119,6 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
}
}
/// Rotate this render object (not yet implemented).
void
rotate
({
int
?
oldAngle
,
// 0..3
int
?
newAngle
,
// 0..3
Duration
?
time
,
})
{
}
// when the parent has rotated (e.g. when the screen has been turned
// 90 degrees), immediately prior to layout() being called for the
// new dimensions, rotate() is called with the old and new angles.
// The next time paint() is called, the coordinate space will have
// been rotated N quarter-turns clockwise, where:
// N = newAngle-oldAngle
// ...but the rendering is expected to remain the same, pixel for
// pixel, on the output device. Then, the layout() method or
// equivalent will be called.
// PAINTING
/// Whether [paint] for this render object is currently running.
...
...
packages/flutter/lib/src/rendering/view.dart
View file @
12147ad7
...
...
@@ -169,11 +169,6 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
child
!.
layout
(
BoxConstraints
.
tight
(
_size
));
}
@override
void
rotate
({
int
?
oldAngle
,
int
?
newAngle
,
Duration
?
time
})
{
assert
(
false
);
// nobody tells the screen to rotate, the whole rotate() dance is started from our performResize()
}
/// Determines the set of render objects located at the given position.
///
/// Returns true if the given point is contained in this render object or one
...
...
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