Disable task mutli-select on kanban

This commit is contained in:
Hillel Coren 2021-06-28 17:18:44 +03:00
parent 305e38a5c0
commit e0c78c3324
1 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,10 @@ class ListScaffold extends StatelessWidget {
Expanded(
child: IconButton(
icon: Icon(Icons.check_box),
onPressed: () => onCheckboxPressed(),
onPressed: state.prefState.showKanban &&
state.uiState.mainRoute == '${EntityType.task}'
? null
: () => onCheckboxPressed(),
)),
...appBarLeadingActions,
],