listOfDebugData method
Implementation
List<ExpansionPanel> listOfDebugData(List<DebugLogString> data) {
List<ExpansionPanel> pannels = [];
for (DebugLogString datas in data) {
pannels.add(
ExpansionPanel(
headerBuilder: (context, isExpanded) {
return Text(
datas.logTitle,
maxLines: 2,
style: const TextStyle(
color: Colors.black,
fontSize: 18,
),
);
},
canTapOnHeader: true,
isExpanded: datas.isExpanded,
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
getCopyButton(copyText: datas.logsDescription),
const SizedBox(
height: 10,
width: double.infinity,
),
Text(
datas.logsDescription,
style: const TextStyle(
color: Colors.black,
fontSize: 14,
),
),
],
),
),
);
}
return pannels;
}