m4d_components 0.1.26

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 60

Material4Dart - Basic Components #

Basic components like MaterialButton, MaterialCheckbox and so on

Examples #

GitHub

Usage #

There is more documentation on the way but here is an example how main.dart looks for the Accordion-Example

import 'package:m4d_core/m4d_ioc.dart' as ioc;
import "package:m4d_components/m4d_components.dart";

main() async {

    ioc.IOCContainer.bindModules([ CoreComponentsModule() ]);
    await componentHandler().run();
}

Change Log for m4d_components #

Material Design 4 Dart - Basic components

Unreleased #

Feature #

Bugs #

  • Wrong description in example-template 304f25e
  • Samples had wrong GH url b4a959b
  • m4d_button-sample could not find the right ID 3794493
  • Missing 'prpare' for deploy-samples 67a3892
  • pubspec - local path a6f7f15

Docs #

v0.1 - 2018-10-19

Docs #

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_components: ^0.1.26

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_components/m4d_components.dart';
  
Version Uploaded Documentation Archive
0.1.31 Jan 17, 2019 Go to the documentation of m4d_components 0.1.31 Download m4d_components 0.1.31 archive
0.1.29 Dec 19, 2018 Go to the documentation of m4d_components 0.1.29 Download m4d_components 0.1.29 archive
0.1.26 Dec 19, 2018 Go to the documentation of m4d_components 0.1.26 Download m4d_components 0.1.26 archive
0.1.24 Dec 19, 2018 Go to the documentation of m4d_components 0.1.24 Download m4d_components 0.1.24 archive
0.1.9 Oct 23, 2018 Go to the documentation of m4d_components 0.1.9 Download m4d_components 0.1.9 archive
0.1.7 Oct 23, 2018 Go to the documentation of m4d_components 0.1.7 Download m4d_components 0.1.7 archive
0.1.3 Oct 23, 2018 Go to the documentation of m4d_components 0.1.3 Download m4d_components 0.1.3 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
48
Health:
Code health derived from static analysis. [more]
72
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
71
Overall:
Weighted score of the above. [more]
60
Learn more about scoring.

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

  • Dart: 2.3.1
  • pana: 0.12.16

Platforms

Detected platforms: web

Primary library: package:m4d_components/m4d_components.dart with components: html, js.

Health suggestions

Fix lib/components/MaterialLayout.dart. (-3.93 points)

Analysis of lib/components/MaterialLayout.dart reported 8 hints, including:

line 76 col 21: Don't explicitly initialize variables to null.

line 77 col 21: Don't explicitly initialize variables to null.

line 78 col 21: Don't explicitly initialize variables to null.

line 79 col 21: Don't explicitly initialize variables to null.

line 80 col 21: Don't explicitly initialize variables to null.

Fix lib/components/MaterialCheckbox.dart. (-3.45 points)

Analysis of lib/components/MaterialCheckbox.dart reported 7 hints, including:

line 39 col 30: Don't explicitly initialize variables to null.

line 60 col 5: Prefer using /// for doc comments.

line 107 col 5: Avoid return types on setters.

line 112 col 5: Avoid return types on setters.

line 120 col 5: Avoid return types on setters.

Fix lib/components/MaterialRadio.dart. (-2.96 points)

Analysis of lib/components/MaterialRadio.dart reported 6 hints, including:

line 37 col 33: Don't explicitly initialize variables to null.

line 58 col 5: Prefer using /// for doc comments.

line 109 col 5: Avoid return types on setters.

line 116 col 5: Avoid return types on setters.

line 125 col 5: Avoid return types on setters.

Fix additional 28 files with analysis or formatting issues. (-22.42 points)

Additional issues in the following files:

  • lib/components/MaterialSwitch.dart (5 hints)
  • lib/components/MaterialDivDataTable.dart (3 hints)
  • lib/components/MaterialIconToggle.dart (3 hints)
  • lib/components/MaterialMenu.dart (3 hints)
  • lib/components/MaterialSlider.dart (3 hints)
  • lib/components/MaterialSpinner.dart (3 hints)
  • lib/components/MaterialTextfield.dart (3 hints)
  • lib/components/MaterialAccordion.dart (2 hints)
  • lib/components/MaterialButton.dart (2 hints)
  • lib/components/MaterialFormatter.dart (2 hints)
  • lib/components/MaterialLabelfield.dart (2 hints)
  • lib/components/MaterialProgress.dart (2 hints)
  • lib/components/MaterialProgressVertical.dart (2 hints)
  • lib/components/MaterialRipple.dart (2 hints)
  • lib/formatter/utils/FormatterPipeline.dart (2 hints)
  • lib/components/MaterialBadge.dart (1 hint)
  • lib/components/MaterialTooltip.dart (1 hint)
  • lib/formatter/ChooseFormatter.dart (1 hint)
  • lib/formatter/NumberFormatter.dart (1 hint)
  • lib/m4d_components.dart (1 hint)
  • lib/m4d_formatter.dart (1 hint)
  • lib/components/MaterialDataTable.dart (Run dartfmt to format lib/components/MaterialDataTable.dart.)
  • lib/components/MaterialTabs.dart (Run dartfmt to format lib/components/MaterialTabs.dart.)
  • lib/components/utils/FallbackFormatter.dart (Run dartfmt to format lib/components/utils/FallbackFormatter.dart.)
  • lib/formatter/DecoratorFormatter.dart (Run dartfmt to format lib/formatter/DecoratorFormatter.dart.)
  • lib/formatter/LowerCaseFormatter.dart (Run dartfmt to format lib/formatter/LowerCaseFormatter.dart.)
  • lib/formatter/UpperCaseFormatter.dart (Run dartfmt to format lib/formatter/UpperCaseFormatter.dart.)
  • lib/services.dart (Run dartfmt to format lib/services.dart.)

Maintenance suggestions

The package description is too short. (-19 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_components.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
intl ^0.15.0 0.15.8
logging >=0.11.3 <1.0.0 0.11.3+2
m4d_core >=0.2.0 <1.0.0 0.2.21
path ^1.4.0 1.6.2
platform_detect ^1.3.0 1.3.5
validate ^1.0.0 1.7.0
Transitive dependencies
analyzer 0.36.3
ansicolor 1.0.2
args 1.5.1
async 2.2.0
build_cli_annotations 1.1.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.16.0
dart_style 1.2.7
front_end 0.1.18
glob 1.1.7
html 0.14.0+2
intl_translation 0.17.4
kernel 0.3.18
l10n 2.0.19
meta 1.1.7
optional 3.0.2
package_config 1.0.5
petitparser 2.3.0
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+10
where 4.4.0 6.3.0
yaml 2.1.15
Dev dependencies
build_runner any
build_test any
build_web_compilers any
test any