remove itemcount

This commit is contained in:
Godwin Asuquo 2022-01-31 15:44:08 +01:00
parent 26f108ceb6
commit fb7e3662e2

View file

@ -391,7 +391,7 @@ class ExchangePage extends BasePage {
child: Observer( child: Observer(
builder: (_) { builder: (_) {
final templates = exchangeViewModel.templates; final templates = exchangeViewModel.templates;
final itemCount = templates.length;
return Row( return Row(
children: <Widget>[ children: <Widget>[
GestureDetector( GestureDetector(
@ -443,7 +443,7 @@ class ExchangePage extends BasePage {
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
shrinkWrap: true, shrinkWrap: true,
physics: NeverScrollableScrollPhysics(), physics: NeverScrollableScrollPhysics(),
itemCount: itemCount, itemCount: templates.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
final template = templates[index]; final template = templates[index];