Skip to content

Instantly share code, notes, and snippets.

@kirshiyin89
Created August 24, 2020 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirshiyin89/994ec793611e8ec2e0092af7c9faf010 to your computer and use it in GitHub Desktop.
Save kirshiyin89/994ec793611e8ec2e0092af7c9faf010 to your computer and use it in GitHub Desktop.
Color for the Cards depending on the services status.
Color _getColorByServerStatus(ServerInfo info) {
if (info.running()) {
return Colors.teal[600];
} else {
return Colors.red[200];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment