diff --git a/lib/features/customers/models/customer_model.dart b/lib/features/customers/models/customer_model.dart index 2478d8c..2f14bdc 100644 --- a/lib/features/customers/models/customer_model.dart +++ b/lib/features/customers/models/customer_model.dart @@ -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, diff --git a/lib/features/home_and_dashboard/ui/home_screen.dart b/lib/features/home_and_dashboard/ui/home_screen.dart index d94217d..443c3b0 100644 --- a/lib/features/home_and_dashboard/ui/home_screen.dart +++ b/lib/features/home_and_dashboard/ui/home_screen.dart @@ -35,11 +35,23 @@ class _HomeScreenState extends State { 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, ),