import 'package:flutter/material.dart';

class ReportScreen extends StatelessWidget {
  final List<Map<String, String>> sampleData = [
    {"Location": "Zone A", "Pollutant": "PM10", "Concentration": "45 µg/m³"},
    {"Location": "Zone B", "Pollutant": "VOC", "Concentration": "12 µg/m³"},
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Air Investigative Report")),
      body: Padding(
        padding: const EdgeInsets.all(24),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text("Investigative Study Report", style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
            SizedBox(height: 16),
            DataTable(
              columns: [
                DataColumn(label: Text("Location")),
                DataColumn(label: Text("Pollutant")),
                DataColumn(label: Text("Concentration")),
              ],
              rows: sampleData.map((data) {
                return DataRow(cells: [
                  DataCell(Text(data["Location"]!)),
                  DataCell(Text(data["Pollutant"]!)),
                  DataCell(Text(data["Concentration"]!)),
                ]);
              }).toList(),
            ),
          ],
        ),
      ),
    );
  }
}