The Gallery uses named routes, which [won't sync with the browser history correctly](https://docs.flutter.dev/development/ui/navigation#limitations). The Gallery should probably use the Router API via a package like go_router. This should be easier now that it supports [multiple navigation stacks](https://github.com/flutter/flutter/issues/99126) but right now each app-within-the-app uses it's own MaterialApp widget. This might be OK but isn't something the Router API is designed to handle.