Skip to content

Commit 86427a1

Browse files
Update image URL in Image component example data and test data
The previous image url doesn't on web due because of CORS restrictions.
1 parent 8d56e29 commit 86427a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/flutter_genui/lib/src/catalog/core_widgets/image.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final image = CatalogItem(
5656
"component": {
5757
"Image": {
5858
"url": {
59-
"literalString": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"
59+
"literalString": "https://storage.googleapis.com/cms-storage-bucket/lockup_flutter_horizontal.c823e53b3a1a7b0d36a9.png"
6060
}
6161
}
6262
}

packages/flutter_genui/test/image_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void main() {
2222
data: {
2323
'url': {
2424
'literalString':
25-
'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png',
25+
'https://storage.googleapis.com/cms-storage-bucket/lockup_flutter_horizontal.c823e53b3a1a7b0d36a9.png',
2626
},
2727
},
2828
id: 'test_image',
@@ -42,7 +42,7 @@ void main() {
4242
expect(imageWidget.image, isA<NetworkImage>());
4343
expect(
4444
(imageWidget.image as NetworkImage).url,
45-
'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png',
45+
'https://storage.googleapis.com/cms-storage-bucket/lockup_flutter_horizontal.c823e53b3a1a7b0d36a9.png',
4646
);
4747
});
4848
});

0 commit comments

Comments
 (0)