Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-04 12:50:00 +02:00
parent 212f33ff51
commit 68b075f0b1
15 changed files with 1345 additions and 15 deletions

View File

@@ -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)