Auth: - profile_repository.dart: /api/auth/change-password → /api/membres/auth/change-password Multi-org (Phase 3): - OrgSelectorPage, OrgSwitcherBloc, OrgSwitcherEntry - org_context_service.dart: headers X-Active-Organisation-Id + X-Active-Role Navigation: - MorePage: navigation conditionnelle par typeOrganisation - Suppression adaptive_navigation (remplacé par main_navigation_layout) Auth AppAuth: - keycloak_webview_auth_service: fixes AppAuth Android - AuthBloc: gestion REAUTH_REQUIS + premierLoginComplet Onboarding: - Nouveaux états: payment_method_page, onboarding_shared_widgets - SouscriptionStatusModel mis à jour StatutValidationSouscription Android: - build.gradle: ProGuard/R8, network_security_config - Gradle wrapper mis à jour
30 lines
867 B
Dart
30 lines
867 B
Dart
library profile_page_wrapper;
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import '../../../../core/di/injection_container.dart';
|
|
import '../../../organizations/bloc/org_switcher_bloc.dart';
|
|
import '../bloc/profile_bloc.dart';
|
|
import 'profile_page.dart';
|
|
|
|
/// Wrapper qui fournit le ProfileBloc et OrgSwitcherBloc à la ProfilePage.
|
|
class ProfilePageWrapper extends StatelessWidget {
|
|
const ProfilePageWrapper({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MultiBlocProvider(
|
|
providers: [
|
|
BlocProvider<ProfileBloc>(
|
|
create: (_) => sl<ProfileBloc>(),
|
|
),
|
|
BlocProvider<OrgSwitcherBloc>(
|
|
create: (_) => sl<OrgSwitcherBloc>()
|
|
..add(const OrgSwitcherLoadRequested()),
|
|
),
|
|
],
|
|
child: const ProfilePage(),
|
|
);
|
|
}
|
|
}
|