f
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
// Importa il tuo TicketModel, Cubit, ecc.
|
||||
import 'package:flux/features/tickets/models/ticket_model.dart';
|
||||
|
||||
class TicketWorkspaceScreen extends StatelessWidget {
|
||||
// Passiamo il ticket attuale per avere i dati (o il Cubit se preferisci)
|
||||
final dynamic ticket; // Sostituisci con TicketModel
|
||||
final TicketModel ticket; // Sostituisci con TicketModel
|
||||
|
||||
const TicketWorkspaceScreen({super.key, required this.ticket});
|
||||
|
||||
@@ -67,7 +65,7 @@ class TicketWorkspaceScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
ticket.deviceModel ??
|
||||
ticket.targetModelName ??
|
||||
'Modello Sconosciuto', // Es: "iPhone 13 Pro"
|
||||
style: const TextStyle(
|
||||
fontSize: 24,
|
||||
@@ -88,14 +86,25 @@ class TicketWorkspaceScreen extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
const Text(
|
||||
'PIN / SBLOCCO',
|
||||
'PIN / SBLOCCO Target device',
|
||||
style: TextStyle(fontSize: 10, color: Colors.grey),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
ticket.unlockPassword?.isNotEmpty == true
|
||||
? ticket.unlockPassword!
|
||||
: 'Nessuno',
|
||||
ticket.targetPassword ?? '',
|
||||
style: const TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
letterSpacing: 2,
|
||||
),
|
||||
),
|
||||
const Text(
|
||||
'PIN / SBLOCCO Source device',
|
||||
style: TextStyle(fontSize: 10, color: Colors.grey),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
ticket.sourcePassword ?? '',
|
||||
style: const TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -138,7 +147,7 @@ class TicketWorkspaceScreen extends StatelessWidget {
|
||||
border: Border.all(color: theme.dividerColor),
|
||||
),
|
||||
child: Text(
|
||||
ticket.defectDescription ?? 'Nessuna descrizione inserita.',
|
||||
ticket.request,
|
||||
style: const TextStyle(fontSize: 16, height: 1.5),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user