Flutter: Add padding to only certain elements in my ListView
I'm trying to create a ListView and would only want the first item to be padded. Here is the code: Expanded( child: ListView.builder( padding: EdgeInsets.all(16), itemCount: card.length, itemBuilder: (context, index) { if (index == 0) { return MyCard.buildRecordCard( card[index], context);…