Merge commit '19b1d1326afb7902a5546bc47696547534c67de8' into pipelines/run-20261112-1907-phone-content-ends-above-the-bottom-tab-d4e2

This commit is contained in:
2026-11-12 19:25:48 +00:00
4 changed files with 100 additions and 3 deletions
+15
View File
@@ -68,6 +68,21 @@ class DetailPageHost {
}
}
/// Closes the open page as its Back would: the page's own route is popped
/// explicitly, never whichever route happens to be nearest a button, and
/// its completion then clears the owner's selection.
void close() {
final route = _route;
if (route == null || !route.isActive) return;
final navigator = route.navigator;
if (navigator == null) return;
if (route.isCurrent) {
navigator.pop();
} else {
navigator.removeRoute(route);
}
}
/// Removes the page with its owner.
void dispose() {
// The notifier is left to the page: a page still animating out keeps