refactoring
This commit is contained in:
@@ -59,7 +59,7 @@ class _AdvancedDashboardPageState extends State<AdvancedDashboardPage>
|
||||
return BlocProvider(
|
||||
create: (context) => _dashboardBloc,
|
||||
child: Scaffold(
|
||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
backgroundColor: AppColors.lightBackground,
|
||||
appBar: const UFAppBar(
|
||||
title: 'DASHBOARD AVANCÉ',
|
||||
),
|
||||
@@ -146,7 +146,7 @@ class _AdvancedDashboardPageState extends State<AdvancedDashboardPage>
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const SizedBox(height: 8),
|
||||
BlocBuilder<DashboardBloc, DashboardState>(
|
||||
builder: (context, state) {
|
||||
if (state is DashboardLoaded || state is DashboardRefreshing) {
|
||||
@@ -281,7 +281,7 @@ class _AdvancedDashboardPageState extends State<AdvancedDashboardPage>
|
||||
onRefresh: () async => _refreshDashboardData(),
|
||||
color: AppColors.primaryGreen,
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Column(
|
||||
children: [
|
||||
// Métriques temps réel
|
||||
@@ -289,15 +289,15 @@ class _AdvancedDashboardPageState extends State<AdvancedDashboardPage>
|
||||
organizationId: widget.organizationId,
|
||||
userId: widget.userId,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
// Grille de statistiques
|
||||
_buildStatsGrid(),
|
||||
const SizedBox(height: 16),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
// Notifications
|
||||
const DashboardNotificationsWidget(maxNotifications: 3),
|
||||
const SizedBox(height: 16),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
// Activités et événements
|
||||
const Row(
|
||||
@@ -360,7 +360,7 @@ class _AdvancedDashboardPageState extends State<AdvancedDashboardPage>
|
||||
|
||||
Widget _buildReportsTab() {
|
||||
return SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Column(
|
||||
children: [
|
||||
_buildReportCard(
|
||||
@@ -402,7 +402,7 @@ class _AdvancedDashboardPageState extends State<AdvancedDashboardPage>
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
crossAxisSpacing: 12,
|
||||
mainAxisSpacing: 12,
|
||||
childAspectRatio: 1.25,
|
||||
childAspectRatio: 2.0,
|
||||
children: [
|
||||
ConnectedStatsCard(
|
||||
title: 'Membres',
|
||||
|
||||
Reference in New Issue
Block a user