loadShotToKillAnalysisDetails function
Implementation
SingleChildScrollView loadShotToKillAnalysisDetails(
String title, List<VgkShortToKillModel> data) {
return SingleChildScrollView(
scrollDirection: Axis.vertical,
child: DataTable(
columns: [
DataColumn(
label: Center(
child: Text(
title + ' Level ',
textAlign: TextAlign.right,
style: VgkProGamingTheme.h3White,
),
),
),
DataColumn(
label: Center(
child: Text(
'Shots to kill ',
textAlign: TextAlign.center,
style: VgkProGamingTheme.h3White,
),
),
),
],
rows: data
.map(
((element) => DataRow(cells: <DataCell>[
DataCell(
dataWithIcon(element.name, element.src),
),
DataCell(
Center(
child: Text(
element.value,
textAlign: TextAlign.center,
style: VgkProGamingTheme.h3White,
),
),
),
])),
)
.toList(),
),
);
}