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
3a4bf257
Unverified
Commit
3a4bf257
authored
Mar 30, 2022
by
Pierre-Louis
Committed by
GitHub
Mar 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fonts] Update icons (#100885)
* update icons * add test
parent
255f967c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1077 additions
and
2 deletions
+1077
-2
material_fonts.version
bin/internal/material_fonts.version
+1
-1
icons.dart
packages/flutter/lib/src/material/icons.dart
+1056
-0
icons_test.dart
packages/flutter/test/material/icons_test.dart
+20
-1
No files found.
bin/internal/material_fonts.version
View file @
3a4bf257
flutter_infra_release/flutter/fonts/
3ebf18904a0b2d50fe311ff41e9e1e4894bc270d
/fonts.zip
flutter_infra_release/flutter/fonts/
d76e4de0ef19d04a55bf3117322be9ced21864aa
/fonts.zip
packages/flutter/lib/src/material/icons.dart
View file @
3a4bf257
This diff is collapsed.
Click to expand it.
packages/flutter/test/material/icons_test.dart
View file @
3a4bf257
...
...
@@ -10,7 +10,6 @@ import 'package:file/file.dart';
import
'package:file/local.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:platform/platform.dart'
;
...
...
@@ -103,6 +102,26 @@ void main() {
await
expectLater
(
find
.
byType
(
Wrap
),
matchesGoldenFile
(
'test.icons.sample2.png'
));
},
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/39998
testWidgets
(
'Another sample of icons look as expected'
,
(
WidgetTester
tester
)
async
{
await
_loadIconFont
();
await
tester
.
pumpWidget
(
MaterialApp
(
home:
IconTheme
(
data:
const
IconThemeData
(
size:
200
),
child:
Wrap
(
children:
const
<
Icon
>[
Icon
(
Icons
.
electric_bolt
),
Icon
(
Icons
.
electric_bolt_outlined
),
Icon
(
Icons
.
electric_bolt_rounded
),
Icon
(
Icons
.
electric_bolt_sharp
),
],
),
),
));
await
expectLater
(
find
.
byType
(
Wrap
),
matchesGoldenFile
(
'test.icons.sample3.png'
));
},
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/39998
}
// Loads the cached material icon font.
...
...
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