diff --git a/lib/features/master_data/store/ui/stores_screen.dart b/lib/features/master_data/store/ui/stores_screen.dart index 28447cc..3e38544 100644 --- a/lib/features/master_data/store/ui/stores_screen.dart +++ b/lib/features/master_data/store/ui/stores_screen.dart @@ -29,8 +29,9 @@ class _StoresScreenState extends State { appBar: AppBar(title: const Text("I Tuoi Negozi")), body: BlocBuilder( builder: (context, state) { - if (state.status == StoreStatus.loading) + if (state.status == StoreStatus.loading) { return const Center(child: CircularProgressIndicator()); + } return ListView.builder( padding: const EdgeInsets.all(16), diff --git a/lib/features/store/ui/stores_screen.dart b/lib/features/store/ui/stores_screen.dart index fd522f5..2926314 100644 --- a/lib/features/store/ui/stores_screen.dart +++ b/lib/features/store/ui/stores_screen.dart @@ -63,7 +63,7 @@ class _StoresScreenState extends State { side: BorderSide( color: store.isActive ? Colors.transparent - : Colors.red.withOpacity(0.3), + : Colors.red.withValues(alpha: 0.3), ), ), child: Column( @@ -174,7 +174,7 @@ class _StoresScreenState extends State { label: "CAP", icon: Icons.local_post_office_outlined, keyboardType: TextInputType.number, - maxLenght: 5, + maxLength: 5, ), ), const SizedBox(width: 8), @@ -195,7 +195,7 @@ class _StoresScreenState extends State { label: "Prov", icon: Icons.explore_outlined, keyboardType: TextInputType.text, - maxLenght: 2, + maxLength: 2, onChanged: (val) => provinciaController.text = val .toUpperCase(), // Rimpiazzo automatico in maiuscolo // Qui potresti aggiungere un rimpiazzo automatico in maiuscolo