let AI comment everything because well... yeah...
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
// * Widget for selecting time zone settings (MEZ/MESZ)
|
||||
// * Features:
|
||||
// * - Radio button selection between summer and winter time
|
||||
// * - Localized labels for time zones
|
||||
// * - Default selection support
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fforte/l10n/app_localizations.dart';
|
||||
|
||||
/// Widget for selecting between summer time (MESZ) and winter time (MEZ)
|
||||
/// Used to configure camera trap time settings
|
||||
class MEZ extends StatefulWidget {
|
||||
/// Callback function when time zone selection changes
|
||||
final Function(String) onMEZChanged;
|
||||
/// Initial time zone selection ('sommerzeit' by default)
|
||||
final String initialMEZ;
|
||||
|
||||
const MEZ(
|
||||
@@ -12,7 +22,9 @@ class MEZ extends StatefulWidget {
|
||||
State<MEZ> createState() => _MEZState();
|
||||
}
|
||||
|
||||
/// State class for the time zone selection widget
|
||||
class _MEZState extends State<MEZ> {
|
||||
/// Currently selected time zone
|
||||
String? _selectedMEZ;
|
||||
|
||||
@override
|
||||
@@ -25,6 +37,7 @@ class _MEZState extends State<MEZ> {
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
children: [
|
||||
// Summer time (MESZ) radio button
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.sommerzeit),
|
||||
@@ -39,6 +52,7 @@ class _MEZState extends State<MEZ> {
|
||||
},
|
||||
),
|
||||
),
|
||||
// Winter time (MEZ) radio button
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.winterzeit),
|
||||
|
||||
Reference in New Issue
Block a user