File tree Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Flutter Dynamic Theme Sample
2
+
3
+ A developer sample demonstrating how to call on-device Flutter APIs based on
4
+ output from the Gemini API. Allows the user to dynamically change font scale,
5
+ colors, and other theme properties inside a running app using natural language.
6
+
7
+ ## Goals
8
+
9
+ * Show how to use the Gemini API for a chat session.
10
+ * Demonstrate how to use functions calls with the Gemini API.
11
+ * Show how to tie responses from Gemini to specific local API calls.
12
+
13
+ ## Questions/issues
14
+
15
+ If you have a general question about any of the techniques you see in
16
+ the sample, Flutter's open source community is a great place to find answers.
17
+ You can find links to online and local groups at
18
+ [ https://flutter.dev/community ] !
19
+
20
+ If you run into an issue with the sample itself, please file an issue
21
+ in the [ main Flutter repo] ( https://github.com/flutter/flutter/issues ) .
Original file line number Diff line number Diff line change @@ -172,10 +172,6 @@ class _ExampleState extends State<Example> {
172
172
loading.value = true ;
173
173
try {
174
174
final prompt = StringBuffer ();
175
- // prompt.writeln(
176
- // 'If the following is not a question assume'
177
- // 'it is a new task to be added:',
178
- // );
179
175
prompt.writeln (message);
180
176
final response = await callWithActions ([Content .text (prompt.toString ())]);
181
177
if (response.text != null ) {
Original file line number Diff line number Diff line change
1
+ # Flutter Todo List Sample
2
+
3
+ Developer sample written in Flutter demonstrating how to interact with a to-do
4
+ list in natural language using the Gemini API.
5
+
6
+ ## Goals
7
+
8
+ * Show how to use the Gemini API for a chat session.
9
+ * Demonstrate how to use functions calls with the Gemini API.
10
+ * Show how to manage the state of a list using Gemini.
11
+
12
+ ## Questions/issues
13
+
14
+ If you have a general question about any of the techniques you see in
15
+ the sample, Flutter's open source community is a great place to find answers.
16
+ You can find links to online and local groups at
17
+ [ https://flutter.dev/community ] !
18
+
19
+ If you run into an issue with the sample itself, please file an issue
20
+ in the [ main Flutter repo] ( https://github.com/flutter/samples/issues ) .
You can’t perform that action at this time.
0 commit comments