Installation

Add gpt_markdown to your Flutter project. No extra dependencies required — LaTeX rendering is bundled automatically.

Option 1 — Flutter CLI

The fastest way:

terminal
1flutter pub add gpt_markdown

Option 2 — pubspec.yaml

Add it manually, then run flutter pub get:

pubspec.yaml
1dependencies: 2 gpt_markdown: ^1.1.6

Import

your_file.dart
1import 'package:gpt_markdown/gpt_markdown.dart';

Verify it works

Drop this anywhere in your widget tree:

main.dart
1GptMarkdown('# Hello from GPT Markdown!')

Requirements

  • Flutter SDK 3.0.0 or higher
  • Dart SDK 2.17.0 or higher