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