mirrored_repositories/ticats_front/lib/presentation/common
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ticats/domain/entities/ticket.dart';
import 'package:ticats/presentation/common/widgets/ticats_ticket.dart';

class TicatsGridView extends StatelessWidget {
  const TicatsGridView({super.key, required this.ticketList, this.isSearch = false});

  final List<Ticket> ticketList;
  final bool isSearch;

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Padding(
        padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 24.h),
        child: Wrap(
          spacing: 14.w,
          runSpacing: 18.w,
          children: [
            for (final ticket in ticketList) TicketGridFront(ticket, isSearch: isSearch),
          ],
        ),
      ),
    );
  }
}
