buono buono buono, staff funziona

This commit is contained in:
2026-04-14 11:38:22 +02:00
parent 541000390e
commit 7f8c0d642a
2 changed files with 5 additions and 4 deletions

View File

@@ -29,8 +29,9 @@ class _StoresScreenState extends State<StoresScreen> {
appBar: AppBar(title: const Text("I Tuoi Negozi")), appBar: AppBar(title: const Text("I Tuoi Negozi")),
body: BlocBuilder<StoreBloc, StoreState>( body: BlocBuilder<StoreBloc, StoreState>(
builder: (context, state) { builder: (context, state) {
if (state.status == StoreStatus.loading) if (state.status == StoreStatus.loading) {
return const Center(child: CircularProgressIndicator()); return const Center(child: CircularProgressIndicator());
}
return ListView.builder( return ListView.builder(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),

View File

@@ -63,7 +63,7 @@ class _StoresScreenState extends State<StoresScreen> {
side: BorderSide( side: BorderSide(
color: store.isActive color: store.isActive
? Colors.transparent ? Colors.transparent
: Colors.red.withOpacity(0.3), : Colors.red.withValues(alpha: 0.3),
), ),
), ),
child: Column( child: Column(
@@ -174,7 +174,7 @@ class _StoresScreenState extends State<StoresScreen> {
label: "CAP", label: "CAP",
icon: Icons.local_post_office_outlined, icon: Icons.local_post_office_outlined,
keyboardType: TextInputType.number, keyboardType: TextInputType.number,
maxLenght: 5, maxLength: 5,
), ),
), ),
const SizedBox(width: 8), const SizedBox(width: 8),
@@ -195,7 +195,7 @@ class _StoresScreenState extends State<StoresScreen> {
label: "Prov", label: "Prov",
icon: Icons.explore_outlined, icon: Icons.explore_outlined,
keyboardType: TextInputType.text, keyboardType: TextInputType.text,
maxLenght: 2, maxLength: 2,
onChanged: (val) => provinciaController.text = val onChanged: (val) => provinciaController.text = val
.toUpperCase(), // Rimpiazzo automatico in maiuscolo .toUpperCase(), // Rimpiazzo automatico in maiuscolo
// Qui potresti aggiungere un rimpiazzo automatico in maiuscolo // Qui potresti aggiungere un rimpiazzo automatico in maiuscolo