Refactor RemoteDeleteSpaceService to use a private HTTPService instance and update URL construction with ApiEndpoints for improved maintainability. Update DeleteSpaceDialog to reflect changes in service initialization.

This commit is contained in:
Faris Armoush
2025-07-15 11:09:04 +03:00
parent b223194950
commit acefe7b355
2 changed files with 10 additions and 7 deletions

View File

@ -27,7 +27,7 @@ class DeleteSpaceDialog extends StatelessWidget {
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => DeleteSpaceBloc(
RemoteDeleteSpaceService(httpService: HTTPService()),
RemoteDeleteSpaceService(HTTPService()),
),
child: Builder(
builder: (context) => Dialog(