m4d_components 0.1.9

  • README.md
  • Installing
  • Versions
  • new56

Material4Dart - Basic Components

Basic components like MaterialButton, MaterialCheckbox and so on




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




v0.1 - 2018-10-19


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:

  m4d_components: ^0.1.9

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.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
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 Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6


Detected platforms: web

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

Health suggestions

Fix lib/components/MaterialBadge.dart. (-0.50 points)

Analysis of lib/components/MaterialBadge.dart reported 1 hint:

line 55 col 14: The function '_kickInFormatter' isn't used.

Fix lib/components/MaterialProgressVertical.dart. (-0.50 points)

Analysis of lib/components/MaterialProgressVertical.dart reported 1 hint:

line 96 col 73: 'onError' is deprecated and shouldn't be used.

Fix lib/components/MaterialRipple.dart. (-0.50 points)

Analysis of lib/components/MaterialRipple.dart reported 1 hint:

line 190 col 17: Equality operator == invocation with references of unrelated types.

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

Additional issues in the following files:

  • lib/components/MaterialTextfield.dart (1 hint)
  • lib/components/MaterialAccordion.dart (Run dartfmt to format lib/components/MaterialAccordion.dart.)
  • lib/components/MaterialButton.dart (Run dartfmt to format lib/components/MaterialButton.dart.)
  • lib/components/MaterialCheckbox.dart (Run dartfmt to format lib/components/MaterialCheckbox.dart.)
  • lib/components/MaterialDataTable.dart (Run dartfmt to format lib/components/MaterialDataTable.dart.)
  • lib/components/MaterialDivDataTable.dart (Run dartfmt to format lib/components/MaterialDivDataTable.dart.)
  • lib/components/MaterialFormatter.dart (Run dartfmt to format lib/components/MaterialFormatter.dart.)
  • lib/components/MaterialIconToggle.dart (Run dartfmt to format lib/components/MaterialIconToggle.dart.)
  • lib/components/MaterialLabelfield.dart (Run dartfmt to format lib/components/MaterialLabelfield.dart.)
  • lib/components/MaterialLayout.dart (Run dartfmt to format lib/components/MaterialLayout.dart.)
  • lib/components/MaterialMenu.dart (Run dartfmt to format lib/components/MaterialMenu.dart.)
  • lib/components/MaterialProgress.dart (Run dartfmt to format lib/components/MaterialProgress.dart.)
  • lib/components/MaterialRadio.dart (Run dartfmt to format lib/components/MaterialRadio.dart.)
  • lib/components/MaterialSlider.dart (Run dartfmt to format lib/components/MaterialSlider.dart.)
  • lib/components/MaterialSpinner.dart (Run dartfmt to format lib/components/MaterialSpinner.dart.)
  • lib/components/MaterialSwitch.dart (Run dartfmt to format lib/components/MaterialSwitch.dart.)
  • lib/components/MaterialTabs.dart (Run dartfmt to format lib/components/MaterialTabs.dart.)
  • lib/components/MaterialTooltip.dart (Run dartfmt to format lib/components/MaterialTooltip.dart.)
  • lib/components/utils/FallbackFormatter.dart (Run dartfmt to format lib/components/utils/FallbackFormatter.dart.)
  • lib/formatter/ChooseFormatter.dart (Run dartfmt to format lib/formatter/ChooseFormatter.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/NumberFormatter.dart (Run dartfmt to format lib/formatter/NumberFormatter.dart.)
  • lib/formatter/UpperCaseFormatter.dart (Run dartfmt to format lib/formatter/UpperCaseFormatter.dart.)
  • lib/formatter/utils/FormatterPipeline.dart (Run dartfmt to format lib/formatter/utils/FormatterPipeline.dart.)
  • lib/m4d_components.dart (Run dartfmt to format lib/m4d_components.dart.)
  • lib/m4d_formatter.dart (Run dartfmt to format lib/m4d_formatter.dart.)
  • lib/services.dart (Run dartfmt to format lib/services.dart.)

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use m4d_components.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
console_log_handler ^1.0.0 1.1.3
intl ^0.15.0 0.15.7
logging >=0.11.3 <1.0.0 0.11.3+2
m4d_core >=0.1.0 <1.0.0 0.1.11
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.32.6 0.33.3
ansicolor 1.0.2
args 1.5.1
async 2.0.8
build_cli_annotations 1.0.0
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
dart_style 1.1.3 1.2.0
front_end 0.1.4+2 0.1.6+3
glob 1.1.7
html 0.13.3+3
intl_translation 0.17.1 0.17.2
kernel 0.3.4+2 0.3.6+3
l10n 2.0.15
matcher 0.12.4
meta 1.1.6
optional 3.0.0+2
package_config 1.0.5
petitparser 1.7.7 2.0.2
plugin 0.2.0+3
pub_semver 1.4.2
source_span 1.4.1
stack_trace 1.9.3
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
where 4.4.0 5.0.0
yaml 2.1.15
Dev dependencies
build_runner any
build_test any
build_web_compilers any
test any