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(
builder: (_) {
final templates = exchangeViewModel.templates;
final itemCount = templates.length;
return Row(
children: <Widget>[
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];