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

View File

@@ -35,11 +35,23 @@ class _HomeScreenState extends State<HomeScreen> {
setState(() => _selectedIndex = index), setState(() => _selectedIndex = index),
extended: constraints.maxWidth > 1200, extended: constraints.maxWidth > 1200,
backgroundColor: context.background, 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( selectedLabelTextStyle: TextStyle(
color: context.accent, color: context.accent,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
// 3. Forza il colore delle ICONE quando NON selezionate
unselectedIconTheme: IconThemeData(
color: context.secondaryText,
size: 24,
),
unselectedLabelTextStyle: TextStyle( unselectedLabelTextStyle: TextStyle(
color: context.secondaryText, color: context.secondaryText,
), ),