From a2cef9525c018114e2bcfd67c2679a251bb39177 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 21 Aug 2015 12:59:38 -0700 Subject: [PATCH] Add missing file --- sky/packages/sky/lib/widgets/title.dart | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sky/packages/sky/lib/widgets/title.dart diff --git a/sky/packages/sky/lib/widgets/title.dart b/sky/packages/sky/lib/widgets/title.dart new file mode 100644 index 00000000000..f77552948b6 --- /dev/null +++ b/sky/packages/sky/lib/widgets/title.dart @@ -0,0 +1,21 @@ +// 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'; +import 'package:sky/widgets/theme.dart'; +import 'package:sky/widgets/framework.dart'; + +class Title extends Component { + + Title({ this.title, this.child }); + + final Widget child; + final String title; + + Widget build() { + updateTaskDescription(title, Theme.of(this).primaryColor); + return child; + } + +}