Navigation refactor
This commit is contained in:
parent
007b8ef632
commit
624e9c113d
|
|
@ -195,7 +195,6 @@ class _HistoryListTileState extends State<HistoryListTile> {
|
|||
|
||||
*/
|
||||
onTap: () {
|
||||
store.dispatch(ClearEntityFilter());
|
||||
if (state.prefState.isHistoryFloated) {
|
||||
Navigator.pop(context);
|
||||
}
|
||||
|
|
@ -212,9 +211,11 @@ class _HistoryListTileState extends State<HistoryListTile> {
|
|||
break;
|
||||
default:
|
||||
viewEntityById(
|
||||
context: context,
|
||||
entityId: history.id,
|
||||
entityType: history.entityType);
|
||||
context: context,
|
||||
entityId: history.id,
|
||||
entityType: history.entityType,
|
||||
ensureVisible: true,
|
||||
);
|
||||
}
|
||||
},
|
||||
onLongPress: entity == null
|
||||
|
|
|
|||
|
|
@ -723,7 +723,10 @@ class _EntityFilter extends StatelessWidget {
|
|||
SizedBox(width: 4),
|
||||
IconButton(
|
||||
icon: Icon(Icons.clear),
|
||||
onPressed: () => store.dispatch(ClearEntityFilter()),
|
||||
onPressed: () => store.dispatch(FilterByEntity(
|
||||
entityId: uiState.filterEntityId,
|
||||
entityType: uiState.filterEntityType,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue