diff --git a/examples/widgets/progress_indicator.dart b/examples/widgets/progress_indicator.dart index 1dd1a174ea..4f839aa113 100644 --- a/examples/widgets/progress_indicator.dart +++ b/examples/widgets/progress_indicator.dart @@ -6,10 +6,10 @@ import 'package:flutter/animation.dart'; import 'package:flutter/material.dart'; class ProgressIndicatorApp extends StatefulComponent { - ProgressIndicatorAppState createState() => new ProgressIndicatorAppState(); + _ProgressIndicatorAppState createState() => new _ProgressIndicatorAppState(); } -class ProgressIndicatorAppState extends State { +class _ProgressIndicatorAppState extends State { void initState() { super.initState(); valueAnimation = new ValuePerformance() @@ -98,14 +98,11 @@ class ProgressIndicatorAppState extends State { primarySwatch: Colors.blue, accentColor: Colors.redAccent[200] ), - child: new Title( - title: 'Progress Indicators', - child: new Scaffold( - toolBar: new ToolBar(center: new Text('Progress Indicators')), - body: new DefaultTextStyle( - style: Theme.of(context).text.title, - child: body - ) + child: new Scaffold( + toolBar: new ToolBar(center: new Text('Progress Indicators')), + body: new DefaultTextStyle( + style: Theme.of(context).text.title, + child: body ) ) ) @@ -114,5 +111,10 @@ class ProgressIndicatorAppState extends State { } void main() { - runApp(new ProgressIndicatorApp()); + runApp(new MaterialApp( + title: 'Progress Indicators', + routes: { + '/': (RouteArguments args) => new ProgressIndicatorApp() + } + )); } diff --git a/packages/flutter/lib/src/services/activity.dart b/packages/flutter/lib/src/services/activity.dart index a6751f6d0b..af2f65b649 100644 --- a/packages/flutter/lib/src/services/activity.dart +++ b/packages/flutter/lib/src/services/activity.dart @@ -60,7 +60,7 @@ void updateTaskDescription(String label, Color color) { TaskDescription description = new TaskDescription() ..label = label - ..primaryColor = color?.value; + ..primaryColor = color?.value ?? 0; _activityProxy.ptr.setTaskDescription(description); }