skawa_material_components 1.3.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 86

skawa_material_components #

Pub Package

More "Material" Components #

These components are based on Material Design and built on top of package:angular_components.

The goal is to provide a couple of components that seem to be missing from angular_components.

Currently Available components:

  • <skawa-card>
  • <skawa-data-table>
  • <skawa-grid>
  • <skawa-snackbar>

Both packages are being actively maintained, meaning components get added and removed. In case of a component from this list is added to angular_components, it will be deprecated and eventually removed from skawa_material_components.

Removed components:

  • <skawa-appbar>
  • <skawa-drawer>
  • <skawa-sidebar>

Getting started #

See examples

Need a component? #

Let us know what you'd like to use, open an issue!

Looking for maintainers #

If you have a component you'd like to be part of this collection, let us know, we can chat!

Licensing #

Skawa Material Components reuses and builds on top of certain parts of angular_components package. (Namely, base SCSS files) angular_components license

Skawa Material Components is released under MIT license.

1.3.3 #

  • patch version for 6.0.0-alpha

1.3.2 #

  • SkawaMaterialBannerComponent renamed to SkawaBannerComponent, added missing styling

1.3.1 #

  • patch version for 6.0.0-alpha

1.3.0 #

  • From this minor version, there will be a path version for the angular alpha version too
  • SkawaMaterialBannerComponent added

1.2.2 #

  • Minor styling on SkawaDataTableComponent

1.2.1 #

  • added support for Dart 2.5
  • CardOverflowDirective added

1.2.0 #

  • added support for the dart 2.4 and angular 6.0.0-alpha
  • titleAccessor added to SkawaDataTableColComponent

1.1.0+1 #

  • Fix: SkawaDataTableComponent selectable field has a default value, to evade errors after 2.3 dart version

1.1.0 #

  • Pub constraints updated

1.0.0+4 #

  • SkawaDataTableComponent columns can be updated at runtime, and coloring won't be messed up after sorting

1.0.0+3 #

  • Pub constraints updated
  • ExtendedMaterialIconComponent added

1.0.0+2 #

  • SkawaDataTableComponent tests using components with generic parameter

1.0.0+1 #

  • Fixed missing pub constraints

1.0.0 #

  • Release to pub

1.0.0-beta #

  • Splitted the original package, removed the non-material components from this package
  • RowData now has additional classes filed to be able style them differently

1.0.0-alpha+7 #

  • SkawaRawMarkdownRendererComponent added

1.0.0-alpha+6 #

  • SkawaMarkdownEditorComponent disable ex improved

1.0.0-alpha+5 #

  • SkawaMarkdownEditorComponent can be disabled

1.0.0-alpha+4 #

  • Added a new output stream to SkawaMarkdownEditorComponent which emits on displayMode change
  • SkawaMarkdownRendererComponent added
  • SkawaDataTableComponent non-highlightable mode fixed

1.0.0-alpha+3 #

  • SkawaInfobarComponent button open the url in a new tab
  • SkawaDataTableComponent can be non highlightable

1.0.0-alpha+2 #

  • SkawaMarkdownEditorComponent now updates EditorRenderTarget with the proper classes

1.0.0-alpha+1 #

  • fix minor issue in toggleAttribute method
  • snackbar_test refactored
  • added flaky-on-travis tags to tests which is never fails on localhost but sometimes fails on travis
  • moved PromptComponent to lib folder due to Angular4 migration

1.0.0-alpha #

  • Upgrade to Angular4

0.0.16 #

  • Added new component

0.0.15 #

  • Added new component <skawa-markdown-editor> and corresponding Directives.
  • Ckeditor description corrected
  • analysis_options became stricter
  • travis script now running dartfmt, if the code is not formated properly then exit

0.0.14 #

  • Added tests to snackbar
  • Changed angular2 version from ^3.1.0 to 3.1.0

0.0.13 #

  • Added SkawaRandomColorizePipe

0.0.12 #

  • Added sort logic to SkawaDataTableComponent

0.0.11 #

  • Modified snackbar to use material popup.
  • Snackbar should now be in the bottom left corner of the screen always.
  • Changed angular_components version from "^0.5.1" to "^0.5.3+1"

0.0.10 #

  • DataTable highlight event won't be triggered when selector checkbox is clicked

0.0.9 #

  • Changed to DataTable
    • introduction of the concept of primaryAction. Columns with accessors can subscript to (trigger) action.
    • rows can be (highlight)-ed without making a change in selection

0.0.8+1 #

  • Fixed a strong-mode error about missing trigger on Snackbar
  • Changed DataTableAccessor return value from dynamic to String

0.0.8 #

  • Add SnackbarComponent

0.0.7 #

  • Add some new functionality to <skawa-data-table>:
    • change event is emitted when selection changes
    • setting multiSelection toggles whether only a single or multiple elements can be selected

0.0.6+1 #

  • fixed an issue where dart2js would warn about ?? in for loop

0.0.6 #

  • Added support for column renderer for <data-table>

0.0.5 #

  • Added new component <skawa-grid>

0.0.4 #

  • CKEditor accepts initial value as content input property

0.0.3+1 #

  • Fixed transformer usage

0.0.3 #

  • Added new component <skawa-ckeditor>

0.0.2 #

  • Added tests with travis integration
  • Minor changes to components and their styling

example/README.md

Getting started #

See examples

Use this package as a library

1. Depend on it

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


dependencies:
  skawa_material_components: ^1.3.3

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:skawa_material_components/base_implementations/grid/grid.dart';
import 'package:skawa_material_components/card/card.dart';
import 'package:skawa_material_components/card/card_actions.dart';
import 'package:skawa_material_components/card/card_directives.dart';
import 'package:skawa_material_components/card/card_overflow.dart';
import 'package:skawa_material_components/data_table/data_table.dart';
import 'package:skawa_material_components/data_table/data_table_column.dart';
import 'package:skawa_material_components/data_table/row_data.dart';
import 'package:skawa_material_components/data_table/sort.dart';
import 'package:skawa_material_components/extended_material_icon/extended_material_icon.dart';
import 'package:skawa_material_components/grid/grid_component.dart';
import 'package:skawa_material_components/skawa_banner/skawa_banner.dart';
import 'package:skawa_material_components/skawa_banner/src/skawa_banner.dart';
import 'package:skawa_material_components/skawa_banner/src/skawa_banner_message.dart';
import 'package:skawa_material_components/skawa_banner/src/skawa_banner_service.dart';
import 'package:skawa_material_components/skawa_materialish_components.dart';
import 'package:skawa_material_components/snackbar/snackbar.dart';
import 'package:skawa_material_components/util/attribute.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
76
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
86
Learn more about scoring.

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

  • Dart: 2.8.1
  • pana: 0.13.8-dev

Health suggestions

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

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

line 18 col 45: Avoid const keyword.

Fix lib/data_table/sort.dart. (-0.50 points)

Analysis of lib/data_table/sort.dart reported 1 hint:

line 68 col 58: Avoid const keyword.

Format lib/base_implementations/grid/grid.dart.

Run dartfmt to format lib/base_implementations/grid/grid.dart.

Fix additional 9 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/card/card.dart (Run dartfmt to format lib/card/card.dart.)
  • lib/data_table/data_table_column.dart (Run dartfmt to format lib/data_table/data_table_column.dart.)
  • lib/extended_material_icon/extended_material_icon.dart (Run dartfmt to format lib/extended_material_icon/extended_material_icon.dart.)
  • lib/grid/grid_component.dart (Run dartfmt to format lib/grid/grid_component.dart.)
  • lib/skawa_banner/src/skawa_banner.dart (Run dartfmt to format lib/skawa_banner/src/skawa_banner.dart.)
  • lib/skawa_banner/src/skawa_banner_message.dart (Run dartfmt to format lib/skawa_banner/src/skawa_banner_message.dart.)
  • lib/skawa_banner/src/skawa_banner_service.dart (Run dartfmt to format lib/skawa_banner/src/skawa_banner_service.dart.)
  • lib/skawa_materialish_components.dart (Run dartfmt to format lib/skawa_materialish_components.dart.)
  • lib/snackbar/snackbar.dart (Run dartfmt to format lib/snackbar/snackbar.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).

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.5.0 <3.0.0
angular ^6.0.0-alpha 6.0.0-alpha+1
angular_components ^0.14.0-alpha 0.14.0-alpha+1
intl ^0.15.7 0.15.8 0.16.1
quiver ^2.0.3 2.1.3
sass_builder ^2.1.2 2.1.3
Transitive dependencies
analyzer 0.37.1+1 0.39.8
angular_ast 0.5.11
angular_compiler 0.4.5
angular_forms 2.1.4
args 1.6.0
async 2.4.1
build 1.3.0
built_collection 4.3.2
built_value 7.1.0
charcode 1.1.3
checked_yaml 1.0.2
cli_repl 0.2.0+1
code_builder 3.3.0
collection 1.14.12
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
dart_internal 0.1.9
dart_style 1.2.10 1.3.6
fixnum 0.10.11
front_end 0.1.21+1 0.1.29
glob 1.2.0
html 0.14.0+3
http 0.12.1
http_parser 3.1.4
js 0.6.1+1
json_annotation 3.0.1
kernel 0.3.21+1 0.3.29
logging 0.11.4
matcher 0.12.6
meta 1.1.8
node_interop 1.1.1
node_io 1.1.1
observable 0.22.2
package_config 1.9.3
package_resolver 1.0.10
path 1.7.0
pedantic 1.9.0
protobuf 0.13.16+1 1.0.1
pub_semver 1.4.4
pubspec_parse 0.1.5
sass 1.26.5
source_gen 0.9.4+6 0.9.5
source_maps 0.10.9
source_span 1.7.0
stack_trace 1.9.3
stream_transform 1.2.0
string_scanner 1.0.5
term_glyph 1.1.0
tuple 1.0.3
typed_data 1.1.6
watcher 0.9.7+15
yaml 2.2.1
Dev dependencies
angular_test ^2.3.0
build_config ^0.4.1+1 0.4.2
build_runner ^1.7.0
build_test ^0.10.7
build_web_compilers ^2.0.0
pageloader ^3.2.0
test ^1.6.2