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
961fdeeb
Unverified
Commit
961fdeeb
authored
Mar 16, 2021
by
Pierre-Louis
Committed by
GitHub
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fonts] Fix update_icons double newline bug (#78317)
parent
db37499e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
update_icons.dart
dev/tools/update_icons.dart
+4
-4
No files found.
dev/tools/update_icons.dart
View file @
961fdeeb
...
...
@@ -36,7 +36,7 @@ const Map<String, List<String>> _platformAdaptiveIdentifiers = <String, List<Str
};
// Rewrite certain Flutter IDs (reserved keywords, numbers) using prefix matching.
const
Map
<
String
,
String
>
_
identifierRewrites
=
<
String
,
String
>{
const
Map
<
String
,
String
>
identifierRewrites
=
<
String
,
String
>{
'1x'
:
'one_x'
,
'360'
:
'threesixty'
,
'2d'
:
'twod'
,
...
...
@@ -202,7 +202,7 @@ void main(List<String> args) {
final
String
newIconData
=
regenerateIconsFile
(
iconClassFileData
,
newTokenPairMap
);
if
(
argResults
[
_dryRunOption
]
as
bool
)
{
stdout
.
write
ln
(
newIconData
);
stdout
.
write
(
newIconData
);
}
else
{
stderr
.
writeln
(
'
\n
Writing to
${iconClassFile.path}
.'
);
iconClassFile
.
writeAsStringSync
(
newIconData
);
...
...
@@ -348,9 +348,9 @@ class _Icon {
}
flutterId
=
id
;
for
(
final
MapEntry
<
String
,
String
>
rewritePair
in
_
identifierRewrites
.
entries
)
{
for
(
final
MapEntry
<
String
,
String
>
rewritePair
in
identifierRewrites
.
entries
)
{
if
(
id
.
startsWith
(
rewritePair
.
key
))
{
flutterId
=
id
.
replaceFirst
(
rewritePair
.
key
,
_
identifierRewrites
[
rewritePair
.
key
]);
flutterId
=
id
.
replaceFirst
(
rewritePair
.
key
,
identifierRewrites
[
rewritePair
.
key
]);
}
}
...
...
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