From ee11d0af700c91444b09d56f965d957a719efefd Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Tue, 17 Feb 2026 23:20:36 +0800 Subject: [PATCH] Include site sections on mobile sidenav --- site/lib/src/components/layout/header.dart | 2 +- site/lib/src/components/layout/sidenav.dart | 42 ++++++++++----------- site/lib/src/style_hash.dart | 2 +- src/content/release/whats-new.md | 2 +- 4 files changed, 23 insertions(+), 25 deletions(-) diff --git a/site/lib/src/components/layout/header.dart b/site/lib/src/components/layout/header.dart index b45eef3403a..e6f49f1ee29 100644 --- a/site/lib/src/components/layout/header.dart +++ b/site/lib/src/components/layout/header.dart @@ -54,7 +54,7 @@ class DashHeader extends StatelessComponent { ul(classes: 'nav-items', [ _NavItem( href: '/', - label: 'User Guides', + label: 'Guides', isActive: activeEntry == ActiveNavEntry.home, ), _NavItem( diff --git a/site/lib/src/components/layout/sidenav.dart b/site/lib/src/components/layout/sidenav.dart index ade67ab61ec..de1ee7f870a 100644 --- a/site/lib/src/components/layout/sidenav.dart +++ b/site/lib/src/components/layout/sidenav.dart @@ -30,28 +30,26 @@ final class DashSideNav extends StatelessComponent { final activeEntry = activeNavEntry(context.page.url); return div(id: 'sidenav', [ - // Only show the nav items if the tutorial is active for now. - if (activeEntry == ActiveNavEntry.learn) - ul(classes: 'navbar-nav', [ - _TopNavItem( - href: '/', - label: 'Home', - iconId: 'asterisk', - active: activeEntry == ActiveNavEntry.home, - ), - _TopNavItem( - href: '/learn', - label: 'Learn', - iconId: 'play_lesson', - active: activeEntry == ActiveNavEntry.learn, - ), - const _TopNavItem( - href: 'https://api.flutter.dev', - label: 'Reference', - iconId: 'api', - ), - const _SideNavDivider(), - ]), + ul(classes: 'navbar-nav', [ + _TopNavItem( + href: '/', + label: 'Guides', + iconId: 'asterisk', + active: activeEntry == ActiveNavEntry.home, + ), + _TopNavItem( + href: '/learn', + label: 'Learn', + iconId: 'play_lesson', + active: activeEntry == ActiveNavEntry.learn, + ), + const _TopNavItem( + href: 'https://api.flutter.dev', + label: 'Reference', + iconId: 'api', + ), + const _SideNavDivider(), + ]), nav([ _SideNavLevel( diff --git a/site/lib/src/style_hash.dart b/site/lib/src/style_hash.dart index 0a86c7f940d..ce114383cc9 100644 --- a/site/lib/src/style_hash.dart +++ b/site/lib/src/style_hash.dart @@ -2,4 +2,4 @@ // dart format off /// The generated hash of the `main.css` file. -const generatedStylesHash = 'D1OovaDfTpf7'; +const generatedStylesHash = ''; diff --git a/src/content/release/whats-new.md b/src/content/release/whats-new.md index b202a043f59..a4bac8f585e 100644 --- a/src/content/release/whats-new.md +++ b/src/content/release/whats-new.md @@ -39,7 +39,7 @@ significant changes: both Flutter and Dart, as announced in a recent [blog post][fwe]. You can find the Flutter [learning pathway][] under the **Learn** tab at the top of [docs.flutter.dev][]. To return to the rest of the site, - select the **User Guides** tab. As always, the **Reference** + select the **Guides** tab. As always, the **Reference** tab takes you to the [Flutter API docs][]. * Flutter and Dart now have an [official glossary][].