// lib/screens/air/manual/air_manual_report.dart

import 'package:flutter/material.dart';

class AirManualReport extends StatelessWidget {
  final List<Map<String, String>> sampleData = [
    {"Station": "Air Site A", "Parameter": "PM2.5", "Value": "42"},
    {"Station": "Air Site B", "Parameter": "SO2", "Value": "18"},
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Air Manual Report")),
      body: Padding(
        padding: const EdgeInsets.all(24),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text("Manual Sampling 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(),
            ),
          ],
        ),
      ),
    );
  }
}