Skip to content

Commit b83bb70

Browse files
authored
Last cleanup (#19)
2 parents 5394fb0 + 9681ad1 commit b83bb70

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

genkit_flutter_agentic_app/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ to install the Flutter app dependencies.
5959

6060
> [!TIP]
6161
> Get available devices by running `flutter devices` ex: `AA8A7357`, `macos`, `chrome`.
62+
63+
For testing on an Android emulator, you'll need to change the endpoint to "10.0.2.2:2222"
64+
instead of the default "localhost:2222" in
65+
[`flutter_frontend/lib/settings/config.dart`](https://github.com/flutter/demos/blob/main/genkit_flutter_agentic_app/flutter_frontend/lib/settings/config.dart).
66+
For more info, see: [Android Emulator Networking](https://developer.android.com/studio/run/emulator-networking.html)
6267

6368
Enter your trip and see what outfits the app suggest for you!
6469

genkit_flutter_agentic_app/flutter_frontend/lib/screens/traveler_form/traveler_form_screen.dart

+11-9
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,17 @@ class _TravelerFormScreenState extends State<TravelerFormScreen> {
126126
_loading
127127
// Conditionally display a loading indicator or the form.
128128
? Center(child: CircularProgressIndicator())
129-
: Column(
130-
children: [
131-
LocationInput(controller: _locationController),
132-
TripLengthInput(controller: _lengthOfStayController),
133-
PreferencesInput(controller: _preferencesController),
134-
GetPackingListButton(
135-
onPressed: () => getPackingList(context),
136-
),
137-
],
129+
: SingleChildScrollView(
130+
child: Column(
131+
children: [
132+
LocationInput(controller: _locationController),
133+
TripLengthInput(controller: _lengthOfStayController),
134+
PreferencesInput(controller: _preferencesController),
135+
GetPackingListButton(
136+
onPressed: () => getPackingList(context),
137+
),
138+
],
139+
),
138140
),
139141
),
140142
);
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
// Endpoint to reach Genkit app, can be localhost for development
22
// or wherever the live app is hosted ex: Cloud Run.
3+
// For testing on an Android emulator, you need to specify "10.0.2.2:2222"
4+
// instead of the default "localhost:2222".
5+
// See: https://developer.android.com/studio/run/emulator-networking.html
36
final String genkitServerEndpoint = 'localhost:2222';

genkit_flutter_agentic_app/flutter_frontend/macos/Runner/DebugProfile.entitlements

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
<true/>
99
<key>com.apple.security.network.server</key>
1010
<true/>
11+
<key>com.apple.security.network.client</key>
12+
<true/>
1113
</dict>
1214
</plist>

genkit_flutter_agentic_app/flutter_frontend/macos/Runner/Release.entitlements

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
<dict>
55
<key>com.apple.security.app-sandbox</key>
66
<true/>
7+
<key>com.apple.security.network.client</key>
8+
<true/>
79
</dict>
810
</plist>

0 commit comments

Comments
 (0)