c
Build and Release FLUX (Multi-Platform) / build-linux (push) Successful in 1m29s
Build and Release FLUX (Multi-Platform) / build-web (push) Successful in 1m49s
Build and Release FLUX (Multi-Platform) / build-windows (push) Canceled after 0s
Build and Release FLUX (Multi-Platform) / build-macos (push) Canceled after 2m23s
Build and Release FLUX (Multi-Platform) / build-linux (push) Successful in 1m29s
Build and Release FLUX (Multi-Platform) / build-web (push) Successful in 1m49s
Build and Release FLUX (Multi-Platform) / build-windows (push) Canceled after 0s
Build and Release FLUX (Multi-Platform) / build-macos (push) Canceled after 2m23s
This commit is contained in:
1 parent
771f1f921b
commit
bd496ad37f
4 files changed
+32
-29
No files matched your search
+2
-1
@@ -218,7 +218,8 @@ class DashboardDailyRicontattiCubit extends Cubit<DashboardDailyRicontattiState>
|
||||
errorMessage: null,
|
||||
),
|
||||
);
|
||||
} catch (e) {
|
||||
} catch (e, stack) {
|
||||
debugPrint('Errore in DashboardDailyRicontattiCubit: $e\n$stack');
|
||||
if (isClosed) return;
|
||||
emit(
|
||||
state.copyWith(
|
||||
|
||||
@@ -152,7 +152,20 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
},
|
||||
child: CustomScrollView(
|
||||
slivers: [
|
||||
// --- HERO TARGET DEL GIORNO (TUTTA LARGHEZZA IN CIMA) ---
|
||||
// --- 1. QUICK ACTIONS: AZIONI RAPIDE (IN CIMA) ---
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(24.0, 0, 24.0, 24.0),
|
||||
child: _buildQuickActions(context),
|
||||
),
|
||||
),
|
||||
|
||||
// --- 2. HERO FOCUS RICONTATTI DEL GIORNO (VISIBILE AI MANAGER) ---
|
||||
const SliverToBoxAdapter(
|
||||
child: DashboardDailyRicontattiCard(),
|
||||
),
|
||||
|
||||
// --- 3. HERO TARGET DEL GIORNO ---
|
||||
const SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.fromLTRB(24.0, 0, 24.0, 24.0),
|
||||
@@ -160,22 +173,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
),
|
||||
),
|
||||
|
||||
// --- HERO FOCUS RICONTATTI DEL GIORNO (SOLO MANAGER) ---
|
||||
const SliverToBoxAdapter(
|
||||
child: DashboardDailyRicontattiCard(),
|
||||
),
|
||||
const SliverToBoxAdapter(child: SizedBox(height: 8)),
|
||||
|
||||
// --- QUICK ACTIONS: AZIONI RAPIDE ---
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
||||
child: _buildQuickActions(context),
|
||||
),
|
||||
),
|
||||
|
||||
const SliverToBoxAdapter(child: SizedBox(height: 32)),
|
||||
|
||||
// --- I WIDGET DELLA DASHBOARD (Responsive Grid) ---
|
||||
// --- 4. I WIDGET DELLA DASHBOARD (Responsive Grid) ---
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
||||
sliver: SliverGrid(
|
||||
|
||||
@@ -24,21 +24,23 @@ class StaffRepository {
|
||||
${Tables.stores}(*)
|
||||
)
|
||||
''')
|
||||
.eq('company_id', companyId);
|
||||
.eq('company_id', companyId)
|
||||
.order('name', ascending: true);
|
||||
|
||||
if (storeId != null) {
|
||||
filterBuilder = filterBuilder.or(
|
||||
'store_id.eq.$storeId,store_id.is.null',
|
||||
);
|
||||
}
|
||||
final response = await filterBuilder;
|
||||
|
||||
var transformBuilder = filterBuilder.order('name', ascending: true);
|
||||
|
||||
final response = await transformBuilder;
|
||||
|
||||
return (response as List)
|
||||
final list = (response as List)
|
||||
.map((s) => StaffMemberModel.fromMap(s))
|
||||
.toList();
|
||||
|
||||
if (storeId != null) {
|
||||
return list
|
||||
.where((s) =>
|
||||
s.assignedStoreIds.isEmpty || s.assignedStoreIds.contains(storeId))
|
||||
.toList();
|
||||
}
|
||||
|
||||
return list;
|
||||
} on Exception catch (e) {
|
||||
debugPrint('Errore nel recupero della lista di staff: $e');
|
||||
throw Exception('Errore nel recupero della lista di staff: $e');
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
name: flux
|
||||
description: "Gestione attività negozio di telefonia"
|
||||
publish_to: 'none'
|
||||
version: 2.0.17+73
|
||||
version: 2.1.1+75
|
||||
|
||||
environment:
|
||||
sdk: ^3.11.3
|
||||
|
||||
Reference in new issue
Block a user