cssembed 0.2.0+5

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 29

cssembed

Embeds css into polymer elements.

Requirements

  • Polymer 1.0

Usage

Add cssembed to pubspec.yaml before polymer transformer:

transformers:
- cssembed
- polymer:
    entry_points: web/index.html
- $dart2js:
    minify: true
    commandLineOptions:
    - --trust-type-annotations
    - --trust-primitives
    

Stylesheets must have the same name of the polymer element and must be placed in the same directory.

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.2.0+5

  • Updated example.

0.2.0+4

  • Renamed transformer.dart to cssembed.dart.

0.2.0+3

  • Edited before publishing to pub.

0.2.0+2

  • Rewritten changelog. Homepage added.

0.2.0+1

  • Removed unnecessary print.

0.2.0

  • Now css is embedded into existing style tag.

0.1.0

  • First working version.

0.0.1

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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


dependencies:
  cssembed: "^0.2.0+5"

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:cssembed/cssembed.dart';
  
Version Uploaded Documentation Archive
0.2.0+5 Mar 18, 2016 Go to the documentation of cssembed 0.2.0+5 Download cssembed 0.2.0+5 archive
0.2.0+4 Mar 18, 2016 Go to the documentation of cssembed 0.2.0+4 Download cssembed 0.2.0+4 archive

Analysis

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

  • Dart: 2.0.0-dev.54.0
  • pana: 0.11.1

Scores

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

Platforms

Detected platforms: Flutter, web, other

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

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

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

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 2 hints.

    Run dartfmt to format lib/cssembed.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
barback ^0.15.2 0.15.2+16
path >=1.3.9 <2.0.0 1.5.1
Transitive dependencies
async 2.0.7
charcode 1.1.1
collection 1.14.9
pool 1.3.5
source_span 1.4.0
stack_trace 1.9.2
Dev dependencies
test >=0.12.0 <0.13.0