vizdom_select 2.0.2

  • Readme
  • Changelog
  • Installing
  • 53

Select #

Incremental DOM library to build beautiful graphs and plots.

Usage #

Selecting #

void main() {
  select('#root')'.header', doo: (header) {
      final title ='.title');
      DivElement node = title.element;
      node.text = "Vizdom";
      final subTitle ='.sub-title');
      node = subTitle.element;
      node.text = "how-to";
    })'.content', doo: (content) {
      final description ='.description');
      DivElement node = description.element;
      node.text = "Use select to select elements.";
      final moreDescription ='.more-description');
      node = moreDescription.element;
      node.text = "Use bind to bind data to elements.";

Binding data #


2.0.2 #


2.0.1 #

  • Selection API

Use this package as a library

1. Depend on it

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

  vizdom_select: ^2.0.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:vizdom_select/vizdom_select.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health suggestions

Fix lib/binding/binding.dart. (-1.99 points)

Analysis of lib/binding/binding.dart reported 4 hints:

line 7 col 8: Unused import: 'package:vizdom_select/uitls/html.dart'.

line 95 col 9: DO use curly braces for all flow control structures.

line 104 col 7: DO use curly braces for all flow control structures.

line 124 col 7: DO use curly braces for all flow control structures.

Fix lib/component/component.dart. (-0.50 points)

Analysis of lib/component/component.dart reported 1 hint:

line 8 col 11: This function has a return type of 'Element', but doesn't end with a return statement.

Format lib/binding/enter_node.dart.

Run dartfmt to format lib/binding/enter_node.dart.

Fix additional 4 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/selected/selected.dart (Run dartfmt to format lib/selected/selected.dart.)
  • lib/selection.dart (Run dartfmt to format lib/selection.dart.)
  • lib/uitls/html.dart (Run dartfmt to format lib/uitls/html.dart.)
  • lib/vizdom_select.dart (Run dartfmt to format lib/vizdom_select.dart.)

Maintenance suggestions

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 vizdom_select.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.5.0 <3.0.0
Dev dependencies
build_runner ^1.6.0
build_web_compilers ^2.3.0
pedantic ^1.8.0