Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 import 'package:sky/widgets/widget.dart'; | |
| 6 import 'package:sky/widgets/theme.dart'; | |
| 7 import 'package:sky/mojo/activity.dart' as activity; | |
| 8 | |
| 9 class TaskDescription extends Component { | |
| 10 Widget child; | |
|
Hixie
2015/07/07 23:13:03
these should be final, and after the constructor
| |
| 11 String label; | |
| 12 | |
| 13 TaskDescription({this.label, this.child}); | |
|
Hixie
2015/07/07 23:13:03
put spaces inside the {}s around the arguments
| |
| 14 | |
| 15 Widget build() { | |
| 16 activity.updateTaskDescription(label, Theme.of(this).primaryColor); | |
| 17 return child; | |
| 18 } | |
| 19 } | |
| OLD | NEW |