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
f9acb1e8
Unverified
Commit
f9acb1e8
authored
Dec 14, 2022
by
Phil Quitslund
Committed by
GitHub
Dec 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- unnecessary parens (#117081)
parent
57fb36ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
globals.dart
dev/conductor/core/lib/src/globals.dart
+1
-1
segmented_control_test.dart
packages/flutter/test/cupertino/segmented_control_test.dart
+2
-2
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+1
-1
No files found.
dev/conductor/core/lib/src/globals.dart
View file @
f9acb1e8
...
...
@@ -103,7 +103,7 @@ bool getBoolFromEnvOrArgs(
)
{
final
String
envName
=
fromArgToEnvName
(
name
);
if
(
env
[
envName
]
!=
null
)
{
return
(
env
[
envName
]?.
toUpperCase
()
)
==
'TRUE'
;
return
env
[
envName
]?.
toUpperCase
(
)
==
'TRUE'
;
}
return
argResults
[
name
]
as
bool
;
}
...
...
packages/flutter/test/cupertino/segmented_control_test.dart
View file @
f9acb1e8
...
...
@@ -69,8 +69,8 @@ ui.RRect getSurroundingRect(WidgetTester tester, {int child = 0}) {
Size
getChildSize
(
WidgetTester
tester
,
{
int
child
=
0
})
{
// Using dynamic so the test can access private classes.
// ignore: avoid_dynamic_calls
return
(
(
getRenderSegmentedControl
(
tester
)
as
RenderBoxContainerDefaultsMixin
<
RenderBox
,
ContainerBoxParentData
<
RenderBox
>>)
.
getChildrenAsList
()[
child
]
)
.
size
;
return
(
getRenderSegmentedControl
(
tester
)
as
RenderBoxContainerDefaultsMixin
<
RenderBox
,
ContainerBoxParentData
<
RenderBox
>>)
.
getChildrenAsList
()[
child
].
size
;
}
Color
getBorderColor
(
WidgetTester
tester
)
{
...
...
packages/flutter_tools/lib/src/doctor.dart
View file @
f9acb1e8
...
...
@@ -635,7 +635,7 @@ class FlutterValidator extends DoctorValidator {
bool
_filePathContainsDirPath
(
String
directory
,
String
file
)
{
// calling .canonicalize() will normalize for alphabetic case and path
// separators
return
(
_fileSystem
.
path
.
canonicalize
(
file
)
)
return
_fileSystem
.
path
.
canonicalize
(
file
)
.
startsWith
(
_fileSystem
.
path
.
canonicalize
(
directory
)
+
_fileSystem
.
path
.
separator
);
}
...
...
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