mirrored_repositories/Ninebot_GoKart_PRO/lib
import 'package:flutter/material.dart';
import 'package:ninebot_gokart_app/components/card.dart';

import '../models/card_model.dart';
import '../utils/styles.dart';

class BottomSection extends StatelessWidget {
  const BottomSection({super.key});

  @override
  Widget build(BuildContext context) {
    List<BndCard> cards = [
      BndCard('assets/images/card-1.png', 'Front LED Light', 99.00),
      BndCard('assets/images/card-2.png', 'Aerodynamic Rare Wing', 129.00),
      BndCard('assets/images/card-3.png', 'Metal Pedals', 49.00),
      BndCard('assets/images/card-4.png', 'Rear Wing', 100.00),
    ];

    return Padding(
      padding: const EdgeInsets.only(top: 52, left: 20),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text('Extra Bundle Included', style: h2),
          const SizedBox(height: 13),
          SizedBox(
            height: 160,
            child: ListView.builder(
              itemCount: cards.length,
              scrollDirection: Axis.horizontal,
              physics: const BouncingScrollPhysics(),
              itemBuilder: (context, index) {
                return BundleCard(
                  image: cards[index].image,
                  name: cards[index].name,
                  price: cards[index].price,
                );
              },
            ),
          )
        ],
      ),
    );
  }
}
