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

[Fonts] Update icons (#100885)

* update icons

* add test
parent 255f967c
flutter_infra_release/flutter/fonts/3ebf18904a0b2d50fe311ff41e9e1e4894bc270d/fonts.zip
flutter_infra_release/flutter/fonts/d76e4de0ef19d04a55bf3117322be9ced21864aa/fonts.zip
......@@ -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.
......
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