fix unactive color

This commit is contained in:
Rafeek-Khoudare
2025-07-22 10:12:02 +03:00
parent c0b74162e9
commit a64a9f1d12

View File

@ -61,16 +61,19 @@ class _PointsPartWidgetState extends State<PointsPartWidget> {
Transform.scale(
scale: 0.7,
child: Switch(
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
trackOutlineColor: WidgetStateProperty.resolveWith<Color>(
(Set<WidgetState> states) {
return ColorsManager.whiteColors;
}),
(Set<WidgetState> states) {
return ColorsManager.whiteColors;
},
),
activeTrackColor: ColorsManager.dialogBlueTitle,
inactiveTrackColor: ColorsManager.grayBorder,
inactiveTrackColor: ColorsManager.lightGrayBorderColor,
thumbColor: WidgetStateProperty.resolveWith<Color>(
(Set<WidgetState> states) {
return ColorsManager.whiteColors;
}),
(Set<WidgetState> states) {
return ColorsManager.whiteColors;
},
),
value: state is ActivatePointsSwitch,
onChanged: (value) {
final bloc = context.read<SetupBookableSpacesBloc>();