material2_dart 0.2.0 material2_dart: ^0.2.0 copied to clipboard
angular/material2 for Dart.
This is the Dart version of angular/material2 being ported by individual.
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 #
- Button
- Button Toggle
- Card
- Checkbox
- Grid List
- Icon
- Input
- List
- Progress Bar
- Progress Circle
- Radio
- Sidenav
- Slider
- Slide Toggle
- Tabs
- Toolbar
Usage #
-
Add this to your package's pubspec.yaml file. (The example)
dependencies: material2_dart: any
-
Run
pub get
. -
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,
-
Clone this repository.
git clone https://github.com/ntaoo/material2_dart.git
-
Go to the example directory.
cd material2_dart/example
-
Run
pub get
to get all the dependent packages.pub get
-
Run
pub serve
to start up a development server.pub serve
-
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