Installation
Add gpt_markdown to your Flutter project. Markdown and LaTeX rendering work immediately; use a LaTeX builder only to replace the default math widget.
Option 1 — Flutter CLI
The fastest way:
terminal
1flutter pub add gpt_markdownOption 2 — pubspec.yaml
Add it manually, then run flutter pub get:
pubspec.yaml
1dependencies:
2 gpt_markdown: ^1.2.0Import
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
- A Flutter SDK that includes Dart 3.7.0 or newer
- Dart SDK 3.7.0 or higher, below 4.0.0
- No platform plugins are required. For WebAssembly, ensure the rest of your app's dependencies are also WASM-compatible.
