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
c03e7488
Unverified
Commit
c03e7488
authored
May 12, 2021
by
Alexandre Ardhuin
Committed by
GitHub
May 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove noop primitive operations (#82297)
parent
c9fe3bab
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
16 additions
and
29 deletions
+16
-29
apk_utils.dart
dev/devicelab/lib/framework/apk_utils.dart
+0
-1
text.dart
dev/manual_tests/lib/text.dart
+1
-1
dialog.dart
packages/flutter/lib/src/material/dialog.dart
+1
-1
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+1
-1
tabs.dart
packages/flutter/lib/src/material/tabs.dart
+2
-2
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+2
-2
interactive_viewer.dart
packages/flutter/lib/src/widgets/interactive_viewer.dart
+1
-1
inherited_dependencies_test.dart
...ges/flutter/test/widgets/inherited_dependencies_test.dart
+2
-4
navigator_test.dart
packages/flutter/test/widgets/navigator_test.dart
+3
-6
controller.dart
packages/flutter_test/lib/src/controller.dart
+1
-2
cache.dart
packages/flutter_tools/lib/src/cache.dart
+1
-1
doctor_test.dart
...utter_tools/test/commands.shard/hermetic/doctor_test.dart
+0
-2
dart_plugin_registrant_test.dart
...ard/build_system/targets/dart_plugin_registrant_test.dart
+0
-2
dart_plugin_test.dart
...es/flutter_tools/test/general.shard/dart_plugin_test.dart
+1
-2
plugins_test.dart
packages/flutter_tools/test/general.shard/plugins_test.dart
+0
-1
No files found.
dev/devicelab/lib/framework/apk_utils.dart
View file @
c03e7488
...
...
@@ -453,7 +453,6 @@ Future<ProcessResult> _resultOfGradleTask({String workingDirectory, String task,
' Arguments:
${args.join(' ')}
\n
'
' Working directory:
$workingDirectory
\n
'
' JAVA_HOME:
$javaHome
\n
'
''
);
return
Process
.
run
(
gradle
,
...
...
dev/manual_tests/lib/text.dart
View file @
c03e7488
...
...
@@ -99,7 +99,7 @@ class _HomeState extends State<Home> {
min:
0.0
,
max:
1024.0
,
value:
seed
.
toDouble
(),
label:
'
$
{seed.round()}
'
,
label:
'
$
seed
'
,
divisions:
1025
,
onChanged:
(
double
value
)
{
setState
(()
{
...
...
packages/flutter/lib/src/material/dialog.dart
View file @
c03e7488
...
...
@@ -1152,7 +1152,7 @@ class DialogRoute<T> extends RawDialogRoute<T> {
}
double
_paddingScaleFactor
(
double
textScaleFactor
)
{
final
double
clampedTextScaleFactor
=
textScaleFactor
.
clamp
(
1.0
,
2.0
)
.
toDouble
()
;
final
double
clampedTextScaleFactor
=
textScaleFactor
.
clamp
(
1.0
,
2.0
);
// The final padding scale factor is clamped between 1/3 and 1. For example,
// a non-scaled padding of 24 will produce a padding between 24 and 8.
return
lerpDouble
(
1.0
,
1.0
/
3.0
,
clampedTextScaleFactor
-
1.0
)!;
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
c03e7488
...
...
@@ -924,7 +924,7 @@ class _ScaffoldLayout extends MultiChildLayoutDelegate {
if
(
extendBody
)
{
bodyMaxHeight
+=
bottomWidgetsHeight
;
bodyMaxHeight
=
bodyMaxHeight
.
clamp
(
0.0
,
looseConstraints
.
maxHeight
-
contentTop
)
.
toDouble
()
;
bodyMaxHeight
=
bodyMaxHeight
.
clamp
(
0.0
,
looseConstraints
.
maxHeight
-
contentTop
);
assert
(
bodyMaxHeight
<=
math
.
max
(
0.0
,
looseConstraints
.
maxHeight
-
contentTop
));
}
...
...
packages/flutter/lib/src/material/tabs.dart
View file @
c03e7488
...
...
@@ -423,8 +423,8 @@ class _IndicatorPainter extends CustomPainter {
final
double
index
=
controller
.
index
.
toDouble
();
final
double
value
=
controller
.
animation
!.
value
;
final
bool
ltr
=
index
>
value
;
final
int
from
=
(
ltr
?
value
.
floor
()
:
value
.
ceil
()).
clamp
(
0
,
maxTabIndex
)
.
toInt
()
;
final
int
to
=
(
ltr
?
from
+
1
:
from
-
1
).
clamp
(
0
,
maxTabIndex
)
.
toInt
()
;
final
int
from
=
(
ltr
?
value
.
floor
()
:
value
.
ceil
()).
clamp
(
0
,
maxTabIndex
);
final
int
to
=
(
ltr
?
from
+
1
:
from
-
1
).
clamp
(
0
,
maxTabIndex
);
final
Rect
fromRect
=
indicatorRect
(
size
,
from
);
final
Rect
toRect
=
indicatorRect
(
size
,
to
);
_currentRect
=
Rect
.
lerp
(
fromRect
,
toRect
,
(
value
-
from
).
abs
());
...
...
packages/flutter/lib/src/material/theme_data.dart
View file @
c03e7488
...
...
@@ -2273,8 +2273,8 @@ class VisualDensity with Diagnosticable {
BoxConstraints
effectiveConstraints
(
BoxConstraints
constraints
){
assert
(
constraints
!=
null
&&
constraints
.
debugAssertIsValid
());
return
constraints
.
copyWith
(
minWidth:
(
constraints
.
minWidth
+
baseSizeAdjustment
.
dx
).
clamp
(
0.0
,
double
.
infinity
)
.
toDouble
()
,
minHeight:
(
constraints
.
minHeight
+
baseSizeAdjustment
.
dy
).
clamp
(
0.0
,
double
.
infinity
)
.
toDouble
()
,
minWidth:
(
constraints
.
minWidth
+
baseSizeAdjustment
.
dx
).
clamp
(
0.0
,
double
.
infinity
),
minHeight:
(
constraints
.
minHeight
+
baseSizeAdjustment
.
dy
).
clamp
(
0.0
,
double
.
infinity
),
);
}
...
...
packages/flutter/lib/src/widgets/interactive_viewer.dart
View file @
c03e7488
...
...
@@ -691,7 +691,7 @@ class InteractiveViewer extends StatefulWidget {
// the point.
final
Vector3
l1P
=
point
-
l1
;
final
Vector3
l1L2
=
l2
-
l1
;
final
double
fraction
=
(
l1P
.
dot
(
l1L2
)
/
lengthSquared
).
clamp
(
0.0
,
1.0
)
.
toDouble
()
;
final
double
fraction
=
(
l1P
.
dot
(
l1L2
)
/
lengthSquared
).
clamp
(
0.0
,
1.0
);
return
l1
+
l1L2
*
fraction
;
}
...
...
packages/flutter/test/widgets/inherited_dependencies_test.dart
View file @
c03e7488
...
...
@@ -23,8 +23,7 @@ void main() {
equalsIgnoringHashCodes
(
'Directionality-[GlobalKey#00000](textDirection: ltr)
\n
'
'└Builder(dependencies: [Directionality-[GlobalKey#00000]])
\n
'
' └SizedBox(renderObject: RenderConstrainedBox#00000)
\n
'
''
,
' └SizedBox(renderObject: RenderConstrainedBox#00000)
\n
'
,
),
);
...
...
@@ -41,8 +40,7 @@ void main() {
equalsIgnoringHashCodes
(
'Directionality-[GlobalKey#00000](textDirection: rtl)
\n
'
'└Builder(dependencies: [Directionality-[GlobalKey#00000]])
\n
'
' └SizedBox(renderObject: RenderConstrainedBox#00000)
\n
'
''
,
' └SizedBox(renderObject: RenderConstrainedBox#00000)
\n
'
,
),
);
});
...
...
packages/flutter/test/widgets/navigator_test.dart
View file @
c03e7488
...
...
@@ -2537,8 +2537,7 @@ void main() {
' - NavigatorState#00000(tickers: tracking 1 ticker)
\n
'
' Please create a HeroControllerScope for each Navigator or use a
\n
'
' HeroControllerScope.none to prevent subtree from receiving a
\n
'
' HeroController.
\n
'
''
,
' HeroController.
\n
'
,
),
);
});
...
...
@@ -2640,8 +2639,7 @@ void main() {
equalsIgnoringHashCodes
(
'FlutterError
\n
'
' The Navigator.onPopPage must be provided to use the
\n
'
' Navigator.pages API
\n
'
''
,
' Navigator.pages API
\n
'
,
),
);
});
...
...
@@ -2676,8 +2674,7 @@ void main() {
'FlutterError
\n
'
' A page-based route should not be added using the imperative api.
\n
'
' Provide a new list with the corresponding Page to Navigator.pages
\n
'
' instead.
\n
'
''
,
' instead.
\n
'
,
),
);
}
...
...
packages/flutter_test/lib/src/controller.dart
View file @
c03e7488
...
...
@@ -957,8 +957,7 @@ abstract class WidgetController {
'The hit test result at that offset is:
$result
\n
'
'
${StackTrace.current}
'
'To silence this warning, pass "warnIfMissed: false" to "
$callee
()".
\n
'
'To make this warning fatal, set WidgetController.hitTestWarningShouldBeFatal to true.
\n
'
''
'To make this warning fatal, set WidgetController.hitTestWarningShouldBeFatal to true.
\n
'
,
);
}
}
...
...
packages/flutter_tools/lib/src/cache.dart
View file @
c03e7488
...
...
@@ -1021,7 +1021,7 @@ class ArtifactUpdater {
final
Digest
digest
=
await
digests
.
stream
.
last
;
final
String
rawDigest
=
base64
.
encode
(
digest
.
bytes
);
if
(
rawDigest
!=
md5Hash
)
{
throw
Exception
(
''
throw
Exception
(
'Expected
$url
to have md5 checksum
$md5Hash
, but was
$rawDigest
. This '
'may indicate a problem with your connection to the Flutter backend servers. '
'Please re-try the download after confirming that your network connection is '
...
...
packages/flutter_tools/test/commands.shard/hermetic/doctor_test.dart
View file @
c03e7488
...
...
@@ -516,7 +516,6 @@ void main() {
'
\n
'
'! Doctor found issues in 4
\n
'
' categories.
\n
'
''
));
},
overrides:
<
Type
,
Generator
>{
Platform:
_kNoColorOutputPlatform
,
...
...
@@ -563,7 +562,6 @@ void main() {
'
\n
'
'! Doctor found issues in 4
\n
'
' categories.
\n
'
''
));
},
overrides:
<
Type
,
Generator
>{
Platform:
_kNoColorOutputPlatform
,
...
...
packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart
View file @
c03e7488
...
...
@@ -280,7 +280,6 @@ void main() {
' (entrypoint.main as _NullaryFunction)();
\n
'
' }
\n
'
'}
\n
'
''
),
);
});
...
...
@@ -418,7 +417,6 @@ void main() {
' (entrypoint.main as _NullaryFunction)();
\n
'
' }
\n
'
'}
\n
'
''
),
);
});
...
...
packages/flutter_tools/test/general.shard/dart_plugin_test.dart
View file @
c03e7488
...
...
@@ -731,8 +731,7 @@ void main() {
' } else {
\n
'
' (entrypoint.main as _NullaryFunction)();
\n
'
' }
\n
'
'}
\n
'
''
,
'}
\n
'
,
);
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
,
...
...
packages/flutter_tools/test/general.shard/plugins_test.dart
View file @
c03e7488
...
...
@@ -437,7 +437,6 @@ dependencies:
'plugin-a=
${pluginA.path}
/
\n
'
'plugin-b=
${pluginB.path}
/
\n
'
'plugin-c=
${pluginC.path}
/
\n
'
''
);
final
String
pluginsString
=
flutterProject
.
flutterPluginsDependenciesFile
.
readAsStringSync
();
...
...
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