Unverified Commit e9b8a6ef authored by Pierre-Louis's avatar Pierre-Louis Committed by GitHub

[Fonts] Update icons (#96115)

* update icons

* add regression test

* add fix for pie_chart_outline
parent 65c6e882
flutter_infra_release/flutter/fonts/bd151aa3c2f7231344411a01dba4ef61b3cd56b2/fonts.zip
flutter_infra_release/flutter/fonts/3ebf18904a0b2d50fe311ff41e9e1e4894bc270d/fonts.zip
......@@ -14,6 +14,17 @@
version: 1
transforms:
# Changes made in https://github.com/flutter/flutter/pull/96115
- title: "Migrate 'Icons.pie_chart_outlined' to 'Icons.pie_chart_outline'"
date: 2022-01-04
element:
uris: [ 'material.dart' ]
field: 'pie_chart_outlined'
inClass: 'Icons'
changes:
- kind: 'rename'
newName: 'pie_chart_outline'
# Changes made in https://github.com/flutter/flutter/pull/93427
- title: "Remove 'primaryVariant' and 'secondaryVariant'"
date: 2021-11-19
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -82,6 +82,27 @@ void main() {
await expectLater(find.byType(Wrap), matchesGoldenFile('test.icons.sample.png'));
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/39998
// Regression test for https://github.com/flutter/flutter/issues/95886
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.water_drop),
Icon(Icons.water_drop_outlined),
Icon(Icons.water_drop_rounded),
Icon(Icons.water_drop_sharp),
],
),
),
));
await expectLater(find.byType(Wrap), matchesGoldenFile('test.icons.sample2.png'));
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/39998
}
// Loads the cached material icon font.
......
......@@ -518,4 +518,7 @@ void main() {
colorScheme = colorScheme.copyWith(primaryVariant: Colors.black, secondaryVariant: Colors.white);
colorScheme.primaryVariant;
colorScheme.secondaryVariant;
// Changes made in https://github.com/flutter/flutter/pull/96115
Icon icon = Icons.pie_chart_outlined;
}
......@@ -491,4 +491,7 @@ void main() {
colorScheme = colorScheme.copyWith();
colorScheme.primaryContainer;
colorScheme.secondaryContainer;
// Changes made in https://github.com/flutter/flutter/pull/96115
Icon icon = Icons.pie_chart_outline;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment