fix: fixed more widgets

This commit is contained in:
cogwheel0
2025-08-20 18:39:30 +05:30
parent 424aa7bffd
commit 9a5c5a573f
6 changed files with 1132 additions and 733 deletions

View File

@@ -122,13 +122,10 @@ class _StreamingMarkdownWidgetState extends State<StreamingMarkdownWidget> {
if (widget.isStreaming && _renderedContent.isNotEmpty) {
// Use MarkdownBlock for streaming - it's optimized for live updates
return Container(
padding: widget.padding,
child: MarkdownBlock(
data: _renderedContent,
config: config,
selectable: true,
),
return MarkdownBlock(
data: _renderedContent,
config: config,
selectable: true,
);
} else {
// Use MarkdownWidget for completed messages
@@ -139,7 +136,7 @@ class _StreamingMarkdownWidgetState extends State<StreamingMarkdownWidget> {
selectable: true,
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
padding: widget.padding,
padding: EdgeInsets.zero,
);
}
}