forked from cwtch.im/cwtch-ui
add offline icon to server rows
This commit is contained in:
parent
9a67008ece
commit
8eb2e73b10
|
@ -34,8 +34,16 @@ class _RemoteServerRowState extends State<RemoteServerRow> {
|
||||||
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(6.0), //border size
|
padding: const EdgeInsets.all(6.0), //border size
|
||||||
child: Icon(CwtchIcons.dns_24px,
|
child: Row(children: [
|
||||||
color: running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64)),
|
Icon(CwtchIcons.dns_24px,
|
||||||
|
color: running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64),
|
||||||
|
Visibility(
|
||||||
|
visible: !running,
|
||||||
|
child: Icon(
|
||||||
|
CwtchIcons.negative_heart_24px,
|
||||||
|
color: Provider.of<Settings>(context).theme.portraitOfflineBorderColor,
|
||||||
|
)),
|
||||||
|
])),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -27,8 +27,16 @@ class _ServerRowState extends State<ServerRow> {
|
||||||
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(6.0), //border size
|
padding: const EdgeInsets.all(6.0), //border size
|
||||||
child: Icon(CwtchIcons.dns_24px,
|
child: Row(children: [
|
||||||
color: server.running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64)),
|
Icon(CwtchIcons.dns_24px,
|
||||||
|
color: server.running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64),
|
||||||
|
Visibility(
|
||||||
|
visible: !server.running,
|
||||||
|
child: Icon(
|
||||||
|
CwtchIcons.negative_heart_24px,
|
||||||
|
color: Provider.of<Settings>(context).theme.portraitOfflineBorderColor,
|
||||||
|
)),
|
||||||
|
])),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|
Loading…
Reference in New Issue