Skip to content

Commit 99c826d

Browse files
authored
Merge pull request #124 from eBay/feature/fix-material-issue
Feature/fix material issue
2 parents c37e52b + 50ed6ba commit 99c826d

15 files changed

+29
-22
lines changed

packages/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ build/
99
ios/.generated/
1010
ios/Flutter/Generated.xcconfig
1111
ios/Runner/GeneratedPluginRegistrant.*
12+
13+
**lcov.info

packages/golden_toolkit/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.11.0
4+
5+
- migrate from pedantic -> flutter_lints
6+
- resolved warning that could appear for consumers ```package:golden_toolkit has `uses-material-design: true` set but the primary pubspec contains `uses-material-design: false`. If the application needs material icons, then `uses-material-design` must be set to true```
7+
- updated documentation to indicate that you no longer need to include an empty images folder to get fonts to render in goldens for packages that do not contain any images.
8+
39
## 0.10.0
410

511
This release has a few updates & changes.

packages/golden_toolkit/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,6 @@ At the moment, it is only possible to load a single .ttf file for a font family.
295295

296296
Additionally, in some instances, it is not possible to replace the "Ahem" font. There are specific places in the Flutter codebase, such as rendering the "debug banner" where no explicit font family is specified. In these instances, the engine will use Ahem in a test context, with no way to override the behavior.
297297

298-
Also note that at the moment for having the required files generated for font processing the pubspec.yaml should have an entry in the images section, make sure it has at least this:
299-
300-
```yaml
301-
flutter:
302-
assets:
303-
- images/
304-
```
305-
306298
### testGoldens()
307299

308300
It is possible to use golden assertions in any testWidgets() test. As the UI for a widget evolves, it is common to need to regenerate goldens to capture your new reference images. The easiest way to do this is via the command-line:

packages/golden_toolkit/example/lib/src/flutter_demo_page.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class _MyHomePageState extends State<_MyHomePage> {
4545
child: Column(
4646
mainAxisAlignment: MainAxisAlignment.center,
4747
children: <Widget>[
48+
const Icon(Icons.flutter_dash),
4849
const Text(
4950
'You have pushed the button this many times:',
5051
),

packages/golden_toolkit/example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ packages:
7373
path: ".."
7474
relative: true
7575
source: path
76-
version: "0.10.0"
76+
version: "0.11.0"
7777
lints:
7878
dependency: transitive
7979
description:
7.83 KB
Loading
2.32 KB
Loading
2.59 KB
Loading

packages/golden_toolkit/images/.keep

Whitespace-only changes.

packages/golden_toolkit/pubspec.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: golden_toolkit
22
description: Common patterns for screenshot-based widget testing using Goldens.
3-
version: 0.10.0
3+
version: 0.11.0
44
homepage: https://github.com/eBay/flutter_glove_box/
55
repository: https://github.com/eBay/flutter_glove_box/tree/master/packages/golden_toolkit
66
issue_tracker: https://github.com/eBay/flutter_glove_box/issues
@@ -22,10 +22,6 @@ dev_dependencies:
2222
test_api: ^0.4.2
2323

2424
flutter:
25-
uses-material-design: true
26-
assets:
27-
# needed to trigger the FontManifest.json to be included
28-
- images/
2925
fonts:
3026
- family: Roboto
3127
fonts:

0 commit comments

Comments
 (0)