Commit 2f002885 authored by Ian Hickson's avatar Ian Hickson Committed by Adam Barth

Allow two shrine order pages to be on the screen at the same time. (#8507)

This happens when, for instance, you go back then forward quickly.
parent 52715467
......@@ -134,7 +134,13 @@ class OrderPage extends StatefulWidget {
/// arranged in two columns. Enables the user to specify a quantity and add an
/// order to the shopping cart.
class _OrderPageState extends State<OrderPage> {
static final GlobalKey<ScaffoldState> scaffoldKey = new GlobalKey<ScaffoldState>(debugLabel: 'Shrine Order');
GlobalKey<ScaffoldState> scaffoldKey;
@override
void initState() {
super.initState();
scaffoldKey = new GlobalKey<ScaffoldState>(debugLabel: 'Shrine Order ${config.order}');
}
Order get currentOrder => ShrineOrderRoute.of(context).order;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment