import 'package:flutter/material.dart';

class ReportScreen extends StatelessWidget {
  final List<Map<String, String>> sampleData = [
    {"Station": "Site A", "Parameter": "PM2.5", "Value": "35"},
    {"Station": "Site B", "Parameter": "O3", "Value": "22"},
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Air 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(),
            ),
          ],
        ),
      ),
    );
  }
}