autosave
This commit is contained in:
44
lib/screens/Excursion/widgets/letzter_niederschlag.dart~
Normal file
44
lib/screens/Excursion/widgets/letzter_niederschlag.dart~
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
|
|
||||||
|
class LetzterNiederschlag extends StatefulWidget {
|
||||||
|
final TextEditingController controller;
|
||||||
|
|
||||||
|
const LetzterNiederschlag({super.key, required this.controller});
|
||||||
|
|
||||||
|
@override
|
||||||
|
LetzterNiederschlagState createState() => LetzterNiederschlagState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class LetzterNiederschlagState extends State<LetzterNiederschlag> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return DropdownMenu<String>(
|
||||||
|
controller: widget.controller,
|
||||||
|
label: Text(AppLocalizations.of(context)!.letzterNiederschlag),
|
||||||
|
dropdownMenuEntries: [
|
||||||
|
DropdownMenuEntry(
|
||||||
|
value: "aktuell",
|
||||||
|
label: AppLocalizations.of(context)!.aktuell),
|
||||||
|
DropdownMenuEntry(
|
||||||
|
value: "selberMorgen",
|
||||||
|
label: AppLocalizations.of(context)!.selberMorgen),
|
||||||
|
DropdownMenuEntry(
|
||||||
|
value: "nacht",
|
||||||
|
label: AppLocalizations.of(context)!.nacht),
|
||||||
|
DropdownMenuEntry(
|
||||||
|
value: "vortag",
|
||||||
|
label: AppLocalizations.of(context)!.vortag),
|
||||||
|
DropdownMenuEntry(
|
||||||
|
value: "vor23Tagen",
|
||||||
|
label: AppLocalizations.of(context)!.vor23Tagen),
|
||||||
|
DropdownMenuEntry(
|
||||||
|
value: "vor46Tagen",
|
||||||
|
label: AppLocalizations.of(context)!.vor46Tagen),
|
||||||
|
DropdownMenuEntry(
|
||||||
|
value: "vor1Woche",
|
||||||
|
label: AppLocalizations.of(context)!.vor1Woche)
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user