Skip to content

Conversation

@AdityaAjithKumar
Copy link

PR Description

Add markdown formatting toggle for AI response in the Answer tab. When using AI request mode, the AI responds in markdown format which was previously displayed as raw unformatted text. This PR adds:

  • A "Format Markdown" checkbox in the Answer tab
  • When enabled: Renders the AI response with proper markdown formatting (headers, bold, lists, code blocks, etc.) using flutter_markdown
  • When disabled: Shows the raw unformatted text (original behavior)
  • Defaults to enabled for better readability

Related Issues

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why:This is a minor UI enhancement that adds a checkbox toggle and conditional rendering. The change uses existing well-tested components (Markdown widget, ADCheckBox) and was manually tested to confirm functionality.

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Added formatting option to AI answer tab

1 participant