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