This commit is contained in:
2026-06-03 12:08:59 +02:00
parent 8ad2b7cf7e
commit a7fd37a894
9 changed files with 589 additions and 166 deletions

View File

@@ -164,8 +164,8 @@ class OperationDetailsSection extends StatelessWidget {
if (currentType == 'Energy') ...[
DropdownButtonFormField<String>(
initialValue:
(currentOp?.subtype != null && currentOp!.subtype!.isNotEmpty)
? currentOp!.subtype
(currentOp?.subType != null && currentOp!.subType!.isNotEmpty)
? currentOp!.subType
: null,
decoration: const InputDecoration(labelText: 'Dettaglio Fornitura'),
items: [
@@ -174,7 +174,7 @@ class OperationDetailsSection extends StatelessWidget {
].map((s) => DropdownMenuItem(value: s, child: Text(s))).toList(),
onChanged: (val) {
if (val != null) {
context.read<OperationFormCubit>().updateFields(subtype: val);
context.read<OperationFormCubit>().updateFields(subType: val);
}
},
),