Add launch configuration, update API keys, and refactor UI components for better structure and performance
This commit is contained in:
@@ -8,18 +8,18 @@ class SettingsContent extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListView(
|
||||
padding: EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(16),
|
||||
children: [
|
||||
Text(
|
||||
const Text(
|
||||
'Paramètres',
|
||||
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// Section Profil intégrée
|
||||
ProfileContent(),
|
||||
const ProfileContent(),
|
||||
|
||||
SizedBox(height: 20),
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// Autres paramètres
|
||||
Text(
|
||||
@@ -30,39 +30,39 @@ class SettingsContent extends StatelessWidget {
|
||||
color: Colors.grey[600],
|
||||
),
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
const 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),
|
||||
leading: const Icon(Icons.palette),
|
||||
title: const Text('Thème'),
|
||||
subtitle: const Text('Clair, sombre ou système'),
|
||||
trailing: const Icon(Icons.arrow_forward_ios),
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => SettingsThemeContent()),
|
||||
MaterialPageRoute(builder: (context) => const SettingsThemeContent()),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
ListTile(
|
||||
leading: Icon(Icons.notifications),
|
||||
title: Text('Notifications'),
|
||||
trailing: Icon(Icons.arrow_forward_ios),
|
||||
leading: const Icon(Icons.notifications),
|
||||
title: const Text('Notifications'),
|
||||
trailing: const Icon(Icons.arrow_forward_ios),
|
||||
onTap: () {},
|
||||
),
|
||||
|
||||
ListTile(
|
||||
leading: Icon(Icons.language),
|
||||
title: Text('Langue'),
|
||||
trailing: Icon(Icons.arrow_forward_ios),
|
||||
leading: const Icon(Icons.language),
|
||||
title: const Text('Langue'),
|
||||
trailing: const Icon(Icons.arrow_forward_ios),
|
||||
onTap: () {},
|
||||
),
|
||||
|
||||
ListTile(
|
||||
leading: Icon(Icons.privacy_tip),
|
||||
title: Text('Confidentialité'),
|
||||
trailing: Icon(Icons.arrow_forward_ios),
|
||||
leading: const Icon(Icons.privacy_tip),
|
||||
title: const Text('Confidentialité'),
|
||||
trailing: const Icon(Icons.arrow_forward_ios),
|
||||
onTap: () {},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user