mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 14:04:26 +02:00
fix: Use primary color on enabled custom switch
This commit is contained in:
parent
78317223cc
commit
90ca54deeb
@ -43,7 +43,9 @@ class CustomSwitch extends StatelessWidget {
|
|||||||
margin: const EdgeInsets.symmetric(horizontal: 3),
|
margin: const EdgeInsets.symmetric(horizontal: 3),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
color: Colors.white,
|
color: value
|
||||||
|
? Theme.of(context).colorScheme.primaryContainer
|
||||||
|
: Colors.white,
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: Colors.black12.withOpacity(0.1),
|
color: Colors.black12.withOpacity(0.1),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user