From d5c2522a3b4bc6a2f0430d5981a90fc24cc486bd Mon Sep 17 00:00:00 2001 From: Rody Davis <31253215+rodydavis@users.noreply.github.com> Date: Wed, 22 May 2024 12:39:40 -0700 Subject: [PATCH] Fix typo and remove unused code in gemini_tasks sample (#2300) - Fix typo - Remove unused code. --------- Co-authored-by: Parker Lougheed --- gemini_tasks/lib/main.dart | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/gemini_tasks/lib/main.dart b/gemini_tasks/lib/main.dart index 7c8d73b7f..fbc776f01 100644 --- a/gemini_tasks/lib/main.dart +++ b/gemini_tasks/lib/main.dart @@ -123,11 +123,6 @@ class _ExampleState extends State { 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: [ @@ -384,9 +379,10 @@ class _ExampleState extends State { 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(), ),