BlockLatexBuilder typedef

BlockLatexBuilder = Widget Function(BlockLatexBuildDetails details)

Builds the widget for one block formula — \[…\], or $$…$$ with GptMarkdown.useDollarSignsForLatex.

Return BlockLatexBuildDetails.defaultWidget to keep the stock formula, or a widget of your own. LatexStyle's padding, background and horizontal scroll are applied around the result.

Implementation

typedef BlockLatexBuilder = Widget Function(BlockLatexBuildDetails details);