diff --git a/lib/ui/app/system_log_viewer.dart b/lib/ui/app/system_log_viewer.dart index e9bccd2f1..694e961b4 100644 --- a/lib/ui/app/system_log_viewer.dart +++ b/lib/ui/app/system_log_viewer.dart @@ -90,13 +90,18 @@ class _SystemLogViewerState extends State { }, 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 ?? {}), - ), - ) + ? 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(),