cosmic_frontmatter 1.0.3 cosmic_frontmatter: ^1.0.3 copied to clipboard
Parse frontmatter from a YAML file. Use this along-side a markdown plugin such as flutter_markdown.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cosmic_frontmatter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
cosmic_frontmatter: ^1.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:cosmic_frontmatter/cosmic_frontmatter.dart';