From 4a8dbb0e134218d29f5e5ce72fed1e785697d295 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Fri, 5 Aug 2016 10:02:53 -0700 Subject: [PATCH] Add a repaint boundary to the cards on the shrine order page (#5251) --- .../lib/demo/shrine/shrine_order.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/shrine/shrine_order.dart b/examples/flutter_gallery/lib/demo/shrine/shrine_order.dart index 238f3d43d5..359b59ebab 100644 --- a/examples/flutter_gallery/lib/demo/shrine/shrine_order.dart +++ b/examples/flutter_gallery/lib/demo/shrine/shrine_order.dart @@ -196,10 +196,15 @@ class _OrderPageState extends State { children: config.products .where((Product product) => product != config.order.product) .map((Product product) { - return new Card( - elevation: 0, - child: new Image.asset(product.imageAsset, fit: ImageFit.contain) - ); + return new RepaintBoundary( + child: new Card( + elevation: 1, + child: new Image.asset( + product.imageAsset, + fit: ImageFit.contain + ) + ) + ); }).toList() ) ]