added on/off text indicator

This commit is contained in:
NicKoehler 2023-05-21 14:24:51 +02:00
parent 9374188ea9
commit 3da530191c
No known key found for this signature in database
GPG Key ID: 0EC502B679A11DD1

View File

@ -469,14 +469,28 @@ class _PrivilegeBoardState extends State<_PrivilegeBoard> {
color: enabled ? MyTheme.accent : Colors.grey[700],
borderRadius: BorderRadius.circular(10.0),
),
padding: EdgeInsets.all(4.0),
padding: EdgeInsets.all(8.0),
child: InkWell(
onTap: () =>
checkClickTime(widget.client.id, () => onTap?.call(!enabled)),
child: Icon(
iconData,
size: 30.0,
color: Colors.white,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Icon(
iconData,
size: 30.0,
color: Colors.white,
),
Text(
enabled ? "ON" : "OFF",
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w200,
color: Colors.white,
fontSize: 10.0,
),
)
],
),
),
),