Auto-detect the user's host machine to prevent extra clicks to install the SDK #11672
Labels
e2-days
Effort: < 5 days
infra.structure
Relates to the tools that create docs.flutter.dev
p2-medium
Necessary but not urgent concern. Resolve when possible.
Right now, when a user installs Flutter, they need to click through multiple steps before they can begin reading instructions:
Instead, we could reorganize the "Set up Flutter" page to immediately show content, but select the correct "tab" for the user's host machine, detected by the browser using the
user-agent
header. We could also store this value in localStorage so that whenever that developer returns to docs.flutter.dev, they get their previously selected host device (if they are reading the docs on a machine that isn't their host device, such as a mobile phone)This would also let us reorganize the TOC to be something like this:
In fact, we could even consider dropping the subsections from the TOC, since those will be accessible via the tabs.
Here's an example in the GCP docs where they select a tab based on the browser's user-agent: https://cloud.google.com/sdk/docs/install
The text was updated successfully, but these errors were encountered: