Add a repaint boundary to the cards on the shrine order page (#5251)

This commit is contained in:
Hans Muller
2016-08-05 10:02:53 -07:00
committed by GitHub
parent 5a0589c781
commit 4a8dbb0e13

View File

@@ -196,10 +196,15 @@ class _OrderPageState extends State<OrderPage> {
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()
)
]