NB The app-layout elements have now been directly incorporated into the polymer_elements 1.0.0-rc.9 package. This project is now deprecated.
Dart polymer wrappers for app-layout Polymer elements.
The original app-layout tests are in the process of being ported. The ported tests can be run as normal dart tests. For example, to run on dartium (default):
pub run test As usual, tests can be run on other platforms with
pub serve test --port=8080 from one terminal and
pub run test -pchrome --pub-serve=8080 from a second.
Note that tests are specifically blocked from running on Firefox currently in order to utilize Travis CI.
Although not necessary for normal use, this package can be rebuilt from the original polymer source using the procedure below. The specific version used as a basis can be specified in bower.json.
pub run custom_element_apigen:update app_layout_dart.yaml
For more information on using custom_element_apigen, see https://pub.dartlang.org/packages/custom_element_apigen
Add this to your package's pubspec.yaml file:
dependencies: polymer_app_layout: ^0.0.6
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:polymer_app_layout/app_box.dart'; import 'package:polymer_app_layout/app_drawer.dart'; import 'package:polymer_app_layout/app_drawer_layout.dart'; import 'package:polymer_app_layout/app_header.dart'; import 'package:polymer_app_layout/app_header_layout.dart'; import 'package:polymer_app_layout/app_scroll_effects.dart'; import 'package:polymer_app_layout/app_scroll_effects_behavior.dart'; import 'package:polymer_app_layout/app_scrollpos_control.dart'; import 'package:polymer_app_layout/app_toolbar.dart'; import 'package:polymer_app_layout/helpers.dart'; import 'package:polymer_app_layout/iron_flex_layout.dart'; import 'package:polymer_app_layout/iron_media_query.dart'; import 'package:polymer_app_layout/iron_resizable_behavior.dart'; import 'package:polymer_app_layout/iron_scroll_target_behavior.dart';
|0.0.6||Jul 14, 2016|
|0.0.5||Jun 7, 2016|
|0.0.4||May 19, 2016|
|0.0.3||May 9, 2016|
|0.0.2||May 2, 2016|
|0.0.1||Apr 28, 2016|
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]
The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.
Support Dart 2 in
The SDK constraint in
pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.
dartdoc failed. (-10 points)
dartdoc runs without any issues.
|Dart SDK||>=1.13.0 <2.0.0|