textf is a lightweight Flutter widget for simple Markdown-like inline formatting .
Same API as Flutter’s Text
— No boilerplate. No TextSpan pain. Just Textf.
Textf(
'Hello **bold** *italic* ~~strike~~ `code` [Flutter](https://flutter.dev)',
style: TextStyle(fontSize: 16),
)
Why use textf?
- API-compatible with
Text
- Theme-aware – links and inline code adapt to your app’s
ThemeData
- Optional customization via
TextfOptions
- i18n – format strings stay translator-friendly
- Interactive links made easy – with hover styling and mouse cursor support
Note: textf
is not a replacement for full Markdown renderers. It’s purpose-built for cases where you need just inline formatting — not headings, lists, or block layout.
Questions or feedback welcome!