Skip to content

Commit 4ca5d7e

Browse files
committed
-
1 parent 5d7bc45 commit 4ca5d7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/travel_app/lib/src/travel_planner_page.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,6 @@ ${_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-
- Use location for images from the list only - NEVER use `url` and reference
439-
images from wikipedia or other sites.
440-
441438
# Example
442439
443440
Here is an example of the arguments to the `addOrUpdateSurface` tool. Note that

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import '../../primitives/simple_items.dart';
1010

1111
final _schema = S.object(
1212
properties: {
13-
'location': S.string(description: 'Asset path or network URL.'),
13+
'location': S.string(
14+
description:
15+
'Asset path (e.g. assets/...) or network URL (e.g. https://...)',
16+
),
1417
'fit': S.string(
1518
description: 'How the image should be inscribed into the box.',
1619
enumValues: BoxFit.values.map((e) => e.name).toList(),

0 commit comments

Comments
 (0)