source_importer 0.0.7

  • Installing
  • Versions
  • 32


import .html .css .scss .sass files as function in sourcepack

Use this package as a library

1. Depend on it

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

  source_importer: "^0.0.7"

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 flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:source_importer/source_importer.dart';
Version Uploaded Documentation Archive
0.0.7 Feb 24, 2017 Go to the documentation of source_importer 0.0.7 Download source_importer 0.0.7 archive
0.0.6 Feb 24, 2017 Go to the documentation of source_importer 0.0.6 Download source_importer 0.0.6 archive
0.0.5 Feb 24, 2017 Go to the documentation of source_importer 0.0.5 Download source_importer 0.0.5 archive
0.0.3 Feb 24, 2017 Go to the documentation of source_importer 0.0.3 Download source_importer 0.0.3 archive
0.0.2 Feb 24, 2017 Go to the documentation of source_importer 0.0.2 Download source_importer 0.0.2 archive
0.0.1 Feb 24, 2017 Go to the documentation of source_importer 0.0.1 Download source_importer 0.0.1 archive


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

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


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


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:source_importer/source_importer.dart.


  • Maintain

    Changelog entries help clients to follow the progress in your code.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 error 5 hints.

    Strong-mode analysis of lib/source_importer.dart failed with the following error:

    line: 38 col: 28
    The argument type '(String, String) → Null' can't be assigned to the parameter type '(dynamic, dynamic) → void'.

    Run dartfmt to format lib/source.dart.

    Similar analysis of the following files failed:

    • lib/style.dart (hint)
    • lib/template.dart (hint)
  • Package is getting outdated.

    The package was released 72 weeks ago.

  • 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.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use source_importer.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
barback ^0.15.2 0.15.2+16
sass ^0.4.2 0.4.2+7 1.9.2
yaml ^2.1.12 2.1.14
Transitive dependencies
async 2.0.7
charcode 1.1.2
collection 1.14.10
path 1.6.1
pool 1.3.5
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
utf 0.9.0+4