elements 1.0.4

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 41

Elements #

A collection of custom elements

Usage #

Important notice: this package is in early alpha.

Changelog #

0.0.1 #

  • Initial version, created by Stagehand

0.9.74 #

  • Added UploadImage and CheckList elements

Use this package as a library

1. Depend on it

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


dependencies:
  elements: ^1.0.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:elements/elements.dart';
  
Version Uploaded Documentation Archive
1.0.4 Sep 11, 2018 Go to the documentation of elements 1.0.4 Download elements 1.0.4 archive
1.0.3 Aug 31, 2018 Go to the documentation of elements 1.0.3 Download elements 1.0.3 archive
1.0.2 May 24, 2018 Go to the documentation of elements 1.0.2 Download elements 1.0.2 archive
1.0.1 Apr 27, 2018 Go to the documentation of elements 1.0.1 Download elements 1.0.1 archive
1.0.0 Apr 27, 2018 Go to the documentation of elements 1.0.0 Download elements 1.0.0 archive
0.9.91 Jan 4, 2017 Go to the documentation of elements 0.9.91 Download elements 0.9.91 archive
0.9.74 Jan 25, 2016 Go to the documentation of elements 0.9.74 Download elements 0.9.74 archive
0.9.73 Jan 25, 2016 Go to the documentation of elements 0.9.73 Download elements 0.9.73 archive
0.9.72 Jan 17, 2016 Go to the documentation of elements 0.9.72 Download elements 0.9.72 archive
0.9.71 Dec 31, 2015 Go to the documentation of elements 0.9.71 Download elements 0.9.71 archive

All 58 versions...

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

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

  • Dart: 2.2.0
  • pana: 0.12.14

Platforms

Detected platforms: web

Primary library: package:elements/elements.dart with components: html.

Health suggestions

Fix lib/src/tag_cloud_element.dart. (-9.54 points)

Analysis of lib/src/tag_cloud_element.dart reported 20 hints, including:

line 80 col 3: Avoid return types on setters.

line 88 col 3: Avoid return types on setters.

line 117 col 3: Avoid return types on setters.

line 131 col 32: Don't explicitly initialize variables to null.

line 163 col 3: Avoid return types on setters.

Fix lib/src/multiselect_element.dart. (-6.31 points)

Analysis of lib/src/multiselect_element.dart reported 13 hints, including:

line 13 col 45: Don't explicitly initialize variables to null.

line 13 col 65: Use = to separate a named parameter from its default value.

line 13 col 73: Don't explicitly initialize variables to null.

line 13 col 86: Use = to separate a named parameter from its default value.

line 13 col 108: Use = to separate a named parameter from its default value.

Fix lib/src/upload_image_element.dart. (-4.41 points)

Analysis of lib/src/upload_image_element.dart reported 9 hints, including:

line 18 col 56: Use = to separate a named parameter from its default value.

line 18 col 89: Don't explicitly initialize variables to null.

line 18 col 102: Use = to separate a named parameter from its default value.

line 18 col 110: Don't explicitly initialize variables to null.

line 18 col 133: Use = to separate a named parameter from its default value.

Fix additional 3 files with analysis or formatting issues. (-4.97 points)

Additional issues in the following files:

  • lib/src/checklist_element.dart (4 hints)
  • lib/src/collapsible_element.dart (3 hints)
  • lib/src/stopwatch_element.dart (3 hints)

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and elements.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0