added on/off text indicator
This commit is contained in:
parent
9374188ea9
commit
3da530191c
@ -469,14 +469,28 @@ class _PrivilegeBoardState extends State<_PrivilegeBoard> {
|
|||||||
color: enabled ? MyTheme.accent : Colors.grey[700],
|
color: enabled ? MyTheme.accent : Colors.grey[700],
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.all(4.0),
|
padding: EdgeInsets.all(8.0),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () =>
|
onTap: () =>
|
||||||
checkClickTime(widget.client.id, () => onTap?.call(!enabled)),
|
checkClickTime(widget.client.id, () => onTap?.call(!enabled)),
|
||||||
child: Icon(
|
child: Column(
|
||||||
iconData,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
size: 30.0,
|
children: [
|
||||||
color: Colors.white,
|
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,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user