Refactoring

This commit is contained in:
DahoudG
2025-09-17 17:54:06 +00:00
parent 12d514d866
commit 63fe107f98
165 changed files with 54220 additions and 276 deletions

View File

@@ -132,8 +132,15 @@ class _MembreEditPageState extends State<MembreEditPage>
Widget build(BuildContext context) {
return BlocProvider.value(
value: _membresBloc,
child: WillPopScope(
onWillPop: _onWillPop,
child: PopScope(
canPop: !_hasChanges,
onPopInvokedWithResult: (didPop, result) async {
if (didPop) return;
final shouldPop = await _onWillPop();
if (shouldPop && context.mounted) {
Navigator.of(context).pop();
}
},
child: Scaffold(
backgroundColor: AppTheme.backgroundLight,
appBar: _buildAppBar(),