From 3d2e46acd2b37dc008bf0c72769d5aa8108c1487 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 2 Mar 2016 10:14:56 -0800 Subject: [PATCH] Fix analyzer warning --- examples/widgets/card_collection.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/widgets/card_collection.dart b/examples/widgets/card_collection.dart index 305447b4ff..b487f7c410 100644 --- a/examples/widgets/card_collection.dart +++ b/examples/widgets/card_collection.dart @@ -392,12 +392,12 @@ class CardCollectionState extends State { Shader _createShader(Rect bounds) { return new LinearGradient( - begin: bounds.topLeft, - end: bounds.bottomLeft, + begin: const Offset(0.0, 0.0), + end: const Offset(0.0, 1.0), colors: [const Color(0x00FFFFFF), const Color(0xFFFFFFFF)], stops: [0.1, 0.35] ) - .createShader(); + .createShader(bounds); } Widget build(BuildContext context) {