Skip to content

Commit

Permalink
refactor: Card の color に surfaceVariant を指定
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Sep 22, 2023
1 parent e10ac13 commit 6ab5407
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/features/sponsor/ui/sponsor_logo_cards.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:confwebsite2023/core/gen/assets.gen.dart';
import 'package:confwebsite2023/core/theme.dart';
import 'package:confwebsite2023/features/sponsor/data/sponsor.dart';
import 'package:confwebsite2023/features/sponsor/data/sponsor_plan.dart';
import 'package:confwebsite2023/features/sponsor/data/sponsor_session.dart';
Expand All @@ -17,6 +18,7 @@ final class SponsorLogoCards extends StatelessWidget {

@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final sponsors = allSponsors.where((s) => s.plan == _plan);

final cardSize = switch (_plan) {
Expand All @@ -39,6 +41,7 @@ final class SponsorLogoCards extends StatelessWidget {
_ => BoxFit.fitWidth,
};
return Card(
color: theme.colorScheme.surfaceVariant,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
),
Expand Down

0 comments on commit 6ab5407

Please sign in to comment.