Closed Devlonoah closed 9 months ago
Hi @Devlonoah,
There are similar requests to this one but I think adding the itemcount option to the package will make usage too complicate.
Instead I am thinking of an option like footerWidgets
/ headerWidgets
where you can provide a List<Widget>
and those items will then be automatically placed on top or below the list. Will this feature meet your needs?
@Dimibe Yes it will.
Do you think this will make it into the next update?
you can achieve it like this
Closing this in favor of #152
Hi, I'm suggesting that itemCount be added to the parameters available.
As this will allow adding an extra widget : In a scenario where i plan to add a Text or a button [View All] to te end of the item list, Of course the only way to achieve this will be to add 1 to the length of the data being use. a pseudocode to explain what i meant: `var listOfFruit = ["Orange","Apple","Pawpaw"];
ListView.builder( itemcount: listOfFruit.length +1, itemBuilder:(context,index){ if(index ==0){ show Add more Button } else{ show all fruit } }`