let AI comment everything because well... yeah...
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user