better warn icon
This commit is contained in:
parent
715a780edd
commit
7cecf32d9e
@ -348,7 +348,7 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
permissions(context),
|
permissions(context),
|
||||||
password(context),
|
password(context),
|
||||||
_Card(title: 'ID', children: [changeId()]),
|
_Card(title: 'ID', children: [changeId()]),
|
||||||
connection(context),
|
more(context),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -462,13 +462,13 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget connection(BuildContext context) {
|
Widget more(BuildContext context) {
|
||||||
bool enabled = !locked;
|
bool enabled = !locked;
|
||||||
return _Card(title: 'Security', children: [
|
return _Card(title: 'Security', children: [
|
||||||
_OptionCheckBox(context, 'Deny remote access', 'stop-service',
|
_OptionCheckBox(context, 'Deny remote access', 'stop-service',
|
||||||
checkedIcon: const Icon(
|
checkedIcon: const Icon(
|
||||||
Icons.warning,
|
Icons.warning_amber_rounded,
|
||||||
color: Colors.yellowAccent,
|
color: Color.fromARGB(255, 255, 204, 0),
|
||||||
),
|
),
|
||||||
enabled: enabled),
|
enabled: enabled),
|
||||||
Offstage(
|
Offstage(
|
||||||
@ -571,7 +571,8 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
.marginOnly(right: 5),
|
.marginOnly(right: 5),
|
||||||
Offstage(
|
Offstage(
|
||||||
offstage: !hasWhitelist.value,
|
offstage: !hasWhitelist.value,
|
||||||
child: const Icon(Icons.warning, color: Colors.yellowAccent)
|
child: const Icon(Icons.warning_amber_rounded,
|
||||||
|
color: Color.fromARGB(255, 255, 204, 0))
|
||||||
.marginOnly(right: 5),
|
.marginOnly(right: 5),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user