diff --git a/lib/pages/spaces_management/structure_selector/view/center_body_widget.dart b/lib/pages/spaces_management/structure_selector/view/center_body_widget.dart index 0f40ddbb..0f63ebb1 100644 --- a/lib/pages/spaces_management/structure_selector/view/center_body_widget.dart +++ b/lib/pages/spaces_management/structure_selector/view/center_body_widget.dart @@ -14,11 +14,11 @@ class CenterBodyWidget extends StatelessWidget { if (state is InitialState) { context.read().add(CommunityStructureSelectedEvent()); } - if (state is CommunityStructureState) { + if (state is CommunityStructureState) { context.read().add(BlankStateEvent(context)); } - if (state is SpaceModelState) { + if (state is SpaceModelState) { context.read().add(SpaceModelLoadEvent(context)); } @@ -31,15 +31,19 @@ class CenterBodyWidget extends StatelessWidget { children: [ GestureDetector( onTap: () { - context.read().add(CommunityStructureSelectedEvent()); + context + .read() + .add(CommunityStructureSelectedEvent()); }, child: Text( 'Community Structure', style: Theme.of(context).textTheme.bodyLarge!.copyWith( - fontWeight: state is CommunityStructureState || state is CommunitySelectedState + fontWeight: state is CommunityStructureState || + state is CommunitySelectedState ? FontWeight.bold : FontWeight.normal, - color: state is CommunityStructureState || state is CommunitySelectedState + color: state is CommunityStructureState || + state is CommunitySelectedState ? Theme.of(context).textTheme.bodyLarge!.color : Theme.of(context) .textTheme @@ -50,26 +54,26 @@ class CenterBodyWidget extends StatelessWidget { ), ), const SizedBox(width: 20), - GestureDetector( - onTap: () { - context.read().add(SpaceModelSelectedEvent()); - }, - child: Text( - 'Space Model', - style: Theme.of(context).textTheme.bodyLarge!.copyWith( - fontWeight: state is SpaceModelState - ? FontWeight.bold - : FontWeight.normal, - color: state is SpaceModelState - ? Theme.of(context).textTheme.bodyLarge!.color - : Theme.of(context) - .textTheme - .bodyLarge! - .color! - .withOpacity(0.5), - ), - ), - ), + // GestureDetector( + // onTap: () { + // context.read().add(SpaceModelSelectedEvent()); + // }, + // child: Text( + // 'Space Model', + // style: Theme.of(context).textTheme.bodyLarge!.copyWith( + // fontWeight: state is SpaceModelState + // ? FontWeight.bold + // : FontWeight.normal, + // color: state is SpaceModelState + // ? Theme.of(context).textTheme.bodyLarge!.color + // : Theme.of(context) + // .textTheme + // .bodyLarge! + // .color! + // .withOpacity(0.5), + // ), + // ), + // ), ], ), ],