removed logs

This commit is contained in:
hannathkadher
2025-02-04 11:38:11 +04:00
parent d1d570b40f
commit c5c5088724
3 changed files with 5 additions and 9 deletions

View File

@ -274,8 +274,6 @@ class SpaceManagementBloc
await _api.createCommunity(event.name, event.description); await _api.createCommunity(event.name, event.description);
var prevSpaceModels = await fetchSpaceModels(previousState); var prevSpaceModels = await fetchSpaceModels(previousState);
print("space models are ${prevSpaceModels}");
if (newCommunity != null) { if (newCommunity != null) {
if (previousState is SpaceManagementLoaded || if (previousState is SpaceManagementLoaded ||
previousState is BlankState) { previousState is BlankState) {

View File

@ -43,7 +43,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
rightBody: const NavigateHomeGridView(), rightBody: const NavigateHomeGridView(),
scaffoldBody: BlocBuilder<SpaceManagementBloc, SpaceManagementState>( scaffoldBody: BlocBuilder<SpaceManagementBloc, SpaceManagementState>(
builder: (context, state) { builder: (context, state) {
print("current state is ${state}");
if (state is SpaceManagementLoading) { if (state is SpaceManagementLoading) {
return const Center(child: CircularProgressIndicator()); return const Center(child: CircularProgressIndicator());
} else if (state is BlankState) { } else if (state is BlankState) {
@ -65,11 +64,11 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
); );
} else if (state is SpaceModelLoaded) { } else if (state is SpaceModelLoaded) {
return LoadedSpaceView( return LoadedSpaceView(
communities: state.communities, communities: state.communities,
products: state.products, products: state.products,
spaceModels: state.spaceModels, spaceModels: state.spaceModels,
shouldNavigateToSpaceModelPage: true, shouldNavigateToSpaceModelPage: true,
); );
} else if (state is SpaceManagementError) { } else if (state is SpaceManagementError) {
return Center(child: Text('Error: ${state.errorMessage}')); return Center(child: Text('Error: ${state.errorMessage}'));
} }

View File

@ -666,7 +666,6 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
void _showTagCreateDialog(BuildContext context, String name, bool isEdit, void _showTagCreateDialog(BuildContext context, String name, bool isEdit,
List<ProductModel>? products) { List<ProductModel>? products) {
print("ada ${widget.allTags}");
isEdit isEdit
? showDialog( ? showDialog(
context: context, context: context,