OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library searchable_list.demo_app; | 5 library searchable_list.demo_app; |
6 | 6 |
7 import 'package:polymer/polymer.dart'; | 7 import 'package:polymer/polymer.dart'; |
8 | 8 |
9 @CustomTag('demo-app') | 9 @CustomTag('demo-app') |
10 class DemoApp extends PolymerElement { | 10 class DemoApp extends PolymerElement { |
11 @observable bool applyAuthorStyles = true; | 11 @observable bool applyAuthorStyles = true; |
12 List<String> fruits = const [ | 12 List<String> fruits = const [ |
13 'Apple', 'Apricot', 'Avocado', | 13 'Apple', 'Apricot', 'Avocado', |
14 'Banana', 'Blackberry', 'Blackcurrant', 'Blueberry', | 14 'Banana', 'Blackberry', 'Blackcurrant', 'Blueberry', |
15 'Currant', 'Cherry', 'Clementine', 'Date', 'Durian', 'Fig', | 15 'Currant', 'Cherry', 'Clementine', 'Date', 'Durian', 'Fig', |
16 'Gooseberry', 'Grape', 'Grapefruit', 'Guava', 'Huckleberry', | 16 'Gooseberry', 'Grape', 'Grapefruit', 'Guava', 'Huckleberry', |
17 'Kiwi', 'Lemon', 'Lime', 'Lychee', 'Mandarin', 'Mango', | 17 'Kiwi', 'Lemon', 'Lime', 'Lychee', 'Mandarin', 'Mango', |
18 'Cantaloupe', 'Honeydew melon', 'Nectarine', 'Orange', | 18 'Cantaloupe', 'Honeydew melon', 'Nectarine', 'Orange', |
19 'Peach', 'Pear', 'Plum', 'Pineapple', 'Pomegranate', | 19 'Peach', 'Pear', 'Plum', 'Pineapple', 'Pomegranate', |
20 'Raspberry', 'Redcurrant', 'Star fruit', 'Strawberry', | 20 'Raspberry', 'Redcurrant', 'Star fruit', 'Strawberry', |
21 'Tangerine', 'Tomato', 'Watermelon']; | 21 'Tangerine', 'Tomato', 'Watermelon']; |
22 | 22 |
23 DemoApp.created() : super.created(); | 23 DemoApp.created() : super.created(); |
24 } | 24 } |
OLD | NEW |