@@ -116,14 +116,11 @@ to Gemini using the Firebase AI Logic, follow these instructions:
116116 3. Follow the first three steps in [Firebase's Flutter setup guide][]
117117 to add Firebase to your app.
118118
119- 4. In `pubspec.yaml`, add `genui` and `genui_firebase_ai`
120- to the `dependencies` section.
121-
122- ```yml
123- dependencies:
124- # ...
125- genui: ^latest_version # Replace with the actual latest version
126- genui_firebase_ai: ^latest_version # " "
119+ 4. Use `dart pub add` to add `genui` and `genui_firebase_ai` as
120+ dependencies in your `pubspec.yaml` file.
121+
122+ ```console
123+ $ dart pub add genui genui_firebase_ai
127124 ```
128125
129126 5. In your app's `main` method, ensure that the widget
@@ -345,21 +342,19 @@ catalog of widgets.
345342
346343To add your own widgets, use the following instructions.
347344
348- 1. Import `json_schema_builder`
345+ 1. Depend on the `json_schema_builder` package
349346
350- Add the `json_schema_builder` package as a dependency in `pubspec.yaml`.
351- Use the same commit reference as the one for `genui`.
347+ Use `dart pub add` to add `json_schema_builder` as
348+ a dependency in your `pubspec.yaml` file:
352349
353- ```yml
354- dependencies:
355- # ...
356- json_schema_builder: ^latest_version # Replace with the actual latest version
350+ ```console
351+ $ dart pub add json_schema_builder
357352 ```
358353
359354 2. Create the new widget's schema
360355
361356 Each catalog item needs a schema that defines the data required
362- to populate it. Using the json_schema_builder package,
357+ to populate it. Using the ` json_schema_builder` package,
363358 define one for the new widget.
364359
365360 ```dart
@@ -375,6 +370,7 @@ To add your own widgets, use the following instructions.
375370 required: ['question', 'answer'],
376371 );
377372 ```
373+
378374 3. Create a `CatalogItem`
379375
380376 Each `CatalogItem` represents a type of widget that the agent
0 commit comments