Files
TravelMate/lib/components/settings/settings_content.dart
2025-10-01 12:21:00 +02:00

72 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
import 'settings_theme_content.dart';
import '../profile/profile_content.dart';
class SettingsContent extends StatelessWidget {
const SettingsContent({super.key});
@override
Widget build(BuildContext context) {
return ListView(
padding: EdgeInsets.all(16),
children: [
Text(
'Paramètres',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
),
SizedBox(height: 20),
// Section Profil intégrée
ProfileContent(),
SizedBox(height: 20),
// Autres paramètres
Text(
'Préférences',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
color: Colors.grey[600],
),
),
SizedBox(height: 8),
ListTile(
leading: Icon(Icons.palette),
title: Text('Thème'),
subtitle: Text('Clair, sombre ou système'),
trailing: Icon(Icons.arrow_forward_ios),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => SettingsThemeContent()),
);
},
),
ListTile(
leading: Icon(Icons.notifications),
title: Text('Notifications'),
trailing: Icon(Icons.arrow_forward_ios),
onTap: () {},
),
ListTile(
leading: Icon(Icons.language),
title: Text('Langue'),
trailing: Icon(Icons.arrow_forward_ios),
onTap: () {},
),
ListTile(
leading: Icon(Icons.privacy_tip),
title: Text('Confidentialité'),
trailing: Icon(Icons.arrow_forward_ios),
onTap: () {},
),
],
);
}
}