import 'package:flutter/material.dart';

class ReportScreen extends StatelessWidget {
  final List<Map<String, String>> sampleData = [
    {"Zone": "Coast A", "Observation": "Oil sheen", "Severity": "High"},
    {"Zone": "Coast B", "Observation": "Tarball", "Severity": "Moderate"},
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Marine 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("Zone")),
                DataColumn(label: Text("Observation")),
                DataColumn(label: Text("Severity")),
              ],
              rows: sampleData.map((data) {
                return DataRow(cells: [
                  DataCell(Text(data["Zone"]!)),
                  DataCell(Text(data["Observation"]!)),
                  DataCell(Text(data["Severity"]!)),
                ]);
              }).toList(),
            ),
          ],
        ),
      ),
    );
  }
}