From 6950ec54607c83bf56480f7505f4788542d4d195 Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Wed, 2 Jun 2021 10:27:28 +0300 Subject: [PATCH] CAKE-306 | merged main branch into current --- lib/src/screens/buy/pre_order_page.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/screens/buy/pre_order_page.dart b/lib/src/screens/buy/pre_order_page.dart index 1385ba3e5..66aecfb2b 100644 --- a/lib/src/screens/buy/pre_order_page.dart +++ b/lib/src/screens/buy/pre_order_page.dart @@ -171,7 +171,8 @@ class PreOrderPage extends BasePage { ), if (buyViewModel.isShowProviderButtons) ...buyViewModel.items.map( - (item) => Observer(builder: (_) => FutureBuilder( + (item) => Observer(builder: (_) => + FutureBuilder( future: item.buyAmount, builder: (context, AsyncSnapshot snapshot) { double sourceAmount; @@ -193,7 +194,8 @@ class PreOrderPage extends BasePage { EdgeInsets.only(left: 15, top: 20, right: 15), child: Observer(builder: (_) { return BuyListItem( - selectedProvider: buyViewModel.selectedProvider, + selectedProvider: + buyViewModel.selectedProvider, provider: item.provider, sourceAmount: sourceAmount, sourceCurrency: buyViewModel.fiatCurrency,