Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#39 19 comments 0 reactions 1 assignee View on GitHub

@csells is already working on this.

Since Mar 22, 2025.

Assessment

This issue has not been assessed yet.

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)
Dominant language
Dart
Stars
288
Forks
93
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flutter/ai

All issues in flutter/ai

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.