diff --git a/lib/pages/spaces_management/all_spaces/widgets/loaded_space_widget.dart b/lib/pages/spaces_management/all_spaces/widgets/loaded_space_widget.dart index e9f24f0f..dccd7fd9 100644 --- a/lib/pages/spaces_management/all_spaces/widgets/loaded_space_widget.dart +++ b/lib/pages/spaces_management/all_spaces/widgets/loaded_space_widget.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:syncrow_web/pages/common/bloc/project_manager.dart'; +import 'package:syncrow_web/pages/space_tree/view/space_tree_view.dart'; import 'package:syncrow_web/pages/spaces_management/all_spaces/model/community_model.dart'; import 'package:syncrow_web/pages/spaces_management/all_spaces/model/product_model.dart'; import 'package:syncrow_web/pages/spaces_management/all_spaces/model/space_model.dart'; @@ -75,16 +75,11 @@ class _LoadedSpaceViewState extends State { return Stack( clipBehavior: Clip.none, children: [ - Row( - children: [ - SidebarWidget( - communities: widget.communities, - selectedSpaceUuid: widget.selectedSpace?.uuid ?? - widget.selectedCommunity?.uuid ?? - '', - ), - widget.shouldNavigateToSpaceModelPage - ? Expanded( + widget.shouldNavigateToSpaceModelPage + ? Row( + children: [ + SizedBox(width: 300, child: SpaceTreeView(onSelect: () {})), + Expanded( child: BlocProvider( create: (context) => SpaceModelBloc( api: SpaceModelManagementApi(), @@ -95,8 +90,17 @@ class _LoadedSpaceViewState extends State { onSpaceModelsUpdated: _onSpaceModelsUpdated, ), ), - ) - : CommunityStructureArea( + ), + ], + ) + : Row( + children: [ + SidebarWidget( + communities: widget.communities, + selectedSpaceUuid: + widget.selectedSpace?.uuid ?? widget.selectedCommunity?.uuid ?? '', + ), + CommunityStructureArea( selectedCommunity: widget.selectedCommunity, selectedSpace: widget.selectedSpace, spaces: widget.selectedCommunity?.spaces ?? [], @@ -104,8 +108,8 @@ class _LoadedSpaceViewState extends State { communities: widget.communities, spaceModels: _spaceModels, ), - ], - ), + ], + ), const GradientCanvasBorderWidget(), ], );