Created
August 24, 2020 19:03
-
-
Save kirshiyin89/994ec793611e8ec2e0092af7c9faf010 to your computer and use it in GitHub Desktop.
Color for the Cards depending on the services status.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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