Enhance EditCommunityDialog: Refactor to accept parent context and streamline community update handling. Introduced a new method _onUpdateCommunitySuccess for improved readability and maintainability. Updated SpaceManagementCommunityDialogHelper to pass the parent context for better state management in the community update flow.

This commit is contained in:
Faris Armoush
2025-07-06 12:52:35 +03:00
parent 826dea8054
commit 73de1e6ff9
3 changed files with 34 additions and 14 deletions
@@ -15,7 +15,10 @@ abstract final class SpaceManagementCommunityDialogHelper {
) {
showDialog<void>(
context: context,
builder: (_) => EditCommunityDialog(community: community),
builder: (_) => EditCommunityDialog(
community: community,
parentContext: context,
),
);
}