From 90ca54deeb38b807a82ea35c8a9c88fc6ba69ab8 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Wed, 7 Sep 2022 02:38:07 +0100 Subject: [PATCH] fix: Use primary color on enabled custom switch --- lib/ui/widgets/settingsView/custom_switch.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/widgets/settingsView/custom_switch.dart b/lib/ui/widgets/settingsView/custom_switch.dart index 5a25b2bf..22a4120b 100644 --- a/lib/ui/widgets/settingsView/custom_switch.dart +++ b/lib/ui/widgets/settingsView/custom_switch.dart @@ -43,7 +43,9 @@ class CustomSwitch extends StatelessWidget { margin: const EdgeInsets.symmetric(horizontal: 3), decoration: BoxDecoration( shape: BoxShape.circle, - color: Colors.white, + color: value + ? Theme.of(context).colorScheme.primaryContainer + : Colors.white, boxShadow: [ BoxShadow( color: Colors.black12.withOpacity(0.1),