import 'package:flutter/material.dart';

class ReportScreen extends StatelessWidget {
  final List<Map<String, String>> sampleData = [
    {"Station": "Marine Site A", "Parameter": "Salinity", "Value": "35 PSU"},
    {"Station": "Marine Site B", "Parameter": "Turbidity", "Value": "4 NTU"},
  ];

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