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: const EdgeInsets.all(16),
      children: [
        const Text(
          'Paramètres',
          style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
        ),
        const SizedBox(height: 20),

        // Section Profil intégrée
        const ProfileContent(),

        const SizedBox(height: 20),

        // Autres paramètres
        Text(
          'Préférences',
          style: TextStyle(
            fontSize: 18,
            fontWeight: FontWeight.bold,
            color: Colors.grey[600],
          ),
        ),
        const SizedBox(height: 8),

        ListTile(
          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) => const SettingsThemeContent()),
            );
          },
        ),

        ListTile(
          leading: const Icon(Icons.notifications),
          title: const Text('Notifications'),
          trailing: const Icon(Icons.arrow_forward_ios),
          onTap: () {},
        ),

        ListTile(
          leading: const Icon(Icons.language),
          title: const Text('Langue'),
          trailing: const Icon(Icons.arrow_forward_ios),
          onTap: () {},
        ),

        ListTile(
          leading: const Icon(Icons.privacy_tip),
          title: const Text('Confidentialité'),
          trailing: const Icon(Icons.arrow_forward_ios),
          onTap: () {},
        ),
      ],
    );
  }
}
