System logs

This commit is contained in:
Hillel Coren 2021-03-29 23:37:35 +03:00
parent 18dc02b143
commit ebced0e902
1 changed files with 1 additions and 13 deletions

View File

@ -14,22 +14,10 @@ class DashboardSystemLogs extends StatelessWidget {
@override
Widget build(BuildContext context) {
final company = viewModel.state.company;
//final systemLogs = company.systemLogs;
final clientId = viewModel.state.clientState.list.first;
final systemLogs = viewModel.state.clientState.map[clientId].systemLogs;
print('## systemLogs: $systemLogs');
final systemLogs = company.systemLogs;
return SystemLogViewer(
systemLogs: systemLogs,
);
return ScrollableListViewBuilder(
itemCount: systemLogs.length,
itemBuilder: (BuildContext context, index) {
return SystemLogViewer(
systemLogs: systemLogs,
);
},
);
}
}