fix(mobile): URL changement mdp corrigée + v3.0 — multi-org, AppAuth, sécurité prod
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
This commit is contained in:
@@ -3,17 +3,26 @@ 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 à la ProfilePage
|
||||
/// Wrapper qui fournit le ProfileBloc et OrgSwitcherBloc à la ProfilePage.
|
||||
class ProfilePageWrapper extends StatelessWidget {
|
||||
const ProfilePageWrapper({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocProvider<ProfileBloc>(
|
||||
create: (_) => sl<ProfileBloc>(),
|
||||
return MultiBlocProvider(
|
||||
providers: [
|
||||
BlocProvider<ProfileBloc>(
|
||||
create: (_) => sl<ProfileBloc>(),
|
||||
),
|
||||
BlocProvider<OrgSwitcherBloc>(
|
||||
create: (_) => sl<OrgSwitcherBloc>()
|
||||
..add(const OrgSwitcherLoadRequested()),
|
||||
),
|
||||
],
|
||||
child: const ProfilePage(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user