sheetNavigatorOf function
A sheet opened from inside another sheet goes over it, sized by the space that sheet is shown in rather than squeezed among its pages.
Implementation
NavigatorState sheetNavigatorOf(BuildContext context) {
var navigator = Navigator.of(context);
while (navigator.widget is SheetPagesNavigator) {
navigator = navigator.context.findAncestorStateOfType<NavigatorState>()!;
}
return navigator;
}