fix: Use primary color on enabled custom switch

This commit is contained in:
Alberto Ponces 2022-09-07 02:38:07 +01:00
parent 78317223cc
commit 90ca54deeb

View File

@ -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),