mirrored_repositories/movie-booking-ui/lib/features/booking
import 'package:flutter/material.dart';

import './movie_seat_section.dart';
import '../../../core/data/models/movies.dart';

class MovieSeats extends StatelessWidget {
  const MovieSeats({Key? key, required this.seats}) : super(key: key);

  final List<List<Seat>> seats;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Row(
          children: [
            for (int i = 0; i < 3; i++)
              MovieSeatSection(
                seats: seats[i],
                isFront: true,
              ),
          ],
        ),
        const SizedBox(height: 20),
        Row(
          children: [
            for (int i = 3; i < 6; i++)
              MovieSeatSection(
                seats: seats[i],
              ),
          ],
        ),
      ],
    );
  }
}
