ok
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user