From c1829f763d3425a31d3ea80e2b26f7fbc9528412 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Wed, 31 Jan 2024 20:18:26 +0100 Subject: [PATCH] warning --- lib/components/info_cell.dart | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/components/info_cell.dart b/lib/components/info_cell.dart index 65f401e..c44299e 100644 --- a/lib/components/info_cell.dart +++ b/lib/components/info_cell.dart @@ -29,6 +29,9 @@ class InfoCell extends StatelessWidget { if (snapshot.data.contains('.')) { children = buildOk(snapshot.data); saveInState(context, snapshot); + } else if (snapshot.data.contains('Empty Body')) { + children = buildWarning(snapshot.data); + saveInState(context, snapshot); } else { children = buildError(snapshot.data); } @@ -94,6 +97,24 @@ class InfoCell extends StatelessWidget { ]; } + List buildWarning(message) { + return [ + const Icon( + Icons.check_circle_outline, + color: Colors.lime, + ), + Padding( + padding: const EdgeInsets.only(top: 16), + child: Tooltip( + message: '$message', + child: Text( + '$message', + overflow: TextOverflow.ellipsis, + ), + )) + ]; + } + List buildOk(version) { return [ const Icon(