liquid_flutter_md 0.0.1-2 copy "liquid_flutter_md: ^0.0.1-2" to clipboard
liquid_flutter_md: ^0.0.1-2 copied to clipboard

Markdown rendering and editing for Liquid Flutter

liquid_flutter_md #

Markdown rendering and editing for Liquid Flutter.

Part of the liquid-flutter monorepo.

Features #

  • LdMarkdown — render a Markdown string as themed Flutter widgets.
  • LdMarkdownEditor — live WYSIWYG-style editor with preview as you type.
  • LdMarkdownEditingController — text controller that drives the editor.

Installation #

flutter pub add liquid_flutter_md

Usage #

import 'package:liquid_flutter_md/liquid_flutter_md.dart';

// Render Markdown
LdMarkdown(data: '# Hello\nThis is **bold** text.');

// Edit Markdown
LdMarkdownEditor(
  controller: LdMarkdownEditingController(text: '# Hello\n\nWorld'),
  onLinkTap: (url, title) {
    // open url
  },
);

Wrap with your app’s LdThemeProvider (or an existing Liquid Flutter scaffold) so colors, type, and spacing follow the active theme.

Third-party code #

lib/src/markdown/ contains a vendored, lightly modified copy of the markdown Dart package at version 7.3.1 (Copyright 2012, the Dart project authors, BSD-3-Clause).
The full BSD license text is reproduced in the LICENSE file under "Third-party notices".

License #

Apache-2.0. See LICENSE.

0
likes
130
points
75
downloads

Documentation

API reference

Publisher

verified publishermtrust.io

Weekly Downloads

Markdown rendering and editing for Liquid Flutter

License

unknown (license)

Dependencies

collection, flutter, flutter_highlight, liquid_flutter

More

Packages that depend on liquid_flutter_md