mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Disable tap action on Community Structure when in specific states
This commit is contained in:
@ -30,11 +30,14 @@ class CenterBodyWidget extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: state is CommunityStructureState ||
|
||||||
context
|
state is CommunitySelectedState
|
||||||
.read<CenterBodyBloc>()
|
? null
|
||||||
.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(
|
||||||
|
Reference in New Issue
Block a user