Skip to content

Commit f9b569d

Browse files
committed
Fix Theme Issues
1 parent 437a5fa commit f9b569d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/campusComponent/view/movie/movie_card_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MovieCardView extends ConsumerWidget {
3232

3333
Widget body(BuildContext context) {
3434
return Container(
35-
color: Colors.white,
35+
color: Theme.of(context).cardTheme.color,
3636
child: AspectRatio(
3737
aspectRatio: 250 / 470,
3838
child: Column(

lib/campusComponent/view/news/news_card_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class NewsCardView extends ConsumerWidget {
3939

4040
Widget body(String imageUrl, BuildContext context) {
4141
return Container(
42-
color: Colors.white,
42+
color: Theme.of(context).cardTheme.color,
4343
child: AspectRatio(
4444
aspectRatio: 1.1,
4545
child: Column(

lib/campusComponent/view/studentClub/student_club_item_view.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ class StudentClubItemView extends ConsumerWidget {
1818
@override
1919
Widget build(BuildContext context, WidgetRef ref) {
2020
if (isCarousel) {
21-
return body();
21+
return body(context);
2222
} else {
2323
return InkWell(
2424
onTap: () => UrlLauncher.urlString(studentClub.linkUrl, ref),
25-
child: body(),
25+
child: body(context),
2626
);
2727
}
2828
}
2929

30-
Widget body() {
30+
Widget body(BuildContext context) {
3131
return Container(
32-
color: Colors.white,
32+
color: Theme.of(context).cardTheme.color,
3333
child: Column(
3434
children: [
3535
if (studentClub.coverUrl.contains("svg"))

0 commit comments

Comments
 (0)