elements 1.0.4

  • Readme
  • Changelog
  • Installing
  • 25

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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
49
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
51
Overall:
Weighted score of the above. [more]
25
Learn more about scoring.

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

  • Dart: 2.6.0
  • pana: 0.12.21

Platforms

Detected platforms: web

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

Health suggestions

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

Analysis of lib/src/multiselect_element.dart reported 36 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/tag_cloud_element.dart. (-15.67 points)

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

line 14 col 13: Unnecessary new keyword.

line 16 col 16: Unnecessary new keyword.

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.

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

Analysis of lib/src/upload_image_element.dart reported 34 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. (-19.38 points)

Additional issues in the following files:

  • lib/src/stopwatch_element.dart (16 hints)
  • lib/src/checklist_element.dart (14 hints)
  • lib/src/collapsible_element.dart (10 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.

Package is getting outdated. (-19.45 points)

The package was last published 62 weeks ago.

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