mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-17 02:25:31 +00:00
comment the tab of spaceModel to prevent routing there
This commit is contained in:
@ -14,11 +14,11 @@ class CenterBodyWidget extends StatelessWidget {
|
|||||||
if (state is InitialState) {
|
if (state is InitialState) {
|
||||||
context.read<CenterBodyBloc>().add(CommunityStructureSelectedEvent());
|
context.read<CenterBodyBloc>().add(CommunityStructureSelectedEvent());
|
||||||
}
|
}
|
||||||
if (state is CommunityStructureState) {
|
if (state is CommunityStructureState) {
|
||||||
context.read<SpaceManagementBloc>().add(BlankStateEvent(context));
|
context.read<SpaceManagementBloc>().add(BlankStateEvent(context));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state is SpaceModelState) {
|
if (state is SpaceModelState) {
|
||||||
context.read<SpaceManagementBloc>().add(SpaceModelLoadEvent(context));
|
context.read<SpaceManagementBloc>().add(SpaceModelLoadEvent(context));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,15 +31,19 @@ class CenterBodyWidget extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
context.read<CenterBodyBloc>().add(CommunityStructureSelectedEvent());
|
context
|
||||||
|
.read<CenterBodyBloc>()
|
||||||
|
.add(CommunityStructureSelectedEvent());
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'Community Structure',
|
'Community Structure',
|
||||||
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
|
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
|
||||||
fontWeight: state is CommunityStructureState || state is CommunitySelectedState
|
fontWeight: state is CommunityStructureState ||
|
||||||
|
state is CommunitySelectedState
|
||||||
? FontWeight.bold
|
? FontWeight.bold
|
||||||
: FontWeight.normal,
|
: 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.bodyLarge!.color
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
@ -50,26 +54,26 @@ class CenterBodyWidget extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 20),
|
const SizedBox(width: 20),
|
||||||
GestureDetector(
|
// GestureDetector(
|
||||||
onTap: () {
|
// onTap: () {
|
||||||
context.read<CenterBodyBloc>().add(SpaceModelSelectedEvent());
|
// context.read<CenterBodyBloc>().add(SpaceModelSelectedEvent());
|
||||||
},
|
// },
|
||||||
child: Text(
|
// child: Text(
|
||||||
'Space Model',
|
// 'Space Model',
|
||||||
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
|
// style: Theme.of(context).textTheme.bodyLarge!.copyWith(
|
||||||
fontWeight: state is SpaceModelState
|
// fontWeight: state is SpaceModelState
|
||||||
? FontWeight.bold
|
// ? FontWeight.bold
|
||||||
: FontWeight.normal,
|
// : FontWeight.normal,
|
||||||
color: state is SpaceModelState
|
// color: state is SpaceModelState
|
||||||
? Theme.of(context).textTheme.bodyLarge!.color
|
// ? Theme.of(context).textTheme.bodyLarge!.color
|
||||||
: Theme.of(context)
|
// : Theme.of(context)
|
||||||
.textTheme
|
// .textTheme
|
||||||
.bodyLarge!
|
// .bodyLarge!
|
||||||
.color!
|
// .color!
|
||||||
.withOpacity(0.5),
|
// .withOpacity(0.5),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user