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(