This is my code:
ExpansionPanel(
headerBuilder: (BuildContext context, bool isExpanded) {
return SizedBox(
//height: 20,
child: ListTile(
title: Text("Files (2)"),
leading: Icon(Icons.folder_outlined),
minLeadingWidth : 4,
contentPadding: EdgeInsets.symmetric(vertical: 0.0, horizontal: 16.0),
),
);
},
body: Column(
children: [
ListTile(
title: Text("File_0"),
leading: Icon(Icons.insert_drive_file),
minLeadingWidth : 4,
contentPadding: EdgeInsets.symmetric(vertical: 0.0, horizontal: 16.0),
),
ListTile(
title: Text("File_1"),
leading: Icon(Icons.insert_drive_file),
minLeadingWidth : 4,
contentPadding: EdgeInsets.symmetric(vertical: 0.0, horizontal: 16.0),
)
],
),
isExpanded: items[0].isExpanded,
),
And this is the result:
As you see the distance between Folder and files and between files is huge. Could anyone say how to decrease this distance?
