m4d_components 0.1.31

  • Readme
  • Changelog
  • Installing
  • 44

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.31

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

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

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

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

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

line 70 col 28: Unnecessary new keyword.

line 72 col 54: Avoid const keyword.

line 73 col 58: Avoid const keyword.

line 74 col 46: Avoid const keyword.

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

Fix lib/components/MaterialDivDataTable.dart. (-11.33 points)

Analysis of lib/components/MaterialDivDataTable.dart reported 24 hints, including:

line 32 col 28: Unnecessary new keyword.

line 34 col 48: The value of the field '_constant' isn't used.

line 34 col 60: Avoid const keyword.

line 35 col 64: Avoid const keyword.

line 52 col 5: Avoid return types on setters.

Fix lib/components/MaterialMenu.dart. (-10.89 points)

Analysis of lib/components/MaterialMenu.dart reported 23 hints, including:

line 27 col 35: Avoid const keyword.

line 28 col 36: Avoid const keyword.

line 29 col 35: Avoid const keyword.

line 30 col 38: Avoid const keyword.

line 31 col 40: Avoid const keyword.

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

Additional issues in the following files:

  • lib/components/MaterialRadio.dart (23 hints)
  • lib/components/MaterialCheckbox.dart (19 hints)
  • lib/components/MaterialSwitch.dart (17 hints)
  • lib/components/MaterialSlider.dart (15 hints)
  • lib/components/MaterialTabs.dart (14 hints)
  • lib/components/MaterialProgressVertical.dart (13 hints)
  • lib/components/MaterialSpinner.dart (13 hints)
  • lib/components/MaterialAccordion.dart (12 hints)
  • lib/components/MaterialIconToggle.dart (12 hints)
  • lib/components/MaterialProgress.dart (11 hints)
  • lib/components/MaterialButton.dart (10 hints)
  • lib/components/MaterialFormatter.dart (10 hints)
  • lib/components/MaterialDataTable.dart (9 hints)
  • lib/components/MaterialTextfield.dart (9 hints)
  • lib/components/MaterialRipple.dart (8 hints)
  • lib/components/MaterialBadge.dart (7 hints)
  • lib/components/MaterialTooltip.dart (7 hints)
  • lib/components/MaterialLabelfield.dart (6 hints)
  • lib/m4d_formatter.dart (6 hints)
  • lib/formatter/utils/FormatterPipeline.dart (5 hints)
  • lib/formatter/NumberFormatter.dart (4 hints)
  • lib/formatter/ChooseFormatter.dart (3 hints)
  • lib/m4d_components.dart (1 hint)
  • 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 issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (intl).

Package is getting outdated. (-21.10 points)

The package was last published 63 weeks ago.

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 0.16.1
logging >=0.11.3 <1.0.0 0.11.4
m4d_core >=0.2.0 <1.0.0 0.2.21
path ^1.4.0 1.6.4
platform_detect ^1.3.0 1.4.0
validate ^1.0.0 1.7.0
Transitive dependencies
_fe_analyzer_shared 2.0.0
analyzer 0.39.5
ansicolor 1.0.2
args 1.6.0
async 2.4.1
build_cli_annotations 1.2.0
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
csslib 0.16.1
dart_style 1.3.3
glob 1.2.0
html 0.14.0+3
intl_translation 0.17.9
js 0.6.1+1
l10n 2.0.19
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
optional 3.1.0 4.1.0
package_config 1.9.3
pedantic 1.9.0
petitparser 2.4.0 3.0.2
pub_semver 1.4.4
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+14
where 4.4.0 6.6.0
yaml 2.2.0
Dev dependencies
build_runner any
build_test any
build_web_compilers any
test any