Fix for system logs viewer for failed emails

This commit is contained in:
Hillel Coren 2024-01-23 15:17:04 +02:00
parent 7b6070af8e
commit 9d238ba4dd
1 changed files with 12 additions and 7 deletions

View File

@ -90,13 +90,18 @@ class _SystemLogViewerState extends State<SystemLogViewer> {
},
isExpanded: _isExpanded[systemLog.id] == true,
body: _isExpanded[systemLog.id] == true
? Container(
color: Colors.white,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
child: JsonViewer(logs ?? <String, dynamic>{}),
),
)
? logs == null
? Padding(
child: Text(systemLog.log),
padding: EdgeInsets.symmetric(
horizontal: 16, vertical: 10))
: Container(
color: Colors.white,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
child: JsonViewer(logs),
),
)
: SizedBox(),
);
}).toList(),