| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:sky/widgets/widget.dart'; | 5 import '../mojo/activity.dart' as activity; |
| 6 import 'package:sky/widgets/theme.dart'; | 6 import 'theme.dart'; |
| 7 import 'package:sky/mojo/activity.dart' as activity; | 7 import 'widget.dart'; |
| 8 | 8 |
| 9 class TaskDescription extends Component { | 9 class TaskDescription extends Component { |
| 10 Widget child; | |
| 11 String label; | |
| 12 | 10 |
| 13 TaskDescription({this.label, this.child}); | 11 TaskDescription({ this.label, this.child }); |
| 12 |
| 13 final Widget child; |
| 14 final String label; |
| 14 | 15 |
| 15 Widget build() { | 16 Widget build() { |
| 16 activity.updateTaskDescription(label, Theme.of(this).primaryColor); | 17 activity.updateTaskDescription(label, Theme.of(this).primaryColor); |
| 17 return child; | 18 return child; |
| 18 } | 19 } |
| 20 |
| 19 } | 21 } |
| OLD | NEW |