This commit is contained in:
2026-06-03 13:20:22 +02:00
parent a7fd37a894
commit 99ab7abf6e
2 changed files with 4 additions and 2 deletions

View File

@@ -417,7 +417,7 @@ class _ProviderFormScreenState extends State<ProviderFormScreen> {
BlocBuilder<ProviderFormCubit, ProviderFormState>(
builder: (context, state) {
// Se non ha un colore, usiamo il BlueGrey di default
final currentColorHex = state.provider?.colorHex ?? '#607D8B';
final currentColorHex = state.provider.colorHex ?? '#607D8B';
return Wrap(
spacing: 12,

View File

@@ -280,7 +280,9 @@ class _RichOperationCard extends StatelessWidget {
),
Expanded(
child: Text(
operation.reference ?? 'Senza Riferimento',
operation.reference.isEmpty
? 'Nessuna Riferimento'
: operation.reference,
style: theme.textTheme.labelSmall?.copyWith(
color: Colors.grey[600],
),