Skip to content

Commit

Permalink
style: light mode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Nov 21, 2024
1 parent 95b74a9 commit 037d58b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 37 deletions.
16 changes: 3 additions & 13 deletions lib/components/anime/home/carousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Carousel extends StatelessWidget {
child: Text(
title,
maxLines: 2,
style: TextStyle(fontSize: 16),
style: TextStyle(fontSize: 16, fontFamily: 'Poppins-SemiBold'),
textAlign: TextAlign.center,
),
),
Expand All @@ -178,18 +178,8 @@ class Carousel extends StatelessWidget {
rating,
style: TextStyle(
color: Theme.of(context)
.colorScheme
.inverseSurface ==
Theme.of(context)
.colorScheme
.onPrimaryFixedVariant
? Colors.black
: Theme.of(context)
.colorScheme
.onPrimaryFixedVariant ==
Color(0xffe2e2e2)
? Colors.black
: Colors.white,
.colorScheme
.inverseSurface,
fontSize: 14,
fontFamily: 'Poppins-SemiBold'),
),
Expand Down
27 changes: 3 additions & 24 deletions lib/components/anime/home/coverCarousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,31 +124,10 @@ class _CovercarouselState extends State<Covercarousel> {
name: (anime['averageScore'] / 10).toString(),
isVertical: false,
borderRadius: BorderRadius.circular(5),
backgroundColor: ColorScheme.onPrimaryFixedVariant,
color:
Theme.of(context).colorScheme.inverseSurface ==
Theme.of(context)
.colorScheme
.onPrimaryFixedVariant
? Colors.black
: Theme.of(context)
.colorScheme
.onPrimaryFixedVariant ==
const Color(0xffe2e2e2)
? Colors.black
: Colors.white,
backgroundColor: ColorScheme.secondaryContainer,
color: Theme.of(context).colorScheme.inverseSurface,
TextColor:
Theme.of(context).colorScheme.inverseSurface ==
Theme.of(context)
.colorScheme
.onPrimaryFixedVariant
? Colors.black
: Theme.of(context)
.colorScheme
.onPrimaryFixedVariant ==
const Color(0xffe2e2e2)
? Colors.black
: Colors.white,
Theme.of(context).colorScheme.inverseSurface,
),
],
),
Expand Down

0 comments on commit 037d58b

Please sign in to comment.