let AI comment everything because well... yeah...
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
// * Widget for selecting camera trap media type
|
||||
// * Provides radio button selection between:
|
||||
// * - Photo mode
|
||||
// * - Film/Video mode
|
||||
// * Includes localization support
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fforte/l10n/app_localizations.dart';
|
||||
|
||||
/// Widget for selecting between photo and film/video mode
|
||||
/// Uses radio buttons for selection with localized labels
|
||||
class FotoFilm extends StatefulWidget {
|
||||
/// Callback function when media type selection changes
|
||||
final Function(String) onFotoFilmChanged;
|
||||
/// Initial media type selection ('foto' by default)
|
||||
final String initialFotoFilm;
|
||||
|
||||
const FotoFilm(
|
||||
@@ -14,7 +24,9 @@ class FotoFilm extends StatefulWidget {
|
||||
State<FotoFilm> createState() => _FotoFilmState();
|
||||
}
|
||||
|
||||
/// State class for the photo/film selection widget
|
||||
class _FotoFilmState extends State<FotoFilm> {
|
||||
/// Currently selected media type
|
||||
String? _selectedFotoFilm;
|
||||
|
||||
@override
|
||||
@@ -27,6 +39,7 @@ class _FotoFilmState extends State<FotoFilm> {
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
children: [
|
||||
// Photo mode radio button
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.foto),
|
||||
@@ -41,6 +54,7 @@ class _FotoFilmState extends State<FotoFilm> {
|
||||
},
|
||||
),
|
||||
),
|
||||
// Film/Video mode radio button
|
||||
ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -4),
|
||||
title: Text(AppLocalizations.of(context)!.film),
|
||||
|
||||
Reference in New Issue
Block a user