From fb7e3662e2a90e24abc84c03b8d9d1d3b59ef991 Mon Sep 17 00:00:00 2001 From: Godwin Asuquo Date: Mon, 31 Jan 2022 15:44:08 +0100 Subject: [PATCH] remove itemcount --- lib/src/screens/exchange/exchange_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/screens/exchange/exchange_page.dart b/lib/src/screens/exchange/exchange_page.dart index 20ddd7f27..d62713e1e 100644 --- a/lib/src/screens/exchange/exchange_page.dart +++ b/lib/src/screens/exchange/exchange_page.dart @@ -391,7 +391,7 @@ class ExchangePage extends BasePage { child: Observer( builder: (_) { final templates = exchangeViewModel.templates; - final itemCount = templates.length; + return Row( children: [ GestureDetector( @@ -443,7 +443,7 @@ class ExchangePage extends BasePage { scrollDirection: Axis.horizontal, shrinkWrap: true, physics: NeverScrollableScrollPhysics(), - itemCount: itemCount, + itemCount: templates.length, itemBuilder: (context, index) { final template = templates[index];