Skip to content

Commit

Permalink
warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Jan 31, 2024
1 parent e06d161 commit c1829f7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/components/info_cell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -94,6 +97,24 @@ class InfoCell extends StatelessWidget {
];
}

List<Widget> buildWarning(message) {
return <Widget>[
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<Widget> buildOk(version) {
return <Widget>[
const Icon(
Expand Down

0 comments on commit c1829f7

Please sign in to comment.