💄 Optimize status text
This commit is contained in:
parent
dd055fb077
commit
e6d732c86a
@ -396,35 +396,44 @@ class _HomeDashServiceStatusState extends State<_HomeDashServiceStatus> {
|
|||||||
: switch (_serviceStatus) {
|
: switch (_serviceStatus) {
|
||||||
ServiceStatus.operational => Row(
|
ServiceStatus.operational => Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
Icon(
|
||||||
Symbols.check,
|
Symbols.check,
|
||||||
size: 20,
|
size: 20,
|
||||||
|
color: Colors.green[900],
|
||||||
),
|
),
|
||||||
const Gap(10),
|
const Gap(10),
|
||||||
Text('serviceStatusOperational').tr(),
|
Text('serviceStatusOperational')
|
||||||
|
.tr()
|
||||||
|
.textColor(Colors.green[900]),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
ServiceStatus.failed => Tooltip(
|
ServiceStatus.failed => Tooltip(
|
||||||
message: 'serviceStatusFailedDescription'.tr(),
|
message: 'serviceStatusFailedDescription'.tr(),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
Icon(
|
||||||
Symbols.dangerous,
|
Symbols.dangerous,
|
||||||
size: 20,
|
size: 20,
|
||||||
|
color: Colors.red[900],
|
||||||
),
|
),
|
||||||
const Gap(10),
|
const Gap(10),
|
||||||
Text('serviceStatusFailed').tr(),
|
Text('serviceStatusFailed')
|
||||||
|
.tr()
|
||||||
|
.textColor(Colors.red[900]),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
_ => Row(
|
_ => Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
Icon(
|
||||||
Symbols.error,
|
Symbols.error,
|
||||||
size: 20,
|
size: 20,
|
||||||
|
color: Colors.orange[900],
|
||||||
),
|
),
|
||||||
const Gap(10),
|
const Gap(10),
|
||||||
Text('serviceStatusDowngraded').tr(),
|
Text('serviceStatusDowngraded')
|
||||||
|
.tr()
|
||||||
|
.textColor(Colors.orange[900]),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user