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
9bca38c5
Unverified
Commit
9bca38c5
authored
May 07, 2021
by
Alexandre Ardhuin
Committed by
GitHub
May 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary String.toString() (#81859)
parent
e74c15ca
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
stock_strings.dart
dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart
+1
-1
slider_demo.dart
..._tests/flutter_gallery/lib/demo/material/slider_demo.dart
+1
-1
editable.dart
packages/flutter/lib/src/rendering/editable.dart
+1
-1
skia_client.dart
packages/flutter_goldens_client/lib/skia_client.dart
+1
-1
_goldens_web.dart
packages/flutter_test/lib/src/_goldens_web.dart
+1
-1
gradle_utils.dart
packages/flutter_tools/lib/src/android/gradle_utils.dart
+1
-1
compile.dart
packages/flutter_tools/lib/src/compile.dart
+1
-1
project_base_configuration_migration.dart
.../ios/migrations/project_base_configuration_migration.dart
+1
-1
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+1
-1
cmake_custom_command_migration.dart
...ls/lib/src/migrations/cmake_custom_command_migration.dart
+1
-1
No files found.
dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart
View file @
9bca38c5
...
@@ -66,7 +66,7 @@ import 'stock_strings_es.dart';
...
@@ -66,7 +66,7 @@ import 'stock_strings_es.dart';
/// be consistent with the languages listed in the StockStrings.supportedLocales
/// be consistent with the languages listed in the StockStrings.supportedLocales
/// property.
/// property.
abstract
class
StockStrings
{
abstract
class
StockStrings
{
StockStrings
(
String
locale
)
:
localeName
=
intl
.
Intl
.
canonicalizedLocale
(
locale
.
toString
()
);
StockStrings
(
String
locale
)
:
localeName
=
intl
.
Intl
.
canonicalizedLocale
(
locale
);
final
String
localeName
;
final
String
localeName
;
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/slider_demo.dart
View file @
9bca38c5
...
@@ -282,7 +282,7 @@ class _SlidersState extends State<_Sliders> {
...
@@ -282,7 +282,7 @@ class _SlidersState extends State<_Sliders> {
),
),
),
),
Slider
.
adaptive
(
Slider
.
adaptive
(
label:
_continuousValue
.
toStringAsFixed
(
6
)
.
toString
()
,
label:
_continuousValue
.
toStringAsFixed
(
6
),
value:
_continuousValue
,
value:
_continuousValue
,
min:
0.0
,
min:
0.0
,
max:
100.0
,
max:
100.0
,
...
...
packages/flutter/lib/src/rendering/editable.dart
View file @
9bca38c5
...
@@ -727,7 +727,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin {
...
@@ -727,7 +727,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin {
int
?
lastNonWhitespace
;
int
?
lastNonWhitespace
;
for
(
final
String
currentString
in
string
.
characters
)
{
for
(
final
String
currentString
in
string
.
characters
)
{
if
(!
includeWhitespace
&&
if
(!
includeWhitespace
&&
!
_isWhitespace
(
currentString
.
characters
.
first
.
toString
().
codeUnitAt
(
0
)))
{
!
_isWhitespace
(
currentString
.
characters
.
first
.
codeUnitAt
(
0
)))
{
lastNonWhitespace
=
count
;
lastNonWhitespace
=
count
;
}
}
if
(
count
+
currentString
.
length
>=
index
)
{
if
(
count
+
currentString
.
length
>=
index
)
{
...
...
packages/flutter_goldens_client/lib/skia_client.dart
View file @
9bca38c5
...
@@ -376,7 +376,7 @@ class SkiaGoldClient {
...
@@ -376,7 +376,7 @@ class SkiaGoldClient {
/// Removes the file extension from the [fileName] to represent the test name
/// Removes the file extension from the [fileName] to represent the test name
/// properly.
/// properly.
String
cleanTestName
(
String
fileName
)
{
String
cleanTestName
(
String
fileName
)
{
return
fileName
.
split
(
path
.
extension
(
fileName
.
toString
()
))[
0
];
return
fileName
.
split
(
path
.
extension
(
fileName
))[
0
];
}
}
/// Returns a boolean value to prevent the client from re-authorizing itself
/// Returns a boolean value to prevent the client from re-authorizing itself
...
...
packages/flutter_test/lib/src/_goldens_web.dart
View file @
9bca38c5
...
@@ -64,7 +64,7 @@ class DefaultWebGoldenComparator extends WebGoldenComparator {
...
@@ -64,7 +64,7 @@ class DefaultWebGoldenComparator extends WebGoldenComparator {
method:
'POST'
,
method:
'POST'
,
sendData:
json
.
encode
(<
String
,
Object
>{
sendData:
json
.
encode
(<
String
,
Object
>{
'testUri'
:
testUri
.
toString
(),
'testUri'
:
testUri
.
toString
(),
'key'
:
key
.
toString
()
,
'key'
:
key
,
'width'
:
width
.
round
(),
'width'
:
width
.
round
(),
'height'
:
height
.
round
(),
'height'
:
height
.
round
(),
}),
}),
...
...
packages/flutter_tools/lib/src/android/gradle_utils.dart
View file @
9bca38c5
...
@@ -235,7 +235,7 @@ void updateLocalProperties({
...
@@ -235,7 +235,7 @@ void updateLocalProperties({
buildInfo
.
buildNumber
??
project
.
manifest
.
buildNumber
,
buildInfo
.
buildNumber
??
project
.
manifest
.
buildNumber
,
globals
.
logger
,
globals
.
logger
,
);
);
changeIfNecessary
(
'flutter.versionCode'
,
buildNumber
?.
toString
()
);
changeIfNecessary
(
'flutter.versionCode'
,
buildNumber
);
}
}
if
(
changed
)
{
if
(
changed
)
{
...
...
packages/flutter_tools/lib/src/compile.dart
View file @
9bca38c5
...
@@ -662,7 +662,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
...
@@ -662,7 +662,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
toMultiRootPath
(
fileUri
,
fileSystemScheme
,
fileSystemRoots
,
_platform
.
isWindows
);
toMultiRootPath
(
fileUri
,
fileSystemScheme
,
fileSystemRoots
,
_platform
.
isWindows
);
}
}
_server
.
stdin
.
writeln
(
message
);
_server
.
stdin
.
writeln
(
message
);
_logger
.
printTrace
(
message
.
toString
()
);
_logger
.
printTrace
(
message
);
}
}
_server
.
stdin
.
writeln
(
inputKey
);
_server
.
stdin
.
writeln
(
inputKey
);
_logger
.
printTrace
(
'<-
$inputKey
'
);
_logger
.
printTrace
(
'<-
$inputKey
'
);
...
...
packages/flutter_tools/lib/src/ios/migrations/project_base_configuration_migration.dart
View file @
9bca38c5
...
@@ -86,7 +86,7 @@ class ProjectBaseConfigurationMigration extends ProjectMigrator {
...
@@ -86,7 +86,7 @@ class ProjectBaseConfigurationMigration extends ProjectMigrator {
newProjectContents
=
newProjectContents
.
replaceAll
(
releaseBaseConfigurationOriginal
,
releaseBaseConfigurationReplacement
);
newProjectContents
=
newProjectContents
.
replaceAll
(
releaseBaseConfigurationOriginal
,
releaseBaseConfigurationReplacement
);
if
(
originalProjectContents
!=
newProjectContents
)
{
if
(
originalProjectContents
!=
newProjectContents
)
{
logger
.
printStatus
(
'Project base configurations detected, removing.'
);
logger
.
printStatus
(
'Project base configurations detected, removing.'
);
_xcodeProjectInfoFile
.
writeAsStringSync
(
newProjectContents
.
toString
()
);
_xcodeProjectInfoFile
.
writeAsStringSync
(
newProjectContents
);
}
}
return
true
;
return
true
;
}
}
...
...
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
9bca38c5
...
@@ -130,7 +130,7 @@ class SimControl {
...
@@ -130,7 +130,7 @@ class SimControl {
return
<
String
,
Map
<
String
,
dynamic
>>{};
return
<
String
,
Map
<
String
,
dynamic
>>{};
}
}
try
{
try
{
final
Object
decodeResult
=
json
.
decode
(
results
.
stdout
?.
toString
()
)[
section
.
name
];
final
Object
decodeResult
=
json
.
decode
(
results
.
stdout
)[
section
.
name
];
if
(
decodeResult
is
Map
<
String
,
dynamic
>)
{
if
(
decodeResult
is
Map
<
String
,
dynamic
>)
{
return
decodeResult
;
return
decodeResult
;
}
}
...
...
packages/flutter_tools/lib/src/migrations/cmake_custom_command_migration.dart
View file @
9bca38c5
...
@@ -70,7 +70,7 @@ class CmakeCustomCommandMigration extends ProjectMigrator {
...
@@ -70,7 +70,7 @@ class CmakeCustomCommandMigration extends ProjectMigrator {
}
}
if
(
originalProjectContents
!=
newProjectContents
)
{
if
(
originalProjectContents
!=
newProjectContents
)
{
logger
.
printStatus
(
'add_custom_command() missing VERBATIM or FLUTTER_TARGET_PLATFORM, updating.'
);
logger
.
printStatus
(
'add_custom_command() missing VERBATIM or FLUTTER_TARGET_PLATFORM, updating.'
);
_cmakeFile
.
writeAsStringSync
(
newProjectContents
.
toString
()
);
_cmakeFile
.
writeAsStringSync
(
newProjectContents
);
}
}
return
true
;
return
true
;
}
}
...
...
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