Skip to content

Commit

Permalink
wip: スポンサーのロゴをグリッドで表示
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Sep 22, 2023
1 parent cd423aa commit 5e65ba2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lib/features/sponsor/ui/sponsors_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:confwebsite2023/features/sponsor/data/sponsor_session.dart';
import 'package:confwebsite2023/features/sponsor/ui/sponsor_plan_header.dart';
import 'package:confwebsite2023/features/sponsor/ui/sponsors_header.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';

final class SponsorsSection extends ConsumerWidget {
Expand Down Expand Up @@ -112,11 +113,41 @@ final class _SponsorsSectionContent extends StatelessWidget {
style: h2TextStyle,
plan: SponsorPlan.platinum,
),
GridView.builder(
itemCount: platinumSponsors.length,
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: platinumSponsorsCrossAxisCount,
),
itemBuilder: (context, index) {
final sponsor = platinumSponsors[index];
return SvgPicture.asset(
sponsor.logoAssetName,
width: 400,
height: 200,
fit: BoxFit.fitWidth,
);
},
),
SponsorPlanHeader(
text: 'Gold',
style: h2TextStyle,
plan: SponsorPlan.gold,
),
// SliverGrid.builder(
// itemCount: goldSponsors.length,
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
// crossAxisCount: goldSponsorsCrossAxisCount,
// ),
// itemBuilder: (context, index) {
// final sponsor = goldSponsors[index];
// return SvgPicture.asset(
// sponsor.logoAssetName,
// width: 400,
// height: 200,
// fit: BoxFit.fitWidth,
// );
// },
// ),
SponsorPlanHeader(
text: 'Silver',
style: h2TextStyle,
Expand Down

0 comments on commit 5e65ba2

Please sign in to comment.