mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-26 03:57:56 +00:00
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:
+4
-1
@@ -15,7 +15,10 @@ abstract final class SpaceManagementCommunityDialogHelper {
|
||||
) {
|
||||
showDialog<void>(
|
||||
context: context,
|
||||
builder: (_) => EditCommunityDialog(community: community),
|
||||
builder: (_) => EditCommunityDialog(
|
||||
community: community,
|
||||
parentContext: context,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user