Skip to content

Commit 762e047

Browse files
committed
-
1 parent 4ca5d7e commit 762e047

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/travel_app/lib/src/travel_planner_page.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ ${_imagesJson ?? ''}
435435
list that might be tangentially relevant. DO NOT USE ANY IMAGES NOT IN THE LIST.
436436
It is fine if the image is irrelevant, as long as it is from the list.
437437
438+
- Image location always should be an asset path (e.g. assets/...).
439+
438440
# Example
439441
440442
Here is an example of the arguments to the `addOrUpdateSurface` tool. Note that

packages/flutter_genui/test/image_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void main() {
1919
builder: (context) => Scaffold(
2020
body: image.widgetBuilder(
2121
data: {
22-
'url':
22+
'location':
2323
'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png',
2424
},
2525
id: 'test_image',

0 commit comments

Comments
 (0)