refactor: migrate to flutter_markdown_plus for enhanced markdown support

- Replaced the gpt_markdown package with flutter_markdown_plus to improve markdown rendering capabilities.
- Updated the markdown configuration to utilize the new package, enhancing the overall maintainability and adaptability of markdown features.
- Adjusted the streaming markdown widget to integrate with the new markdown body implementation, ensuring a cohesive user experience.
- Removed deprecated builders and streamlined the code for better clarity and performance.
This commit is contained in:
cogwheel0
2025-10-03 14:53:50 +05:30
parent 81a83b146d
commit 141ee80097
5 changed files with 130 additions and 1032 deletions

View File

@@ -768,6 +768,7 @@ class _AssistantMessageWidgetState extends ConsumerState<AssistantMessageWidget>
Widget buildDefault(BuildContext context) => StreamingMarkdownWidget(
content: processedContent,
isStreaming: widget.isStreaming,
onTapLink: (url, _) => _launchUri(url),
);
final responseBuilder = ref.watch(assistantResponseBuilderProvider);