buono
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user