Fix for back button
This commit is contained in:
parent
f3dbf0be58
commit
a31f1e3986
|
|
@ -319,7 +319,11 @@ class EntityTopFilterHeader extends StatelessWidget {
|
||||||
final entityType = uiState.filterEntityType;
|
final entityType = uiState.filterEntityType;
|
||||||
if (entityType.hasFullWidthViewer &&
|
if (entityType.hasFullWidthViewer &&
|
||||||
state.prefState.isViewerFullScreen(entityType)) {
|
state.prefState.isViewerFullScreen(entityType)) {
|
||||||
viewEntitiesByType(entityType: entityType);
|
viewEntitiesByType(
|
||||||
|
entityType: entityType,
|
||||||
|
page: state.historyList.length >= 2
|
||||||
|
? state.historyList[1].page
|
||||||
|
: 0);
|
||||||
} else {
|
} else {
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
FilterByEntity(entity: uiState.filterEntity),
|
FilterByEntity(entity: uiState.filterEntity),
|
||||||
|
|
|
||||||
|
|
@ -135,10 +135,6 @@ class _HistoryListTileState extends State<HistoryListTile> {
|
||||||
}
|
}
|
||||||
} else if (history.id == null) {
|
} else if (history.id == null) {
|
||||||
title = Text(localization.lookup(history.entityType.plural));
|
title = Text(localization.lookup(history.entityType.plural));
|
||||||
|
|
||||||
if (!kReleaseMode) {
|
|
||||||
subtitle = Text('Page: ${history.page}');
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
entity = state.getEntityMap(history.entityType)[history.id] as BaseEntity;
|
entity = state.getEntityMap(history.entityType)[history.id] as BaseEntity;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,6 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if ((history.id ?? '').isEmpty) {
|
if ((history.id ?? '').isEmpty) {
|
||||||
print('## PAGE: ${history.page}');
|
|
||||||
viewEntitiesByType(
|
viewEntitiesByType(
|
||||||
entityType: history.entityType,
|
entityType: history.entityType,
|
||||||
page: history.page);
|
page: history.page);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue