Merge commit '19b1d1326afb7902a5546bc47696547534c67de8' into pipelines/run-20261112-1907-phone-content-ends-above-the-bottom-tab-d4e2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user