Flutter – How to make the first chip in the list selected by default?
I’m making a filter screen that uses Filter Chips, creating a list of filter chips. I want the first item to be selected as default. How to achieve this? Code: final items2 = ["Both", "Boy", "Girl", "Infant"]; List<String> gender = []; Wrap( spacing: 8, runSpacing: 8, children: items2 .map( (e) => FilterChip( shape: RoundedRectangleBorder( borderRadius:… Read More Flutter – How to make the first chip in the list selected by default?