finishCommit

This commit is contained in:
atseirjo
2026-07-23 09:17:56 +02:00
parent 9f7ee3f356
commit c8a3cc9812
12 changed files with 822 additions and 175 deletions
+38
View File
@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class StaticLocationDropdown extends StatelessWidget {
const StaticLocationDropdown({super.key, required this.selectedValue});
final RxnString selectedValue;
static const List<String> _locations = [
'TraunPV',
'TraunImport',
'SarleinsbachPV',
'SarleinsbachImport',
'LannachPV',
'LannachImport',
];
@override
Widget build(BuildContext context) {
return Obx(() => DropdownButtonFormField<String>(
initialValue: selectedValue.value ?? _locations.first,
decoration: const InputDecoration(
labelText: 'Select Location / Data Source',
border: OutlineInputBorder(),
contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 15),
),
items: _locations.map((String location) {
return DropdownMenuItem<String>(
value: location,
child: Text(location),
);
}).toList(),
onChanged: (String? newValue) {
selectedValue.value = newValue;
},
));
}
}