flutter / flutter/ai

[feat] Programmatically submit a user prompt (and optional attachments)

Open
#39 19 comments 0 reactions 1 assignee Claimed by @csells View on GitHub
Dominant language
Dart
Stars
286
Forks
94
PR merge metrics
No merged PRs in 30d

Description

I think it'd be great if the chat exposed a controller for more flexible handling of the following scenarios:

* Attaching files (For example ClipboardData) - right now this is possible with a custom messageSender, but the files aren't visible in the chat before submission
* Call sendMessage programmatically. For example there might be predefined prompts, which should be executed on click.
* Manage focus of the Chats Input. Especially on Desktop there are Scenarios, where manual focus management might be required (Also the current approach behaves kinda weird)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.