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,7 +30,10 @@ class CenterBodyWidget extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
onTap: state is CommunityStructureState ||
|
||||
state is CommunitySelectedState
|
||||
? null
|
||||
: () {
|
||||
context
|
||||
.read<CenterBodyBloc>()
|
||||
.add(CommunityStructureSelectedEvent());
|
||||
|
Reference in New Issue
Block a user