polymer_paper_typeahead_input 0.0.5

  • README.md
  • Installing
  • Versions
  • 35

dart-polymer-paper-typeahead-input

Pub Travis

Dart polymer wrappers for paper-typeahead-input Polymer elements. Thanks to Tianxiang Zhang for the original polymer.

Usage

Import the element dart as normal, but note the target dart differes from the package name, in order to keep consistency with the polymer element.

import 'package:polymer_paper_typeahead_input/paper_typeahead_input.dart';

Within html, the component is named 'paper-typeahead-input'.

Examples

Examples may be served in debug/release mode via pub.

pub serve examples

Testing

The original polymer 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 -p<platform>

To run tests as javascript, the pub serve and test execution must be performed separately. Run 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.

Rebuilding

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.

  1. Fetch the polymer element source and deps
bower install
  1. Build the Dart wrapper API
pub run custom_element_apigen:update paper_typeahead_input_dart.yaml

For more information on using custom_element_apigen, see https://pub.dartlang.org/packages/custom_element_apigen

1. Depend on it

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


dependencies:
  polymer_paper_typeahead_input: "^0.0.5"

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:polymer_paper_typeahead_input/paper_typeahead_input.dart';
        
Version Uploaded Documentation Archive
0.0.5 Sep 8, 2016 Go to the documentation of polymer_paper_typeahead_input 0.0.5 Download polymer_paper_typeahead_input 0.0.5 archive
0.0.4 Aug 8, 2016 Go to the documentation of polymer_paper_typeahead_input 0.0.4 Download polymer_paper_typeahead_input 0.0.4 archive
0.0.3 Aug 3, 2016 Go to the documentation of polymer_paper_typeahead_input 0.0.3 Download polymer_paper_typeahead_input 0.0.3 archive
0.0.2 Jul 27, 2016 Go to the documentation of polymer_paper_typeahead_input 0.0.2 Download polymer_paper_typeahead_input 0.0.2 archive
0.0.1 Jul 27, 2016 Go to the documentation of polymer_paper_typeahead_input 0.0.1 Download polymer_paper_typeahead_input 0.0.1 archive

Analysis

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

  • Dart: 2.0.0-dev.46.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
33 / 100
Overall score:
Weighted score of the above. [more]
35
Learn more about scoring.

Platforms

Detected platforms: web

Platform components identified in package: html, js.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • The description is too short.

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

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 6 hints.

    Run dartfmt to format lib/paper_typeahead_input.dart.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use polymer_paper_typeahead_input.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.13.0 <2.0.0
dart_to_js_script_rewriter ^1.0.1 1.0.3
polymer ^1.0.0-rc.16 1.0.0-rc.19
polymer_elements ^1.0.0-rc.8 1.0.0-rc.10
Transitive dependencies
analyzer 0.29.5 0.31.1
args 0.13.7 1.4.1
async 2.0.6
barback 0.15.2+15
charcode 1.1.1
cli_util 0.1.2+1
code_transformers 0.5.1+4
collection 1.14.9
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
dart_style 0.2.16 1.0.10
glob 1.1.5
html 0.13.3
initialize 0.6.2+7
isolate 0.2.3 2.0.0
logging 0.11.3+1
meta 1.1.2
package_config 1.0.3
path 1.5.1
plugin 0.2.0+2
polymer_interop 1.0.0-rc.10
pool 1.3.4
reflectable 1.0.3 2.0.0
source_maps 0.10.4
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+7
web_components 0.12.5
yaml 2.1.13
Dev dependencies
custom_element_apigen ^0.2.1+1
test ^0.12.5+1