refactoring

This commit is contained in:
dahoud
2026-03-31 09:14:47 +00:00
parent 9bfffeeebe
commit 5383df6dcb
200 changed files with 11192 additions and 7063 deletions

View File

@@ -77,7 +77,7 @@ class _NotificationsPageState extends State<NotificationsPage>
},
builder: (context, state) {
return Scaffold(
backgroundColor: const Color(0xFFF8F9FA),
backgroundColor: AppColors.lightBackground,
body: Column(
children: [
_buildHeader(),
@@ -101,8 +101,8 @@ class _NotificationsPageState extends State<NotificationsPage>
/// Header harmonisé avec le design system
Widget _buildHeader() {
return Container(
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
padding: const EdgeInsets.all(16),
margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [AppColors.brandGreen, AppColors.primaryGreen],
@@ -169,7 +169,7 @@ class _NotificationsPageState extends State<NotificationsPage>
/// Barre d'onglets
Widget _buildTabBar() {
return Container(
margin: const EdgeInsets.symmetric(horizontal: 16),
margin: const EdgeInsets.symmetric(horizontal: 12),
decoration: BoxDecoration(
color: AppColors.lightSurface,
borderRadius: BorderRadius.circular(8),
@@ -196,8 +196,8 @@ class _NotificationsPageState extends State<NotificationsPage>
Widget _buildNotificationsTab() {
return Column(
children: [
const SizedBox(height: 16),
const SizedBox(height: 8),
// Filtres et options
_buildFiltersSection(),
@@ -212,7 +212,7 @@ class _NotificationsPageState extends State<NotificationsPage>
/// Section filtres
Widget _buildFiltersSection() {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
padding: const EdgeInsets.symmetric(horizontal: 12),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -436,7 +436,7 @@ class _NotificationsPageState extends State<NotificationsPage>
padding: const EdgeInsets.all(12),
child: Column(
children: [
const SizedBox(height: 16),
const SizedBox(height: 8),
// Notifications push
_buildPreferenceSection(
@@ -661,7 +661,7 @@ class _NotificationsPageState extends State<NotificationsPage>
case 'Membres':
return AppColors.primaryGreen;
case 'Événements':
return const Color(0xFF00B894);
return AppColors.success;
case 'Organisations':
return AppColors.primaryGreen;
case 'Système':
@@ -797,7 +797,7 @@ class _NotificationsPageState extends State<NotificationsPage>
_tabController.animateTo(1); // Aller à l'onglet Préférences
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF6C5CE7),
backgroundColor: AppColors.primaryGreen,
foregroundColor: Colors.white,
),
child: const Text('Voir les préférences'),
@@ -858,13 +858,13 @@ class _NotificationsPageState extends State<NotificationsPage>
width: double.infinity,
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: const Color(0xFFE17055).withOpacity(0.1),
color: AppColors.warning.withOpacity(0.1),
borderRadius: BorderRadius.circular(8),
),
child: Text(
'Action disponible : ${notification['actionText']}',
style: const TextStyle(
color: Color(0xFFE17055),
color: AppColors.warning,
fontWeight: FontWeight.w600,
),
),
@@ -883,7 +883,7 @@ class _NotificationsPageState extends State<NotificationsPage>
_showSuccessSnackBar('Action "${notification['actionText']}" exécutée');
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFFE17055),
backgroundColor: AppColors.warning,
foregroundColor: Colors.white,
),
child: Text(notification['actionText']),
@@ -908,7 +908,7 @@ class _NotificationsPageState extends State<NotificationsPage>
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message),
backgroundColor: const Color(0xFF00B894),
backgroundColor: AppColors.success,
behavior: SnackBarBehavior.floating,
),
);
@@ -919,7 +919,7 @@ class _NotificationsPageState extends State<NotificationsPage>
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message),
backgroundColor: const Color(0xFFE74C3C),
backgroundColor: AppColors.error,
behavior: SnackBarBehavior.floating,
),
);