flutter_flutter/packages/flutter/lib/widgets/task_description.dart
Adam Barth 054ebbf3cf Rename widgets/widget.dart to widgets/framework.dart
It was confusing to have both widget.dart and widgets.dart
2015-08-04 11:13:33 -07:00

22 lines
558 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 'package:sky/mojo/activity.dart' as activity;
import 'package:sky/widgets/theme.dart';
import 'package:sky/widgets/framework.dart';
class TaskDescription extends Component {
TaskDescription({ this.label, this.child });
final Widget child;
final String label;
Widget build() {
activity.updateTaskDescription(label, Theme.of(this).primaryColor);
return child;
}
}