From 3cebd041168b796da42685dda94660d4a6aca76a Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Thu, 28 Jul 2016 16:23:17 -0700 Subject: [PATCH] More gallery tweaks (#5125) --- examples/flutter_gallery/lib/demo/contacts_demo.dart | 2 +- packages/flutter/lib/src/material/progress_indicator.dart | 4 ++-- packages/flutter/lib/src/material/refresh_indicator.dart | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/contacts_demo.dart b/examples/flutter_gallery/lib/demo/contacts_demo.dart index 2d6f304852..92d37d5006 100644 --- a/examples/flutter_gallery/lib/demo/contacts_demo.dart +++ b/examples/flutter_gallery/lib/demo/contacts_demo.dart @@ -82,7 +82,7 @@ class ContactsDemo extends StatefulWidget { class ContactsDemoState extends State { final GlobalKey _scaffoldKey = new GlobalKey(); final double _appBarHeight = 256.0; - AppBarBehavior _appBarBehavior = AppBarBehavior.scroll; + AppBarBehavior _appBarBehavior = AppBarBehavior.under; @override Widget build(BuildContext context) { diff --git a/packages/flutter/lib/src/material/progress_indicator.dart b/packages/flutter/lib/src/material/progress_indicator.dart index 6b1a717ed1..cea6528e0a 100644 --- a/packages/flutter/lib/src/material/progress_indicator.dart +++ b/packages/flutter/lib/src/material/progress_indicator.dart @@ -54,11 +54,11 @@ abstract class ProgressIndicator extends StatefulWidget { /// color use: `new AlwaysStoppedAnimation(color)`. /// /// If null, the progress indicator is rendered with the current theme's - /// [ThemeData.primaryColor]. + /// [ThemeData.accentColor]. final Animation valueColor; Color _getBackgroundColor(BuildContext context) => backgroundColor ?? Theme.of(context).backgroundColor; - Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).primaryColor; + Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).accentColor; @override void debugFillDescription(List description) { diff --git a/packages/flutter/lib/src/material/refresh_indicator.dart b/packages/flutter/lib/src/material/refresh_indicator.dart index d1676a6524..77bc29895b 100644 --- a/packages/flutter/lib/src/material/refresh_indicator.dart +++ b/packages/flutter/lib/src/material/refresh_indicator.dart @@ -125,7 +125,7 @@ class RefreshIndicator extends StatefulWidget { final RefreshIndicatorLocation location; /// The progress indicator's foreground color. The current theme's - /// [ThemeData.primaryColor] by default. + /// [ThemeData.accentColor] by default. final Color color; /// The progress indicator's background color. The current theme's @@ -168,8 +168,8 @@ class RefreshIndicatorState extends State { // Fully opaque when we've reached config.displacement. _valueColor = new ColorTween( - begin: (config.color ?? theme.primaryColor).withOpacity(0.0), - end: (config.color ?? theme.primaryColor).withOpacity(1.0) + begin: (config.color ?? theme.accentColor).withOpacity(0.0), + end: (config.color ?? theme.accentColor).withOpacity(1.0) ) .animate(new CurvedAnimation( parent: _sizeController,