import 'package:flutter/material.dart'; class EntryScreen extends StatefulWidget { @override State createState() => _EntryScreenState(); } class _EntryScreenState extends State { final _formKey = GlobalKey(); String zone = ''; String observation = ''; String severity = ''; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Marine Investigative Entry")), body: Padding( padding: const EdgeInsets.all(24), child: Form( key: _formKey, child: ListView( children: [ Text("Enter Marine Study Data", style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)), SizedBox(height: 24), TextFormField( decoration: InputDecoration(labelText: "Zone"), onChanged: (val) => zone = val, validator: (val) => val == null || val.isEmpty ? "Required" : null, ), SizedBox(height: 16), TextFormField( decoration: InputDecoration(labelText: "Observation"), onChanged: (val) => observation = val, validator: (val) => val == null || val.isEmpty ? "Required" : null, ), SizedBox(height: 16), TextFormField( decoration: InputDecoration(labelText: "Severity Level"), onChanged: (val) => severity = val, validator: (val) => val == null || val.isEmpty ? "Required" : null, ), SizedBox(height: 24), ElevatedButton( onPressed: () { if (_formKey.currentState!.validate()) { ScaffoldMessenger.of(context).showSnackBar( SnackBar(content: Text("Marine data submitted")), ); } }, child: Text("Submit"), ), ], ), ), ), ); } }