notification toggle color fix

This commit is contained in:
CroatianHusky 2023-06-12 17:33:00 +02:00
parent 751cd04ce2
commit ae7c724f65
No known key found for this signature in database
GPG Key ID: E9CDDF86D7F128BC

View File

@ -458,13 +458,13 @@ class _SettingsScreenState extends State<SettingsScreen>
fontSize: 16.0,
),
),
SizedBox(
const SizedBox(
width: 5,
),
SizedBox(
height: 30,
child: AnimatedContainer(
duration: Duration(milliseconds: 200),
duration: const Duration(milliseconds: 200),
child: Padding(
padding:
const EdgeInsets.only(left: 10, right: 10),
@ -482,8 +482,9 @@ class _SettingsScreenState extends State<SettingsScreen>
overflow: TextOverflow.ellipsis))),
),
decoration: BoxDecoration(
color: AppColors.of(context).filc.withOpacity(
settings.notificationsEnabled ? 1.0 : .5),
color: settings.notificationsEnabled
? Theme.of(context).colorScheme.secondary
: AppColors.of(context).text.withOpacity(.25),
borderRadius: BorderRadius.circular(40)),
),
)