Skip to content

Commit

Permalink
fix colors for day filters
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarios committed Sep 9, 2023
1 parent beb1c87 commit 597e88e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/settings/views/screens/video_filter_setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class VideoFilterSetup extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: wholeWeek.map((e) {
String day = getWeekdayName(e).substring(0, 1);
var isSelected = _.filter?.daysOfWeek.contains(e) ?? false;
return GestureDetector(
onTap: () => cubit.toggleDay(e),
child: AnimatedContainer(
Expand All @@ -188,12 +189,12 @@ class VideoFilterSetup extends StatelessWidget {
width: 30,
height: 30,
alignment: Alignment.center,
decoration: BoxDecoration(shape: BoxShape.circle, color: (_.filter?.daysOfWeek.contains(e) ?? false) ? colors.primaryContainer : colors.secondaryContainer),
decoration: BoxDecoration(shape: BoxShape.circle, color: isSelected ? colors.primaryContainer : colors.primaryContainer.withOpacity(0.4)),
duration: animationDuration,
curve: Curves.easeInOutQuad,
child: Text(
day,
style: textTheme.bodySmall,
style: textTheme.bodySmall?.copyWith(fontWeight: FontWeight.bold, color: isSelected ? colors.onPrimaryContainer: colors.onBackground),
),
),
);
Expand Down

0 comments on commit 597e88e

Please sign in to comment.