md_example_inserter 0.0.1

  • Installing
  • Versions
  • 45


Inserts the code from the example in the file specified in the {@example paht/to/file} tag.


To install this package globally you only need to run:

pub global activate md_example_inserter

this will download and install ng2gen executable into ~/.pub-cache/bin, then add ~/.pub-cache/bin to your path to directly use the executable like this


or you can use

pub global run md_example_inserter


Create a file with extension .mdtmpl then on it you can create references to other files in the same project in next way:

{@example path/to/file}

finally just run:




  • Initial version

1. Depend on it

Add this to your package's pubspec.yaml file:

  md_example_inserter: "^0.0.1"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
0.0.1 Jan 30, 2017 Go to the documentation of md_example_inserter 0.0.1 Download md_example_inserter 0.0.1 archive


We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
100 / 100
Reflects how tidy and up-to-date the package is. [more]
77 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in libraries.


  • Fix .analysis_options.

    We were unable to parse .analysis_options.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use md_example_inserter.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

  • Enable strong mode analysis.

    Strong mode helps you to detect bugs and potential issues earlier.Start your analysis_options.yaml file with the following:

      strong-mode: true


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
glob ^1.1.3 1.1.5
path ^1.4.1 1.5.1
Transitive dependencies
async 2.0.6
charcode 1.1.1
collection 1.14.9
source_span 1.4.0
string_scanner 1.0.2
Dev dependencies
test >=0.12.0 <0.13.0