Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/custom_widgets/markdown_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class GptMarkdownConfig {
this.imageBuilder,
this.maxLines,
this.overflow,
this.textWidthBasis,
this.components,
this.inlineComponents,
this.tableBuilder,
Expand Down Expand Up @@ -137,6 +138,9 @@ class GptMarkdownConfig {
/// The overflow.
final TextOverflow? overflow;

/// The text width basis.
final TextWidthBasis? textWidthBasis;

/// The highlight builder.
final HighlightBuilder? highlightBuilder;

Expand Down Expand Up @@ -169,6 +173,7 @@ class GptMarkdownConfig {
final CodeBlockBuilder? codeBuilder,
final int? maxLines,
final TextOverflow? overflow,
final TextWidthBasis? textWidthBasis,
final HighlightBuilder? highlightBuilder,
final LinkBuilder? linkBuilder,
final ImageBuilder? imageBuilder,
Expand Down Expand Up @@ -211,6 +216,7 @@ class GptMarkdownConfig {
textAlign: textAlign,
maxLines: maxLines,
overflow: overflow,
textWidthBasis: textWidthBasis,
);
}

Expand Down
5 changes: 5 additions & 0 deletions lib/gpt_markdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class GptMarkdown extends StatelessWidget {
this.linkBuilder,
this.maxLines,
this.overflow,
this.textWidthBasis,
this.orderedListBuilder,
this.unOrderedListBuilder,
this.tableBuilder,
Expand Down Expand Up @@ -71,6 +72,9 @@ class GptMarkdown extends StatelessWidget {
/// The overflow.
final TextOverflow? overflow;

/// The text width basis.
final TextWidthBasis? textWidthBasis;

/// The LaTeX builder.
final LatexBuilder? latexBuilder;

Expand Down Expand Up @@ -198,6 +202,7 @@ class GptMarkdown extends StatelessWidget {
codeBuilder: codeBuilder,
maxLines: maxLines,
overflow: overflow,
textWidthBasis: textWidthBasis,
sourceTagBuilder: sourceTagBuilder,
highlightBuilder: highlightBuilder,
linkBuilder: linkBuilder,
Expand Down