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:
@@ -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,12 +658,24 @@ class _ProfilePageState extends State<ProfilePage>
|
||||
|
||||
/// Onglet sécurité
|
||||
Widget _buildSecurityTab() {
|
||||
return BlocBuilder<ProfileBloc, ProfileState>(
|
||||
builder: (context, state) {
|
||||
return SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 16),
|
||||
|
||||
// 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',
|
||||
@@ -759,6 +772,8 @@ class _ProfilePageState extends State<ProfilePage>
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// Onglet avancé
|
||||
|
||||
Reference in New Issue
Block a user