From 8758e269283b567aae8002f18f8cac74cd0f4c71 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 12 Oct 2015 10:09:57 -0700 Subject: [PATCH] Update arrow in stocks search to use ColorFilter We changed IconButton to require a ColorFilter to filter the color of the icon. --- examples/raw/painting.dart | 2 +- examples/stocks/lib/stock_home.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/raw/painting.dart b/examples/raw/painting.dart index d02e9583f47..e43299f86cd 100644 --- a/examples/raw/painting.dart +++ b/examples/raw/painting.dart @@ -83,7 +83,7 @@ ui.Picture paint(ui.Rect paintBounds) { ui.Scene composite(ui.Picture picture, ui.Rect paintBounds) { final double devicePixelRatio = ui.view.devicePixelRatio; ui.Rect sceneBounds = new ui.Rect.fromLTWH(0.0, 0.0, ui.view.width * devicePixelRatio, ui.view.height * devicePixelRatio); - Float32List deviceTransform = new Float32List(16) + Float64List deviceTransform = new Float64List(16) ..[0] = devicePixelRatio ..[5] = devicePixelRatio ..[10] = 1.0 diff --git a/examples/stocks/lib/stock_home.dart b/examples/stocks/lib/stock_home.dart index 5d3bbcf7907..b42f035783d 100644 --- a/examples/stocks/lib/stock_home.dart +++ b/examples/stocks/lib/stock_home.dart @@ -224,7 +224,7 @@ class StockHomeState extends State { return new ToolBar( left: new IconButton( icon: "navigation/arrow_back", - color: Theme.of(context).accentColor, + colorFilter: new ui.ColorFilter.mode(Theme.of(context).accentColor, ui.TransferMode.srcATop), onPressed: _handleSearchEnd ), center: new Input(