let AI comment everything because well... yeah...

This commit is contained in:
Nico
2025-06-06 21:00:32 +02:00
parent 9c84d0c375
commit cc110ac104
44 changed files with 1230 additions and 646 deletions

View File

@@ -1,8 +1,19 @@
// * Widget for selecting the sampling type for camera trap monitoring
// * Features:
// * - Two sampling modes: opportunistic and systematic
// * - Radio button selection interface
// * - State management for selection
// * - Callback for selection changes
import 'package:flutter/material.dart';
import 'package:fforte/l10n/app_localizations.dart';
/// Widget for managing sampling type selection
/// Provides choice between opportunistic and systematic sampling
class STTyp extends StatefulWidget {
/// Callback function when sampling type changes
final Function(String) onSTTypChanged;
/// Initial sampling type value
final String initialSTTyp;
const STTyp(
@@ -14,7 +25,9 @@ class STTyp extends StatefulWidget {
State<STTyp> createState() => _STTypState();
}
/// State class for the sampling type selection widget
class _STTypState extends State<STTyp> {
/// Currently selected sampling type
String? _selectedSTTyp;
@override
@@ -27,6 +40,7 @@ class _STTypState extends State<STTyp> {
Widget build(BuildContext context) {
return Column(
children: [
// Opportunistic sampling option
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.opportunistisch),
@@ -41,6 +55,7 @@ class _STTypState extends State<STTyp> {
},
),
),
// Systematic sampling option
ListTile(
visualDensity: const VisualDensity(vertical: -4),
title: Text(AppLocalizations.of(context)!.systematisch),