@@ -10,6 +10,7 @@ class DetailsSection extends StatelessWidget {
|
||||
final OperationModel? currentOp;
|
||||
final String currentType;
|
||||
final TextEditingController freeTextSubtypeController;
|
||||
final TextEditingController freeTextDescriptionController;
|
||||
final Widget durationQuickPicks;
|
||||
|
||||
const DetailsSection({
|
||||
@@ -17,6 +18,7 @@ class DetailsSection extends StatelessWidget {
|
||||
required this.currentOp,
|
||||
required this.currentType,
|
||||
required this.freeTextSubtypeController,
|
||||
required this.freeTextDescriptionController,
|
||||
required this.durationQuickPicks,
|
||||
});
|
||||
|
||||
@@ -309,7 +311,6 @@ class DetailsSection extends StatelessWidget {
|
||||
items: [
|
||||
'Luce',
|
||||
'Gas',
|
||||
'Dual',
|
||||
].map((s) => DropdownMenuItem(value: s, child: Text(s))).toList(),
|
||||
onChanged: (val) {
|
||||
if (val != null) {
|
||||
@@ -320,6 +321,15 @@ class DetailsSection extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
TextFormField(
|
||||
controller: freeTextDescriptionController,
|
||||
decoration: InputDecoration(
|
||||
labelText: currentType == 'Energy'
|
||||
? 'Offerta scelta'
|
||||
: 'Nome del servizio/offerta',
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
],
|
||||
|
||||
// 2. SCENARIO FIN (Ricerca Modello/Prodotto)
|
||||
|
||||
Reference in New Issue
Block a user