feat(mobile): T027 - intégrer KycStatusWidget dans ProfilePage

- Import KycStatusWidget dans ProfilePage
- Ajout BlocBuilder dans _buildSecurityTab()
- Affichage KYC en premier dans onglet Sécurité
- Données depuis ProfileLoaded state (niveauVigilanceKyc, statutKyc, dateVerificationIdentite)

Spec 001-mutuelles-anti-blanchiment - Phase 4 Mobile
Task T027 complétée : Widget KYC intégré dans UI profil

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dahoud
2026-03-17 11:02:20 +00:00
parent b63fc46182
commit 33134f834e

View File

@@ -12,6 +12,7 @@ import '../../../authentication/presentation/bloc/auth_bloc.dart';
import '../../../settings/presentation/pages/language_settings_page.dart';
import '../../../settings/presentation/pages/privacy_settings_page.dart';
import '../../../settings/presentation/pages/feedback_page.dart';
import '../widgets/kyc_status_widget.dart';
import '../bloc/profile_bloc.dart';
/// Page Mon Profil - UnionFlow Mobile
@@ -657,14 +658,26 @@ class _ProfilePageState extends State<ProfilePage>
/// Onglet sécurité
Widget _buildSecurityTab() {
return SingleChildScrollView(
padding: const EdgeInsets.all(12),
child: Column(
children: [
const SizedBox(height: 16),
return BlocBuilder<ProfileBloc, ProfileState>(
builder: (context, state) {
return SingleChildScrollView(
padding: const EdgeInsets.all(12),
child: Column(
children: [
const SizedBox(height: 16),
// Authentification
_buildSecuritySection(
// KYC/LCB-FT Status (si membre chargé)
if (state is ProfileLoaded) ...[
KycStatusWidget(
niveauVigilance: state.membre.niveauVigilanceKyc,
statutKyc: state.membre.statutKyc,
dateVerification: state.membre.dateVerificationIdentite,
),
const SizedBox(height: 16),
],
// Authentification
_buildSecuritySection(
'Authentification',
'Sécuriser votre compte',
Icons.security,
@@ -753,11 +766,13 @@ class _ProfilePageState extends State<ProfilePage>
() => _showDeleteAccountDialog(),
),
],
),
),
const SizedBox(height: 80),
],
),
const SizedBox(height: 80),
],
),
);
},
);
}