Skip to content

Commit 8575261

Browse files
authored
Adds missing READMEs to dynamic_theme, gemini_tasks (#2288)
Adds `README.md` files to the dynamic_theme and gemini_tasks projects. Also removes a block of commented-out code from one of them.
1 parent 3172aff commit 8575261

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

dynamic_theme/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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).

dynamic_theme/lib/main.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ class _ExampleState extends State<Example> {
172172
loading.value = true;
173173
try {
174174
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-
// );
179175
prompt.writeln(message);
180176
final response = await callWithActions([Content.text(prompt.toString())]);
181177
if (response.text != null) {

gemini_tasks/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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).

0 commit comments

Comments
 (0)