material2_dart 0.2.0 copy "material2_dart: ^0.2.0" to clipboard
material2_dart: ^0.2.0 copied to clipboard

outdatedDart 1 only

angular/material2 for Dart.

This is the Dart version of angular/material2 being ported by individual.

Gitter

Project Status #

Synced with the 2.0.0-alpha.8 except gesture support and non 'available' components.

Prerequisites #

This package depends on scissors package which requires to install sassc for scss compilation. (Ruby sass is not supported.) If you have not set up scissors, please set up scissors with the guide.

Components #

Usage #

  1. Add this to your package's pubspec.yaml file. (The example)

     dependencies:
       material2_dart: any
    
  2. Run pub get.

  3. Import component files and add directives on a component metadata. (The example)

Example #

Please see the Demo App which includes all of the components and core functions usages.

How to see the Demo App on a browser. #

Assuming you have already installed Dart,

  1. Clone this repository.

     git clone https://github.com/ntaoo/material2_dart.git
    
  2. Go to the example directory.

     cd material2_dart/example
    
  3. Run pub get to get all the dependent packages.

     pub get
    
  4. Run pub serve to start up a development server.

     pub serve
    
  5. Go to http://localhost:8080 on a browser.

Contributing #

Your contribution is welcome. Please note that this project is nothing more than a porting work of angular/material2.

Many tests have not been ported, so it is much appreciated if you help to port them.

Features and bugs #

I would not add any original features on it. If you need some new features, please consider contributing angular/material2.

If you find this Dart version's specific bugs, please file them at the issue tracker.

Testing material2_dart. #

Run test server on the project root.

pub serve

Run tests on dartium.

pub run test --pub-serve=8080 -p dartium