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
74a2e6a5
Unverified
Commit
74a2e6a5
authored
Jun 02, 2020
by
Ian Hickson
Committed by
GitHub
Jun 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various bits of trivial cleanup (#58203)
parent
a436fe76
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
hit_test.dart
packages/flutter/lib/src/gestures/hit_test.dart
+2
-2
box.dart
packages/flutter/lib/src/rendering/box.dart
+3
-3
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+3
-1
No files found.
packages/flutter/lib/src/gestures/hit_test.dart
View file @
74a2e6a5
...
...
@@ -65,8 +65,8 @@ class HitTestEntry {
///
/// See also:
///
/// * [HitTestResult.
pushTransform], which is used during hit
/// t
esting to build up the transform returned by this method
.
/// * [HitTestResult.
addWithPaintTransform], which is used during hit testing
/// t
o build up this transform
.
Matrix4
get
transform
=>
_transform
;
Matrix4
_transform
;
}
...
...
packages/flutter/lib/src/rendering/box.dart
View file @
74a2e6a5
...
...
@@ -691,7 +691,7 @@ class BoxHitTestResult extends HitTestResult {
/// parent don't share the same origin.
///
/// ```dart
/// abstract class Foo extends RenderBox {
/// abstract class
Render
Foo extends RenderBox {
///
/// final Matrix4 _effectiveTransform = Matrix4.rotationZ(50);
///
...
...
@@ -752,7 +752,7 @@ class BoxHitTestResult extends HitTestResult {
///
/// A null value for `offset` is treated as if [Offset.zero] was provided.
///
/// Se also:
/// Se
e
also:
///
/// * [addWithPaintTransform], which takes a generic paint transform matrix and
/// documents the intended usage of this API in more detail.
...
...
@@ -789,7 +789,7 @@ class BoxHitTestResult extends HitTestResult {
/// the child speaks a different hit test protocol then the parent and the
/// position is not required to do the actual hit testing in that protocol.
///
/// Se also:
/// Se
e
also:
///
/// * [addWithPaintTransform], which accomplishes the same thing, but takes a
/// _paint_ transform matrix.
...
...
packages/flutter/lib/src/widgets/basic.dart
View file @
74a2e6a5
...
...
@@ -2732,12 +2732,14 @@ class _OffstageElement extends SingleChildRenderObjectElement {
class
AspectRatio
extends
SingleChildRenderObjectWidget
{
/// Creates a widget with a specific aspect ratio.
///
/// The [aspectRatio] argument must
not be null
.
/// The [aspectRatio] argument must
be a finite number greater than zero
.
const
AspectRatio
({
Key
key
,
@required
this
.
aspectRatio
,
Widget
child
,
})
:
assert
(
aspectRatio
!=
null
),
assert
(
aspectRatio
>
0.0
),
// can't test isFinite because that's not a constant expression
super
(
key:
key
,
child:
child
);
/// The aspect ratio to attempt to use.
...
...
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