mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Fix typo and remove unused code in gemini_tasks sample (#2300)
- Fix typo - Remove unused code. --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
This commit is contained in:
@@ -123,11 +123,6 @@ class _ExampleState extends State<Example> {
|
||||
model: 'gemini-pro',
|
||||
apiKey: widget.apiKey,
|
||||
requestOptions: const RequestOptions(apiVersion: 'v1beta'),
|
||||
|
||||
// systemInstruction: Content.text(
|
||||
// 'You are a task bot that can complete, add, '
|
||||
// 'and filter tasks for a todo style application.',
|
||||
// ),
|
||||
tools: [
|
||||
Tool(
|
||||
functionDeclarations: <FunctionDeclaration>[
|
||||
@@ -384,9 +379,10 @@ class _ExampleState extends State<Example> {
|
||||
child: TextField(
|
||||
controller: controller,
|
||||
decoration: textFieldDecoration(
|
||||
context,
|
||||
'Try "Add a task for..." or "What are my ucompleted '
|
||||
'tasks?"'),
|
||||
context,
|
||||
'Try "Add a task for..."'
|
||||
'or "What are my uncompleted tasks?"',
|
||||
),
|
||||
onEditingComplete: sendMessage,
|
||||
onSubmitted: (value) => sendMessage(),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user