Hixie 9e73c7eeff Refactor fn2.dart, since it breached our 1000-line threshold.
This moves input.dart to editing2/, since that way we can define the layering as strictly unidirectional.
It also reorders a bunch of imports to fit the style guide.
I removed the old remnants of the widgets example, and put the fn2 examples into the examples/widgets/ directory, to parallel the framework directory names.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1177243002.
2015-06-11 10:26:11 -07:00

34 lines
733 B
Dart

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'ink_well.dart';
import 'material.dart';
import 'wrappers.dart';
class Button extends Component {
Button({ Object key, this.content, this.level }) : super(key: key);
static final Style _style = new Style('''
-webkit-user-select: none;
height: 36px;
min-width: 64px;
padding: 0 8px;
margin: 4px;
border-radius: 2px;'''
);
final UINode content;
final int level;
UINode build() {
return new StyleNode(
new Material(
content: new InkWell(children: [content]),
level: level),
_style);
}
}