commit
89035b5223
@ -459,7 +459,7 @@ class _PrivilegeBoardState extends State<_PrivilegeBoard> {
|
|||||||
Widget buildPermissionIcon(bool enabled, IconData iconData,
|
Widget buildPermissionIcon(bool enabled, IconData iconData,
|
||||||
Function(bool)? onTap, String tooltipText) {
|
Function(bool)? onTap, String tooltipText) {
|
||||||
return Tooltip(
|
return Tooltip(
|
||||||
message: tooltipText,
|
message: "$tooltipText: ${enabled ? "ON" : "OFF"}",
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: enabled ? MyTheme.accent : Colors.grey[700],
|
color: enabled ? MyTheme.accent : Colors.grey[700],
|
||||||
@ -476,17 +476,9 @@ class _PrivilegeBoardState extends State<_PrivilegeBoard> {
|
|||||||
child: Icon(
|
child: Icon(
|
||||||
iconData,
|
iconData,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
size: 32,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
|
||||||
enabled ? "ON" : "OFF",
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
style: TextStyle(
|
|
||||||
fontWeight: FontWeight.w200,
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 10.0,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -829,13 +821,13 @@ class _CmControlPanel extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
final borderRadius = BorderRadius.circular(10.0);
|
||||||
return Container(
|
return Container(
|
||||||
height: 28,
|
height: 28,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: color,
|
color: color, borderRadius: borderRadius, border: border),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
|
||||||
border: border),
|
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
|
borderRadius: borderRadius,
|
||||||
onTap: () => checkClickTime(client.id, onClick),
|
onTap: () => checkClickTime(client.id, onClick),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user