Chromium Code Reviews| Index: sky/sdk/lib/widgets/task_description.dart |
| diff --git a/sky/sdk/lib/widgets/task_description.dart b/sky/sdk/lib/widgets/task_description.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2b74a0cd974b298d8a0c46cfcc37f28e8d49d4e3 |
| --- /dev/null |
| +++ b/sky/sdk/lib/widgets/task_description.dart |
| @@ -0,0 +1,19 @@ |
| +// 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 'package:sky/widgets/widget.dart'; |
| +import 'package:sky/widgets/theme.dart'; |
| +import 'package:sky/mojo/activity.dart' as activity; |
| + |
| +class TaskDescription extends Component { |
| + Widget child; |
|
Hixie
2015/07/07 23:13:03
these should be final, and after the constructor
|
| + String label; |
| + |
| + TaskDescription({this.label, this.child}); |
|
Hixie
2015/07/07 23:13:03
put spaces inside the {}s around the arguments
|
| + |
| + Widget build() { |
| + activity.updateTaskDescription(label, Theme.of(this).primaryColor); |
| + return child; |
| + } |
| +} |