mdl 1.0.2 copy "mdl: ^1.0.2" to clipboard
mdl: ^1.0.2 copied to clipboard

outdatedDart 1 only

Material Design Lite for Dart

Material Design Lite for Dart #

A library of Material Design components in CSS, Dart, and HTML (MDL Dart website).

Material Design Lite lets you add a Material Design look and feel to your static content websites. It doesn’t rely on any JavaScript frameworks or libraries. Optimised for cross-device use, gracefully degrades in older browsers, and offers an experience that is accessible from the get-go.

StageDive #

MDL/Dart has StageDive support!
Try it out and follow these steps:

# if you don't have mdl installed
pub cache add mdl

# if you don't have stagedive installed or if you want to update stagedive
pub global activate stagedive

# if you don't have sitegen installed or if you want to update sitegen
# sitegen - will later act as a local server
pub global activate sitegen

stagedive -l

# You should see something like this
#   'MDL Android Template'    Package: mdl            Template name: android        Version: 1.0.1
#   'Simple Console'          Package: stagedive      Template name: console        Version: 0.2.3

# Now lets generate a new (-n) folder: android
stagedive -n android -p mdl -t android

# This is what stagedive asks you
#   Your email address: office@mikemitterer
#   Your name: Mike
#   Enter the package-name: android_mdl
#
#   'MDL Android Template' created! (android)

# move the the newly created dir
cd android

# Update everything
pub update

# Serve the site (you are in 'android'!)
sitegen -x

# In Chromium/Dartium
localhost:8000

This is how it stagedive get's it's template

Quick Start #

In pubspec.yaml specify the mdl, browser and di packages as dependencies, as well as the di transformer.

dependencies:
  mdl: "^1.0.0"
  browser: '^0.10.0'
  di: "^3.3.4"
transformers:
  - di

Add the mdl style sheet to your index.html

<link id="theme" rel="stylesheet" href="packages/mdl/assets/styles/material.min.css">

Initialize the mdl library from your main.dart

import 'package:mdl/mdl.dart' as mdl;


main() async {
  mdl.registerMdl();
  await mdl.componentFactory().run();
}

Icons #

Material Design Lite uses the official Material Icons font. We recommend you include it using:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet">

You can check for other options on the Developer's Guide.

Examples #

... Check out the samples

Features and bugs #

Please file feature requests and bugs at the issue tracker.

###License###

Copyright 2015 Michael Mitterer (office@mikemitterer.at),
IT-Consulting and Development Limited, Austrian Branch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language
governing permissions and limitations under the License.

If this plugin is helpful for you - please (Circle) me or star this repo here on GitHub

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Material Design Lite for Dart

Homepage

License

unknown (LICENSE)

Dependencies

browser, browser_detect, console_log_handler, di, dnd, intl, logging, logging_handlers, mustache, route_hierarchical, validate

More

Packages that depend on mdl