m4d_dnd 0.1.7

  • Readme
  • Changelog
  • Installing
  • 40

Material 4 Dart - Drag and Drop #

Examples #

GitHub

Change Log for m4d_dnd #

Material Design 4 Dart - Drag & Drop

Unreleased #

Bugs #

  • Wrong description in HTML-Template 66ee59a

Refactor #

  • m4d_core renamed IOCContainer to Container 35a0e94

This CHANGELOG.md was generated with Changelog for Dart

Use this package as a library

1. Depend on it

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


dependencies:
  m4d_dnd: ^0.1.7

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

We analyzed this package on Nov 11, 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:m4d_dnd/m4d_dnd.dart with components: html, js.

Health suggestions

Fix lib/dnd/components/MaterialDropZone.dart. (-6.78 points)

Analysis of lib/dnd/components/MaterialDropZone.dart reported 14 hints, including:

line 24 col 28: Unnecessary new keyword.

line 26 col 56: Avoid const keyword.

line 27 col 60: Avoid const keyword.

line 29 col 32: Unnecessary new keyword.

line 33 col 39: Use ; instead of {} for empty constructor bodies.

Fix lib/dnd/components/MaterialDraggable.dart. (-5.36 points)

Analysis of lib/dnd/components/MaterialDraggable.dart reported 11 hints, including:

line 31 col 25: Unnecessary new keyword.

line 40 col 28: Unnecessary new keyword.

line 42 col 61: Avoid const keyword.

line 43 col 58: Avoid const keyword.

line 45 col 32: Unnecessary new keyword.

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

Analysis of lib/m4d_dnd.dart reported 1 hint:

line 35 col 27: Use lowercase_with_underscores when specifying a library prefix.

Format lib/services.dart.

Run dartfmt to format lib/services.dart.

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 m4d_dnd.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
console_log_handler ^1.0.0 1.1.6
dnd ^1.0.0 1.4.2
logging >=0.11.3 <1.0.0 0.11.3+2
m4d_animation >=0.1.0 <1.0.0 0.1.4
m4d_components >=0.1.0 <1.0.0 0.1.31
m4d_core >=0.2.0 <1.0.0 0.2.21
m4d_flux >=0.1.0 <1.0.0 0.1.0
m4d_template >=0.1.0 <1.0.0 0.2.9
m4d_translate >=0.1.0 <1.0.0 0.1.6
validate ^1.0.0 1.7.0
Transitive dependencies
analyzer 0.38.5 0.39.1
ansicolor 1.0.2
args 1.5.2
async 2.4.0
build_cli_annotations 1.1.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
dart_style 1.3.3
front_end 0.1.27 0.1.29
glob 1.2.0
html 0.14.0+3
intl 0.15.8 0.16.0
intl_translation 0.17.7
js 0.6.1+1
kernel 0.3.27 0.3.29
l10n 2.0.19
m4d_directive 0.1.16
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
optional 3.1.0
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
petitparser 2.4.0
platform_detect 1.3.5
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
where 4.4.0 6.4.0
yaml 2.2.0
Dev dependencies
build_runner any
build_test any
build_web_compilers any
test any