Skip to content

fix pagenav header for tutorial#13311

Merged
parlough merged 3 commits intomainfrom
fix-pagenav-header-for-tutorial
Apr 27, 2026
Merged

fix pagenav header for tutorial#13311
parlough merged 3 commits intomainfrom
fix-pagenav-header-for-tutorial

Conversation

@schultek
Copy link
Copy Markdown
Contributor

@schultek schultek commented Apr 27, 2026

Fixes #13188

Special handling for steppers that always shows the title of the currently open step, independent of scrolling - only when scrolling up the page title is shown instead.

@schultek schultek requested review from a team and sfshaza2 as code owners April 27, 2026 11:29
@schultek schultek requested a review from parlough April 27, 2026 11:29
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the Table of Contents (ToC) and page navigation by integrating stepper titles into the active observer and introducing a showPageTitle notifier to manage visibility. Feedback includes simplifying a boolean assignment for better readability, correcting a logic error where the page heading was set to the current step instead of the next step during stepper transitions, and resolving variable shadowing in the ValueListenableBuilder for improved code clarity.

Comment thread site/lib/src/client/global_scripts.dart Outdated
Comment thread site/lib/src/client/global_scripts.dart Outdated
Comment thread site/lib/src/components/layout/client/pagenav.dart Outdated
@flutter-website-bot
Copy link
Copy Markdown
Collaborator

flutter-website-bot commented Apr 27, 2026

Visit the preview URL for this PR (updated for commit 9954c79):

https://flutter-docs-prod--pr13311-fix-pagenav-header-for-tuto-8ckgj3kh.web.app

Copy link
Copy Markdown
Member

@parlough parlough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I applied the Gemini review suggestions and some other clean up, but otherwise looks good to me. Thanks for tackling this @schultek!

@parlough parlough merged commit 5249f4c into main Apr 27, 2026
11 checks passed
@parlough parlough deleted the fix-pagenav-header-for-tutorial branch April 27, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TOC current header doesn't update when changing tutorial steps

3 participants