grouped_list icon indicating copy to clipboard operation
grouped_list copied to clipboard

Suggestion: ItemCount for adding extra widget

Open Devlonoah opened this issue 4 years ago • 2 comments

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 } }`

Devlonoah avatar Apr 14 '22 09:04 Devlonoah

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 avatar Jun 30 '22 22:06 Dimibe

@Dimibe Yes it will.

Devlonoah avatar Jun 30 '22 22:06 Devlonoah

Do you think this will make it into the next update?

xxJeevesxx avatar May 25 '23 00:05 xxJeevesxx

you can achieve it like this

Screenshot 2023-10-13 at 6 23 36 PM

ZakwanIbrahim3321 avatar Oct 13 '23 13:10 ZakwanIbrahim3321

Closing this in favor of #152

Dimibe avatar Nov 15 '23 13:11 Dimibe