forked from firka/student-legacy
notification toggle color fix
This commit is contained in:
parent
751cd04ce2
commit
ae7c724f65
@ -458,13 +458,13 @@ class _SettingsScreenState extends State<SettingsScreen>
|
|||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
width: 5,
|
width: 5,
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 30,
|
height: 30,
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
duration: Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.only(left: 10, right: 10),
|
const EdgeInsets.only(left: 10, right: 10),
|
||||||
@ -482,8 +482,9 @@ class _SettingsScreenState extends State<SettingsScreen>
|
|||||||
overflow: TextOverflow.ellipsis))),
|
overflow: TextOverflow.ellipsis))),
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: AppColors.of(context).filc.withOpacity(
|
color: settings.notificationsEnabled
|
||||||
settings.notificationsEnabled ? 1.0 : .5),
|
? Theme.of(context).colorScheme.secondary
|
||||||
|
: AppColors.of(context).text.withOpacity(.25),
|
||||||
borderRadius: BorderRadius.circular(40)),
|
borderRadius: BorderRadius.circular(40)),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user