This commit is contained in:
2026-04-10 12:01:03 +02:00
parent 5920b4c14f
commit a485d79460
2 changed files with 15 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
class CustomerModel extends Equatable {
final BigInt? id; // Bigint in SQL
final int? id; // Bigint in SQL
final DateTime? createdAt;
final String nome;
final String telefono;
@@ -40,7 +40,7 @@ class CustomerModel extends Equatable {
];
CustomerModel copyWith({
BigInt? id,
int? id,
DateTime? createdAt,
String? nome,
String? telefono,

View File

@@ -35,11 +35,23 @@ class _HomeScreenState extends State<HomeScreen> {
setState(() => _selectedIndex = index),
extended: constraints.maxWidth > 1200,
backgroundColor: context.background,
selectedIconTheme: IconThemeData(color: context.accent),
// 1. Definiamo il colore dell'ellisse (l'indicatore)
indicatorColor: context.accent.withValues(alpha: 0.2),
selectedIconTheme: IconThemeData(
color: context
.accent, // O un colore che stacchi bene dall'ellisse
size: 28,
),
selectedLabelTextStyle: TextStyle(
color: context.accent,
fontWeight: FontWeight.bold,
),
// 3. Forza il colore delle ICONE quando NON selezionate
unselectedIconTheme: IconThemeData(
color: context.secondaryText,
size: 24,
),
unselectedLabelTextStyle: TextStyle(
color: context.secondaryText,
),